← Latest papers
💬 NLP

Reuse your FLOPs: Scaling RL on Hard Problems by Conditioning on Very Off-Policy Prefixes

PrefixRL addresses the inefficiency of reinforcement learning on hard reasoning problems by conditioning on off-policy prefixes of successful traces to stabilize training and boost sample efficiency, achieving faster convergence and superior performance compared to standard baselines while enabling a self-improvement loop through rejection sampling.

Original authors: Amrith Setlur, Zijian Wang, Andrew Cohen, Paria Rashidinejad, Sang Michael Xie

Published 2026-02-04
📖 5 min read🧠 Deep dive

Original authors: Amrith Setlur, Zijian Wang, Andrew Cohen, Paria Rashidinejad, Sang Michael Xie

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 trying to teach a student (an AI model) how to solve incredibly difficult math problems. The student is smart, but when faced with a really hard question, they usually just guess and get it wrong. In fact, they get it wrong so often that they stop learning because they never get a "correct" answer to study. This is the problem the paper addresses: Reinforcement Learning (RL) on hard problems often stalls because the AI never sees a winning move.

The authors propose a clever new method called PrefixRL. Here is how it works, using simple analogies:

1. The Problem: The "Stuck in the Dark" Scenario

Imagine the student is in a dark maze trying to find the exit. Every time they take a step, they hit a wall and get a "0 points" signal. They keep walking in circles, wasting energy (computer power), but never finding the path to the exit. Because they never see the exit, they don't know which direction is right, and their learning stops.

In AI terms, this happens when the model tries to solve a hard problem and almost never generates a correct answer on its own. The "reward" (the signal that says "you did it!") is so rare that the AI gets stuck.

2. The Old Way: "Just Memorize the Answer"

Previously, if researchers had a few correct answers from a previous attempt (off-policy data), they would try to force the student to memorize those answers first (Supervised Fine-Tuning) before letting them try again.

  • The Flaw: This is like forcing the student to memorize a specific route through the maze. Once they memorize it, they stop exploring. If the maze changes slightly, or if they need to find a better route, they are stuck because they lost their curiosity and creativity. They become too rigid.

3. The New Way: PrefixRL (The "Head Start" Strategy)

PrefixRL changes the game. Instead of making the student memorize the whole answer, the researchers give them a head start.

  • The Analogy: Imagine the student is stuck in the dark maze again. This time, a friend (who solved the maze before) hands them a piece of paper that says: "You are currently at the corner where the red door is. From here, turn left."
  • The student doesn't have to figure out how to get to the red door; they just start from there.
  • Crucially: The student is still responsible for figuring out the rest of the maze on their own. They aren't just copying the whole path; they are using that "head start" to practice the rest of the journey.

In technical terms, the AI takes a correct solution found in the past, chops off the beginning part (the "prefix"), and attaches it to the problem. The AI then tries to finish the rest of the solution. Because it starts from a "good" spot, it is much more likely to get a reward (a correct answer) and learn.

4. The Magic Trick: "Back-Generalization"

The most surprising discovery in the paper is something the authors call Back-Generalization.

  • The Analogy: Imagine you practice driving only on a specific, easy stretch of highway (the "prefixed" part). You learn how to merge, accelerate, and steer perfectly on that stretch.
  • The Surprise: Even though you never practiced on the difficult, twisty mountain roads (the original, unprefixed problem), your driving skills on the highway somehow make you a better driver on the mountain roads too.
  • Why? The paper suggests that by practicing on the "head start" problems, the AI learns the underlying logic and strategies needed to solve the problem. It learns how to think, not just what to think. So, when it goes back to the original hard problem without the head start, it can apply those new strategies and solve it better than before.

5. Why It's Better (The Results)

The paper tested this on very hard math and coding problems.

  • Speed: PrefixRL learned twice as fast as the best previous methods. It wasted less computer power because it didn't have to keep guessing in the dark.
  • Quality: The final AI was three times better at solving the hard problems than the old methods.
  • Flexibility: It even worked when the "head start" came from a completely different type of AI (like using a Qwen model's hints to train a Llama model). This means you don't need the exact same AI to generate the hints; any smart AI can provide the "head start."

Summary

PrefixRL is like giving a struggling student a hint that gets them past the hardest part of the question, so they can practice solving the rest. Surprisingly, by practicing with the hint, the student gets so good at the logic of the problem that they can solve the original, hint-free version even better than before. It reuses old computer work to make new learning faster and smarter, without forcing the AI to just memorize answers.

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 →