arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.16889cs.CLcs.LG
收藏

LLaVA-Chef:一种面向食物食谱的多模态生成模型

LLaVA-Chef: A Multi-modal Generative Model for Food Recipes

Rensselaer Polytechnic Institute(伦斯勒理工学院)

Fnu Mohbat, Mohammed J. Zaki

AI总结:

本文提出LLaVA-Chef多模态模型,通过多阶段训练将LLaVA适配到食物食谱生成领域,在食材识别和食谱生成质量上显著优于现有方法。

摘要:

在全球化背景下在线食谱分享快速发展的环境中,针对理解和生成食物食谱的研究出现了显著增长。大型语言模型(LLMs)如GPT-2和LLaVA的最新进展为自然语言处理(NLP)方法更深入地探索食物相关任务的各个方面铺平了道路,涵盖食材识别和全面的食谱生成。尽管LLMs表现出令人印象深刻的性能和多模态适应性,但针对特定领域的训练对其有效应用仍然至关重要。本工作评估了现有的用于食谱生成的LLMs,并提出LLaVA-Chef,这是一种在多阶段方法中基于精心构建的多样化食谱提示数据集训练的新模型。首先,我们优化视觉食物图像嵌入到语言空间的映射。其次,我们通过在相关食谱数据上对LLaVA进行微调,使其适应食物领域。第三,我们利用多样化的提示来增强模型的食谱理解能力。最后,我们通过使用自定义损失函数对模型进行惩罚,来提高生成食谱的语言质量。LLaVA-Chef相较于预训练LLMs和先前工作展现出了令人印象深刻的改进。详细的定性分析表明,与现有方法相比,LLaVA-Chef能够生成更详细的食谱,并准确提及食材。

英文摘要:

In the rapidly evolving landscape of online recipe sharing within a globalized context, there has been a notable surge in research towards comprehending and generating food recipes. Recent advancements in large language models (LLMs) like GPT-2 and LLaVA have paved the way for Natural Language Processing (NLP) approaches to delve deeper into various facets of food-related tasks, encompassing ingredient recognition and comprehensive recipe generation. Despite impressive performance and multi-modal adaptability of LLMs, domain-specific training remains paramount for their effective application. This work evaluates existing LLMs for recipe generation and proposes LLaVA-Chef, a novel model trained on a curated dataset of diverse recipe prompts in a multi-stage approach. First, we refine the mapping of visual food image embeddings to the language space. Second, we adapt LLaVA to the food domain by fine-tuning it on relevant recipe data. Third, we utilize diverse prompts to enhance the model's recipe comprehension. Finally, we improve the linguistic quality of generated recipes by penalizing the model with a custom loss function. LLaVA-Chef demonstrates impressive improvements over pretrained LLMs and prior works. A detailed qualitative analysis reveals that LLaVA-Chef generates more detailed recipes with precise ingredient mentions, compared to existing approaches.

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

↑