TL;DR
Fine-tuning large language models (LLMs) for reasoning often causes them to forget how to solve problems they answered correctly earlier in training—a phenomenon termed Temporal Forgetting. To recover these lost capabilities, the authors propose Temporal Sampling, a simple decoding strategy that distributes inference queries across multiple intermediate training checkpoints. This compute-efficient approach recovers forgotten solutions without retraining, boosting reasoning performance by up to 19 points on competitive benchmarks.
What Problem Does This Paper Address?
Standard LLM development follows a predictable pipeline: train a base model, fine-tune it using Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL), and deploy the final checkpoint. This paradigm implicitly assumes that the final checkpoint represents the model's peak capability.
However, this paper uncovers a counterintuitive reality: during post-training, LLMs frequently forget how to solve specific problems they had already mastered at earlier checkpoints. This Temporal Forgetting means that standard evaluation metrics computed solely on the final model snapshot significantly underestimate the model's true reasoning potential.
Methods
To exploit the hidden capabilities scattered across a model's training history, the authors introduce Temporal Sampling.
Instead of generating all $k$ inference samples from the final checkpoint, Temporal Sampling distributes the sampling budget across $t$ distinct checkpoints saved along the training trajectory. The implementation uses a simple round-robin allocation strategy to cycle through the checkpoints.
To make this approach practical for real-world deployment, the authors extend it to LoRA (Low-Rank Adaptation) Fine-tuning. Instead of saving multiple multi-gigabyte full-parameter models, developers only need to store lightweight LoRA adapter weights for each checkpoint, drastically minimizing the storage footprint.
Datasets
The authors evaluated their approach across several difficult mathematical and scientific reasoning benchmarks:
- AIME24 / AIME25: American Invitational Mathematics Examination tasks.
- AMC: American Mathematics Competitions.
- OlympiadBench: A high-difficulty, bilingual scientific and mathematical benchmark.
- MATH-500: A subset of the standard MATH dataset used to benchmark multi-step reasoning.
- GPQA-Diamond: A graduate-level, "Google-proof" question-answering dataset.
Key Insights and Ideas
- Reasoning Capabilities are Volatile: Rather than monotonically improving, a model's ability to solve individual problems oscillates heavily during RL and SFT. The authors found that between 6.4% and 56.1% of final errors were actually answered correctly at some earlier checkpoint.
- Training Dynamics as a Source of Diversity: Traditional test-time scaling relies on temperature scaling or prompt permutations to generate diverse answers. Temporal Sampling introduces a completely different axis of diversity: the evolving cognitive states of the model over time.
- Outperforming Mixture of Models (MoM): Sampling across the temporal dimension of a single model proved more effective and compute-efficient than sampling across entirely different foundation models (like combining Qwen, Llama, and DeepSeek outputs).
Key Results
- Massive Pass@k Gains: For a Qwen2.5-7B model evaluated on AIME24, Temporal Sampling across 8 checkpoints ($t=8$) outperformed the final-checkpoint baseline by 19 percentage points in Pass@64.
- Better Efficiency: On AIME24, Temporal Sampling achieved a 22.5% pass rate with just $k=5$ samples, a performance level that required $k=64$ samples when relying solely on the final checkpoint.
- Consistent Voting Improvements: Temporal Sampling yielded consistent gains of 4 to 9 points when paired with majority voting (Maj@k) and Best-of-N decoding across multiple benchmarks.
- LoRA Efficiency: Implementing Temporal Sampling via LoRA adapters retained the performance gains of full-parameter checkpointing while offering a highly resource-efficient storage footprint.
Limitations and Future Work
- Domain Constraints: The empirical validation in this paper is strictly focused on mathematical and scientific reasoning. It remains to be seen if temporal forgetting behaves similarly in code generation, creative writing, or instruction-following tasks.
- Algorithmic Scope: While the authors hypothesize generalizability, their experiments primarily targeted GRPO and SFT frameworks, leaving on-policy methods like PPO or off-policy methods like DPO for future validation.
- The Ultimate Goal (Pass@1): Temporal Sampling requires generating multiple samples across checkpoints ($Pass@k|t$). A major open challenge is finding out how to distill the collective wisdom of these transient states back into a single final checkpoint to boost $Pass@1$ performance directly.
Summary updated