Overview
Thought-Retriever: Don't Just Retrieve Raw Data, Retrieve Thoughts for Memory-Augmented Agentic Systems Tao Feng, Pengrui Han, Guanyu Lin, Ge Liu, Jiaxuan You — UIUC / MIT / CMU | arXiv: 2604.12231 | TMLR 2026
The Problem: Agent "Goldfish Memory"
LLM agents face a fundamental limitation: context windows are finite (128K for GPT-4, 200K for Claude, 1M for Gemini). Long-term interaction with an agent quickly exceeds these limits. Traditional RAG retrieves raw data fragments, but with millions of chunks, only top-K can be retrieved—leading to low recall, fragmented information, and insufficient context.
Key Idea: Retrieve Thoughts, Not Data
When an LLM answers a question, its internal reasoning produces intermediate results—the authors call these "thoughts." A thought may synthesize insights from multiple retrieved documents yet occupies only a single memory slot. Storing and retrieving these condensed thoughts instead of raw fragments means the same top-K budget covers exponentially more information, and similar future queries don't require re-retrieving and re-reasoning over the same sources.
Thought Diamonds: Dual Filtering
Not every intermediate result deserves storage. Thought-Retriever applies two filters:
- Thought Quality Filtering: each thought carries a confidence score; only those above a threshold are kept.
- Thought Redundancy Filtering: thoughts too similar to existing ones (by cosine similarity) are discarded.
- Abstract-single: summarize a single paper
- Abstract-multi: synthesize a summary across multiple papers
- Related-multi: recommend related work for a paper
- Average F1 improvement of at least 7.6%
- Average Win Rate improvement of at least 16%
- Consistently outperforms state-of-the-art baselines like MemWalker
- Ablations: Contriever works best as the retriever; removing the dual filtering clearly hurts performance
- Self-evolution is confirmed: performance keeps improving as more queries are resolved, and deeper thoughts are retrieved for more abstract questions
- Paper: arxiv.org/abs/2604.12231
- Code: github.com/ulab-uiuc/Thought-Retriever
- Published in Transactions on Machine Learning Research (TMLR), 2026
The survivors are called "Thought Diamonds"—polished, high-value, unique knowledge crystals.
Self-Evolving Memory
Thoughts feed further reasoning, so thoughts can generate deeper thoughts. The paper defines an Abstraction Level: raw data is level 1, thoughts from data are level 2, thoughts from thoughts are level 3, and so on. Experiments show that for more abstract queries, the system preferentially retrieves higher-level thoughts—something raw-data RAG cannot do.
AcademicEval Benchmark
A new benchmark built from real arXiv papers, with tasks:
Results
On AcademicEval plus GovReport and WCEP:
Why It Matters
Human memory works similarly: when recalling a concept, we retrieve our distilled understanding, not original text. Thought-Retriever mimics this by storing cognitive crystallizations rather than raw data. Crucially, it is model-agnostic—no changes to the LLM are required—and can be plugged into any LLM agent system as a persistent, self-evolving long-term memory module. For agent developers, it suggests that teaching agents to remember their own "thoughts" may be more effective than endlessly expanding context windows.