There has recently been growing interest in the automatic generation of cooking recipes that satisfy some form of dietary restrictions, thanks in part to the availability of online recipe data. Prior studies have used pre-trained language models, or relied on small paired recipe data (e.g., a recipe paired with a similar one that satisfies a dietary constraint). However, pre-trained language models generate inconsistent or incoherent recipes, and paired datasets are not available at scale. We address these deficiencies with RecipeCrit, a hierarchical denoising auto-encoder that edits recipes given ingredient-level critiques. The model is trained for recipe completion to learn semantic relationships within recipes. Our work's main innovation is our unsupervised critiquing module that allows users to edit recipes by interacting with the predicted ingredients; the system iteratively rewrites recipes to satisfy users' feedback. Experiments on the Recipe1M recipe dataset show that our model can more effectively edit recipes compared to strong language-modeling baselines, creating recipes that satisfy user constraints and are more correct, serendipitous, coherent, and relevant as measured by human judges.
翻译:最近人们越来越关心自动制作烹饪食谱,这种烹饪食谱可以满足某种形式的饮食限制,这部分归功于在线食谱数据的可用性。先前的研究使用了预先培训的语言模式,或者依赖小配方数据(例如配方配方配方配餐,配方配餐),然而,经过培训的语言模式产生了不一致或不一致的食谱,而且没有大规模配对数据集。我们用RepipCrit(一种分级解名的自动编码器)解决这些缺陷,该编码编辑了配方的成分级定评论。该模型经过培训,以完成配方,学习配方内语义关系。我们的工作的主要创新是我们未受监督的试样模块,使用户能够通过与预测的成分互动来编辑配方;迭代重写系统提供了满足用户反馈的配方。关于Repipe1M配方的实验显示,我们的模式可以更有效地编辑配方,与强健的语言建模基准相比,创建了满足用户制约的配方,并且更符合人类判断的准确性、更精确性。