Skip to content

Sparse & compressed attention · DSA

DeepSeek Sparse Attention

A lightweight indexer scores past tokens and each query attends only to its top-k picks.

DSA adds a small, fast indexer that estimates how relevant each earlier token is to the current query. A selector keeps the top-k tokens (2,048 in DeepSeek's code), and full attention is computed only over those.

Unlike a fixed sliding window, the selection is learned and can reach anywhere in the context. It was introduced with DeepSeek V3.2 on top of MLA and later adopted by GLM-5.

GLM-5 versus GLM-4.5 architecture comparison showing DeepSeek Sparse Attention. Figure from Sebastian Raschka’s explainer.

Adoption over time

Models in the atlas using DSA, per half-year of release.

Loading

Models using DSA

  • Architecture diagram of Mistral Large 4 (1T)

    Mistral AI, released 2026-10-29. Sparse MoE decoder, 1T total, 52B active, 1M context. Attention: MLA with modified DeepSeek Sparse Attention, index reuse, and KV sharing.

  • Architecture diagram of Naive-N0.5-Flash (309B)

    NaiveAI, released 2026-09-27. Sparse MoE decoder, 309B total, 16B active, 1M context. Attention: GQA with sliding-window attention and DeepSeek Sparse Attention.

  • Architecture diagram of Tencent Hy4-preview (770B-A49B)

    Tencent, released 2026-08-28. Sparse MoE decoder, 770B total, 49B active, 1M context. Attention: Gated MLA with DeepSeek Sparse Attention and IndexCache.

  • Architecture diagram of GLM-5.3-Flash (320B)

    Z.ai, released 2026-08-26. Hybrid MoE decoder, 320B total, 18B active, 1M context. Attention: 3:1 Kimi Delta Attention and MLA with DeepSeek Sparse Attention.

  • Architecture diagram of GLM-5.2 (744B)

    Z.ai, released 2026-06-17. Sparse MoE decoder, 744B total, 40B active, 1M context. Attention: MLA with DeepSeek Sparse Attention and IndexShare.

  • Architecture diagram of DeepSeek V4-Flash (284B)

    DeepSeek, released 2026-04-24. Sparse MoE decoder, 284B total, 13B active, 1M context. Attention: MLA-style CSA/HCA with mHC.

  • Architecture diagram of DeepSeek V4-Pro (1.6T)

    DeepSeek, released 2026-04-24. Sparse MoE decoder, 1.6T total, 49B active, 1M context. Attention: MLA-style CSA/HCA with mHC.

  • Architecture diagram of GLM-5.1 (744B)

    Z.ai, released 2026-04-07. Sparse MoE decoder, 744B total, 40B active, 198K context. Attention: MLA with DeepSeek Sparse Attention.

  • Architecture diagram of GLM-5 (744B)

    Z.ai, released 2026-02-11. Sparse MoE decoder, 744B total, 40B active, 198K context. Attention: MLA with DeepSeek Sparse Attention.

  • Architecture diagram of DeepSeek V3.2 (671B)

    DeepSeek, released 2025-12-01. Sparse MoE decoder, 671B total, 37B active, 128K context. Attention: MLA with DeepSeek Sparse Attention.

Search the atlas

Jump to a model, concept or page