TL;DR
Current LLMs are frozen after deployment, forcing them to repeatedly re-read user context and live interaction data within the prompt window. This paper introduces the Infinite-Parameter LLM, which dynamically compiles live interaction data into low-rank weight modulations via a compact hypernetwork. By maintaining and updating a Bayesian belief over these weights online, the model continuously adapts to a session with a constant memory footprint and zero prompt-overhead.
What Problem Does This Paper Address?
When an LLM is deployed, its weights are typically frozen. If a user provides new facts, corrections, or instructions during a session, this data must be stuffed into the prompt context window or fetched via Retrieval-Augmented Generation (RAG). Consequently, the model must re-read this context on every single request, which wastes compute, clutters the finite context window, and gets discarded as soon as the session ends.
While fine-tuning can update model weights, it is far too computationally expensive to perform live during an inference session. The authors address this challenge by designing a system that allows an LLM to genuinely and efficiently absorb new information directly into its weights at inference time.
Methods
The Infinite-Parameter LLM modifies standard feed-forward network (FFN) sub-layers by combining a frozen base FFN with a dynamic, generated low-rank modulation ($\Delta W$).
The architecture consists of three moving parts:
- Data-to-Weight Encoder: Reads live interaction data using learnable "memory tokens" and maps it into a latent code $z$.
- Generator: Transforms this latent code into additive low-rank deltas (similar to LoRA factors) that modulate the base FFN weights.
- Online Adaptation (Belief over Code): Instead of a fixed, one-shot weight generation, the model maintains a Bayesian belief distribution over the latent code $z$. This belief is updated recursively as the interaction proceeds.
For their primary evaluation, the authors instantiate this framework using a categorical belief over a pool of materialised codes. A trained selector network uses the model's internal hidden states to route each token to the most relevant generated weight configuration.
Datasets
The approach was evaluated on five question-answering datasets that span different lengths and complexities of evidence:
- SQuAD: A clean, single-short-passage dataset representing the easy end of the spectrum.
- MS MARCO v2.1: A long, noisy dataset featuring roughly 10 candidate passages per question.
- HotpotQA, 2WikiMultihopQA, and MuSiQue: Hard multi-hop datasets that require synthesizing information across multiple distractor paragraphs.
Key Insights and Ideas
- The Weights-vs-Prompt Crossover: For short, clean contexts (like SQuAD), simply reading data in the prompt is unbeatable. However, as evidence becomes long and noisy (like MS MARCO), prompt-based context windows suffer from attention dilution and high compute costs. Compiling data into weights completely inverts this dynamic, outperforming in-context learning.
- The Dilution Boundary: Trying to pack too much information into a single fixed-size weight code causes it to saturate and lose fidelity. Instead of making one massive code, it is structurally superior to encode bounded passages into separate codes and maintain a belief distribution over them.
- Internal Routing Signals: The model's later-layer hidden activations provide an exceptionally strong signal for routing queries to the correct generated weights. Because it leverages the model's own evolving understanding of a question, this internal activation-based selector outperforms standard external text retrievers.
Key Results
- Beating the Prompt: On the long and noisy MS MARCO dataset, the data-to-weights approach achieved an 48.0 F1 score, significantly outperforming in-context learning at 33.6 F1.
- Superior Routing: The trained activation-routed selector consistently beat dense retrieval (bge-small) across all multi-passage datasets, achieving 53.3% vs 45.3% top-1 accuracy on MS MARCO and 70.1% vs 58.1% on 2WikiMultihopQA.
- Cross-Turn Accumulation: In multi-turn conversations, carrying the Bayesian belief across turns allowed the model to resolve highly ambiguous follow-up questions (e.g., "and its height?"). The accumulated belief sharpens over the course of a conversation, increasing accuracy over time while keeping per-token computational overhead completely flat.
Limitations and Future Work
- Capacity Boundaries: A compact generator cannot expand the fundamental closed-book knowledge capacity of the base model; it can only curate and focus the knowledge explicitly supplied to it at run-time.
- Categorical Simplification: This paper primarily evaluates a categorical belief (selecting from a discrete pool of pre-computed codes). The authors note that implementing a fully continuous-Gaussian belief space—which would allow smooth movement within the code space—is an important but challenging direction for future work.
- Generalization Risk: Weight generators run the risk of memorizing their training distributions. While the evaluation used held-out evidence, a more systematic study of generalisation across entirely unseen knowledge domains is still required.
Summary updated