TL;DR
ValueFormation is a test-time metareasoning policy that dynamically decides whether to keep sampling from a primary LLM, stop with the current best answer, or "call in the cavalry" by acquiring a proposal from a heterogeneous specialist model. By treating model collaboration as a cost-regularized value problem, it achieves massive accuracy gains on hard reasoning tasks (up to +20 points on MATH-500) while maintaining high efficiency on easier ones.
What Problem Does This Paper Address?
When Large Language Models (LLMs) tackle complex reasoning, we often use "test-time compute"—sampling multiple answers and picking the best one via voting or verification. However, this approach has a fundamental ceiling: coverage failure. If the correct answer never enters the candidate pool, no amount of clever reranking or voting can recover it.
Current research usually treats this as two separate problems: "adaptive sampling" (deciding how many samples to draw from one model) or "model routing" (deciding which model to call before seeing any results). The authors argue these should be unified. The challenge is knowing during the sampling process when the current model is "stuck" in a confidently wrong state and when it’s worth spending extra tokens to get a fresh perspective from a different, specialized model.
Methods
The authors introduce ValueFormation, a sequential policy that evaluates the state of the "vote pool" after every sample.
- State Representation ($z_k$): Instead of looking at the text of the answers, the policy looks at the shape of the consensus. It uses seven task-blind features: the number of samples drawn, the percentage of samples that parsed correctly, the leader's share of votes, the margin over the runner-up, the number of unique answers, and the entropy (disagreement) of the distribution.
- The Three Actions: At each step, the policy chooses the action with the highest expected utility:
- STOP: Return the current leader.
- PRIMARY: Draw another sample from the current model.
- ACQUIRE: Stop the current model and get one high-quality proposal from a "reasoning specialist" (e.g., DeepSeek-R1).
- Cost-Regularized Utility: The policy balances success probability against a token price ($\lambda$). It calculates utility as $U = P(\text{success}) - \lambda \times \text{cost}$. This allows users to tune the "aggressiveness" of the model simply by changing the token price, without retraining the policy.
- Posterior Acceptance: If a specialist proposal is acquired, a frozen Bayesian comparison rule decides whether to trust this new answer or stick with the primary model's original leader, based on the specialist's historical reliability and the primary pool's confidence.
Datasets
The policy was evaluated across several standard reasoning benchmarks:
- Mathematics: GSM8K (grade school math), MATH-500 (hard competition math), and SVAMP.
- Code: HumanEval and MBPP (sanitized version).
- Calibration: The policy was "fitted" (trained) on a tiny subset of 288 problems from the math datasets and then frozen for all evaluations.
Key Insights and Ideas
- The Vote State is a Universal Signal: Surprisingly, the policy doesn't need to know the task or the specific question. The statistical distribution of votes alone is a powerful enough signal to detect when a model is failing to find the right answer.
- Heterogeneity > Depth: On hard problems like MATH-500, drawing 100 samples from the same model often yields nothing new. ValueFormation realizes this early and switches to a specialist, which is far more effective than "sampling deeper" into a failing distribution.
- Zero-Shot Transfer: A policy calibrated on Llama-3.1-8B trajectories transferred perfectly to Qwen and Ministral models without any changes. This suggests that the "dynamics of failing" are remarkably consistent across different LLM architectures.
- Dynamic Allocation: On easy tasks (GSM8K), the policy acts as an efficient stopping rule, saving tokens. On hard tasks (MATH), it automatically escalates to the specialist.
Key Results
- MATH-500 Performance: Using a Llama-3.1-8B primary model, ValueFormation reached 80.29% accuracy, outperforming the strongest voting/verification baseline (ESC) by 17.8 points.
- Cross-Model Gains: The same frozen policy improved Qwen3-8B by 20.8 points and Ministral-8B by 15.6 points on MATH-500.
- Efficiency: On GSM8K, the policy maintained state-of-the-art accuracy while using significantly fewer calls than fixed-budget baselines.
- Ablation: Removing the "Acquire" action (forcing the model to only use its own samples) dropped MATH accuracy by over 20 points, proving that the gain comes from the collaboration, not just better stopping.
Limitations and Future Work
- Fixed Specialist: Currently, the policy only considers one specific specialist model. Future iterations could choose from a "team" of specialists based on the observed state.
- Code Heuristics: While the math route is fully adaptive, the code route in this paper uses a more fixed heuristic based on public test cases. Extending the full value-conditioned policy to code execution feedback is a natural next step.
- Specialist Dependency: The system's peak performance is ultimately bounded by the quality of the specialist model (in this case, DeepSeek-R1). If the specialist also fails on a specific problem type, the policy cannot recover.
Summary updated