Reasoning Cache: Continual Improvement Over Long Horizons via Short-Horizon RL

AK's Picks LLM Latent Reasoning CoT ML RL Offline RL
那些能够突破训练预算限制、持续自我提升的大语言模型(LLMs),可通过在测试阶段动态调整自身行为来求解日益复杂的问题,我们称这一能力为“外推能力”(extrapolation)。然而,标准的强化学习(RL)方法仅在固定的问题分布和固定的训练预算下运行,因而难以应对测试阶段出现的分布偏移,从而严重制约了模型的外推能力。为解决这一问题,我们提出了RC(Reasoning Chain)——一种迭代式解码算法,它在训练与推理两个阶段均替代了传统的自回归式解码。RC充分利用大语言模型在响应生成能力与摘要生成能力之间存在的固有不对称性,构建出可随迭代轮次持续优化的推理链。经RC训练的模型,其推理跨度(reasoning horizon)可外推至远超训练阶段所见长度一个数量级以上的水平,并在此过程中实现持续性能提升。实证结果表明:在仅使用16K token训练预算的情况下,对一个40亿参数(4B)的模型采用RC进行训练,其在HMMT 2025基准测试上的准确率可从40%显著提升至近70%(测试时消耗0.5M token),不仅大幅超越同规模的对比模型,甚至优于众多参数量更大的专用推理型大语言模型。最后,我们还发现:得益于训练过程中习得的、更优的“基于摘要的条件生成”(summary-conditioned generation)能力,经RC训练的模型能更高效地利用现有推理框架(scaffolds),从而进一步拓展其测试阶段的性能上限。
Large Language Models (LLMs) that can continually improve beyond their training budgets are able to solve increasingly difficult problems by adapting at test time, a property we refer to as extrapolation. However, standard reinforcement learning (RL) operates over fixed problem distributions and training budgets, which limits extrapolation amidst distribution shift at test time. To address this, we introduce RC, an iterative decoding algorithm that replaces standard autoregressive decoding during both training and inference. RC exploits an asymmetry between the response generation and summarization capabilities of LLMs to construct reasoning chains that consistently improve across iterations. Models trained to use RC can extrapolate and continually improve over reasoning horizons more than an order of magnitude longer than those seen during training. Empirically, training a 4B model with RC using a 16k-token training budget improves performance on HMMT 2025 from 40% to nearly 70% with 0.5m tokens at test time, outperforming both comparably sized models and many larger reasoning LLMs. Finally, we also show that models trained with RC can more effectively leverage existing scaffolds to further scale test-time performance, due to the improved summary-conditioned generation abilities learned through training.
许愿