arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.05199cs.CLcs.AI
收藏

使用 GPT-2 基于蒙特卡洛树搜索的食谱生成

Monte Carlo Tree Search for Recipe Generation using GPT-2

Georgia Institute of Technology(佐治亚理工学院);IBM Research(IBM研究院)

Karan Taneja, Richard Segal, Richard Goodwin

AI总结:

提出 RecipeMC 方法,结合 GPT-2 与蒙特卡洛树搜索(MCTS)定义奖励函数施加软约束,提升生成食谱的可信度,人类评估更偏好其结果。

摘要:

自动食谱生成方法为厨师提供了探索和创造新颖美食的创意工具。鉴于大型语言模型(LLMs)近期的成功,它们有潜力创造出能满足个人偏好、饮食限制并适应冰箱现有食材的新食谱。现有关于使用 LLMs 生成食谱的研究表明,LLMs 可以通过微调来生成听起来逼真的食谱。然而,仔细检查后发现,这些生成的食谱往往无法满足基本要求,例如在鸡肉菜肴中加入鸡肉作为食材。在本文中,我们提出了 RecipeMC,这是一种使用 GPT-2 并依赖蒙特卡洛树搜索(MCTS)的文本生成方法。RecipeMC 允许我们定义奖励函数,对文本生成施加软约束,从而提高生成食谱的可信度。我们的结果显示,与真实食谱进行比较时,人类评估者更倾向于选择由 RecipeMC 生成的食谱,而不是其他基线方法生成的食谱。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑