TL;DR
This paper introduces LongMemEval-V2 (LME-V2), a massive new benchmark containing up to 115 million tokens designed to evaluate whether LLM agents can accumulate long-term, environment-specific experience. To tackle this challenge, the authors propose AgentRunbook, a suite of memory systems featuring a coding-agent-based approach (AgentRunbook-C) that treats memory management as a file system task, achieving a state-of-the-art 72.5% accuracy but revealing a steep accuracy-latency trade-off.
What Problem Does This Paper Address?
When a human starts a new job, they gradually become an "experienced colleague" by learning the subtle quirks of their software environment—where the hidden buttons are, how workflows typically flow, and what recurring bugs to avoid.
While large language model (LLM) agents are increasingly deployed in complex web environments, existing memory benchmarks mostly focus on short interaction traces, user chat histories, or immediate downstream task success. They fail to directly measure whether an agent can internalize long-term, holistic environment knowledge over extended horizons.
To bridge this gap, the authors define a high-quality memory system as one that transforms an agent into a knowledgeable colleague. They formalize this via a context gathering formulation: given a massive history of past web interaction trajectories, the memory system must extract a compact, multimodal set of evidence to answer specific, environment-dependent questions.
Datasets
The paper introduces LongMemEval-V2 (LME-V2), a manually curated benchmark built from multimodal web agent trajectories across customized platforms like Magento shopping, Postmill forums, and ServiceNow (via WebArena and WorkArena).
LME-V2 consists of 451 questions testing five core memory abilities:
- Static State Recall: Remembering page layouts, landmarks, and module affordances.
- Dynamic State Tracking: Understanding how the environment changes given specific actions.
- Workflow Knowledge: Knowing the exact steps required to complete common tasks.
- Environment Gotchas: Being aware of recurring failure modes and environment-specific issues.
- Premise Awareness: Recognizing when a question contains a false assumption about the environment.
The benchmark is split into two tiers based on the scale of the history "haystack":
- LME-V2-Small: A shared history of 100 trajectories (~25M tokens).
- LME-V2-Medium: Question-specific histories of roughly 500 trajectories (~115M tokens).
Methods
The authors propose AgentRunbook, a baseline memory framework evaluated under two distinct paradigms:
- AgentRunbook-R (Retrieval-Augmented Generation): An efficient RAG pipeline that digests trajectories at insertion time into three distinct knowledge pools: raw state observations, state transition events, and high-level strategy notes. At query time, an LLM controller generates multi-stream queries to retrieve relevant context from these pools using dense retrieval.
- AgentRunbook-C (Coding Agent-based Memory): This novel approach treats memory management as a file system problem. Trajectories are stored directly as files on disk. At query time, an off-the-shelf coding agent is placed in an isolated sandbox augmented with workflow documents, lightweight trajectory manifests (summaries), and helper inspection scripts. The coding agent programmatically searches, inspects, and selects the exact evidence spans needed.
Key Insights and Ideas
- Parametric Knowledge is Not Enough: Off-the-shelf frontier LLMs (like GPT-5 or Claude Opus) score terribly (max 14.1% accuracy) when given the questions without the trajectory history. This proves LME-V2 successfully isolates environment-specific experience from general web knowledge.
- Coding Agents Make Great Memory Controllers: Treating memory as a file system and letting a coding agent use multi-step tools (like
ripgrepor custom python scripts) to inspect raw files is highly effective. It bypasses the information loss caused by compressing complex agent histories into static vector embeddings. - The Latency Penalty: While coding agents excel at precise evidence gathering, they do so at a massive computational cost. AgentRunbook-C takes over 100 seconds per query, highlighting a critical accuracy-latency Pareto frontier that future architectures must optimize.
Key Results
- Top Performance: AgentRunbook-C achieved the highest overall accuracy on the benchmark, scoring 74.9% on the Small tier and 70.1% on the Medium tier, outperforming an off-the-shelf Codex agent baseline (69.3%).
- RAG vs. Coding Agent: Standard RAG baselines struggled significantly, with a basic query-to-slice method scoring only 40.1%. The structured AgentRunbook-R improved this to 57.8% average accuracy.
- Efficiency Gains: By providing the coding agent with structured manifests and helper scripts, AgentRunbook-C was 32% faster at query time than a vanilla coding agent, though it still remains significantly slower than the sub-second lookups of RAG methods.
Limitations and Future Work
- Scope of Environments: LME-V2 is currently restricted to web browser environments. The requirements for embodied agents or general operating system agents might introduce different memory dynamics.
- Evaluation Paradigm: The benchmark evaluates memory over pre-collected, static trajectory histories rather than allowing the agent to learn online during live task execution. This setup ensures reproducibility but misses potential distribution shifts caused by an agent's evolving behavior.
- Latency Reduction: Future work needs to focus on closing the latency gap of coding-agent approaches, perhaps through tighter integration between memory, planning, and specialized retrieval architectures.
Summary updated