Advantage Matching: A General Reinforcement Learning Framework for LLM Reasoning

Kien Do, Tu Nguyen, Vu-An Hoang, Cuong Pham, Trung Le, Khoat Than, Dieu Hoang VuarXiv 2026

TL;DR

Teaching large language models (LLMs) to reason using reinforcement learning (RL) usually involves messy approximations, brittle token-by-token updates, and throwing away useful pre-existing training data. This paper introduces Advantage Matching (AM), a mathematical framework that cuts out the middleman by directly aligning how much a model changes its mind with how good an entire chain of thought actually is. The result is a clean, unified recipe that learns from whole reasoning paths and seamlessly blends live trial-and-error with static expert examples to boost math and coding skills.

What Problem Does This Paper Address?

Getting an LLM to solve an Olympiad math problem isn't about mimicking text; it's about trial, error, and refinement—the natural turf of Reinforcement Learning (RL). Early RL methods like PPO require a "critic" (a separate model guessing how good intermediate states are), which is notoriously finicky to train. Newer "critic-free" methods like GRPO ditch the critic by generating a group of answers and comparing them against each other, which fueled breakthroughs like DeepSeek-R1.

Yet, existing methods suffer from three big headaches:

  1. Approximation bias: They rely on surrogate math objectives rather than optimizing the true target directly.
  2. Token-level myopia: Even though a math proof is only right or wrong at the very end, most algorithms force-feed that final score back to every individual word (token) equally, ignoring how steps depend on one another.
  3. The "on-policy" trap: Models mostly learn only from fresh answers they just generated. This wastes massive, high-quality offline datasets of human-written proofs or verified code—and even causes subtle bugs when fast inference engines (like vLLM) generate probabilities slightly out of sync with the model being trained.

Methods

In standard RL for LLMs, we want a model to maximize rewards without drifting too far from its original self—a setup called KL-regularized RL.

The authors start from a fundamental mathematical truth: for the single optimal policy, the log-ratio of the new policy to the original reference policy ($\beta \log \frac{\pi}{\pi_{\text{ref}}}$) is strictly equal to the soft advantage (how much better an action is compared to the average, factoring in the drift penalty). Furthermore, they prove this equality holds if and only if the policy is optimal.

Instead of using complex clipping tricks like PPO, Advantage Matching (AM) simply minimizes the squared difference between those two quantities.

  • Macro-Actions (Trajectory-Level): Rather than scoring token-by-token, AM treats an entire generated reasoning chain as one giant "macro-action." It estimates the advantage without a critic by sampling multiple trajectories and using a leave-one-out average as a baseline.
  • Off-Policy (HAM-Traj): Because serving models via vLLM creates slight probability mismatches (making training technically "off-policy"), AM incorporates trajectory-level importance weights. Their best variant, Hard Advantage Matching (HAM-Traj), matches the policy ratio against raw, unpenalized reward differences to keep variance low.
  • Offline & Hybrid: AM naturally extends to static expert datasets by assuming the expert's probability is roughly 1, allowing models to train on a hybrid diet of live self-exploration and curated ground-truth solutions.

Datasets

No brand-new benchmarks are introduced, though the authors carefully curate existing datasets for hybrid training:

  • Math Training: DeepMath-103k for online RL, paired with a length- and difficulty-filtered 128k subset of NuminaMath (real OCR-extracted ground-truth proofs) for offline learning.
  • Code Training: TACO (competitive programming), split into disjoint, difficulty-balanced online (12k) and offline (4.8k) sets. Offline user submissions were standardized and paired with step-by-step explanations generated by Gemini-3.5-Flash.
  • Evaluation: Six math benchmarks (AIME24, AIME25, AMC23, MATH-500, Minerva Math, OlympiadBench) and five coding benchmarks (HumanEval, HumanEval+, MBPP, MBPP+, LiveCodeBench).

Key Insights and Ideas

  • Natural Brevity Regularization: In off-policy AM, multiplying probability ratios across an entire trajectory means the importance weight naturally shrinks as responses get longer. Instead of breaking training, this acts as a built-in regularizer that discourages rambling and rewards concise, accurate reasoning!
  • Domain Alignment Matters for Hybrid RL: Mixing offline expert data with online exploration gave a big boost to a math-specialized model (Qwen2.5-Math-7B), but barely helped—or slightly hurt—general-purpose instruction models. Why? Because a math model's natural "train of thought" already resembles textbook proofs, whereas forcing a general chat model to imitate terse offline proofs clashes with its online exploration style.
  • Initial Dip, Stronger Finish: As seen in the training curves below, hybrid models actually drop in performance early on as they digest the offline formatting and logic, before rebounding sharply to overtake purely online baselines.
Figure 1: Pass@1 performance curves of Qwen2.5-Math-7B finetuned with our method and other RL baselines across multiple benchmarks over the course of training.

Key Results

Across Llama-3.1 and Qwen2.5 model families (7B–8B), AM consistently beats strong critic-free baselines including GRPO, Dr. GRPO, GSPO, and TBRM:

Pass@1 math benchmark results across Llama3.1-8B-Instruct, Qwen2.5-7B-Instruct, and Qwen2.5-Math-7B.
  • Math Reasoning: On Qwen2.5-Math-7B, online AM hits 43.2% average Pass@1 (beating Dr. GRPO's 41.2% and TBRM's 41.0%). Adding offline data (AM-hybrid) pushes this to 45.3%, with standout gains on OlympiadBench (45.5% vs. 40.4% for Dr. GRPO).
  • Code Generation: On Qwen2.5-Coder-7B-Instruct, AM and AM-hybrid reach 73.7% and 73.3% average Pass@1 respectively, outperforming Dr. GRPO by 2.3% to 2.9% on the contamination-free LiveCodeBench.

Limitations and Future Work

The authors note three main boundaries to their current work:

  1. Domain Scope: Experiments focus strictly on text-based math and coding; extending AM to vision-language models (VLMs), robotics/action models (VLAs), and continuous control is left for the future.
  2. Theoretical Bridges: AM shares deep mathematical DNA with stochastic optimal control and score matching in diffusion models, a connection the authors plan to formalize later.
  3. Simple Hybrid Mixing: Their online-offline combination relies on a straightforward weighted sum with a decaying schedule—And as the general-purpose model results showed, distribution mismatch between offline data and online rollouts still needs more principled reconciliation.

Summary updated

BibTeX
@misc{do2026advantage,
  author = {Kien Do and Tu Nguyen and Vu-An Hoang and Cuong Pham and Trung Le and Khoat Than and Dieu Hoang Vu and Tuc Nguyen},
  title = {{Advantage Matching: A General Reinforcement Learning Framework for LLM Reasoning}},
  year = {2026},
  eprint = {2611.38931},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38931},
}
Figure