Self-Correcting Long-Horizon Search Agents via Tree-Structured Memory
Aijun Yang, Qianxue Guo, Ziyi Huang, Yuxuan Chen, Shiyou Qian, Jian Cao
Shanghai Jiao Tong University
cs.AI
Submitted: 2026-08-11
Updated: 2026-08-12
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 75/100
The gist: ReTree is a self-correcting tree-structured memory mechanism for LLM-based search agents.
Terminology
Summary
ReTree is a self-correcting tree-structured memory mechanism for LLM-based search agents. It constructs a bounded per-step reasoning context while preserving source-linked evidence. ReTree models search as an evidence tree whose nodes store bounded summaries, evidence, and revision histories. When newly retrieved evidence contradicts an earlier claim, ReTree traces back to the node where the claim was introduced, replaces outdated evidence, regenerates summaries, prunes affected branches, and resumes search. Source-grounded evidence provenance supports reliable conflict localization and keeps final claims traceable to retrieved passages.
Experiments on four public question-answering and search benchmarks (Bamboogle, HotpotQA, 2WikiMultiHopQA, and FRAMES) show that ReTree consistently outperforms Full-Trajectory ReAct, improving answer accuracy by up to 25.6 percentage points (pp); the average maximum per-step reasoning context of Full-Trajectory ReAct is 1.27–1.51× that of ReTree. These results establish ReTree as an effective self-correcting memory abstraction for long-horizon search.
The paper formalizes retrieval-induced error cascades as a structural state-repair problem with three joint requirements: bounded per-step reasoning context, claim-to-source provenance, and dependent-state invalidation. ReTree couples bounded summary-plus-evidence context construction with stable evidence identifiers and contradiction-triggered backtracking, summary regeneration, and subtree pruning. It implements passage-level source binding that survives memory revision, allowing answer claims to be resolved to current evidence objects and raw retrieved passages.
Across 2,149 questions drawn from four public benchmarks, ReTree improves judge accuracy over Full-Trajectory ReAct by 8.3–25.6 points; the average maximum per-step reasoning context of Full-Trajectory ReAct is 1.27–1.51× that of ReTree. ReTree also improves accuracy over FlatUpdate on every dataset and exceeds ReportMemory, the strongest aggregate baseline, by 3.0 points overall. On a large-scale FRAMES attribution diagnostic, ReTree also attains higher citation precision and recall than both the full-trajectory and report-style baselines.
Improvements for AI systems
Improvements to AI systems:
-
Implement self-correcting memory with provenance tracking – The AI system can maintain a tree-structured memory where each node stores a bounded summary, source-linked evidence, and a revision history. When new information contradicts an existing claim, the system traces back to the originating node, replaces outdated evidence, regenerates the summary, prunes dependent branches, and resumes reasoning. This enables the system to handle long-horizon tasks (e.g., multi-hop research, complex troubleshooting) without context overflow or error propagation.
-
Add contradiction-triggered backtracking and subtree pruning – The system can automatically detect contradictions between newly retrieved evidence and previously stored claims, then invalidate only the affected dependent states rather than restarting or blindly appending. This reduces cascading errors and improves accuracy in dynamic information environments (e.g., live fact-checking, evolving news analysis).
-
Enforce bounded per-step reasoning context – The system can cap the amount of context used at each reasoning step by storing compressed summaries plus evidence identifiers, rather than full trajectories. This allows the system to operate on devices with limited memory or to process longer sequences without hitting token limits, while maintaining performance comparable to full-context models.
-
Provide claim-to-source provenance resolution – The system can bind every final answer claim to a stable evidence identifier and a raw retrieved passage, even after memory revisions. This makes the system’s outputs fully traceable and auditable, enabling citation generation, fact-checking, and user verification in applications like legal research, medical diagnosis support, or academic writing assistance.
-
Implement stable evidence identifiers that survive memory updates – The system can keep source references consistent across revisions, so when a summary is regenerated or a branch is pruned, the underlying evidence links remain valid. This allows the system to maintain trustworthiness in iterative reasoning tasks, such as iterative code debugging or sequential scientific literature review.
-
Use structural state-repair for retrieval-induced error cascades – The system can formalize its memory management as a repair problem with three joint requirements: bounded context, provenance, and dependent-state invalidation. This enables the system to proactively prevent error accumulation in multi-step retrieval tasks, improving robustness in open-domain question answering, conversational search, and autonomous research agents.
What the improved AI system can do:
-
Answer multi-hop questions with higher accuracy (up to +25.6 percentage points) than standard full-trajectory reasoning agents, while using 27–51% less peak per-step context.
-
Self-correct its reasoning when new evidence contradicts prior assumptions, without losing traceability of its final answers to specific source passages.
-
Operate in memory-constrained environments (e.g., mobile assistants, edge devices) while maintaining state-of-the-art performance on long-horizon search tasks.
-
Generate citations and evidence trails for every claim, even after iterative updates to its internal knowledge, making it suitable for high-stakes domains requiring verifiability.
-
Prune irrelevant or outdated branches of reasoning automatically, reducing noise and improving focus in complex, multi-source information gathering.
Sources
- Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
- IterResearch: Rethinking Long-Horizon Agents with Interaction Scaling
- MemForest: An Efficient Agent Memory System with Hierarchical Temporal Indexing
- Tracking the Limits of Knowledge Propagation: How LLMs Fail at Multi-Step Reasoning with Conflicting Knowledge
- RARR: Researching and Revising What Language Models Say, Using Language Models
- Enabling Large Language Models to Generate Text with Citations
- HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
- Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Steps
- Harness-1: Reinforcement Learning for Search Agents with State-Externalizing Harnesses
- MEME: Multi-entity & Evolving Memory Evaluation
- Fact, Fetch, and Reason: A Unified Evaluation of Retrieval-Augmented Generation
- Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- MemGPT: Towards LLMs as Operating Systems
- Measuring and Narrowing the Compositionality Gap in Language Models
- Assisting in Writing Wikipedia-like Articles From Scratch with Large Language Models
- Reflexion: Language Agents with Verbal Reinforcement Learning
- ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization
- Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflicts
- Knowledge Conflicts for LLMs: A Survey
- A-MEM: Agentic Memory for LLM Agents
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems
- VSAL: A Vision Solver with Adaptive Layouts for Graph Property Detection