Counterfactual Recipe Generation: Exploring Compositional Generalization in a Realistic Scenario
Xiao Liu, Yansong Feng, Jizhi Tang, Chengang Hu, Dongyan Zhao

TL;DR
This paper explores whether pretrained language models can perform compositional generalization in recipe generation by modifying recipes based on ingredient changes, revealing current models' limitations in understanding and applying culinary knowledge.
Contribution
The study introduces a counterfactual recipe generation task, a large-scale Chinese recipe dataset, and evaluates pretrained models' ability to perform compositional modifications.
Findings
Models struggle to modify ingredients while maintaining style.
Models often miss actions related to changing ingredients.
Pretrained models do not fully learn or utilize culinary knowledge.
Abstract
People can acquire knowledge in an unsupervised manner by reading, and compose the knowledge to make novel combinations. In this paper, we investigate whether pretrained language models can perform compositional generalization in a realistic setting: recipe generation. We design the counterfactual recipe generation task, which asks models to modify a base recipe according to the change of an ingredient. This task requires compositional generalization at two levels: the surface level of incorporating the new ingredient into the base recipe, and the deeper level of adjusting actions related to the changing ingredient. We collect a large-scale recipe dataset in Chinese for models to learn culinary knowledge, and a subset of action-level fine-grained annotations for evaluation. We finetune pretrained language models on the recipe corpus, and use unsupervised counterfactual generation…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
MethodsBalanced Selection
