TL;DR
RAVR (Reference-Answer-guided Variational Reasoning) is a new framework that solves the "sampling challenge" in reinforcement learning for LLMs by using reference answers to guide the discovery of high-quality reasoning paths. By framing reasoning as a variational inference problem, RAVR allows models to learn from "explanatory reconstruction"—asking why an answer is correct—which significantly outperforms standard reinforcement learning on complex math and logic benchmarks.
What Problem Does This Paper Address?
Reinforcement Learning (RL) has become the go-to method for refining the reasoning of Large Language Models (LLMs). However, RL faces a "cold-start" problem: to reward a good reasoning path, the model must first be able to sample one. For extremely difficult tasks (like high-level math or complex logic), the model might fail to find the correct path 100% of the time during training. If the model can't find the "gold" path, RL has nothing to reinforce, leading to training collapse or the reinforcement of "lucky" but flawed logic.
Current methods like GRPO or PPO try to solve this by sampling many completions, but this is computationally expensive and often fails if the task is beyond the model's current competence. The authors argue that we are underutilizing the training data: we use the reference answer to score the model, but we don't use it to help the model think.
Methods
The core insight of RAVR is inspired by cognitive science: "Why is this the answer?" is often an easier question to solve than "What is the answer?"
RAVR introduces an end-to-end framework based on Variational Inference:
- The Posterior (Training with Answers): During training, the model is given both the question and the reference answer. It is tasked with "explanatory reconstruction"—deriving the logic that connects the two. This makes it much more likely to generate high-utility reasoning paths.
- The Prior (Inference without Answers): This is the standard mode where the model only sees the question.
- The Objective (ELBO): RAVR optimizes the Evidence Lower Bound (ELBO). It maximizes the likelihood of the correct answer while simultaneously minimizing the Kullback–Leibler (KL) divergence between the "Prior" and the "Posterior." Essentially, it forces the model's natural reasoning (without the answer) to mimic the high-quality reasoning it discovered when it had the answer.
- Role-Play Prompting: To prevent the model from taking shortcuts (e.g., just saying "The answer is X, so the steps are..."), the authors use a specific "think-aloud" prompt. This encourages the model to generate a first-person monologue that looks like genuine discovery, ensuring the style of the posterior matches the prior.
- Utility Baseline: They introduce a reward signal that only reinforces the posterior if it actually improves upon the model's current "answer-less" reasoning capability.
Datasets
The authors evaluated RAVR across two main domains:
- General Reasoning: Trained on CrossThink-QA and evaluated on GPQA-Diamond (graduate-level science) and MMLU-Pro.
- Mathematics: Trained on DeepMath-103K and evaluated on AIME24/25, AMC23, and Minerva.
Key Insights and Ideas
- Mathematical Proof of Guidance: The authors provide a formal proof showing that conditioning on the answer provably increases the expected utility of sampled reasoning paths. It transforms "intractable" search problems into "learnable" ones.
- Efficiency Gains: RAVR is remarkably sample-efficient. Experiments showed that RAVR with a rollout group size of 8 achieved better performance than the popular GRPO algorithm with a group size of 24.
- Behavioral Shift: By analyzing "discourse markers" (words like "but," "wait," and "therefore"), the authors found that RAVR-trained models exhibit less hesitation (fewer "wait" tokens) and better logic consolidation (more "therefore" tokens).
- The "Answer Prefix" Trick: Simply appending "The answer is $y^*$" after a reasoning cue significantly improved the model's ability to estimate answer probability compared to previous methods that just appended the answer at the very end.
Key Results
The researchers tested RAVR using the Qwen3-1.7B model, achieving state-of-the-art results for its size:
- GPQA-Diamond: RAVR achieved a score of 40.91, outperforming the strong DAPO baseline by 5.56 points.
- Math Benchmarks: On the AIME24/25 and Minerva sets, RAVR consistently outperformed GRPO, DAPO, and RLPR, showing superior generalization even to "out-of-domain" math problems.
- Stability: The learning curves for RAVR were significantly smoother than standard RL methods, suggesting that the answer-guided posterior acts as a powerful stabilizer during training.
Limitations and Future Work
- Open-Ended Tasks: The current study focuses on tasks with short, objective reference answers (like multiple-choice or math). The authors acknowledge that applying RAVR to open-ended tasks (like creative writing or coding) where answers are more complex is a key next step.
- Computational Overhead: While sample-efficient in terms of rollouts, the variational approach requires managing two distributions (prior and posterior) within the same model, which adds some complexity to the training pipeline.
- Scaling: While the results on a 1.7B model are impressive, the community will be interested to see how these variational benefits scale to 70B+ parameter models where the "prior" reasoning is already quite strong.
Summary updated