# MEROS: The More a ViT Sees, the Less Precise It Needs to Attend

> MEROS replaces frozen-ViT global attention with exact local tiles and global tokens plus weighted far-key samples. With r=8, a DINOv3-B layer is 24.8× faster than FlashAttention-2 at 8K; its operator error falls as resolution grows.

- arXiv: https://arxiv.org/abs/2611.40234
- Authors: Hao Yu, Feng Xue, Hui Wei, Guoying Zhao
- Published: 2026-12-01
- Topic: Inference & systems
- Visual carousel: https://instaxiv.com/p/2611.40234
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Why can attention's approximation error shrink as images grow?

**24.8×** DINOv3-B one-layer speedup vs FA2 at 8K

## The shortcut skips reads, not tokens

**Exact attention:** Doubling image side creates 16× as many query-key interactions; FlashAttention-2 still computes every pair.

**MEROS:** 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

![Figure 2](https://cdn.instaxiv.com/figures/2611.40234/figure2.webp)

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. (Figure 2)

## The far field holds most of the mass

**Near tile:** 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.

**Far field:** 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

$$
\begin{gathered}\Pr(j\in\mathcal{J})=\amber{\frac{1}{r}},\quad\mathbb{E}\!\left[\cyan{r\,\mathbf{1}_{\{j\in\mathcal{J}\}}}\right]=1\end{gathered}
$$

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.

- $\frac{1}{r}$: Chance that a particular far key is sampled.
- $r\,\mathbf{1}_{\{j\in\mathcal{J}\}}$: Its weight: zero if absent, r if sampled.

## More effective cells, less error

$$
\begin{gathered}\operatorname{RMS}\!\left(\hat{\mathbf{o}}-\mathbf{o}\right)\le 2\sqrt{2}\,\amber{\pi_{\mathcal{F}}}\,D\sqrt{\frac{r}{\violet{n_{\mathrm{eff}}}}}\end{gathered}
$$

With bounded cell concentration, doubling side roughly quadruples effective cells and halves the bound, if budget, far-field share and value scale stay fixed.

- $\pi_{\mathcal{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.
- $n_{\mathrm{eff}}$: Effective number of far cells carrying mass.

## The measured error tracks the bound

![Figure 3](https://cdn.instaxiv.com/figures/2611.40234/figure3.webp)

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. (Figure 3)

## At 8K, MEROS beats NATTEN on speed and error

| Method | Rel. error vs FP32 | Layer speedup vs FA2 |
| --- | --- | --- |
| FA4 | .002 | 2.94× |
| NATTEN | .685 | 23.9× |
| **MEROS r=8** | **.027** | **24.8×** |

_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

| Method | Median ΔmIoU | Backbone speedup vs FA2 |
| --- | --- | --- |
| SpargeAttn | -0.61 | 1.51× |
| **MEROS r=2** | **-0.07** | **3.04×** |
| **MEROS r=4** | **-0.17** | **3.85×** |
| **MEROS r=8** | **-0.33** | **4.33×** |

_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

![Figure 1](https://cdn.instaxiv.com/figures/2611.40234/figure1.webp)

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. (Figure 1)

## 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.

Best used when: Use it when global softmax attention dominates a frozen ViT and far-field mass is spread across many cells.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.40234
- PDF: https://arxiv.org/pdf/2611.40234

## Citation

```bibtex
@article{yu2026meros,
  title   = {MEROS: The More a ViT Sees, the Less Precise It Needs to Attend},
  author  = {Yu, Hao and Xue, Feng and Wei, Hui and Zhao, Guoying},
  journal = {arXiv preprint arXiv:2611.40234},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.40234}
}
```
