arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.04131cs.CLcs.AIcs.LG
收藏

ContextFocus:用于大语言模型中上下文忠实性的激活引导

ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models

Adobe Research(Adobe研究)

Nikhil Anand, Shwetha Somasundaram, Anirudh Phukan, Apoorv Saxena, Koyel Mukherjee

AI总结:

ContextFocus通过轻量级激活引导方法提升大语言模型在知识冲突场景下的上下文忠实性,无需微调且高效,实验表明其在ConFiQA基准上显著优于基线方法。

摘要:

大语言模型(LLMs)在预训练过程中编码了大量参数化知识。随着世界知识的演变,有效部署越来越依赖于其能够忠实遵循外部检索的上下文。当此类证据与模型内部知识冲突时,LLMs往往默认使用记忆中的事实,产生不忠实的输出。在本工作中,我们引入了ContextFocus,一种轻量级的激活引导方法,以在知识冲突设置中提高上下文忠实性,同时保持流畅性和效率。与以往方法不同,我们的解决方案不需要模型微调,并且在推理过程中产生最小的开销,使其非常高效。我们在ConFiQA基准上评估了ContextFocus,将其与包括ContextDPO、COIECD和基于提示的方法在内的强大基线进行比较。此外,我们还表明,我们的方法与提示策略互补,并且在更大的模型上仍然有效。广泛的实验表明,ContextFocus显著提高了上下文忠实性。我们的结果突显了ContextFocus在提高LLM输出上下文忠实性方面的有效性、鲁棒性和效率。

英文摘要:

Large Language Models (LLMs) encode vast amounts of parametric knowledge during pre-training. As world knowledge evolves, effective deployment increasingly depends on their ability to faithfully follow externally retrieved context. When such evidence conflicts with the model's internal knowledge, LLMs often default to memorized facts, producing unfaithful outputs. In this work, we introduce ContextFocus, a lightweight activation steering approach that improves context faithfulness in such knowledge-conflict settings while preserving fluency and efficiency. Unlike prior approaches, our solution requires no model finetuning and incurs minimal inference-time overhead, making it highly efficient. We evaluate ContextFocus on the ConFiQA benchmark, comparing it against strong baselines including ContextDPO, COIECD, and prompting-based methods. Furthermore, we show that our method is complementary to prompting strategies and remains effective on larger models. Extensive experiments show that ContextFocus significantly improves contextual-faithfulness. Our results highlight the effectiveness, robustness, and efficiency of ContextFocus in improving contextual-faithfulness of LLM outputs.

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

↑