早期问题的计算能帮助LLMs解决新问题吗?
研究论文 · 2026/10/05
大型语言模型通常在同一对话中解决独立问题。早期问题的计算能否帮助它们解决新问题?为了回答这个问题,我们首先进行了初步实验,表明保留的历史记录可以提高或降低后续轮次的准确性,即使在同一领域内也是如此。为了理解这些效应,我们使用受控重放来分离特定于每个问题-历史配对的内部状态变化。在不同的历史记录中,这些变化保持了当前问题之间的相似关系。为了在保留历史记录的情况下改进推理,我们引入了STAIR(Stale-Token Attention for Inter-query Reuse)。STAIR将早期响应生成中的键和值捕获到一个固定库中。它学习在提示处理期间当前查询读取该库时重定向它们。基础模型保持冻结;仅训练12,288个参数。在三个Qwen模型和四个基准测试中,STAIR相比未修改的带历史记录的模型,将后续轮次的平均准确率提高了最多11.67个百分点。
该研究探讨了对话历史对LLM解决新问题的影响,并提出了高效微调方法STAIR,在多个模型和基准上显著提升后续轮次准确率,对多轮对话推理有重要价值。
Large language models often solve independent problems in the same conversation. Can computation from earlier problems help them solve new ones? To answer this question, we first conduct preliminary experiments showing that retained history can raise or lower later-turn accuracy, even within the same domain. To understand these effects, we use controlled replay to isolate internal state changes specific to each problem-history pairing. Across different histories, these changes preserve similar relationships among current problems. To improve reasoning under retained history, we introduce STAIR (Stale-Token Attention for Inter-query Reuse). STAIR captures keys and values from earlier response generation in a fixed bank. It learns to redirect current queries when they read this bank during prompt processing. The base model remains frozen; only 12,288 parameters are trained. Across three Qwen models and four benchmarks, STAIR improves average later-turn accuracy by up to 11.67 percentage points over the unmodified model with history.