AgentMemBench: A Systematic Benchmark for Evaluating Long-Term Memory Management Strategies in Conversational AI Agents

AuthorsAhmed Cherif

arXiv 20262026

TL;DR

AgentMemBench uses a unified MemoryStrategy pipeline with provenance-aware retrieval to show External Key-Value (EKV) memory reaches macro Recall@5 0.792 while ICW stays at 0.468.

SharePost on XLinkedIn

Read our summary here, or open the publisher PDF on the next tab.

THE PROBLEM

Long-Horizon Agents Collapse Beyond the Context Window

LLMs operate within finite context windows of 4,096–128,000 tokens, far smaller than days-long multi-session histories, creating a persistent memory gap.

In long-term dialogue tasks like LoCoMo, agents forget earlier sessions entirely, leading to repetition, contradiction, and failure on questions whose gold evidence lies thousands of tokens back.

HOW IT WORKS

AgentMemBench: Five Memory Strategies Under One Harness

AgentMemBench defines a common MemoryStrategy interface with Store, Retrieve, and Generate operations, implemented by ICW, EKV, GEM, CBS, and WAM over the same conversation logs.

Think of AgentMemBench as a lab bench where different memory “RAM vs disk vs card catalog vs notebook vs web browser” backends plug into the same agent and are stress-tested identically.

This unified harness plus provenance-aware retrieval lets AgentMemBench expose where plain recency windows fail and where dense retrieval, summaries, or graphs actually preserve long-term recall.

DIAGRAM

Memory Retrieval Pipeline in AgentMemBench

This diagram shows how AgentMemBench replays conversations, updates memory, retrieves context, and generates answers at each annotated question turn.

DIAGRAM

AgentMemBench Evaluation Setup Across Datasets

This diagram shows how AgentMemBench feeds three datasets through five strategies and computes seven metrics, including Recall@5 and Memory Footprint.

PROCESS

How AgentMemBench Handles a Question Turn

  1. 01

    Store

    AgentMemBench calls Store to update the memory state Mt using the latest user utterance ut and agent response at under the chosen MemoryStrategy.

  2. 02

    Retrieve

    AgentMemBench invokes Retrieve to produce context Ct, using ICW’s window, EKV’s FAISS embeddings, GEM’s graph neighbourhood, CBS’s summaries, or WAM’s web-augmented window.

  3. 03

    Generate

    AgentMemBench passes ut+1 and Ct into Qwen2.5-7B-Instruct with greedy decoding, ensuring deterministic answer generation for all 491 annotated question turns.

  4. 04

    MADS heuristic

    AgentMemBench optionally applies the MADS Memory-Adaptive Dynamic Selector, choosing a strategy from corpus statistics like Csessions, Tavg, Edensity, and Qrel via a fixed priority cascade.

KEY CONTRIBUTIONS

Key Contributions

  • 01

    Unified reproducible benchmark

    AgentMemBench evaluates 5 memory strategies × 3 task types = 15 configurations over 491 annotated question turns, reporting seven metrics including Recall@5, F1, Faithfulness, Memory Footprint, and Latency.

  • 02

    Provenance-aware retrieval evaluation

    AgentMemBench scores Recall@k, MRR, and nDCG against true session and turn provenance, correcting ad-hoc evaluations that match only retrieval indices instead of gold evidence locations.

  • 03

    MADS heuristic and external baselines

    AgentMemBench introduces the zero-shot MADS Memory-Adaptive Dynamic Selector and implements MemGPT/Letta and HippoRAG under the same harness to situate ICW, EKV, GEM, CBS, and WAM in the wider literature.

RESULTS

By the Numbers

Recall@5

0.792

+0.324 over ICW

MRR

0.677

+0.227 over ICW

Answer F1

0.156

+0.019 over ICW

Memory Footprint

5126.4 tokens

≈25× ICW’s 297.5 tokens

AgentMemBench reports these macro-averaged metrics across LoCoMo, MultiDoc2Dial, and MSC, showing EKV’s dense retrieval as the only strategy that maintains long-range Recall@5 while trading off a much larger memory footprint.

BENCHMARK

By the Numbers

AgentMemBench reports these macro-averaged metrics across LoCoMo, MultiDoc2Dial, and MSC, showing EKV’s dense retrieval as the only strategy that maintains long-range Recall@5 while trading off a much larger memory footprint.

BENCHMARK

Macro-Averaged Recall@5 Across Memory Strategies

Macro Recall@5 over LoCoMo, MultiDoc2Dial, and MSC for the five AgentMemBench strategies.

KEY INSIGHT

The Counterintuitive Finding

On LoCoMo, ICW, WAM, GEM, and CBS all score Recall@5 ≤0.005, while EKV alone reaches 0.573 on long-range questions.

This breaks the intuition that larger windows, summaries, or graphs suffice for long-term memory; AgentMemBench shows only dense retrieval scales when gold evidence lies many sessions back.

WHY IT MATTERS

What this unlocks for the field

AgentMemBench gives builders a quantitative map of when to use ICW, EKV, GEM, CBS, or WAM, including explicit accuracy–efficiency trade-offs in tokens and latency.

With AgentMemBench’s numbers and MADS heuristic, developers can design conversational agents that choose dense retrieval only when long-range recall is needed, keeping API costs manageable while avoiding catastrophic forgetting.

~14 min read← Back to papers

Related papers

BenchmarkAgent Memory

Active Context Compression: Autonomous Memory Management in LLM Agents

Nikhil Verma

· 2026

Focus Agent adds start_focus, complete_focus, a persistent Knowledge block, and an optimized Persistent Bash plus String-Replace Editor scaffold to actively compress context during long software-engineering tasks. On five hard SWE-bench Lite instances against a Baseline ReAct agent, Focus Agent achieves 22.7% token reduction (14.9M → 11.5M) while matching 3/5 = 60% task success.

Questions about this paper?

Paper: AgentMemBench: A Systematic Benchmark for Evaluating Long-Term Memory Management Strategies in Conversational AI Agents

Answers use this explainer on Memory Papers.

Checking…