Weighted Memory Tree Enhances LLM Agent Performance

Quang Dao, Purvi Kathalkar, Kenneth Eaton· August 24, 2026 View original

Key takeaways

  • Weighted Memory Tree (WMT) is a hierarchical memory system for LLM agents.
  • It dynamically manages execution histories, prioritizing relevant information for long-horizon tasks.
  • WMT improves agent accuracy by nearly 10% and reduces token usage by over 30%.
  • It enhances robustness by limiting the propagation of unreliable information.

Who benefits

Software DevelopmentAI DevelopmentCustomer ServiceRoboticsResearch & Academia

Summary

Researchers introduce the Weighted Memory Tree (WMT), a hierarchical memory system for LLM agents that dynamically manages execution histories. WMT improves accuracy and reduces token usage by preserving useful information and suppressing irrelevant content, crucial for long-horizon tasks.

The Weighted Memory Tree (WMT) is a novel hierarchical memory system designed to improve the performance of large language model (LLM) agents, particularly in complex, multi-step tasks. As LLM agents execute long-horizon tasks, their growing histories can become costly and introduce irrelevant or outdated information, degrading reasoning quality. WMT addresses this by organizing execution into tasks, subtasks, and actions, assigning a dynamic retention score to each memory. WMT continuously updates these scores based on events and applies selection-based decay, allowing it to intelligently preserve critical information, fold completed trajectories, and suppress low-utility content. This ensures that the agent's active memory remains focused and relevant. Evaluations on the GAIA-Text benchmark, using models like Qwen3-8B and Llama-3.1-8B, demonstrated significant improvements. WMT increased accuracy by nearly 10 percentage points on average and reduced prompt-token usage by over 30% compared to linear memory. Furthermore, memory-poisoning experiments showed WMT's effectiveness in limiting the propagation of unreliable information, highlighting its robustness.

Why it matters

For professionals building or deploying LLM agents, WMT offers a critical advancement in managing agent memory, leading to more accurate, efficient, and robust performance on complex, multi-step tasks.

How to implement this in your domain

  1. 1Assess current LLM agent architectures for memory management limitations, especially in long-running or multi-session tasks.
  2. 2Investigate integrating a hierarchical memory system like WMT to dynamically manage agent execution histories.
  3. 3Experiment with dynamic retention scoring mechanisms to prioritize relevant information and prune outdated content.
  4. 4Implement memory-poisoning tests to evaluate the robustness of agent memory systems against irrelevant or misleading inputs.

Original post by Quang Dao, Purvi Kathalkar, Kenneth Eaton

"arXiv:2608.20631v1 Announce Type: new Abstract: Large language model (LLM) agents have demonstrated the ability to solve multi-step tasks requiring planning, tool use, and external information access, yet growing execution histories increase inference cost and expose reasoning to…"

View on X

Originally posted by Quang Dao, Purvi Kathalkar, Kenneth Eaton on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Engineering & DevTools