RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents
Fanyu Zhao, Ruike Cao, Liang Dong, Fugen Yao, Jian Xu, Guanjun Jiang, Yinsheng Li, Yifei Zhao, Han Zhang
Abstract
Long-running LLM agents require memory that persists and evolves across sessions. Text-based memory retrieves and reconstructs past interactions at every query, making long-horizon performance increasingly dependent on retrieval quality and contextual reasoning as histories grow. Parametric memory encodes experience directly into model computation, but existing approaches provide limited support for cross-session memory evolution. Their coupling to a specific backbone further restricts memory reuse after model replacement. We introduce RPMem, a two-stage architecture that compiles each session into a model-independent latent memory through forward computation and selectively integrates it with retained memory via a task-trained recurrent gate. The consolidated memory is then mapped to backbone-specific low-rank adaptation (LoRA) parameters, allowing the encoding capability to transfer when the backbone is replaced. Evaluation across three long-term memory benchmarks and five diverse backbones demonstrates broad generalization with near-constant update cost and memory footprint. With Qwen3-8B on PERMA, RPMem reaches 85.52%, outperforming the strongest parametric and text-based baselines by 5.32 and 12.98 percentage points, respectively. Ablations validate the complementary roles of session compilation and cross-session consolidation, while dynamics analyses reveal that the gate acquires task-specific memory integration strategies. These results establish RPMem as a lifecycle-independent parametric memory framework that maintains evolving cross-session memory that remains reusable across backbone replacements. Our code is available at https://github.com/Quark-Medical/rpmem/tree/main.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- 45 pages, 7 figures. Code: https://github.com/Quark-Medical/rpmem/tree/main
Related papers
Failure Broadens, Success Sharpens: Continual Adaptation of Tool-Use Agents Across Diverse Tasks with Dual-Polarity Memory
Shared title terminologycs.CLTianmai M. Zhang, Hoda Shajari, Amr Hendy et al.
Leto: Utility-Centric Agent Memory
Shared title terminologycs.CLShuguang Chen, Salman Paracha
Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
Shared title terminologycs.CLMd Mostafizer Rahman, Md Faizul Ibne Amin, Md Shahajada Mia et al.
DolphinBench: Mapping the Pareto Frontier of Agent Memory
Shared title terminologycs.CLSoumil Rathi, Deshraj Yadav, Taranjeet Singh
τ-Multilingual: Benchmarking Voice Agents Across Languages
Shared title terminologycs.CLSoham Ray, Edgard dos Santos Paiva, Ruben Valenzuela et al.
When Successful Memories Mislead Embodied Agents:Memory Adaption For Task-Conditioned Execution
Shared title terminologycs.CLQuanquan Li, Hongbo Zhang, Yihe Chi et al.