🚀NEW LABGetting Started with Claude AgentsStart lab
← All papers  /  Sep 28, 2026
Memory · Agents · Evaluation

RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents

First page
RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents
The curator’s take

Fanyu Zhao, Yinsheng Li and colleagues at Fudan University and the Qwen Business Unit of Alibaba introduce RPMem, a parametric memory for agents that compiles each session into a model-independent latent memory and maps it to LoRA weights for whichever backbone is in use.

Ask this paper

Key points
01

Two stages. Session compilation turns each conversation into a latent memory by forward computation. A task-trained recurrent gate then merges it with retained memory, so memory evolves across sessions at near-constant update cost and footprint.

02

Backbone-portable. The consolidated memory is mapped to backbone-specific LoRA parameters, so the encoder keeps working when the underlying model is replaced. Tested on five backbones across dense and MoE architectures.

03

Results. With Qwen3-8B on PERMA, RPMem reaches 85.52%, 5.32 points above the strongest parametric baseline and 12.98 above full-context text memory, and 25.17 points above SFT on the same split. On PersonaMem-v2 it reaches 40.22% overall.

04

Improves with longer histories. From 10 to 300 turns, RPMem rises from 69.81% to 74.81% while LightMem falls from 81.30% to 73.52%.

05

Ablations. Both session compilation and cross-session consolidation are needed; the gate learns task-specific integration strategies.

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 implementation is available at https://github.com/Quark-Medical/rpmem/tree/main.

Every Monday
Get next week’s papers.
Subscribe on Substack