← Latest papers
💬 NLP

On Advantage Estimates for Max@K Policy Gradients

This paper introduces MaxPO, a new policy-gradient method for optimizing max@K objectives in reinforcement learning with verifiable rewards, which utilizes a novel Leave-Two-Out baseline to ensure centered advantages, reduce gradient variance, and unify existing estimators for more effective LLM post-training.

Original authors: Shota Takashiro, Soichiro Nishimori, Paavo Parmas, Yongmin Kim, Kohsei Matsutani, Gouki Minegishi, Yusuke Iwasawa, Takeshi Kojima, Yutaka Matsuo

Published 2026-06-05
📖 5 min read🧠 Deep dive

Original authors: Shota Takashiro, Soichiro Nishimori, Paavo Parmas, Yongmin Kim, Kohsei Matsutani, Gouki Minegishi, Yusuke Iwasawa, Takeshi Kojima, Yutaka Matsuo

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a teacher trying to train a student to solve a very difficult math problem. The student is an AI, and the problem is a "reasoning task."

In the old way of training these AIs (Reinforcement Learning), the teacher would ask the student to try solving the problem once. If the answer was wrong, the student got no feedback (zero reward). If it was right, they got a gold star. The problem? The student had to guess the right path in a giant maze of possibilities, and getting a gold star was so rare that the student often got stuck, not knowing which guesses were "almost right" and which were "completely wrong."

To fix this, researchers started a new strategy: The "Try Many Times" Approach.

Instead of asking the student to solve the problem once, the teacher asks them to generate K different solutions at the same time. The goal isn't just to get one right answer; it's to make sure that at least one of those K attempts is correct. This is called optimizing for Max@K (or Pass@K).

The Problem with the Old "Try Many" Methods

The paper argues that while this "Try Many" approach is great, the math used to teach the AI how to improve was slightly flawed.

Imagine you have a group of 8 students (a "batch") trying to solve a puzzle. You want to tell each student how well they did.

  • The Old Method (EI-only): It looked at a student's answer and compared it to the best answer of the other 7 students. If the student did better than the others, they got a huge "Good Job!" signal. If they did worse, they got a "0" signal.
  • The Flaw: Because the "Good Job!" signal was always positive (or zero) and never negative, the teacher was essentially saying, "You are always doing better than average!" This is misleading. It's like a coach who only ever says "Great!" and never points out that a player is actually underperforming compared to the team's true potential. This creates a lot of "noise" (variance) in the training, making the AI's learning unstable and slow.

The Solution: The "Leave-Two-Out" Baseline

The authors of this paper propose a smarter way to grade the students, which they call MaxPO (Max@K Policy Optimization).

They introduce a new rule for grading, which they call the Leave-Two-Out (L2O) baseline. Here is how it works using a simple analogy:

Imagine you are judging a talent show with 8 contestants.

  1. The Old Way: To judge Contestant A, you compare them to the best of the other 7. If A is the best, they get a high score. If not, they get a zero. This is biased because the "best of the other 7" is a moving target that changes depending on who is in the room.
  2. The New Way (L2O): To judge Contestant A, you temporarily remove both Contestant A and Contestant B from the room. You then look at the remaining 6 people to see what a "fair" average performance looks like.
    • You calculate how well Contestant A would have done against this "fair" group.
    • Crucially, by removing two people, you ensure that the "fair" group doesn't accidentally include the person you are trying to judge (Contestant A) or a specific "rival" (Contestant B) that might skew the comparison.

Why is this better?
This method ensures that the "average" score of the whole group is exactly zero. Some students get a positive score (they did better than the fair average), and some get a negative score (they did worse). These positive and negative scores cancel each other out perfectly.

  • The Result: The AI gets a much clearer, less "noisy" signal. It knows exactly where it stands relative to a fair baseline, rather than just being told "you're great" or "you're nothing."

What the Paper Found

The researchers tested this new "Leave-Two-Out" method in two ways:

  1. In Simple Games (Bandits and Mazes): They showed that their new method reduced the "noise" in the learning signal by a huge margin (up to 77% less noise in some cases). This means the AI learns more steadily and doesn't get confused by random fluctuations.
  2. In Real AI Models (LLMs): They tested this on large language models (like Llama and Qwen) trying to solve math problems.
    • The Result: The AI trained with their new method (MaxPO) got significantly better at solving problems when allowed to try many times (e.g., Pass@256).
    • On the Qwen model, it improved the success rate by 5.2%.
    • On the Llama model, it improved the success rate by 2.4%.

The Big Picture

Think of the old method as a coach who is overly optimistic and gives everyone a "Good Job" sticker, even when they are struggling. The new method (MaxPO) is a coach who uses a strict, fair, and balanced scoring system. By removing the "noise" and ensuring the scores are centered around zero, the AI can learn much faster and more effectively, especially when the goal is to find at least one correct answer out of many attempts.

The paper concludes that this "Leave-Two-Out" approach is the mathematically correct way to train AI for these "try many times" tasks, providing a unified and stable foundation for future improvements.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →