🤖 AI Summary
Current large language model–based search agents are prone to context inflation, noise interference, and error accumulation during long-horizon reasoning. This work proposes ReTree, a novel mechanism that introduces, for the first time, a tree-structured memory architecture supporting backtracking-based correction and evidence provenance. ReTree maintains bounded context at each reasoning step and enables self-correction through dynamic pruning and contradiction detection. By jointly achieving context compression and traceable reasoning, the method effectively suppresses error propagation. Evaluated on four public question-answering and search benchmarks, ReTree substantially outperforms Full-Trajectory ReAct, improving answer accuracy by up to 25.6 percentage points while reducing per-step reasoning context length to 66%–79% of that required by the baseline.
📝 Abstract
Large language model (LLM)-based search agents answer questions through multi-step interactions with external environments. However, providing complete execution trajectories to the LLM causes unbounded context growth and introduces noise. Existing compression methods reduce context at the cost of important details and often replace erroneous facts without repairing downstream reasoning derived from them. To address this problem, we propose ReTree, a self-correcting tree-structured memory mechanism for search agents. ReTree constructs a bounded per-step reasoning context while preserving source-linked evidence. It 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 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\times$ that of ReTree. These results establish ReTree as an effective self-correcting memory abstraction for long-horizon search.