MemoryData
A Unified Memory Benchmark Suite for Memory-Augmented Agents
"One pipeline. Four benchmark families. Twenty-two method presets. One consistent execution interface."
Main results from the accompanying paper: memory-augmented agent methods compared across the LongMemEval, LoCoMo, and DB-Bench benchmarks under exact-match, ROUGE-L, and LLM-judge metric families. Bars are grouped by paradigm — Reference Baselines, Sequential Context, Structural Topological, and Multi-Paradigm Hybrid.
📣 Get involved
- 📝 Need a reading list? See Awesome Agent Memory — our companion paper collection.
- 🚧 Actively growing — new methods & benchmark datasets landing continuously.
- ⭐ Stay tuned — Star the repo, open an issue for requests, PRs from community contributions are welcomed!
✨ Introduction
Memory-augmented agents, structured memory architectures, and retrieval-based baselines are usually evaluated in isolation — each paper ships its own loader, its own runtime adapter, and its own metric harness. Results are hard to compare, and reproducing a single number across two methods often means re-implementing both.
MemoryData closes that gap. It is a research-oriented benchmark suite that unifies four benchmark families (MemoryAgentBench, LoCoMo, LongBench, MemBench), twenty-two method presets, and a shared runtime under a single main.py launcher, so that heterogeneous memory formulations can be compared under one consistent execution interface and one stable artifact layout.
📚 Features
|
🚀 Unified Launcher
main.py is the single entry point for benchmark execution, artifact writing, and optional post-run evaluation hooks. Select any method and any benchmark by pointing at two YAML files.
|
🧩 22 Method Presets
Flattened YAML presets span reference baselines, sequential context, structural topological, and multi-paradigm hybrid architectures — each wired to its vendored runtime.
|
|
📊 4 Benchmark Families
MemoryAgentBench, LoCoMo, LongBench, and MemBench, each with full and category-specific or slice-specific configs ready to run.
|
🗂 Consistent Taxonomy
Methods are grouped following the paper's RQ1 effectiveness taxonomy, so presets are discoverable by paradigm instead of by filename.
|
|
📦 Structured Artifacts
Every run emits a result JSON, persisted agent state, and optional logs under a stable, override-able results/ root for reproducible post-processing.
|
🖥 Cross-Platform
Separate dependency manifests for Linux/macOS and Windows, with BM25 and long-context reference paths retained under utils/.
|
🕹 Quick Start
Prerequisites: Python 3.11, an OpenAI-compatible model endpoint, and the benchmark datasets placed under datasets/.
Step 1: Create the environment
conda create -n memory-bench python=3.11
conda activate memory-bench
| Platform |
Command |
| Linux / macOS |
pip install -r requirements.txt |
| Windows |
pip install -r requirements-windows.txt |
Step 2: Configure model endpoints and keys
Most presets assume OpenAI-compatible serving endpoints. Update the YAML files in config/ so that model, base_url, embedding_base_url, and related provider fields match the model servers available in your environment.
| Variable |
Used by |
Notes |
OPENAI_API_KEY |
Most presets |
Default key variable for chat and embedding calls |
OPENAI_API_BASE |
MemOS example environment |
Refer to methods/MemOS/config/.env.example when using MemOS-specific setup |
Step 3: Prepare datasets
Datasets are not bundled with this repository. Place them under datasets/ according to the loader expectations.
| Benchmark |
Default path |
Format |
Notes |
| MemoryAgentBench |
datasets/MemoryAgentBench/eval_dataset_collection/ |
HuggingFace save_to_disk directory |
Falls back to ai-hyz/MemoryAgentBench if the local copy is absent |
| LoCoMo |
datasets/LoCoMo/rq1_4cat_600_dist/locomo_4cat_600_dist.json |
JSON file |
Used by the full and category-specific LoCoMo presets |
| LongBench |
datasets/longBench_rep150_proportional/datasets |
HuggingFace save_to_disk directory |
Targets the proportional subset |
| MemBench |
datasets/MemBench/MemData/FirstAgent/*.json |
JSON files |
simple, noisy, knowledge_update, highlevel, RecMultiSession |
Reference layout:
datasets/
├── MemoryAgentBench/
│ └── eval_dataset_collection/ # HuggingFace save_to_disk directory
├── LoCoMo/
│ └── rq1_4cat_600_dist/
│ └── locomo_4cat_600_dist.json
├── longBench_rep150_proportional/
│ └── datasets/ # HuggingFace save_to_disk directory
└── MemBench/
└── MemData/FirstAgent/ # simple / noisy / knowledge_update / highlevel / RecMultiSession
Step 4: Run experiments
Command template:
python main.py --agent_config <agent_yaml> --dataset_config <dataset_yaml>
Representative runs:
| Scenario |
Agent config |
Dataset config |
Extra flags |
| Default MemoryAgentBench run |
config/reference_long_context_agent.yaml |
benchmark/memoryagentbench/Accurate_Retrieval/config/EventQA/Eventqa_full.yaml |
- |
| Small smoke run |
config/reference_long_context_agent.yaml |
benchmark/memoryagentbench/Accurate_Retrieval/config/EventQA/Eventqa_full.yaml |
--max_test_queries_ablation 1 |
| LoCoMo evaluation |
config/hybrid_simplemem.yaml |
benchmark/locomo/config/Locomo_qa_4cat_600_dist.yaml |
- |
| LongBench evaluation |
config/reference_embedding_rag.yaml |
benchmark/longbench/config/LongBench_rep150_proportional.yaml |
- |
| MemBench evaluation |
config/sequential_mem0.yaml |
benchmark/membench/config/MemBench_simple.yaml |
- |
Example:
python main.py \
--agent_config config/reference_long_context_agent.yaml \
--dataset_config benchmark/memoryagentbench/Accurate_Retrieval/config/EventQA/Eventqa_full.yaml
🗂 Repository Layout
project-root/
├── main.py # unified experiment entry point
├── config/ # flattened presets: reference, sequential, topological, hybrid
├── benchmark/
│ ├── memoryagentbench/ # MemoryAgentBench loaders and benchmark configs
│ ├── locomo/ # LoCoMo configs and JSON loader
│ ├── longbench/ # LongBench proportional-subset support
│ └── membench/ # MemBench slice configs and loader
├── evaluation/
│ └── longmemeval/ # retained LongMemEval sidecar evaluation helpers
├── methods/ # method runtimes grouped by the paper taxonomy
│ ├── embedding_rag/ # reference dense-retrieval baseline
│ ├── memagent/ mem0/ memochat/ # sequential context architectures
│ ├── cognee/ graph_rag/ hipporag/ memtree/ raptor/ zep/ zep_local/ # structural topological architectures
│ └── a_mem/ everos/ letta/ lightmem/ memorag/ memoryos/ self_rag/ simplemem/ MemOS/ # multi-paradigm hybrid architectures
├── utils/ # shared runtime utilities, including long-context and BM25 reference paths
├── requirements.txt # dependency manifest for Linux/macOS
└── requirements-windows.txt # dependency manifest for Windows
🧠 Method Overview
The taxonomy below follows the grouping used in the main RQ1 effectiveness table of the accompanying paper. Methods retained in the released codebase but not displayed in that specific summary table are assigned to the corresponding taxonomy group for completeness.
| Group |
Method |
Representative preset |
Runtime entry |
Notes |