Learning Format Flexibility