DELTAMEM: Incremental Experience Memory for LLM Agents via Residual Trees

Haoran Tan, Zeyu Zhang, Zhicheng Cao, Rui Li, Xu Chen
6/2/2026
2 citations
cs.AI

Official code: import-myself/DeltaMem (5 stars, Python, last commit 2026-06-02).

Abstract

Large Language Model (LLM)-based agents increasingly rely on memory to learn from experiences over continual interactions. However, storing experiences as independent, flat units leads to substantial redundancy and retrieval conflicts, as similar episodes repeat overlapping content and subtle scene variations cause retrieved memories to offer contradictory guidance.

Show full abstract

To address this, we introduce residual experience, positing that newly acquired experience is often an incremental variation of existing knowledge. We propose DeltaMem, a framework that organizes experience memory into two independent residual trees, one storing goal-conditioned task experience as reusable skills and another for scene-level environment knowledge. Each tree uses a root node for generalized base experiences and incremental delta nodes for subsequent variations, allowing related experiences to share a common foundation without duplication. For retrieval, a failure-penalized similarity scan locates the best match, reconstructing the full experience via root-to-match chain composition. An autonomous consolidation mechanism distills high-frequency paths into new root nodes, enabling the trees to self-organize from general heuristics to specialized variants. Experiments across diverse interactive environments show that DeltaMem consistently outperforms existing baselines. To facilitate future research, we release the code at https://github.com/import-myself/DeltaMem.

View on arXivView PDF

Code Implementations(1)

DeltaMem: A Residual Tree Framework for Agent Experience Memory

50Python, ShellMay 6, 20266 months ago

Similar Papers

Cite this paper

@article{tan2026deltamem,
  title  = {DELTAMEM: Incremental Experience Memory for LLM Agents via Residual Trees},
  author = {Haoran Tan and Zeyu Zhang and Zhicheng Cao and Rui Li and Xu Chen},
  year   = {2026},
  eprint = {2606.03083},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.03083v1}
}

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/2606.03083.svg)](https://codeofpaper.com/paper/2606.03083)

Discussion