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

微调语言模型用于食谱生成:比较分析与基准研究

Fine-tuning Language Models for Recipe Generation: A Comparative Analysis and Benchmark Study

University of Southern California(南加州大学)

Anneketh Vij, Changhao Liu, Rahul Anil Nair, Theodore Eugene Ho, Edward Shi, Ayan Bhowmick

AI总结:

本研究通过微调T5-small、SmolLM系列及Phi-2等超小型语言模型探索食谱生成任务,开发含食谱特定指标和过敏原替换的评估框架,发现领域特定指标下模型大小与质量关系更复杂,为相关NLG任务提供基准与见解。

摘要:

本研究通过微调各种超小型语言模型,对食谱生成任务展开探索与研究,重点在于开发鲁棒的评估指标,并比较不同语言模型在开放式食谱生成任务中的表现。本研究针对多种模型架构开展了大量实验,包括T5-small(Raffel等人,2023)、SmolLM-135M(Allal等人,2024)和Phi-2(Research,2023),同时采用传统NLP指标和自定义领域特定评估指标。我们新颖的评估框架纳入了用于评估内容质量的食谱特定指标,并引入了过敏原替换方法。结果表明,虽然较大模型在标准指标上通常表现更好,但在考虑领域特定指标时,模型大小与食谱质量的关系更为复杂。SmolLM-360M和SmolLM-1.7B尽管参数规模不同,在微调前后表现相当;而尽管Phi-2参数数量更大,微调后在食谱生成中仍存在显著局限性。该综合评估框架和过敏原替换系统为未来食谱生成及更广泛的、需要领域专业知识和安全考量的自然语言生成(NLG)任务提供了宝贵见解。

英文摘要:

This research presents an exploration and study of the recipe generation task by fine-tuning various very small language models, with a focus on developing robust evaluation metrics and comparing across different language models the open-ended task of recipe generation. This study presents extensive experiments with multiple model architectures, ranging from T5-small (Raffel et al., 2023) and SmolLM-135M(Allal et al., 2024) to Phi-2 (Research, 2023), implementing both traditional NLP metrics and custom domain-specific evaluation metrics. Our novel evaluation framework incorporates recipe-specific metrics for assessing content quality and introduces approaches to allergen substitution. The results indicate that, while larger models generally perform better on standard metrics, the relationship between model size and recipe quality is more nuanced when considering domain-specific metrics. SmolLM-360M and SmolLM-1.7B demonstrate comparable performance despite their size difference before and after fine-tuning, while fine-tuning Phi-2 shows notable limitations in recipe generation despite its larger parameter count. The comprehensive evaluation framework and allergen substitution systems provide valuable insights for future work in recipe generation and broader NLG tasks that require domain expertise and safety considerations.

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

↑