MEROS: The More a ViT Sees, the Less Precise It Needs to Attend
Yu et al. in Inference & systems
Why can attention's approximation error shrink as images grow?
MEROS: The More a ViT Sees, the Less Precise It Needs to Attend
The shortcut skips reads, not tokens
Doubling image side creates 16× as many query-key interactions; FlashAttention-2 still computes every pair.
It computes local tiles and global tokens exactly, then reweights sampled distant keys without training or dropping tokens.
One sample, one dense pass per tile

Panel (1) nests reflected-pair budgets in 4×4 far cells; panels (2–3) show exact local/global keys and weighted far samples under one normalizer.
The far field holds most of the mass
In frozen DINOv3 at 2048 px, a query's 16×16-patch tile holds 1.6% of keys and a median 6–16% of attention mass.
Across five 2048-px photos, layers 6 and 11 show a median 72–90% of attention mass in distant patches.
How MEROS estimates distant attention
- 1
Compute the anchors
For each patch query, compute its 16×16-patch tile and global tokens exactly; they anchor the softmax normalizer.
- 2
Sample reflected pairs
Sample 8/r center-reflected pairs per 4×4 far cell; locally affine trends cancel exactly, and each key has inclusion probability 1/r.
- 3
Weight and batch
Add log r to sampled logits; tile queries share the fixed sample in one dense attention pass.
Far-field sums are unbiased; the output may not be
A sampled far key counts r times with probability 1/r, making estimated numerator and denominator sums unbiased. Their softmax ratio can still be biased.
- r1
- Chance that a particular far key is sampled.
- r1{j∈J}
- Its weight: zero if absent, r if sampled.
More effective cells, less error
With bounded cell concentration, doubling side roughly quadruples effective cells and halves the bound, if budget, far-field share and value scale stay fixed.
- πF
- Share of total attention mass in the far field.
- D
- Bound on each value's distance from exact output.
- r
- Sampling budget; retain one key in r.
- neff
- Effective number of far cells carrying mass.
The measured error tracks the bound

Across DINOv3-B, MAE-L and DINOv2-L, 7,000 query-head points per model (256 draws at r=8) stayed below the bound; geometric-mean RMS fell 0.53× per side doubling from 2K.
At 8K, MEROS beats NATTEN on speed and error
DINOv3-B, one layer at 8K on B300; error vs FP32 exact on DIV8K images, speed vs FA2.
The budget trades mIoU for backbone speed
Median across 17 settings, seven frozen ViTs/four families; one linear head per setting. ΔmIoU vs exact; whole-backbone speed vs FA2.
The same shortcut spans more than segmentation

Panel (c) shows layer speedup over FA2 rising while error falls with resolution; panel (d) summarizes whole-backbone tests across segmentation, depth, matting and VQA.
Boundaries worth keeping in view
Hotspot concentration
A few dominant far cells weaken the bound; high-norm artifacts in register-free models are a stated hard case.
Ratio bias
Unbiased far-field sums do not make their softmax ratio exactly unbiased.
Timing scope
Most comparisons are batch-1 BF16 on B300; depth timings use an H200.
Why it matters
- When far-field mass stays diffuse, higher resolution can reduce sampling error while exact attention grows more expensive.
- For frozen ViTs, tune r: r=2 tracks exact attention more closely; r=8 buys more speed in the reported settings.
- The open case is concentrated far-field mass: can fixed spatial sampling handle a few exceptionally heavy distant keys?
13 slides, 3 min
4 days ago