Beyond Entropy: Correctness-Aware Advantage Shaping via Contrastive Policy Optimization
This paper introduces Contrastive Policy Optimization (CPO), a novel reinforcement learning framework that replaces entropy-based advantage shaping with token-level contrastive disagreement between reference-guided and vanilla generations to more accurately signal correctness, thereby resolving the zero-advantage problem and significantly outperforming existing methods on both in-domain and out-of-domain benchmarks.
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 teaching a robot to solve a tricky puzzle, like a complex math problem or a coding challenge. You don't just want the robot to guess the right answer; you want it to learn how to think. This is the world of Reinforcement Learning, where an AI learns by trying things out and getting feedback. Usually, the feedback is simple: "Good job!" if the final answer is right, or "Try again!" if it's wrong. But here's the catch: a long, winding path to the right answer might have some brilliant steps and some silly mistakes mixed together. If you only look at the final result, the robot might get confused about which specific steps were helpful and which were harmful.
To fix this, scientists have tried using a concept called "entropy." Think of entropy as a measure of how "uncertain" or "confused" the robot is at any given moment. If the robot is hesitating between two options, its entropy is high. The idea was that high uncertainty means the robot is exploring new ideas, which is good, while low uncertainty means it's confident, which is also good. But there's a problem: being confused doesn't always mean you're exploring something useful. Sometimes, a robot is confused because it's lost in a dead end. It's like a student staring at a math problem, scratching their head. Are they thinking deeply about a clever solution, or are they just totally lost? Traditional methods using entropy couldn't tell the difference between "productive confusion" and "detrimental confusion." This paper, titled "Beyond Entropy," tries to solve that exact mystery by giving the robot a better way to know if it's on the right track.
The researchers propose a new method called Contrastive Policy Optimization (CPO). Instead of just guessing whether the robot is confused, CPO acts like a student comparing their homework to the answer key. Imagine a student who has just finished a math test. They look at their own work and think, "I'm not sure about this step." Then, they peek at the teacher's answer key. Suddenly, the mistake becomes obvious! The student sees, "Oh, I wrote a minus sign here, but the answer key has a plus sign." That moment of realization—the difference between what they thought and what the correct answer is—tells them exactly where they went wrong.
CPO does this for AI. It takes the AI's own answer and compares it to a "reference answer" (the correct solution). It looks at every single word (or "token") the AI generated. If the AI was confident in a wrong step, the reference answer will make the AI's confidence in that wrong step drop dramatically. If the AI was unsure about a correct step, the reference answer will boost its confidence. This "contrastive disagreement"—the gap between what the AI thought and what the correct path looks like—becomes a super-reliable signal. The paper shows through both math and experiments that this signal is much better at spotting mistakes than just measuring how "confused" the AI is.
The team tested this on some very hard math problems, using models like Qwen2.5-Math-7B and Qwen3-Base-4B. They found that CPO was a huge improvement over the old methods. On average, it boosted performance by about 7.7% to 8.5% compared to the standard approach (GRPO). Even more impressively, while other methods often got worse at solving problems they hadn't seen before (out-of-domain tasks), CPO actually got better at them. It seems that by focusing on the specific moments where the AI's reasoning diverged from the truth, the model learned to be both more accurate and more creative.
One of the most interesting findings is how the AI learns from different types of answers. The paper suggests that when the AI gets an answer right, it should be encouraged to keep exploring and trying new, creative paths (exploration). But when it gets an answer wrong, it should be guided to stick to the proven, correct steps (exploitation). CPO balances these two behaviors perfectly. It's like a coach who tells a player, "When you're winning, try a fancy new move! But when you're losing, stick to the basics you know work." This balance prevents the AI from getting stuck in a boring loop or wandering aimlessly.
In short, this paper argues that simply measuring "confusion" isn't enough to teach an AI to reason well. Instead, we need to show the AI the difference between its own thoughts and the correct answer. By using this "contrastive disagreement," the AI learns to spot its own mistakes with much greater precision, leading to smarter, more reliable, and more creative problem-solving. The authors show that this approach works not just for the math problems it was trained on, but also for new, unseen challenges, suggesting a promising path forward for making AI smarter and more robust.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.