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

带有和不带上下文的指令微调:行为变化和下游影响

Instruction Tuning with and without Context: Behavioral Shifts and Downstream Impact

UNC Chapel Hill(北卡罗来纳大学教堂山分校);Adobe Research(Adobe研究);KAIST AI(韩国科学技术院人工智能实验室);Mila – Quebec AI Institute(魁北克人工智能研究所);NAVER Cloud AI(NAVER云人工智能)

Hyunji Lee, Seunghyun Yoon, Yunjae Won, Hanseok Oh, Geewook Kim, Trung Bui, Franck Dernoncourt, Elias Stengel-Eskin, Mohit Bansal, Minjoon Seo

AI总结:

本文研究了指令微调中带上下文与不带上下文对模型行为和下游性能的影响,发现上下文增强训练能提升模型基础性并减少幻觉,同时提出在实际部署中分离上下文模型以获得更稳健的性能。

摘要:

指令微调是一种广泛用于提高大型语言模型(LLMs)指令遵循能力的方法。指令微调数据集通常包含上下文增强和上下文无关的例子,但先前的工作大多将这些数据类型混合在一起,而没有考察它们各自的影响。在本文中,我们研究了训练LLM时有无上下文对模型行为和下游性能的影响。首先,在文本领域,我们发现训练时带有上下文的LLM更强烈地关注提供的知识,从而实现更好的基础性。我们还观察到,上下文增强的训练会改变LLM使用知识的方式:模型存储和利用参数化知识较少,而更多依赖提供的上下文。其次,我们发现使用带有上下文增强数据训练的LLM作为基础构建视觉-语言模型,可以减少幻觉并提高视觉领域的基础性。最后,我们探索了在实际部署中上下文可用性变化的实用策略。我们显示,维护独立的上下文增强和上下文无关模型,并在它们之间路由输入,比训练单一混合模型更能获得更稳健的整体性能,因为这更好地保留了它们的互补优势。

英文摘要:

Instruction tuning is a widely used approach to improve the instruction-following ability of large language models (LLMs). Instruction-tuning datasets typically include a mixture of context-augmented and context-free examples, yet prior work has largely combined these data types without examining their distinct effects. In this paper, we investigate how training LLMs with or without context affects model behavior and downstream performance. First, in the text domain, we show that LLMs trained with context attend more strongly to the provided knowledge, achieving better grounding. We also observe that context-augmented training shifts how LLMs use knowledge: models store and leverage less on parametric knowledge and instead depend more on the provided context. Second, we observe that using LLM trained with context-augmented data as the backbone for vision-language models reduces hallucination and improves grounding in the visual domain. Finally, we explore practical strategies for real-world deployments where context availability varies. We show that maintaining separate context-augmented and context-free models and routing inputs between them yields more robust overall performance than training a single mixed model, as it better preserves their complementary strengths.

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

↑