Linear‑time transformers enable long‑context processing up to ~130 k tokens

Training Transformers on >100 k tokens is no longer a flaky experiment; new rewiring of attention and memory‑state tricks make stable autoregressive learning at that scale routine. The breakthrough comes from marrying linear‑time attention with disciplined recurrent‑state updates, turning what used to be an edge case into a repeatable engineering path. Before these advances, long‑sequence work relied on plain linear attention — which compresses history into a fixed‑size recurrent state and promises O(T) computation —but suffered from uncontrolled state growth that broke training at extreme lengths. Gated DeltaNet‑2 tried to enrich the update dynamics with channel‑wise erasure, yet its asymmetric erase operators caused exponential blow‑up even without new writes. Symmetric erasure plus decay‑regulated residual writing restores non‑expansive propagation and yields a provable O(T) upper bound on state magnitude while raising performance. Compared with GDN‑2, the revised mechanism lifts

Linear‑time transformers enable long‑context processing up to ~130 k tokens

Training Transformers on >100 k tokens is no longer a flaky experiment; new rewiring of attention and memory‑state tricks make stable autoregressive learning at that scale routine. The breakthrough comes from marrying linear‑time attention with disciplined recurrent‑state updates, turning what used to be an edge case into a repeatable engineering path.

Before these advances, long‑sequence work relied on plain linear attention — which compresses history into a fixed‑size recurrent state and promises O(T) computation —but suffered from uncontrolled state growth that broke training at extreme lengths. Gated DeltaNet‑2 tried to enrich the update dynamics with channel‑wise erasure, yet its asymmetric erase operators caused exponential blow‑up even without new writes.

Symmetric erasure plus decay‑regulated residual writing restores non‑expansive propagation and yields a provable O(T) upper bound on state magnitude while raising performance. Compared with GDN‑2, the revised mechanism lifts the 128 k average RULER score by 6.80 points in the recurrent setting and improves average accuracy across nine downstream tasks by 0.62 points in the hybrid regime [1].

MemOnce takes a different route: it stores only a compact subset of final‑layer hidden states, decodes them back into KV caches on demand, and computes sparse attention indices once per layer. This design “achieves linear‑time prefilling, constant active GPU cache, and steady decoding throughput up to 1 M tokens” while reducing memory‑state cache by 1 313×, cutting prefill latency by 6.9× at a 1 M‑token context, and boosting throughput by 3.5× with an overall +5.77 % memory performance gain [2].

The results still leave open questions. The GDN‑2 stabilization is demonstrated only up to 128 k tokens; whether the O(T) guarantee holds under instruction‑tuned, multi‑modal regimes remains untested. MemOnce’s encoder‑decoder pipeline introduces a decoding step that may offset gains on latency‑critical serving stacks, and its zero‑shot scores are competitive but not state‑of‑the‑art for specialized tasks.

If linear‑time memory modules truly scale to megabyte contexts without sacrificing accuracy, they should replace the traditional KV‑cache backbone in any system that needs >100 k token windows. Re‑benchmarking long‑context suites such as LongBench with MemOnce as the baseline will reveal whether the field can finally ship LLMs that remember an entire book in a single pass.

References

  1. Stable Gated DeltaNet-2: Understanding and Mitigating Recurrent State Instability
  2. MemOnce: A Scalable Memory Architecture for Large Language Models

Share