STAIR:利用前序问题计算提升LLM后续推理准确率
Can Computation from Earlier Problems Help LLMs Solve New Ones?
研究提出STAIR(Stale-Token Attention for Inter-query Reuse),将先前回答生成中的注意力key和value存入只读bank,仅训练12,288个参数,学习反射当前query向量以重定向对该bank的注意力。
arXiv:2609.39394v2 Announce Type: replace Abstract: Large language models often solve independent problems in the same conversation. Can computation from earlier problems help them solve new ones? Preliminary experiments show that retained history can raise or lower later-turn accuracy, even within the same domain. To trace this effect, we hold each problem fixed and vary its preceding history. The resulting changes in the model's internal states contain a recurring, problem-dependent component. To improve reasoning with retained history, we introduce STAIR (Stale-Token Attention for Inter-query Reuse). It captures attention keys and values from earlier response generation in a read-only bank. STAIR learns to reflect current query vectors to redirect attention over this bank during prompt processing. The backbone and stored entries remain fixed; only 12,288 parameters are trained. Across three Qwen models and four reasoning benchmarks, STAIR improves average later-turn accuracy by up to 11.67 percentage points over the unmodified model with history. The math-trained Qwen3.5-9B controller also improves code generation on HumanEval+ without further training.
来源:arXiv (AI + Vision + Imaging) · arxiv.org