Meta-Cognitive Memory Policy Optimization for Long-Horizon LLM Agents
Ziyan Liu, Zhezheng Hao, Yeqiu Chen, Hong Wang, JingRen Hou, Ruiyi Ding, Yongkang Yang, Wence Ji, Wei Xia, Feng Liu
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Agent Memory Management · Type: new method · Keywords: memory optimization, LLM agents, long-horizon tasks, belief entropy, uncertainty quantification
Areas: LLM Reasoning › Reasoning Strategies › Memory for Reasoning Agents; Memory › Agent Memory Systems › Memory-Augmented Agents; AI Agents › Agent Capabilities › Autonomous Agent Memory; RL for LLMs & Agents › Language Model Agents › LLM Agent Skills
Summary
Metacognitive Memory Policy Optimization (MMPO) improves long-horizon LLM agents by using Belief Entropy to penalize uncertain memory summaries, achieving high performance even at large context sizes.
Explained to a 5-year-old
Some computer programs called agents help with long tasks by remembering what happened. They write short notes to keep the story short, but sometimes the notes lose important details. The new idea makes the agents check how sure they are about what they remember. If the notes are fuzzy, the agents try to make them clearer. This helps the agents stay accurate and finish big jobs better.
Explained to a 5-year-old, longer
Imagine a robot brain that helps solve a big puzzle over many steps. To remember everything, it writes down short summaries of what happened. Sometimes those summaries miss important parts, making the robot confused. The new idea gives the robot a way to check how sure it is about what it remembers. It looks at a measure of uncertainty to see if the memory is clear. If the memory is fuzzy, the robot tries to improve the summary. This extra check happens while the robot is working, not just at the end. By focusing on making memories clear, the robot avoids getting lost. The robot can then keep track of the puzzle better over many steps. This helps it finish the puzzle correctly even when the puzzle is very long. The method works for many different kinds of puzzles, not just one. Overall, the robot becomes more reliable and does a better job.
For a technical reader
The paper addresses the problem of maintaining accurate internal state in long-running language model agents that use compressed memory. It introduces an uncertainty proxy called Belief Entropy that quantifies how confident the model remains about the underlying task state given its current memory. By penalizing memory summaries that induce high uncertainty, the proposed optimization provides fine-grained supervision beyond sparse reward signals. Experiments on diverse long-horizon tasks show consistent gains, with performance staying near 97% even when the context window is expanded to 1.75 million tokens. This approach can be integrated into existing agent pipelines to improve robustness without requiring extensive retraining.
Problem
Existing memory-augmented LLM agents rely on outcome-based reinforcement learning, which cannot detect when intermediate memory summaries lose task-relevant information, leading to belief deviation and failure in long-horizon reasoning.
Method
The approach introduces a self-supervised uncertainty proxy to measure how uncertain the model remains about the latent task state given its current memory, and optimizes memory policies by penalizing summaries that induce high uncertainty, providing fine-grained supervision beyond sparse outcome signals.
Results
Experiments show the approach consistently outperforms existing methods, maintaining 97.1% performance even when scaled to 1.75M-token contexts.
Contributions
It proposes an uncertainty proxy for memory clarity and introduces a policy optimization framework that provides fine-grained memory supervision, improving long-horizon reasoning.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction