← Latest papers
🤖 machine learning

CLEANER: Self-Purified Trajectories Boost Agentic Reinforcement Learning

The paper proposes CLEANER, a method that leverages a model's intrinsic self-correction capabilities through a Similarity-Aware Adaptive Rollback mechanism to generate error-free training trajectories, thereby resolving credit assignment issues and significantly boosting the performance and efficiency of parameter-constrained Agentic Reinforcement Learning.

Original authors: Tianshi Xu, Yuteng Chen, Meng Li

Published 2026-07-07
📖 4 min read☕ Coffee break read

Original authors: Tianshi Xu, Yuteng Chen, Meng Li

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 young apprentice (a small AI model) how to solve complex puzzles using a powerful but tricky tool: a computer code interpreter. The goal is for the apprentice to write code, run it, and get the right answer.

However, there's a problem. Because the apprentice is still learning, they make a lot of mistakes. They write code that crashes, causing the computer to spit out long, confusing error messages. In a standard training setup, the apprentice keeps these messy error messages in their memory, trying to fix them step-by-step. Eventually, they might get the right answer, but the path they took was full of noise, confusion, and dead ends.

The paper argues that this "messy path" is actually hurting the learning process. When the apprentice finally succeeds, the teacher (the training algorithm) gives them a "good job" reward for the entire journey. This is unfair because it rewards the mistakes just as much as the correct thinking. It's like praising a chef for burning the soup but eventually fixing it with a spoon; the chef learns that burning things is okay as long as they fix it later.

The Solution: CLEANER (The "Self-Purifying" Chef)

The authors propose a new method called CLEANER. Instead of letting the apprentice keep the messy history of their mistakes, CLEANER acts like a smart editor that cleans up the story while the apprentice is learning.

Here is how it works, using a creative analogy:

1. The "Oops" Moment (The Trigger)
The apprentice writes a line of code, runs it, and the computer screams "ERROR!" In a normal class, the apprentice would just add this error to their notebook and try again.

2. The "Rewind" Button (SAAR Mechanism)
CLEANER steps in immediately. It pauses the process and asks the apprentice: "Okay, you made a mistake. Can you fix it right now?" The apprentice tries again and succeeds.

3. The "Edit" (Similarity-Aware Adaptive Rollback)
This is the magic part. CLEANER looks at the mistake and the fix to decide how to clean the notebook:

  • Scenario A (The Typos): If the fix is just a small change (like fixing a missing comma), CLEANER assumes the apprentice's thinking was actually good, they just had a typo. It quietly erases the error and the fix, replacing the messy line with the clean, correct code. The notebook now shows a smooth, successful thought process.
  • Scenario B (The Logic Flaw): If the fix is completely different from the original attempt (like realizing the whole approach was wrong), CLEANER knows the original thinking was flawed. It erases the entire wrong attempt and the error message, replacing it with the new, correct line of reasoning.

4. The Result: A "Purified" Trajectory
By the time the training is done, the apprentice has never "seen" the messy, error-filled versions of their work. They have only learned from "self-purified" stories where they solved the problem correctly the first time (or fixed it instantly without leaving a trace of the struggle).

Why This Matters

  • Less Noise, More Learning: Because the apprentice isn't distracted by a history of errors, they learn the correct logic much faster.
  • Efficiency: The paper claims this method is incredibly efficient. They managed to train a small AI model to perform as well as much larger, more expensive models, but they did it using only one-third of the training steps. It's like getting a master chef's skills in three months instead of a year.
  • Better Results: On difficult math and coding tests (like AIME and LiveCodeBench), this method improved accuracy by about 3% to 6% compared to standard methods.

In a Nutshell

Think of standard training as letting a student practice on a whiteboard covered in erased, smudged, and confusing scribbles. CLEANER is like a magical eraser that instantly cleans up the smudges, leaving only the perfect, clear steps of the solution. This allows the student to internalize the right way to think, rather than getting confused by the wrong way they tried first.

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 →