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

时间采样:应对大语言模型中被遗忘的推理能力

Temporal Sampling for Forgotten Reasoning in LLMs

University of Washington(华盛顿大学);Carnegie Mellon University(卡内基梅隆大学);Western Washington University(西华盛顿大学)

Yuetai Li, Zhangchen Xu, Fengqing Jiang, Bhaskar Ramasubramanian, Luyao Niu, Bill Yuchen Lin, Xiang Yue, Radha Poovendran

AI总结:

针对微调导致大语言模型遗忘先前正确推理能力的问题,提出时间采样解码策略,从训练轨迹多检查点采样输出,无需重训即可恢复遗忘解法,显著提升推理性能。

摘要:

微调大型语言模型(LLMs)旨在提升其推理能力,然而我们发现了一个反直觉的现象:模型在训练过程中往往会遗忘如何解决先前能正确回答的问题。我们将此现象称为时间遗忘,并证明其在模型规模、微调方法(包括强化学习和监督微调)以及多个推理基准中普遍存在。为解决这一问题,我们引入了时间采样(Temporal Sampling),一种简单的解码策略,它从训练轨迹中的多个检查点抽取输出。该方法无需重新训练或集成即可恢复被遗忘的解决方案,并显著提升推理性能,在Pass@k上提升4至19个百分点,在多个基准的Majority@k上持续获得增益。我们进一步将该方法扩展到LoRA适配模型,证明仅存储各检查点的适配器权重即可在极小的存储成本下获得类似收益。通过利用训练中固有的时间多样性,时间采样提供了一种实用且计算高效的方式,以揭示隐藏的推理能力,并重新思考我们评估LLMs的方式。

英文摘要:

Fine-tuning large language models (LLMs) is intended to improve their reasoning capabilities, yet we uncover a counterintuitive effect: models often forget how to solve problems they previously answered correctly during training. We term this phenomenon temporal forgetting and show that it is widespread across model sizes, fine-tuning methods (both Reinforcement Learning and Supervised Fine-Tuning), and multiple reasoning benchmarks. To address this gap, we introduce Temporal Sampling, a simple decoding strategy that draws outputs from multiple checkpoints along the training trajectory. This approach recovers forgotten solutions without retraining or ensembling, and leads to substantial improvements in reasoning performance, gains from 4 to 19 points in Pass@k and consistent gains in Majority@k across several benchmarks. We further extend our method to LoRA-adapted models, demonstrating that storing only adapter weights across checkpoints achieves similar benefits with minimal storage cost. By leveraging the temporal diversity inherent in training, Temporal Sampling offers a practical, compute-efficient way to surface hidden reasoning ability and rethink how we evaluate LLMs.

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

↑