MSA: Memory Sparse Attention to 100M Tokens (2026)
FreeEnd-to-end trainable sparse attention with linear complexity — scales to 100M tokens on 2×A800 GPUs with <9% degradation vs 16K baseline; Memory Interleaving enables multi-hop reasoning across scattered segments
About MSA: Memory Sparse Attention to 100M Tokens (2026)
Memory Sparse Attention (MSA) is an end-to-end trainable sparse attention framework that achieves linear complexity in both training and inference, enabling scaling to 100 million tokens. Core innovations include scalable sparse attention and document-wise Rotary Position Embedding (RoPE), which maintain exceptional stability with less than 9% performance degradation when scaling from a 16K-token baseline to 100M tokens. MSA leverages KV cache compression and Memory Parallel to run 100M-token inference on just two A800 GPUs. Additionally, Memory Interleaving facilitates complex multi-hop reasoning across scattered memory segments. MSA significantly surpasses frontier LLMs, state-of-the-art RAG systems, and leading memory agents on long-context benchmarks, providing a scalable foundation for endowing general-purpose models with intrinsic, lifetime-scale memory.
Key Features
Pros & Cons
- Linear complexity enables scaling to 100M tokens with minimal computational overhead
- Achieves state-of-the-art results on long-context benchmarks, outperforming frontier LLMs and RAG systems
- End-to-end trainable, allowing dynamic memory updates without external retrieval
- Low degradation ( <9%) from 16K to 100M tokens, demonstrating high precision retention
- Requires 2x A800 GPUs for full 100M-token inference, still resource-intensive
- As a research paper, no immediate production-ready implementation or code is provided
- Performance degradation, while small, is not zero; some precision loss occurs at extreme lengths