DeepSeek just published a wild paper that makes long-context LLMs 10x faster
Published on February 21, 2025
DeepSeek just published a wild paper that makes long-context LLMs 10x faster.
Not only does it cut costs and boost inference speed, but it also beats full attention models.
Here's everything you need to know:
Long-context models can change everything—handling full books, giant codebases, and deep reasoning.
But standard attention scales poorly and large sequences become slow and expensive to process.
DeepSeek's NSA (Native Sparse Attention) changes that.
How does it work? NSA blends three techniques:
▸ Dynamic hierarchical sparsity – skips redundant computations
▸ Coarse-grained token compression – groups less important tokens
▸ Fine-grained token selection – keeps critical details sharp
It speeds up attention by compressing less important tokens, selecting only the most relevant ones for precise attention, and using a sliding window to retain local context.
This reduces unnecessary computations but preserves long-range relationships.
How fast is it? NSA crushes full attention in efficiency:
▸ 11.6x speedup in decoding
▸ 9.0× speedup in forward propagation
▸ 6.0× speedup in backward propagation
How accurate is it?
NSA outperforms Full Attention on 7 out of 9 benchmarks, achieving higher overall performance.
It also shows big improvements in reasoning tasks, with a +4.2% gain in complex reasoning and +3.4% in problem-solving
Most sparse attention methods only optimize for inference. NSA is trainable by nature, meaning it slashes pretraining costs while keeping model quality high.
It’s also built for real-world performance to maximize GPU efficiency—making it even faster on modern hardware.
Read the paper: https://lnkd.in/gNTYCUGx
↓
Are you an AI developer? Check out https://AlphaSignal.ai to get a daily summary of breakthrough models, repos and papers in AI. Read by 200,000+ devs.