the.ai

Hardware / Compute

verified

Sparsity Hardware

Zeros in a weight matrix are only free if the silicon can skip them, and general unstructured sparsity is very hard to skip — the hardware cannot know in advance which lanes to idle. So accelerators support one narrow, rigid pattern instead: in every group of four consecutive weights, exactly two must be zero. Fit that pattern and the matmul runs at twice the rate; miss it by one weight and you get nothing.

Viz primitive · budget-splitskipped-weights = 8

skipped-weights holds 7% of the budget; rest holds the remaining 93%.

Weights the hardware skips, against the weights it must multiply, in weights. Drag the model's sparsity up and watch the bar stop at half — the two-of-four pattern fixes the skipped fraction, so a 90%-zero model runs no faster than a 50%-zero one.

8

Reviewed by opendroid · 2026-08-18

  • arXiv:2104.08378 — Accelerating Sparse Deep Neural Networks
  • arXiv:2101.03961 — Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity