Evaluate and improve memory capabilities in LLM agents across four competencies: accurate retrieval, test-time learning, long-range understanding, and selective forgetting. Identifies critical gaps in how agents store, update, and revise information.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add ADu2021/skillXiv --skill memory-agent-evaluation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Memory Agent Evaluation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/adu2021-memory-agent-evaluation)More formats (shields.io, HTML) on the badges page.
---
name: memory-agent-evaluation
title: "Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions"
version: 0.0.2
engine: skillxiv-v0.0.2-claude-opus-4.6
license: MIT
url: "https://arxiv.org/abs/2507.05257"
keywords: [Memory Evaluation, LLM Agents, Multi-Turn Interactions, Knowledge Retrieval, Test-Time Learning]
description: "Evaluate and improve memory capabilities in LLM agents across four competencies: accurate retrieval, test-time learning, long-range understanding, and selective forgetting. Identifies critical gaps in how agents store, update, and revise information."
---
# MemoryAgentBench: Comprehensive Memory Evaluation for LLM Agents
Current LLM agents excel at reasoning and planning but fail at memory—the ability to compress, store, update, and selectively revise information from multi-turn interactions. While long-context models can process large inputs, they lack the incremental memory mechanisms that real agents need. MemoryAgentBench addresses this gap by introducing a unified evaluation framework that assesses four core memory competencies agents must master.
Memory is fundamentally different from simply having access to long context windows. True memory involves selectively compressing information, updating beliefs when contradicted, and retrieving relevant details on demand—mimicking how human agents learn and adapt over time.
## Core Concept
The framework evaluates memory through four distinct competencies that agents encounter in real deployments:
**Accurate Retrieval (AR)**: Can the agent extract specific information snippets when asked? This tests whether information is properly stored and indexed.
**Test-Time Learning (TTL)**: Can the agent acquire new skills or knowledge during deployment without retraining? This simulates learning from user demonstrations mid-deployment.
**Long-Range Understanding (LRU)**: Can the agent integrate information across extremely long contexts (100k+ tokens) to answer questions requiring cross-document synthesis?
**Selective Forgetting (SF)**: Can the agent revise or remove outdated information when presented with contradictions? This is critical for maintaining consistency as the world state changes.
## Architecture Overview
- **Multi-turn dialogue simulation**: Textual information presented incrementally across many turns, mimicking real agent interactions
- **Four competency benchmarks**: Separate datasets for each memory capability with increasing difficulty levels
- **Three agent architectures**: Long-context models, RAG-based systems, and agentic memory agents with external modules
- **Quantitative assessment**: Brier scores and task-completion metrics to identify which agents handle which competencies
- **Multi-hop reasoning requirements**: Selective forgetting tests require reasoning across multiple conversational turns
## Implementation
The evaluation framework constructs scenarios where agents must demonstrate each competency. Here's how to set up a basic memory evaluation:
```python
# Load a multi-turn scenario for accurate retrieval testing
scenario = {
"turns": [
{"role": "user", "content": "Alice works in marketing."},
{"role": "user", "content": "She reports to Bob in Denver."},
{"role": "user", "content": "Query: Who does Alice report to?"}
],
"expected_answer": "Bob",
"competency": "accurate_retrieval"
}
# For selective forgetting, present contradictions
contradiction_scenario = {
"turns": [
{"role": "user", "content": "The project deadline is March 15."},
{"role": "user", "content": "Update: The deadline has been moved to April 1."},
{"role": "user", "content": "When is the project deadline now?"}
],
"expected_answer": "April 1",
"competency": "selective_forgetting"
}
```
Test-time learning scenarios provide demonstrations of new tasks without modifying agent weights. Implement this as a separate demonstration phase before the query:
```python
ttl_scenario = {
"turns": [
{"role": "user", "content": "Here's a new skill. If I say 'flip', output the opposite."},
{"role": "user", "content": "'flip' means: true -> false, false -> true."},
{"role": "user", "content": "Now I'll test you. Flip the value: true"},
{"role": "user", "content": "Expected: false"}
],
"competency": "test_time_learning"
}
```
For long-range understanding, concatenate dozens of documents and ask questions requiring synthesis across all of them:
```python
lru_scenario = {
"documents": [doc1, doc2, doc3, ...doc_n], # 100k+ tokens total
"query": "Which departments have budgets over $500K?",
"competency": "long_range_understanding"
}
```
## Practical Guidance
### When to Use
Use MemoryAgentBench when:
- Building agents that must learn from multi-turn user interactions
- Deploying agents where information updates and contradictions are expected
- Evaluating RAG systems or agents with external memory modules
- Testing whether models can handle real-world information changes
- Benchmarking long-context models on realistic memory tasks
### When NOT to Use
Avoid this benchmark for:
- Single-turn question answering tasks
- Agents with no need for information updates
- Tasks where ground truth never changes
- Evaluation of reasoning without memory requirements
### Critical Gaps Found
The research identifies severe weaknesses in current approaches:
- **Selective forgetting**: Current methods achieve only 7% accuracy on multi-hop scenarios where information is contradicted
- **Scale disparities**: RAG systems struggle when required information appears after thousands of irrelevant tokens
- **No agent comparison**: Different architectures show dramatically different competency profiles—some excel at retrieval but fail at forgetting
### Hyperparameter Considerations
| Parameter | Typical Range | Guidance |
|-----------|---------------|----------|
| Context window | 8k-100k+ tokens | Larger window doesn't guarantee memory ability |
| Information density | 1-20 facts per turn | Higher density increases retrieval difficulty |
| Contradiction position | Early/middle/late | Late contradictions are harder to integrate |
| Multi-hop depth | 1-5 hops | Selective forgetting requires 2+ hop reasoning |
### Common Pitfalls
1. **Confusing context length with memory**: A 100k-token window is not memory if the model can't selectively update beliefs.
2. **Missing contradiction detection**: Agents may ignore updates if they don't explicitly recognize conflicts.
3. **Incomplete forgetting validation**: Test that old information is actually removed, not just deprioritized.
4. **Oversimplifying dialogue**: Real agents need natural, noisy dialogue, not perfectly structured turns.
## Reference
"Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions" - [arXiv:2507.05257](https://arxiv.org/abs/2507.05257)
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!