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

大型语言模型是否受益于自身话语?

Do LLMs Benefit From Their Own Words?

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology(麻省理工学院电子工程与计算机科学系);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Research(IBM研究院)

Jenny Y. Huang, Leshem Choshen, Wei Sun, Omar Khattab, Ramón Fernandez Astudillo, Mehul Damani, Tamara Broderick, Jacob Andreas

AI总结:

研究发现,省略大型语言模型自身历史上下文可提高响应质量并减少内存消耗。

摘要:

大型语言模型的多轮交互通常保留助手之前的回复在对话历史中。在本工作中,我们重新审视这一设计选择,通过询问大型语言模型是否受益于根据其自身之前的回复进行条件化来探讨。使用现实中的多轮对话,我们比较了标准(完整上下文)提示法与一种只包含用户回合的提示方法(省略所有之前的助手回复),在三个开放推理模型和一个最先进的模型上进行比较。出乎我们意料的是,我们发现删除先前助手回复对大量回合的响应质量没有影响。省略助手侧的历史可以将累计上下文长度减少高达10倍。为了解释这一结果,我们发现多轮对话中有一大部分(36.4%)是自包含的提示,而许多后续提示提供了足够的指令,可以仅使用当前用户回合和先前用户回合来回答。当分析用户回合-only提示法显著优于完整上下文的情况时,我们发现存在上下文污染的情况,即模型过度依赖其之前的回复,引入错误、幻觉或风格化特征,这些特征会传播到后续回合中。受这些发现的启发,我们设计了一种上下文过滤方法,可以有选择地省略助手侧的上下文。我们的发现表明,有选择地省略助手历史可以提高响应质量同时减少内存消耗。

英文摘要:

In multi-turn conversations, large language models typically condition on the full conversation history: both past user prompts and assistant responses. We revisit this design choice by comparing full-context prompting to four alternative, substantially-reduced context configurations. Analyzing in-the-wild multi-turn conversations across three open reasoning and one state-of-the-art model, we find that response quality is largely preserved under aggressive context filtering: replacing all prior assistant turns with one-sentence summaries or keeping only the most recent user--assistant exchange often matches storing full context in performance while using roughly 8x less context. To understand this result, we observe that a substantial fraction of user turns (36.4%) in multi-turn conversations are self-contained and that many follow-up turns can be addressed by seeing only the immediately preceding user--assistant exchange. Furthermore, we find that when models condition on their own past responses, this can lead to context pollution, a phenomenon in which reasoning errors, hallucinations, or stylistic artifacts propagate across turns. Motivated by these findings, we design a context-filtering approach that selectively omits the assistant-side history. Taken together, these findings suggest moving away from storing full dialogue transcripts and instead retaining only what is relevant.

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

↑