Context as Low-Rank Weights: Bounded Parametric Dynamic Memory for Unbounded Context
Xiangyu Zhang, Yu Zhou, Taolue Chen
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Efficient Attention Mechanisms · Type: new method · Keywords: bounded parametric memory, low-rank weight updates, constant memory inference, unbounded context, efficient transformers
Areas: Memory › Memory mechanisms › Memory Augmentation; Long Context › Long-context mechanisms › In-context learning; Model Architectures & Sequence Modeling › Language Model Architectures › Long-Context Memory
Summary
PARADE stores context as bounded low-rank weight updates, enabling constant memory and unbounded context while matching full attention performance.
Explained to a 5-year-old
Computers remember things by writing them down one by one, which makes them use a lot of memory. This paper says we can think of remembering as changing a small set of numbers inside the computer. By using a few special numbers and combining them, we can remember many things without using much memory. This helps the computer work with very long stories or conversations. It lets the computer keep learning new things without running out of space.
Explained to a 5-year-old, longer
When you talk to a computer, it needs to remember what you said before. Usually it writes down each word in a big notebook, and the notebook gets bigger and bigger. This makes the computer use a lot of memory and can forget things if the notebook is too full. The paper suggests a different way: instead of writing each word, the computer can change a few special numbers inside its brain. These numbers act like tiny building blocks that can be combined to remember many things. By using these building blocks, the computer can store a lot of information without making the notebook huge. This helps when you have long conversations or read long stories. The computer can still understand the beginning even if the story is very long. It also works well when you need information that is far back in the conversation. The method keeps the memory usage steady, no matter how many words you add. This makes the computer faster and able to run on smaller devices. Overall, it lets computers remember more without using a lot of space.
For a technical reader
PARADE replaces the traditional key-value cache with a low-rank weight update that can be streamed without growing memory. It stores past inputs as a fixed set of basis vectors and routes them to produce per-query modifications to the model’s parameters. This design yields constant memory usage and allows the model to handle contexts far longer than it saw during training. Empirically, the approach matches full-attention performance on long-context benchmarks and outperforms existing efficient baselines when relevant information is distant. The result is a practical way to run large language models on constrained hardware while preserving long-range reasoning.
Problem
Transformers use a growing key-value cache that leads to linear memory growth and limited ability to generalize beyond the training context window. This restricts streaming inference and handling of very long contexts.
Method
The approach treats contextual influence as low-rank updates to the model’s weight space, compressing past inputs into a fixed set of basis vectors and routing them via queries to produce per-query weight modifications. This yields constant-memory streaming inference and effectively unbounded context without storing token-level caches.
Results
The approach matches full attention performance on long-context tasks, surpasses efficient baselines especially when relevant information is far beyond the attention window, and continues to improve as context exceeds the model’s training length.
Contributions
It introduces a bounded parametric memory that stores context as low-rank weight updates, enabling constant-memory streaming inference and effectively unbounded context. This provides a new way to handle long contexts without linear memory growth.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction