mlsanityData to 14 Oct 2026

Counterfactual Recipe Generation: Exploring Compositional Generalization in a Realistic Scenario

arXiv 2210.11431 ↗First posted 20 Oct 2022cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

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 methods to generate modified recipes. Results show that existing models have difficulties in modifying the ingredients while preserving the original text style, and often miss actions that need to be adjusted. Although pretrained language models can generate fluent recipe texts, they fail to truly learn and use the culinary knowledge in a compositional way. Code and data are available at https://github.com/xxxiaol/counterfactual-recipe-generation.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 22 of its 39 references that are in the map. First posted on arXiv 20 Oct 2022.

Builds on

22 of 39 references.

References · 22

  1. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  2. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
  3. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
  4. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  5. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  6. 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
  7. 2019Compositional generalization through meta sequence-to-sequence learningcited by 99
  8. 2019Counterfactual Story Reasoning and Generationcited by 88
  9. 2017Best-Worst Scaling More Reliable than Rating Scales: A Case Study on Sentiment Intensity Annotationcited by 79
  10. 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
  11. 2020Back to the Future: Unsupervised Backprop-based Decoding for Counterfactual and Abductive Commonsense Reasoningcited by 65
  12. 2019UER: An Open-Source Toolkit for Pre-training Modelscited by 62
10 more
  1. 2021Broaden the Vision: Geo-Diverse Visual Commonsense Reasoningcited by 59
  2. 2017Simulating Action Dynamics with Neural Process Networkscited by 53
  3. 2019Generating Personalized Recipes from Historical User Preferencescited by 53
  4. 2020CLUECorpus2020: A Large-scale Chinese Corpus for Pre-training Language Modelcited by 36
  5. 2020RecipeGPT: Generative Pre-training Based Cooking Recipe Generation and Evaluation Systemcited by 34
  6. 2020Multi-modal Cooking Workflow Construction for Food Recipescited by 15
  7. 2021SHARE: a System for Hierarchical Assistive Recipe Editingcited by 15
  8. 2021Unsupervised Editing for Counterfactual Storiescited by 8
  9. 2021Evaluating Recipes Generated from Functional Object-Oriented Networkcited by 7
  10. 2022Assistive Recipe Editing through Critiquingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 0; 2026: 1.

5 papers.