Proteus: Incremental Memory Activation for Long-Context Sequence Modeling

Reza Bayat, Ali Behrouz, Vahab Mirrokni, Aaron CourvilleNeurIPS 2026

TL;DR

Modern recurrent sequence models compress long contexts into a fixed-size memory state to dodge the quadratic computational cost of standard Transformers—but giving a model its entire memory on token one lets early inputs greedily sprawl out and "pollute" the space. PROTEUS solves this by locking most of the memory at the start and progressively unlocking fresh blocks as the sequence grows. This simple, zero-cost gating trick forces clean compression early on while reserving clean slate capacity for later tokens, boosting long-context performance across a wide variety of architectures.

What Problem Does This Paper Address?

Standard Transformers remember everything by caching every token, which is great for recall, but causes compute costs to explode quadratically as sequences get longer. To fix this, modern Recurrent Neural Networks (RNNs) and linear attention models compress the ongoing context into a compact, fixed-size hidden state (an associative memory), keeping token generation fast and constant-cost.

However, these fixed-size memories have an Achilles' heel: their capacity is static. Imagine giving someone a giant blank whiteboard to take notes on a 3-hour lecture, without telling them how long the lecture is. In the first ten minutes, they write in huge, sprawling letters because there is zero pressure to summarize. Two hours in, the board is full, forcing them to erase old notes or awkwardly cram new ones into the margins.

Recurrent models do the exact same thing. Early tokens arrive to an empty state, face no competition, and memorize raw details rather than compressing them—hogging the memory's degrees of freedom. Later tokens must then overwrite or interfere with what is already stored, causing the model to falter precisely when long-context understanding matters most.

Methods

To cure this imbalance, the authors introduce incremental memory activation—scheduling how much memory is exposed based on where we are in the sequence—and instantiate it in a lightweight mechanism called PROTEUS.

Figure 1: Incremental memory activation in PROTEUS. PROTEUS progressively expands the active subset of the memory state as the context advances. At each step, the model both reads from and writes to the currently activated blocks (together with previously activated “past” blocks), while the remaining blocks stay locked and do not participate in retrieval or updates. As the context grows, additional blocks are unlocked, providing fresh capacity for later tokens. This imposes an early capacity bottleneck that encourages compression of the initial context, while the fresh capacity introduced over time reduces overwriting and interference for later tokens.

Instead of redesigning the memory's update rules or adding parameters, PROTEUS simply partitions the existing fixed-size memory into $E$ equal-sized contiguous blocks (e.g., $E=16$) and applies a binary prefix mask:

  • Early Bottleneck & Fresh Capacity: At the beginning of an 8K training window, only the first $1/E$ fraction of memory blocks is unlocked for reading and writing. As the token position advances, additional blocks unlock at uniform intervals until the full memory is active at the end of the training window (and stays 100% unlocked if inference extends beyond 8K). Locked blocks are completely untouched—neither read from nor updated.
  • Drop-in Generality: Because modern associative memories (like Titans, Comba, and SWLA) update their states via online gradient descent, PROTEUS just multiplies the update gradients and read queries by this elementwise mask. It adds zero parameters and zero memory overhead.
  • Extension to Model Weights: Drawing on a recent "Nested Learning" perspective—which views standard neural network weights (like MLP layers) as an associative memory that compresses training data via backpropagation—the authors apply the exact same progressive masking to MLP parameters over the course of training in the Hope-Attention architecture.

Datasets

No new benchmarks are introduced; the authors rely on standard, rigorous datasets:

  • Training: FineWeb (50B tokens for 760M-parameter models; 100B tokens for 1.3B-parameter models).
  • Language Modeling & Reasoning: Wikitext, LAMBADA, PIQA, HellaSwag, WinoGrande, ARC-Easy, ARC-Challenge, SIQA, and BoolQ.
  • Long-Context & Retrieval: Needle-in-a-Haystack (NIAH, both single- and multi-needle variants up to 16K context), recall-intensive retrieval benchmarks (SWDE, SQuAD, FDA), and six tasks from LongBench.

Key Insights and Ideas

  • ** When you write matters just as much as how you write: Years of research have focused on better update rules and memory architectures. PROTEUS shows that simply rationing when memory becomes available works orthogonally to all of those designs, lifting performance across four distinct model families.
  • Better early compression enables length extrapolation: PROTEUS finishes unlocking all its blocks at the 8K training limit. Yet, some of its biggest accuracy jumps happen at 16K evaluation lengths! Because the early bottleneck forced the model to build a cleaner, well-compressed summary of the history rather than memorizing noise, the state degrades much more gracefully when pushed past its training horizon.
  • Weights and states follow the same rules: Successfully applying PROTEUS to MLP weights during training (via Hope-Attention) reinforces a fascinating theoretical bridge: online hidden-state updates over a sequence and optimizer updates over a dataset suffer from the exact same early-overfitting dynamics.

Key Results

Across all four backbones (SWLA, Comba, Titans, and Hope-Attention) and both parameter scales, adding PROTEUS consistently lowers perplexity and boosts downstream accuracy without adding a single parameter.

  • Language Modeling & Reasoning: At the 1.3B scale, Titans + PROTEUS achieves the best overall performance, dropping Wikitext perplexity from 15.36 to 14.94 and raising average zero-shot commonsense accuracy from 56.95% to 58.00% (comfortably beating Transformer++ at 55.81%).
  • Needle-in-a-Haystack (16K Context): Gains shine brightest where base models struggle. At 16K context, PROTEUS boosts Titans on UUID retrieval (S-NIAH-3) from 21.4% to 29.8% and multi-key retrieval (MK-NIAH-1) from 11.8% to 16.8%, while lifting Comba on numerical needles (S-NIAH-2) from 13.4% to 21.2%.
  • Retrieval & LongBench: On recall-intensive tasks (SWDE, SQuAD, FDA), base recurrent models like Comba and Titans suffer steep accuracy drops as context stretches to 16K, whereas PROTEUS markedly stabilizes them. On LongBench, PROTEUS improves the average score across all tested backbones (e.g., Hope-Attention rises from 15.72 to 16.65).
Figure 2: Long-context retrieval. Accuracy vs. context length on SWDE [Lockard et al., 2019], SQuAD [Rajpurkar et al., 2016], and FDA [Arora et al., 2024] for Hope-Attention, Comba, and Titans. PROTEUS consistently improves robustness at longer contexts, mitigating degradation (notably for Comba and Titans) and improving Hope-Attention across lengths.

Limitations and Future Work

  • Hand-designed, rigid schedules: PROTEUS unlocks memory uniformly based purely on token position. It doesn't know if the first 500 tokens are dense technical equations or repetitive boilerplate. Learning data-dependent activation policies—unlocking fresh memory only when information "surprise" spikes—is a natural next step.
  • Proof-of-concept on MLPs: While gating MLP weights over training worked well on Hope-Attention, the authors note this is an initial proof of concept on a single architecture rather than an exhaustively validated training paradigm.
  • Neutral on easy, short tasks: Where base models already saturate (such as simple 4K pass-key retrieval at ~100% accuracy), PROTEUS has a neutral effect—it is specifically valuable when capacity and long-context interference are the true bottlenecks.

Summary updated

Abstract

The quadratic cost of attention-based sequence models for long contexts has motivated a growing line of research on memory-based models that compress context into a compact state. However, existing fixed-size memory models expose a static memory throughout the entire sequence. Because early tokens face almost no compression pressure, they occupy too many degrees of freedom and "pollute" the memory, leaving little capacity for later context and increasing interference between what is stored and what arrives next. We study a new paradigm of incremental memory activation, in which the effective memory capacity is progressively expanded as the context grows. An early bottleneck encourages better compression of history, while unlocking fresh capacity over time reduces interference and improves retention of later context. We instantiate this paradigm in Proteus, a straightforward mechanism that can be incorporated into a broad class of neural memory architectures at no additional cost. We apply Proteus to state-of-the-art models, including SWLA, Comba, Titans, and Hope-Attention, and observe consistent improvements on language modeling and reasoning, as well as on long-context retrieval and understanding, with the largest gains at longer contexts. Overall, our results suggest that static memory is suboptimal and that scheduling effective capacity is a simple and broadly applicable approach for sequence modeling.
BibTeX
@inproceedings{bayat2026proteus,
  author = {Reza Bayat and Ali Behrouz and Vahab Mirrokni and Aaron Courville},
  title = {{Proteus: Incremental Memory Activation for Long-Context Sequence Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BJtTMkeGhz},
}
Figure