Monte Carlo Tree Search for Recipe Generation using GPT-2
- URL: http://arxiv.org/abs/2401.05199v1
- Date: Wed, 10 Jan 2024 14:50:46 GMT
- Title: Monte Carlo Tree Search for Recipe Generation using GPT-2
- Authors: Karan Taneja and Richard Segal and Richard Goodwin
- Abstract summary: 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.
- Score: 0.8057006406834466
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Automatic food recipe generation methods provide a creative tool for chefs to
explore and to create new, and interesting culinary delights. Given the recent
success of large language models (LLMs), they have the potential to create new
recipes that can meet individual preferences, dietary constraints, and adapt to
what is in your refrigerator. Existing research on using LLMs to generate
recipes has shown that LLMs can be finetuned to generate realistic-sounding
recipes. However, on close examination, these generated recipes often fail to
meet basic requirements like including chicken as an ingredient in chicken
dishes. In this paper, 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 when compared with real recipes.
Related papers
- Retrieval Augmented Recipe Generation [96.43285670458803]
We propose a retrieval augmented large multimodal model for recipe generation.
It retrieves recipes semantically related to the image from an existing datastore as a supplement.
It calculates the consistency among generated recipe candidates, which use different retrieval recipes as context for generation.
arXiv Detail & Related papers (2024-11-13T15:58:50Z) - 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) - Counterfactual Recipe Generation: Exploring Compositional Generalization
in a Realistic Scenario [60.20197771545983]
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.
arXiv Detail & Related papers (2022-10-20T17:21:46Z) - 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) - SHARE: a System for Hierarchical Assistive Recipe Editing [5.508365014509761]
We introduce SHARE: a System for Hierarchical Assistive Recipe Editing to assist home cooks with dietary restrictions.
Our hierarchical recipe editor makes necessary substitutions to a recipe's ingredients list and re-writes the directions to make use of the new ingredients.
We introduce the novel RecipePairs dataset of 84K pairs of similar recipes in which one recipe satisfies one of seven dietary constraints.
arXiv Detail & Related papers (2021-05-17T22:38:07Z) - 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) - RecipeGPT: Generative Pre-training Based Cooking Recipe Generation and
Evaluation System [29.150333060513177]
We present RecipeGPT, a novel online recipe generation and evaluation system.
System provides two modes of text generations: instruction generation from given recipe title and ingredients; and ingredient generation from recipe title and cooking instructions.
Back-end text generation module comprises a generative pre-trained language model GPT-2 fine-tuned on a large cooking recipe dataset.
arXiv Detail & Related papers (2020-03-05T09:25:30Z)
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.