Attention Variants by Cost and Cache (quadrant chart)
Demo note. This note demonstrates what the SciDraft Hugo theme can do for academic and scientific publishing — for research institutions, researchers and students. Its content is demonstration material only: readers should ignore whether the demo content is correct.
Choosing an attention variant is a two-constraint problem rather than a ranking: the score cost decides how long a sequence can be trained on, and the per-token cache decides how long a sequence can be served, and the two orderings of the variants are not the same.
This note uses a quadrant chart, which is the right shape for two independent axes with no third quantity to show. Positions are qualitative — ranked rather than measured — and the axes run from cheap to expensive on both counts.
quadrantChart
title Attention variants by score cost and cache size
x-axis Cheap scores --> Expensive scores
y-axis Small cache --> Large cache
quadrant-1 Expensive, large cache
quadrant-2 Expensive, small cache
quadrant-3 Cheap, small cache
quadrant-4 Cheap, large cache
Full attention: [0.9, 0.85]
Sliding window: [0.45, 0.8]
Block sparse: [0.62, 0.58]
Kernel linear: [0.2, 0.18]
State space: [0.25, 0.1]The chart makes the usual trade-off visible in one picture: every variant that reduces the score cost by sparsifying still pays the full cache, so it lands in the right-hand column, while the variants that replace the pairwise structure move to the bottom left and pay instead in expressiveness.