TL;DR
Large Language Models (LLMs) are increasingly tasked with managing dynamic knowledge, but standard In-Context Learning (ICL) is computationally expensive and limited by context windows. This survey introduces In-Parameter Memory (IPM)—a paradigm where knowledge is compressed into reusable parametric objects (like adapters or soft prompts) and injected directly into the model's forward pass, offering a more efficient and scalable alternative for long-term memory.
What Problem Does This Paper Address?
While LLMs are powerful, they struggle to incorporate information acquired after their initial pretraining, such as new domain facts, user preferences, or interaction histories. Currently, the dominant solution is In-Context Learning (ICL), often used in Retrieval-Augmented Generation (RAG).
However, ICL has significant drawbacks:
- Context Capacity: It consumes the limited "real estate" of the context window.
- Computational Cost: It incurs a quadratic prefilling cost that grows with context length.
- Redundancy: It requires repeatedly encoding the same information across different queries.
The authors argue for a shift toward In-Parameter Memory (IPM), which represents memory as continuous parameter-like objects rather than discrete textual tokens. This approach aims to provide the flexibility of ICL with the efficiency of model parameters.
Methods
The authors provide a formal framework to categorize the diverse landscape of IPM research. They define IPM through an operator formulation consisting of two key components:
- Acquisition Operator ($\mathcal{A}$): Produces a memory object $\phi$ (e.g., a hypernetwork generating a LoRA adapter).
- Augmentation Operator ($\mathcal{C}$): Composes $\phi$ into the model's forward pass alongside the frozen backbone parameters $\theta$.
The survey organizes methods along two orthogonal axes:
- Parameter Placement: Where is the memory injected?
- Embedding Layer: Continuous prompts or "soft tokens."
- Attention Layer: Encoded KV banks or attention-side adapters.
- FFN Layer: Stored in feed-forward parameters or projections.
- Hybrid: Using two or more of the above.
- Parameter Acquisition Time: When is the memory created?
- Online: Generated or updated while the model is serving (e.g., fast weights).
- Offline: Formed before serving and held fixed (e.g., pre-trained adapters).
Datasets
As a survey paper, this work does not introduce new datasets. Instead, it reviews research evaluated across a wide range of tasks, including:
- Knowledge-intensive QA: Testing the ability to inject new facts.
- Long-context modeling: Evaluating memory retention over extended sequences.
- Agentic interactions: Assessing how models learn from experience.
- Continual learning benchmarks: Measuring the model's ability to absorb new information without forgetting the old.
Key Insights and Ideas
- Defining the Boundary: The authors clarify what counts as IPM. Unlike standard KV caches (which are a byproduct of prefilling) or full fine-tuning (which merges updates into the backbone), IPM requires an independent acquisition operator and a distinct object augmented at deployment.
- Placement Trade-offs:
- Embedding-side objects are the cheapest to compose but have indirect influence.
- Attention-side objects are content-addressable and powerful for associative lookup but are computationally heavier.
- FFN-side objects are ideal for factual associations but suffer from interference if not carefully managed.
- The "Quadratic Escape": By compressing memory into parameters, IPM avoids the quadratic cost of long-context prefilling inherent in ICL, making it a superior choice for "infinite" context scenarios.
Key Results
The paper provides a comprehensive qualitative comparison of representative methods (summarized in Tables 3 and 4 of the paper).
- Online methods (like Titans or MesaNet) typically pay a low-cost per-token write to maintain session-scoped, ephemeral memory.
- Offline methods (like KBLaM or AtlasKV) pay a high one-time write cost to freeze knowledge into persistent banks, which can then be read at a very low cost during inference.
- Hybrid methods (like Temp-LoRA) offer the highest expressivity by shaping both what the model reads and how it computes, though they are harder to trace and coordinate.
Limitations and Future Work
The authors identify several critical gaps in current IPM research:
- Interference and Forgetting: Sequential updates can overwrite earlier associations, leading to "catastrophic forgetting" within the parametric memory.
- Safety and Provenance: Parametric writes lack the clear "paper trail" of text. If an LLM "learns" a toxic fact into its parameters, it is much harder to delete or trace than a line of text in a RAG database.
- Co-design with ICL: The most effective future systems will likely use a hybrid approach, where an acquisition operator decides what stays in the textual context and what gets compressed into parameters.
- Recursive Self-Improvement: A promising direction is "model-native" learning, where the model writes its own deployment experiences into its parameters to improve over time without external training loops.
Summary updated