← Latest papers
🤖 machine learning

Rollout Pass-Rate Control: Steering Binary-Reward RL Toward Its Most Informative Regime

This paper proposes Prefix Sampling, a method that reconstructs trajectory prefixes to steer binary-reward agentic RL toward an optimal 50% pass rate, thereby maximizing reward entropy and contrastive signals to achieve significant wall-clock speedups and improved performance on benchmarks like SWE-bench and AIME.

Original authors: Tianshu Zhu, Wenyu Zhang, Xiaoying Zuo, Lun Tian, Haotian Zhao, Yucheng Zeng, Jingnan Gu, Daxiang Dong, Jianmin Wu, Dawei Yin, Dou Shen

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

Original authors: Tianshu Zhu, Wenyu Zhang, Xiaoying Zuo, Lun Tian, Haotian Zhao, Yucheng Zeng, Jingnan Gu, Daxiang Dong, Jianmin Wu, Dawei Yin, Dou Shen

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

The Big Problem: Wasting Energy on "Too Easy" or "Too Hard" Tasks

Imagine you are a coach training a team of student athletes to solve complex puzzles. You give them a batch of 8 puzzles at a time.

  • The "Too Easy" Batch: 7 or 8 students solve the puzzle instantly. They are bored, and you learn nothing new because they all got it right.
  • The "Too Hard" Batch: 0 or 1 student solves it. Everyone else is stuck. You learn nothing because there's no successful example to study.
  • The "Just Right" Batch: 4 students solve it, and 4 fail. This is the sweet spot. You have a perfect mix of success and failure to learn from. The students who failed can see exactly what the successful ones did differently.

In the world of AI, this is called Reinforcement Learning (RL). The AI generates many "rollouts" (attempts) to solve a problem. The paper argues that current AI training wastes a massive amount of computer power on the "Too Easy" and "Too Hard" batches because they don't provide useful learning signals.

The Solution: "Prefix Sampling" (The "Head Start" and "Handicap" Trick)

The researchers propose a clever method called Prefix Sampling to fix this. Instead of just throwing away the bad batches or asking the AI to try again from scratch (which is slow and expensive), they use a "time-travel" trick.

Think of the AI's attempt as a long story being written.

  1. The "Too Hard" Scenario: The AI tries to solve a hard problem and mostly fails.

    • The Trick: The system finds the one successful attempt the AI did make in that batch. It takes the first half of that successful story (the "prefix") and forces the AI to start its next attempt from that exact point.
    • The Analogy: It's like giving a struggling student a head start. "You got stuck here, but look, you actually solved the first part correctly. Start your next attempt from here." This makes the hard problem easier, pushing the success rate up toward 50%.
  2. The "Too Easy" Scenario: The AI solves the problem too easily.

    • The Trick: The system finds the one failed attempt in that batch. It takes the first half of that failure and forces the AI to start from there.
    • The Analogy: It's like giving a genius student a handicap. "You solved this too fast. Let's pretend you made a mistake at the beginning. Start your next attempt from this error." This makes the easy problem harder, pushing the success rate down toward 50%.

Why 50% is the Magic Number

The paper does some math to prove that 50% success is the most informative point.

  • Entropy (Confusion): If you know an AI will always win or always lose, there is no surprise. If it wins half the time, there is maximum "surprise" or information to learn from.
  • Contrast: To learn, you need to compare a "win" against a "loss." If everyone wins, you have no losses to compare. If everyone loses, you have no wins. You need a 50/50 split to get the best contrast.

How It Works in the Real World (The "Stateful" Part)

This is the hardest part to explain, but it's crucial. In simple math problems, an AI just writes text. But in software engineering (like fixing code), the AI is an "agent" that opens files, runs commands, and changes the computer's state.

Usually, if you want to replay a previous attempt, you have to reset the whole computer environment, which is slow.

  • The Innovation: The researchers built a system that can "replay" the AI's actions step-by-step to reconstruct the exact state of the computer (the code, the files, the history) without starting over.
  • The Masking: When the AI continues from this replayed state, the system tells the AI: "You didn't write the first part (we replayed that for you). You only get credit for the new part you write." This ensures the AI learns from its own new decisions, not the old ones.

The Results: Faster and Smarter

The researchers tested this on two types of tasks:

  1. Software Engineering (SWE-bench): Fixing real-world code bugs.
  2. Math (AIME 2025): Solving hard math olympiad problems.

The Gains:

  • Speed: The AI reached the same high performance level in half the time (up to 2x faster) on the larger models.
  • Efficiency: It wasted less computer power on useless "all-win" or "all-loss" attempts.
  • Performance: The final AI was actually better at solving problems than the standard training method, reaching higher scores.

Summary

The paper introduces a "traffic controller" for AI training. Instead of letting AI run wild and wasting time on tasks that are too easy or too hard, it actively steers the training batches toward a 50% success rate. It does this by giving struggling AI a "head start" from a previous success and giving over-confident AI a "handicap" from a previous failure. This keeps the learning process in the "Goldilocks zone," making training significantly faster and more effective.

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 →