Instant Weight-Space Consolidation for Long-Term Memory in LLMs
Manan Suri, Dinesh Manocha
Abstract
Agentic memory systems give LLMs persistent memory by extracting experience into text and retrieving it at query time, but the model itself does not evolve: however many interactions it has had, it starts each query the same. Extraction errors compound, implicit cross-session patterns that no single fragment states cannot be surfaced, and the construction cost grows with every conversation. Fine-tuning on past interactions does change the weights, but requires backpropagation at serving time and degrades on long histories. We introduce CLAM (Carried Latent Adapter Memory), which combines the strengths of both: a recurrent hypernetwork performs parametric consolidation, compiling a stream of session activations into a low-rank adapter in a single forward pass with no gradient steps and no language-model generation calls, while a complementary episodic buffer supplies verbatim detail at inference. A gated latent state carries knowledge across sessions in fixed size, so the parametric memory accumulates without growing. On LoCoMo and LongMemEval-S across three open models (2-7B parameters), CLAM leads all agentic baselines by 1-45 points and all gradient-based parametric methods by 10-45 points, while requiring zero generative LLM calls, zero gradient steps, and 3-151x less wall-clock time than extraction systems to build its memory. The two channels are complementary: the consolidated adapter adds 12-15 accuracy points when the episodic buffer misses the gold evidence, and still adds 4-5 points even with an oracle buffer.
Create a lesson
Related papers
Replicating and Extending Weight-Space Programming: Frontier LLMs Compile Programs into Weights and Read Input Layers
Shared title terminology · Roksana Goworek, Alexander Hickey, Federico Nanni et al.
Weight-Space Programming Writes In-Context Learning and Matches Fine-Tuning in Language Models
Shared title terminology · Konstantinos Skianis, Aristidis Likas
Weight-Space Programming Changes How an LLM Uses Python for Computational Biology
Shared title terminology · Makoto Sato
Breaking the Long Horizon: Short-Horizon Process Supervision for Long-Form Generation in LLMs
Shared title terminology · Heyang Xu, HanWen Hao, Qianren Mao et al.
ChronoDossier: Long-Form Personas as Temporal Memory Representations
Shared title terminology · Noah Sturgill, Jinho D. Choi
Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM Agents
Shared title terminology · Ziyan Yang, Taiwei Shi, Jieyu Zhao