MESA Improves Long-Horizon AI Agent Memory Retrieval

Beidi Zhao, Yaoqi Chen, Yuru Feng, Menghao Li, Qianxi Zhang, Baotong Lu, Jianan Lu, Zhirui Wang, Xinjiang Wang, Shusen Xu, Zengzhong Li, Xiaoxiao Li, Qi Chen· August 12, 2026 View original

Key takeaways

  • MESA optimizes memory retrieval for long-horizon AI agents by dynamically selecting evidence.
  • It fuses information from multiple specialized memory structures based on query and task.
  • The framework significantly improves performance while reducing evidence token usage.
  • MESA enables more efficient and context-aware AI agents for complex, multi-step tasks.

Who benefits

RoboticsCustomer ServiceSoftware DevelopmentResearch & DevelopmentAutonomous Systems

Summary

Researchers introduce MESA, a framework for long-horizon AI agents that dynamically selects and fuses evidence from multiple memory structures based on query and task demands. MESA outperforms baselines by 8.5% while using 41% fewer evidence tokens, optimizing memory retrieval for complex tasks.

A new research paper presents MESA (Multi-structure Evidence Selection framework for long-horizon Agent), designed to optimize memory retrieval for AI agents operating over extended periods. Long-horizon agents accumulate vast trajectories of reasoning, actions, and observations, making it challenging to efficiently retrieve relevant evidence for a given query from deep within their history. Existing multi-memory systems often either retrieve too much information or too little, leading to inefficiency or incomplete evidence. MESA addresses this by formulating a structure-level dynamic selection mechanism. It builds five complementary structural views of each agent trajectory and learns to select and fuse a query-specific subset from this library of specialized memory structures. This approach is motivated by findings that optimal memory configurations are typically tailored compositions rather than fixed sets or single structures. The framework learns under weak supervision using harness optimization with prior-guided search and UCB-guided scheduling to balance exploration and exploitation. On the AMA-Bench dataset, MESA demonstrated significant improvements, outperforming the strongest baseline by 8.5% while simultaneously reducing evidence token usage by 41% compared to an all-structure alternative. This makes memory retrieval more efficient and effective for complex, long-horizon tasks.

Why it matters

For professionals developing sophisticated AI agents, MESA offers a critical advancement in managing long-term memory. It enables agents to efficiently access and synthesize relevant information from vast histories, leading to more intelligent, context-aware, and performant AI systems in complex, multi-step scenarios.

How to implement this in your domain

  1. 1Investigate implementing multi-structure memory systems with dynamic evidence selection for long-horizon AI agents in complex applications.
  2. 2Develop or integrate mechanisms for learning query-adaptive memory retrieval strategies based on task demands.
  3. 3Pilot MESA-like frameworks in AI agents for tasks requiring extensive historical context, such as complex planning, customer support, or scientific discovery.
  4. 4Optimize memory usage in AI systems by selectively retrieving only the most relevant information, reducing computational overhead.
  5. 5Train AI architects on advanced memory management techniques for building scalable and efficient long-horizon agents.

Original post by Beidi Zhao, Yaoqi Chen, Yuru Feng, Menghao Li, Qianxi Zhang, Baotong Lu, Jianan Lu, Zhirui Wang, Xinjiang Wang, Shusen Xu, Zengzhong Li, Xiaoxiao Li, Qi Chen

"arXiv:2608.10108v1 Announce Type: new Abstract: Long-horizon agents accumulate trajectories spanning hundreds of interleaved reasoning, action, and observation steps, where answering a query may depend on evidence buried far back in the history. External memory stores such trajec…"

View on X

Originally posted by Beidi Zhao, Yaoqi Chen, Yuru Feng, Menghao Li, Qianxi Zhang, Baotong Lu, Jianan Lu, Zhirui Wang, Xinjiang Wang, Shusen Xu, Zengzhong Li, Xiaoxiao Li, Qi Chen on X · view source

Want to go deeper?

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

Explore courses