Meta-Cognitive Memory Policy Optimization (MMPO) for long-horizon LLM agents using Belief Entropy as self-supervised proxy.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill mmpo-metacognitive-memory-policy --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Mmpo Metacognitive Memory Policy?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-mmpo-metacognitive-memory-policy-2d4b17c8)More formats (shields.io, HTML) on the badges page.
---
name: mmpo-metacognitive-memory-policy
description: Meta-Cognitive Memory Policy Optimization (MMPO) for long-horizon LLM agents using Belief Entropy as self-supervised proxy.
arxiv_id: 2605.30159
authors: Ziyan Liu, Zhezheng Hao, Yeqiu Chen, Hong Wang
published: 2026-05-29
categories:
- Artificial Intelligence
- LLM Agents
- Memory Optimization
- Metacognitive
tags:
- LLM
- agents
- memory
- reinforcement-learning
- belief-entropy
- long-horizon
- metacognitive
activation_keywords:
- memory policy optimization
- belief entropy
- long-horizon LLM agent
- metacognitive
- MMPO
- memory-augmented agent
related_skills:
- agent-memory-framework
- agent-memory-management
- indexed-memory
---
# Meta-Cognitive Memory Policy Optimization (MMPO)
## Overview
**Meta-Cognitive Memory Policy Optimization (MMPO)** is a novel approach for training memory-augmented LLM agents on long-horizon tasks. It addresses the critical problem of **belief deviation** in recursive memory summarization by introducing **Belief Entropy** — a self-supervised proxy that measures epistemic uncertainty about the latent task state.
**Key Innovation**: Instead of relying solely on sparse outcome-based reinforcement learning signals, MMPO provides fine-grained, memory-specific supervision by explicitly penalizing summaries that induce high epistemic uncertainty.
**arXiv**: [2605.30159](https://arxiv.org/abs/2605.30159)
## Problem Statement
Memory-augmented LLM agents tackle complex long-horizon tasks by recursively summarizing interaction trajectories into compact memory. However:
1. **Outcome-based RL fails to localize intermediate memory quality degradation**
2. **Ambiguous recursive summaries progressively discard task-relevant information**
3. **Semantic noise accumulates, exacerbating belief deviation**
4. **Agents lose accurate estimates of latent task states**
5. **Long-horizon reasoning derails due to accumulated uncertainty**
## Core Concepts
### Belief Entropy
**Belief Entropy** is a self-supervised proxy that probes how uncertain the model remains about the latent task state given its current memory:
- **Definition**: Measures epistemic uncertainty in belief state induced by memory
- **Purpose**: Identify memory summaries that obscure task understanding
- **Mechanism**: Self-supervised — no external labels required
- **Application**: Fine-grained supervision signal for memory policy optimization
### MMPO Framework
**Metacognitive Memory Policy Optimization** consists of:
1. **Memory Policy**: Agent's strategy for summarizing interaction trajectories
2. **Belief Entropy Estimation**: Quantify uncertainty about latent task state
3. **Penalty Mechanism**: Penalize high-uncertainty memory summaries
4. **Combined Optimization**: Outcome-based RL + Belief Entropy supervision
## Implementation Methodology
### Step-by-Step Process
1. **Memory Summarization**
- Agent recursively summarizes interaction trajectories
- Produce compact memory representation
- Maintain task-relevant information
2. **Belief Entropy Estimation**
- Probe model's uncertainty about latent task state
- Given current memory: compute belief distribution
- Measure entropy of belief distribution
- Higher entropy = higher epistemic uncertainty
3. **Memory-Specific Supervision**
- Identify summaries with high Belief Entropy
- Apply penalty to prevent belief deviation
- Focus on intermediate memory quality, not just outcomes
4. **Policy Optimization**
- Combine outcome-based RL signals
- Add Belief Entropy penalty term
- Optimize memory policy for clarity + success
### Key Components
```python
# Conceptual implementation (not from paper)
def belief_entropy(memory, task_context):
"""Estimate epistemic uncertainty about task state."""
belief_distribution = model.predict_task_state(memory)
entropy = -sum(p * log(p) for p in belief_distribution)
return entropy
def mmpo_loss(outcome_reward, memory, belief_entropy, lambda_penalty):
"""Combined loss function."""
rl_loss = -outcome_reward # Sparse RL signal
entropy_penalty = lambda_penalty * belief_entropy(memory)
return rl_loss + entropy_penalty
```
## Experimental Results
**Performance Highlights**:
- **97.1% performance retention** when scaled to **1.75M-token contexts**
- **Consistent outperformance** across diverse long-horizon tasks
- **Fine-grained supervision** enables precise memory optimization
- **Robust to context scaling** — maintains performance at extreme lengths
**Comparison with Existing Methods**:
| Method | Context Scaling | Performance | Memory Quality |
|--------|----------------|-------------|----------------|
| Outcome-based RL | ~500K tokens | Degrades | Poor localization |
| MMPO | 1.75M tokens | 97.1% retention | High clarity |
## Use Cases
### When to Apply MMPO
1. **Long-Horizon LLM Agents**: Tasks spanning thousands of interactions
2. **Memory-Augmented Systems**: Agents with recursive memory summarization
3. **Complex Multi-Step Tasks**: Sequential decision-making with intermediate states
4. **Epistemic Uncertainty Management**: When task state clarity is critical
5. **Context Scaling**: Pushing beyond 500K-token limits
### Activation Triggers
- User mentions: "memory policy optimization", "belief entropy", "long-horizon agent"
- Task involves: memory-augmented LLM, recursive summarization
- Problem: belief deviation, memory quality degradation
- Requirement: fine-grained memory supervision
## Key Insights
### Why Belief Entropy Works
1. **Task-Relevant Information Preservation**
- Low Belief Entropy = clear understanding of task state
- Prevents progressive information loss in recursive summaries
2. **Semantic Noise Reduction**
- High Belief Entropy penalty discourages ambiguous summaries
- Maintains signal clarity over long horizons
3. **Self-Supervised Supervision**
- No external labels required
- Purely internal uncertainty estimation
- Enables fine-grained, memory-specific feedback
4. **Belief Clarity Focus**
- Shifts optimization from outcomes → intermediate memory quality
- Prevents derailment by early intervention
## Pitfalls & Limitations
### Common Mistakes
1. **Over-reliance on Belief Entropy**
- Balance with outcome-based RL signals
- Don't neglect task success metrics
2. **Incorrect Entropy Estimation**
- Validate belief distribution computation
- Ensure meaningful uncertainty measure
3. **Ignoring Task Structure**
- Belief Entropy must reflect actual task states
- Adapt to task-specific latent structure
4. **Scaling Challenges**
- Test Belief Entropy stability across context lengths
- Monitor performance at extreme scales (>1M tokens)
### Open Questions
- How to generalize Belief Entropy to diverse task types?
- Optimal balance between outcome RL vs. entropy penalty?
- Transferability across different memory architectures?
## Related Work
### Connected Skills
- **agent-memory-framework**: Memory-augmented agent architectures
- **agent-memory-management**: Forgetting and memory consolidation techniques
- **indexed-memory**: Structured memory retrieval systems
### Theoretical Background
- **Epistemic Uncertainty**: Uncertainty about model's knowledge state
- **Belief States**: Agent's representation of latent environment states
- **Recursive Summarization**: Progressive compression of interaction history
## References
- **arXiv Paper**: [2605.30159 - Meta-Cognitive Memory Policy Optimization](https://arxiv.org/abs/2605.30159)
- **Authors**: Ziyan Liu, Zhezheng Hao, Yeqiu Chen, Hong Wang
- **Published**: 2026-05-29
## Summary
MMPO introduces Belief Entropy as a self-supervised proxy for memory policy optimization in long-horizon LLM agents. By penalizing high-uncertainty memory summaries, it provides fine-grained supervision that outcome-based RL lacks. This enables agents to maintain task-relevant information clarity over extreme context scales (1.75M tokens), achieving 97.1% performance retention.
**Core Principle**: Optimize memory for **belief clarity**, not just **task outcomes**.Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!