Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents

Saksham Sahai Srivastava
5/17/2026
10 citations
cs.AIcs.CL

Official code: Saksham4796/causal-memory-intervention (4 stars, Python, last commit 2026-05-10).

Abstract

Long-horizon LLM agents rely on persistent memory to support interactions across sessions, yet existing memory systems often retrieve context using semantic similarity or broad history inclusion, treating retrieved memories as uniformly useful. This assumption is fragile because memories may be topically related while remaining irrelevant, stale, or misleading.

Show full abstract

We propose Causal Memory Intervention (CMI), a causal memory-selection technique that estimates how candidate memories affect the model's answer under controlled interventions, selecting memories that improve task performance while suppressing unstable, irrelevant, or harmful ones. To evaluate this setting, we introduce Causal-LoCoMo, a causally annotated benchmark derived from long conversational data, where each example contains a user request, a structured memory bank, useful memories, irrelevant distractors, and synthetic harmful memories. We compare CMI against vector, graph, reflection, summary, full-history, and no-memory baselines. Results show that CMI achieves a stronger balance between answer quality and robustness to misleading memory, suggesting that reliable long-term memory requires selecting context based on causal usefulness rather than relevance alone. The full framework, benchmark construction code, and experimental pipeline are available at https://github.com/Saksham4796/causal-memory-intervention.

View on arXivView PDF

Code Implementations(1)

Causal Memory Intervention for LLM agents: builds Causal-LoCoMo from LoCoMo, evaluates memory-selection methods under noisy and harmful memories, and shows intervention-based selection improves task performance, useful-memory F1, and robustness to poisoned memory adoption.

40Python, TeXMay 10, 20266 months ago

Similar Papers

Cite this paper

@article{srivastava2026causal,
  title  = {Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents},
  author = {Saksham Sahai Srivastava},
  year   = {2026},
  eprint = {2605.17641},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.17641v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.17641.svg)](https://codeofpaper.com/paper/2605.17641)

Discussion