MemoBrain: Executive Memory as an Agentic Brain for Reasoning
Hongjin Qian, Zhao Cao, Zheng Liu
TL;DR
The paper addresses the challenge of sustaining coherent, long-horizon reasoning in tool-augmented LLM agents within bounded contexts. It introduces MemoBrain, an executive memory system that constructs a dependency-aware memory graph from reasoning episodes and actively manages the working context through folding and flushing under a fixed budget, operating asynchronously as a copilot to the reasoning agent. The approach is trained in two stages—memory construction via supervised fine-tuning and memory management via direct preference optimization—and shows consistent improvements across GAIA, WebWalker, and BrowseComp-Plus benchmarks, with the best results when paired with larger tool-augmented bases like DeepResearch-30B-A3B. This work demonstrates that explicit cognitive control over memory and information flow can substantially improve task performance and scalability of long-horizon reasoning systems in real-world information-seeking tasks, enabling more robust and scalable agent behavior under tight context budgets. $32K$ and $64K$ token budgets are central design choices, illustrating the practical bounds within which MemoBrain operates effectively.
Abstract
Complex reasoning in tool-augmented agent frameworks is inherently long-horizon, causing reasoning traces and transient tool artifacts to accumulate and strain the bounded working context of large language models. Without explicit memory mechanisms, such accumulation disrupts logical continuity and undermines task alignment. This positions memory not as an auxiliary efficiency concern, but as a core component for sustaining coherent, goal-directed reasoning over long horizons. We propose MemoBrain, an executive memory model for tool-augmented agents that constructs a dependency-aware memory over reasoning steps, capturing salient intermediate states and their logical relations. Operating as a co-pilot alongside the reasoning agent, MemoBrain organizes reasoning progress without blocking execution and actively manages the working context. Specifically, it prunes invalid steps, folds completed sub-trajectories, and preserves a compact, high-salience reasoning backbone under a fixed context budget. Together, these mechanisms enable explicit cognitive control over reasoning trajectories rather than passive context accumulation. We evaluate MemoBrain on challenging long-horizon benchmarks, including GAIA, WebWalker, and BrowseComp-Plus, demonstrating consistent improvements over strong baselines.
