Counterfactual Recipe Generation: Exploring Compositional Generalization
in a Realistic Scenario
- URL: http://arxiv.org/abs/2210.11431v1
- Date: Thu, 20 Oct 2022 17:21:46 GMT
- Title: Counterfactual Recipe Generation: Exploring Compositional Generalization
in a Realistic Scenario
- Authors: Xiao Liu, Yansong Feng, Jizhi Tang, Chengang Hu, Dongyan Zhao
- Abstract summary: We design the counterfactual recipe generation task, which asks models to modify a base recipe according to the change of an ingredient.
We collect a large-scale recipe dataset in Chinese for models to learn culinary knowledge.
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.
- Score: 60.20197771545983
- License: http://creativecommons.org/licenses/by-nc-sa/4.0/
- 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 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.
Related papers
- Monte Carlo Tree Search for Recipe Generation using GPT-2 [0.8057006406834466]
We propose RecipeMC, a text generation method using GPT-2 that relies on Monte Carlo Tree Search (MCTS)
RecipeMC allows us to define reward functions to put soft constraints on text generation and thus improve the credibility of the generated recipes.
Our results show that human evaluators prefer recipes generated with RecipeMC more often than recipes generated with other baseline methods.
arXiv Detail & Related papers (2024-01-10T14:50:46Z) - Large Language Models as Sous Chefs: Revising Recipes with GPT-3 [56.7155146252028]
We focus on recipes as an example of complex, diverse, and widely used instructions.
We develop a prompt grounded in the original recipe and ingredients list that breaks recipes down into simpler steps.
We also contribute an Amazon Mechanical Turk task that is carefully designed to reduce fatigue while collecting human judgment of the quality of recipe revisions.
arXiv Detail & Related papers (2023-06-24T14:42:43Z) - Towards Fine-Dining Recipe Generation with Generative Pre-trained
Transformers [1.167576384742479]
We propose a novel way of creating new, fine-dining recipes from scratch using Transformers.
Given a small dataset of food recipes, we try to train models to identify cooking techniques, propose novel recipes, and test the power of fine-tuning with minimal data.
arXiv Detail & Related papers (2022-09-26T15:33:09Z) - Cross-lingual Adaptation for Recipe Retrieval with Mixup [56.79360103639741]
Cross-modal recipe retrieval has attracted research attention in recent years, thanks to the availability of large-scale paired data for training.
This paper studies unsupervised domain adaptation for image-to-recipe retrieval, where recipes in source and target domains are in different languages.
A novel recipe mixup method is proposed to learn transferable embedding features between the two domains.
arXiv Detail & Related papers (2022-05-08T15:04:39Z) - Assistive Recipe Editing through Critiquing [34.1050269670062]
RecipeCrit is a hierarchical denoising auto-encoder that edits recipes given ingredient-level critiques.
Our work's main innovation is our unsupervised critiquing module that allows users to edit recipes by interacting with the predicted ingredients.
arXiv Detail & Related papers (2022-05-05T05:52:27Z) - Learning Structural Representations for Recipe Generation and Food
Retrieval [101.97397967958722]
We propose a novel framework of Structure-aware Generation Network (SGN) to tackle the food recipe generation task.
Our proposed model can produce high-quality and coherent recipes, and achieve the state-of-the-art performance on the benchmark Recipe1M dataset.
arXiv Detail & Related papers (2021-10-04T06:36:31Z) - Revamping Cross-Modal Recipe Retrieval with Hierarchical Transformers
and Self-supervised Learning [17.42688184238741]
Cross-modal recipe retrieval has recently gained substantial attention due to the importance of food in people's lives.
We propose a simplified end-to-end model based on well established and high performing encoders for text and images.
Our proposed method achieves state-of-the-art performance in the cross-modal recipe retrieval task on the Recipe1M dataset.
arXiv Detail & Related papers (2021-03-24T10:17:09Z) - Structure-Aware Generation Network for Recipe Generation from Images [142.047662926209]
We investigate an open research task of generating cooking instructions based on only food images and ingredients.
Target recipes are long-length paragraphs and do not have annotations on structure information.
We propose a novel framework of Structure-aware Generation Network (SGN) to tackle the food recipe generation task.
arXiv Detail & Related papers (2020-09-02T10:54:25Z) - Decomposing Generation Networks with Structure Prediction for Recipe
Generation [142.047662926209]
We propose a novel framework: Decomposing Generation Networks (DGN) with structure prediction.
Specifically, we split each cooking instruction into several phases, and assign different sub-generators to each phase.
Our approach includes two novel ideas: (i) learning the recipe structures with the global structure prediction component and (ii) producing recipe phases in the sub-generator output component based on the predicted structure.
arXiv Detail & Related papers (2020-07-27T08:47:50Z) - A Named Entity Based Approach to Model Recipes [9.18959130745234]
We propose a structure that can accurately represent the recipe as well as a pipeline to infer the best representation of the recipe in this uniform structure.
Ingredients section in a recipe typically lists down the ingredients required and corresponding attributes such as quantity, temperature, and processing state.
The instruction section lists down a series of events in which a cooking technique or process is applied upon these utensils and ingredients.
arXiv Detail & Related papers (2020-04-25T16:37:26Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.