TL;DR
This paper introduces TTCS, a novel framework for improving Large Language Models' (LLMs) reasoning abilities during test-time. TTCS tackles the challenge of difficult reasoning problems by dynamically generating a curriculum of progressively harder synthetic questions, guided by the LLM's own evolving capabilities, leading to more stable and effective self-improvement.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly being used for complex reasoning tasks, especially in domains like mathematics. While "Test-Time Training" (TTT) offers a way to adapt LLMs using only the test data, existing methods struggle with difficult problems. This is primarily due to two issues:
- Unreliable Pseudo-Labels: For very hard questions, LLMs often produce incorrect answers. When these incorrect answers are used to generate "pseudo-labels" (the model's own best guess for the correct answer), majority voting can lead to a consensus on the wrong answer, actively misguiding the model's learning.
- Lack of Learnable Samples: TTT methods often operate directly on the raw, difficult test questions. These questions can be far beyond the model's current capabilities, making it hard for the model to learn effectively. It's like trying to learn calculus without first mastering algebra.
The paper aims to overcome these limitations by creating a more structured and adaptive learning process during inference.
Methods
TTCS employs a "co-evolving" framework with two main components, both initialized from the same pretrained LLM:
- Question Synthesizer ($\pi_\phi$): This component's job is to generate new, synthetic questions. It takes an original test question and creates variants that preserve the core reasoning structure but alter surface details (like numbers, settings, or constraint types). The goal is to create a "curriculum" of questions that are tailored to the solver's current ability.
- Reasoning Solver ($\pi_\theta$): This is the LLM that actually performs the reasoning. It's trained online using a mix of original test questions and the synthetic questions generated by the synthesizer. It learns by optimizing for "self-consistency" – how often its own generated answers agree with each other.
The key innovation is how these two components co-evolve:
- Synthesizer learns from Solver: The solver acts as an "online assessor." Its performance on synthetic questions provides feedback to the synthesizer. Specifically, the synthesizer is rewarded for generating questions that are challenging enough to be difficult but not impossible for the solver (i.e., questions near the solver's "capability frontier"). This is achieved through a "capability-adaptive reward" that peaks when the solver's self-consistency score is around 0.5 (meaning it's neither consistently right nor consistently wrong).
- Solver learns from Synthesizer: The synthesizer provides a steady stream of diverse, progressively challenging questions. This structured curriculum helps stabilize the solver's training and prevents it from getting stuck on overly difficult raw test questions. The solver is updated using self-consistency rewards derived from its own responses to both original and synthetic questions.
Both agents are trained using Group Relative Policy Optimization (GRPO), an RL algorithm suited for this kind of iterative learning. The framework also includes "similarity penalty" rewards for the synthesizer to encourage diversity and prevent repetitive or trivial question generation.
Datasets
The paper evaluates TTCS on a variety of mathematical benchmarks, including:
- Competition-Level Mathematics: AMC23, AIME24, AIME25 (known for requiring multi-step reasoning and deep insight).
- Standard Mathematical Benchmarks: MATH-500, Minerva, OlympiadBench (covering fundamental proficiency across different difficulty levels).
Additionally, to assess generalization, they use:
- General-Domain Benchmarks: BBEH, MMLU-Pro, SuperGPQA (tasks where LLMs traditionally struggle).
Key Insights and Ideas
- Curriculum Learning is Crucial for Test-Time Adaptation: Directly training on hard, raw test questions is inefficient and prone to errors. A dynamically generated curriculum of "just-right" difficulty questions is key to effective self-improvement.
- Co-evolutionary Feedback Loop: The most significant insight is the symbiotic relationship between the synthesizer and solver. The solver's evolving capability guides the synthesizer to generate better questions, which in turn helps the solver improve. This creates a virtuous cycle.
- Capability Frontier is the Sweet Spot: The synthesizer is most effective when it generates questions that the solver can answer correctly about 50% of the time. This "uncertainty frontier" provides the most informative learning signals.
- Synthesized Questions Stabilize Training: By providing a diverse and structured set of problems, synthetic questions act as a buffer against the instability that can arise from training on a small, difficult test set.
- Mathematical Reasoning Skills Transfer: The improvements gained from mathematical self-evolution generalize to broader reasoning tasks, suggesting that TTCS teaches fundamental reasoning logic rather than just domain-specific patterns.
Key Results
- Significant Performance Gains: TTCS consistently outperforms baselines like Self-Consistency, TTRL, and R-Zero across various LLM backbones and mathematical benchmarks. For example, on the Qwen2.5-Math-1.5B model, TTCS achieved an average accuracy of 41.49, a +24.19 point improvement over the pretrained model.
- Superior to TTRL: TTCS surpasses TTRL (a strong test-time training baseline) by a notable margin, often achieving gains of 4-6 points on challenging benchmarks like AIME24/25. This highlights the advantage of curriculum synthesis over direct adaptation.
- Effective in Data-Scarce Scenarios: Even with only 10% of the test data, TTCS significantly boosts accuracy, demonstrating its ability to amplify limited supervision.
- Cross-Domain Generalization: TTCS shows strong performance on general-domain reasoning benchmarks (MMLU-Pro, SuperGPQA) even when trained solely on mathematical tasks, indicating transferable reasoning skills.
Limitations and Future Work
- Model Collapse Risk: The paper acknowledges the general risk of recursive training on self-generated data leading to model collapse, though their re-sampling strategy for test data aims to mitigate this.
- Hyperparameter Tuning: While GRPO is used for optimization, specific hyperparameter choices (like $\gamma$, $\lambda_1$, $\lambda_2$) are mentioned, suggesting that fine-tuning might be necessary.
- Future Work: The authors view TTCS as a foundational step and plan to extend the framework to more practical agentic applications. They also suggest exploring more sophisticated synthesizer strategies and reward mechanisms.
Summary updated