AI inference glossary
Model architecture

Sparse attention

Also known as DeepSeek Sparse Attention, DSA

In plain English

Sparse attention lets the model look back at only the most useful parts of a long context instead of rereading every earlier token.

Technical definition

Sparse attention limits which prior tokens each query attends to instead of computing attention over the entire available context.

Engineering details

The sparsity pattern may select local, compressed, indexed, or learned subsets of the context. This reduces work and memory movement for long sequences, but the model architecture and runtime need matching indexer and attention kernels.

Why it matters

Sparse attention can make very long context practical, but theoretical sparsity alone says little about runtime. Index construction, irregular access, kernel fusion, and precision support determine the realized speedup.

How to read it in InferenceX

InferenceX tracks model-specific sparse-attention stacks such as DSA on GLM-5 and DeepSeek-V4. Engine versions and backend choices are part of the result because support has changed rapidly.