PlugMem: A Task-Agnostic Plugin Memory Module for LLM Agents

Ke Yang, Zixi Chen, Xuan He, Jize Jiang, Michel Galley +4 more
2/6/2026
39 citations
cs.CLcs.AIcs.IR

Official code: TIMAN-group/PlugMem (313 stars, Python, Apache-2.0, last commit 2026-07-09).

Abstract

Long-term memory is essential for large language model (LLM) agents operating in complex environments, yet existing memory designs are either task-specific and non-transferable, or task-agnostic but less effective due to low task-relevance and context explosion from raw memory retrieval. We propose PlugMem, a task-agnostic plugin memory module that can be attached to arbitrary LLM agents without task-specific redesign.

Show full abstract

Motivated by the fact that decision-relevant information is concentrated as abstract knowledge rather than raw experience, we draw on cognitive science to structure episodic memories into a compact, extensible knowledge-centric memory graph that explicitly represents propositional and prescriptive knowledge. This representation enables efficient memory retrieval and reasoning over task-relevant knowledge, rather than verbose raw trajectories, and departs from other graph-based methods like GraphRAG by treating knowledge as the unit of memory access and organization instead of entities or text chunks. We evaluate PlugMem unchanged across three heterogeneous benchmarks (long-horizon conversational question answering, multi-hop knowledge retrieval, and web agent tasks). The results show that PlugMem consistently outperforms task-agnostic baselines and exceeds task-specific memory designs, while also achieving the highest information density under a unified information-theoretic analysis. Code and data are available at https://github.com/TIMAN-group/PlugMem.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

ICML 2026 | PALM@NeurIPS2026 Oral | Plug-and-play long-term memory for LLM agents

31331Python, TypeScriptFeb 9, 20264 months agoApache-2.0
agent-memoryllm-agentrag

Similar Papers

Cite this paper

@article{yang2026plugmem,
  title  = {PlugMem: A Task-Agnostic Plugin Memory Module for LLM Agents},
  author = {Ke Yang and Zixi Chen and Xuan He and Jize Jiang and Michel Galley and Chenglong Wang and Jianfeng Gao and Jiawei Han and ChengXiang Zhai},
  year   = {2026},
  eprint = {2603.03296},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.03296v1}
}

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

Discussion