← Latest papers
🤖 machine learning

ECHO: Prune to act, trace to learn with selective turn memory in agentic RL

The paper introduces ECHO, a selective turn-memory framework for long-horizon language agents that compresses environment turns into source-indexed records to enable traceable reinforcement learning and fine-grained evidence reuse, achieving superior performance and generalization on benchmarks like BrowseComp-Plus compared to existing context-management methods.

Original authors: Zijun Xie, Binbin Zheng, Enlei Gong, Jihua Liu, Yuyang You, Lingfeng Liu, Jiayao Tang, Guanqun Zhao, Aoqi Hu, Zeyu Chen

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

Original authors: Zijun Xie, Binbin Zheng, Enlei Gong, Jihua Liu, Yuyang You, Lingfeng Liu, Jiayao Tang, Guanqun Zhao, Aoqi Hu, Zeyu Chen

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 detective trying to solve a complex mystery. You have a limited amount of space in your notebook (your "context window") to write down clues, interview witnesses, and form theories. If the case goes on for days, your notebook fills up.

The Problem: The "Black Hole" Notebook
Current AI detectives face a similar problem. When they investigate for a long time, they have to throw away old notes to make room for new ones.

  • The Old Way (Summarizing): Some detectives try to solve this by writing a one-sentence summary of everything that happened last week. "We looked at the bank, then the park, then the library."
    • The Flaw: If the detective later realizes the specific detail about the bank's security camera was the key to solving the case, they can't find it. The summary is too vague.
    • The Learning Flaw: If the detective solves the case, the teacher (the AI trainer) doesn't know which specific clue led to the solution. Did it work because of the bank note? The park note? Or just because the detective guessed right? The teacher ends up rewarding the whole messy notebook, including the useless parts.

The Solution: ECHO (The "Index Card" System)
The paper introduces a new method called ECHO. Instead of throwing away old notes or summarizing them into a blur, ECHO treats every single step of the investigation like a distinct, numbered index card.

Here is how ECHO works, using simple metaphors:

1. Prune to Act (The Smart Filing Cabinet)

When the detective's notebook gets full, ECHO doesn't just delete old pages. Instead, it creates a compact index card for every completed step.

  • The Card: It contains a tiny summary of what happened (e.g., "Found a red shoe at the park") and a permanent address (a pointer) to the original full report.
  • The Selection: When the detective needs to start a new phase of the investigation, they don't read the whole history. They ask their AI assistant: "Which of these index cards are actually useful for solving the next part of the mystery?"
  • The Result: The detective only pulls the specific, relevant cards they need to fit in their current notebook. They aren't carrying around the whole history, just the most important pieces.

2. Trace to Learn (The "Golden Thread")

This is the most clever part. When the detective finally solves the case and gets a "Success!" reward, ECHO uses the index cards to trace exactly where the credit belongs.

  • The Old Way: The teacher says, "Good job!" and gives a reward to every single word the detective wrote, including the times they searched the wrong street or wrote a useless summary. This confuses the detective.
  • The ECHO Way: The teacher looks at the index cards the detective chose to bring into the final solution.
    • "Great job on the final answer."
    • "Great job on picking the red shoe card."
    • "Great job on the action of deciding to look at that card."
    • "Ignore the times you searched the wrong street; we won't reward those."

By linking the reward directly to the specific evidence and the act of choosing that evidence, the AI learns much faster and more accurately.

Why It Matters (The Results)

The paper tested this on a "BrowseComp-Plus" benchmark, which is like a very hard, multi-step internet search challenge.

  • The Competition: Other methods (like GRPO and SUPO) either gave up too early or kept searching forever, getting lost in a sea of redundant steps.
  • ECHO's Performance: ECHO solved more problems (43.4% accuracy) than the others. Crucially, it did this without getting lost in endless loops. It used fewer turns and generated less "junk" data than the summarizing methods.

The Takeaway
ECHO teaches AI agents to be selective archivists. It says: "Don't just summarize your past; keep a labeled map of your past. When you succeed, look at that map to see exactly which clues you picked, and reward yourself for being a smart picker, not just a lucky guesser."

This approach helps AI agents solve long, complex problems without getting overwhelmed by their own history or wasting time on useless searches.

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 →