Instant Weight-Space Consolidation for Long-Term Memory in LLMs

Manan Suri, Dinesh ManochaarXiv 2026

TL;DR

CLAM (Carried Latent Adapter Memory) introduces a dual-channel memory system for LLMs that combines a fast episodic buffer with a recurrent hypernetwork. This hypernetwork performs "parametric consolidation," instantly updating model weights (via LoRA adapters) in a single forward pass without gradient steps, allowing models to internalize long-term patterns and preferences that traditional retrieval-based systems miss.

What Problem Does This Paper Address?

Current Large Language Model (LLM) memory systems generally fall into two camps, both of which have significant flaws:

  1. Agentic/Retrieval-based Systems: These treat memory like a database. They extract facts from conversations into text and retrieve them into the context window later. However, the model's weights never change—it's the same model every time. This leads to compounding extraction errors, high costs as history grows, and a "blind spot" for implicit patterns that aren't explicitly stated in a single text fragment.
  2. Gradient-based Parametric Systems: These attempt to "internalize" memory by fine-tuning the model on past interactions. While this changes the weights, it requires expensive backpropagation at serving time, is slow, and often suffers from catastrophic forgetting or overfitting on long conversation histories.

The authors argue that LLMs currently have a "sophisticated hippocampus" (episodic memory) but no "neocortex" (a pathway to turn experience into weight-resident knowledge).

Methods

The authors introduce CLAM (Carried Latent Adapter Memory), inspired by Complementary Learning Systems (CLS) theory in biology. It uses two complementary channels:

  • The Consolidation Channel (The "Neocortex"): A recurrent hypernetwork that processes session activations from a frozen base LLM. It operates in three stages:
  • Read: A Perceiver-style encoder compresses session activations into a fixed-size workspace.
  • Carry: A gated recurrent unit (GRU-like) carries this latent state across sessions. This allows the memory to accumulate knowledge over time without the state size growing.
  • Decode: A decoder maps the final latent state into a low-rank (LoRA) adapter.
  • The Episodic Buffer (The "Hippocampus"): A lightweight RAG-style system that stores raw conversation chunks and retrieves them via cosine similarity to provide verbatim details (dates, names) that a compressed parametric state might lose.

Crucially, CLAM builds its weight-space memory in a single forward pass. There are no gradient steps, no backpropagation at inference, and no expensive LLM calls to "summarize" or "extract" facts.

Datasets

Because no public dataset provided the scale of multi-session, memory-dependent data needed, the authors built a massive synthetic pipeline:

  • Synthetic Corpus: ~900,000 trajectories generated using Llama-3.3-70B. It uses 24,000 distinct personas and causal event graphs to ensure questions require cross-session reasoning and knowledge updates.
  • Evaluation Benchmarks: The system was tested on LoCoMo and LongMemEval-S, two standard benchmarks for long-term LLM memory.
  • Base Models: Evaluation was performed across three open-weights models: Gemma-2-2B, Qwen3-4B, and Mistral-7B.

Key Insights and Ideas

  • Weight-Space vs. Token-Space: The "aha" moment is that some information is better stored in weights than in the context window. The authors found that the consolidated adapter adds 12–15 accuracy points specifically when the retrieval buffer fails to find the right evidence.
  • The Oracle Test: Even when the episodic buffer is given "oracle" access (perfect retrieval), the CLAM adapter still adds 4–5 points of accuracy. This proves the weights are carrying integrated, cross-session knowledge that simple retrieval cannot provide.
  • Efficiency as a First-Class Citizen: By avoiding gradients and generative calls for memory construction, CLAM is 3–151× faster than extraction-based systems. It turns "memory building" from a heavy background process into a near-instantaneous byproduct of the forward pass.
  • Fixed-Size Latent State: Unlike RAG systems where the "index" grows forever, CLAM’s parametric state is fixed. It learns what to keep and what to overwrite via its gated recurrence.

Key Results

  • Accuracy: CLAM outperformed all agentic baselines by 1–45 points and all gradient-based parametric methods by 10–45 points across the tested benchmarks.
  • Speed: On the LoCoMo benchmark (Qwen3-4B), CLAM required zero generative LLM calls and zero gradient steps to build memory, whereas a system like Mem0 required ~49 calls and nearly 500,000 tokens.
  • Scaling: While gradient-based methods (like FT-Ceiling) saw performance drop as history length increased (losing ~2.2 points per 10 sessions), CLAM’s performance remained flat and stable even over very long histories.

Limitations and Future Work

  • Scale: The study focused on models in the 2–7B parameter range. Performance on frontier-scale models (70B+) remains to be seen.
  • Language and Domain: Evaluation was limited to English conversational memory. The authors note that non-conversational histories (like code repositories or long document sets) are yet to be established.
  • Generalization: The hypernetwork is currently trained once per base model. "Zero-shot" transfer of a hypernetwork to a completely different base model without retraining is currently outside the scope of this work.
  • Fixed Rank: The adapter uses a fixed rank (r=8). Future work could explore scaling the adapter rank or hypernetwork capacity to capture even more complex long-term dependencies.

Summary updated

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.
BibTeX
@misc{suri2026instant,
  author = {Manan Suri and Dinesh Manocha},
  title = {{Instant Weight-Space Consolidation for Long-Term Memory in LLMs}},
  year = {2026},
  eprint = {2611.20759},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20759},
}
Figure