Abstract
Large Language Model (LLM) agents often struggle with a "blank slate" problem, failing to learn from past environmental interactions. This paper introduces BREW (Bootstrapping expeRientially-learned Environmental knoWledge), a framework designed to build a modular, interpretable, and controllable knowledge base of "lessons learned." By employing a multi-stage pipeline—including trajectory reflection, concept deduplication, and a novel search algorithm called Expand-and-Gather MCTS (EG-MCTS)—BREW allows agents to refine their memory for better task performance. Experimental results across diverse benchmarks like OSWorld and SpreadsheetBench demonstrate that BREW improves agent accuracy by 10–20% while significantly reducing the number of steps required to complete tasks.
Introduction: The "Blank Slate" Problem in LLM Agents
Despite the reasoning capabilities of modern LLMs, agents built upon them often lack persistent memory. Every new task is approached as if for the first time. If an agent spends dozens of steps troubleshooting a software installation in one session, it will likely repeat the same inefficient process in the next, failing to recognize recurring environmental patterns.
Existing solutions typically rely on model fine-tuning (e.g., PPO or GRPO), which is computationally expensive and results in "black box" policies. Alternatively, simple memory buffers often become cluttered with noisy chat logs. BREW addresses these issues by creating a structured memory that is easy for agents to navigate and for humans to inspect.
The BREW Framework
The BREW framework operates through a sophisticated multi-stage pipeline that transforms raw experience into actionable knowledge.
The process begins with Trajectory Generation and Grading, where agent attempts are evaluated against human-validated rubrics. A Reflector Agent then analyzes these attempts to extract sentence-level insights, which are mapped to specific concepts. To maintain a concise memory, Concept Deduplication groups similar insights into "meta-concepts." An Integrator Agent then merges these into the Knowledge Base (KB).
The core innovation is Expand-and-Gather MCTS (EG-MCTS). This algorithm treats memory selection as a search problem, identifying the optimal combination of KB documents to maximize both task correctness and retrievability. This ensures the agent receives the most relevant "recipes" for success without being overwhelmed by irrelevant data.
Experimental Evaluation
The researchers evaluated BREW across three high-stakes benchmarks:
- OSWorld: A multimodal benchmark for computer-use automation (e.g., Ubuntu system management).
- τ²-Bench: A conversational tool-use benchmark covering domains like Retail and Telecom.
- SpreadsheetBench: A data manipulation benchmark requiring Python-based cleaning of complex spreadsheets.
Key Results and Insights
BREW consistently outperformed baseline models and existing memory-augmented systems like Cognee and Agent-Mem.
As shown in the results, BREW achieved a 10–20% improvement in task precision. Notably, on the OSWorld benchmark, BREW reached a success rate of 47.56%, compared to the 44.20% baseline. Beyond accuracy, BREW significantly improved efficiency. By "internalizing" optimal action sequences, agents reduced their API and tool calls by 10–15%. In OSWorld specifically, tasks were completed in 14–23 fewer steps than the baseline.
One of the most significant advantages of BREW is its interpretability. Because the memory is stored in natural language, it acts as a modular substrate that humans can inspect, edit, or augment with "golden rules." This makes the agent's behavior more controllable and debuggable than weight-optimized models.
Conclusion and Future Directions
BREW demonstrates that searching for the right textual representation of knowledge is often more effective and cost-efficient than traditional reinforcement learning for agent optimization. However, the framework's performance is currently tied to the quality of initial task rollouts, and the "meta-concepts" remain static after initial generation. Future work will focus on making the memory structure more adaptive and integrating retrieval more tightly with the agent's internal planning loops to enable even more fluid environmental adaptation.
Summary updated