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

Hao Yu, Feng Xue, Hui Wei, Guoying ZhaoarXiv 2026

TL;DR

Processing high-resolution images in Vision Transformers (ViTs) is notoriously slow because global self-attention scales with the fourth power of the image's side length. This paper introduces MEROS, a training-free, drop-in replacement for attention that computes local details exactly while randomly sampling the distant "far field." Counterintuitively, because distant attention spreads out so thinly, MEROS becomes both significantly faster and mathematically more accurate as image resolution increases.

What Problem Does This Paper Address?

Vision foundation models (like DINOv3 or the encoders inside Vision-Language Models) rely on global self-attention, where every image patch talks to every other patch. If you double an image's width and height, the number of patches quadruples, and the attention compute explodes by $16\times$. Optimized kernels like FlashAttention speed up memory access, but they still do all the math.

To bypass this without expensive retraining, researchers usually try to approximate attention on the fly using two strategies: selection (keeping only the highest-scoring keys and dropping the rest) or summarization/merging (averaging groups of tokens into centroids).

However, when the authors mapped out how pretrained ViTs actually look at high-resolution images, they found a striking pattern: attention has a sharp local peak right around each query, while the vast majority of total attention weight (72–90%) is spread thinly across thousands of distant tokens. Because this "far field" is diffuse yet dominant, existing shortcuts introduce systematic mathematical bias. Selection inevitably throws away a massive chunk of total weight by dropping thousands of tiny interactions, while averaging tokens underestimates exponential softmax sums (via Jensen’s inequality). In dense tasks like depth estimation or fine-grained segmentation, these systematic errors compound and blur out thin details.

Attention is sharply peaked locally, while most of its total mass spreads thinly across the distant far field. Weighting symmetrically sampled pairs yields an unbiased estimate.

Methods

Instead of trying to compress distant tokens or search for the "most important" ones at runtime, MEROS (from the Greek méros, meaning "part") treats distant attention as a statistical survey problem.

  1. Exact Near Field & Global Sinks: Every patch query computes exact attention over its immediate $16 \times 16$ patch tile (where attention peaks) and global class/register tokens (which act as attention sinks). This anchors the softmax denominator.
  2. Unbiased Far-Field Sampling: The rest of the image is divided into $4 \times 4$ patch cells. Before inference even begins, MEROS randomly picks a fraction $1/r$ of keys per cell (for a budget $r \in \{2, 4, 8\}$). To keep the total sum unbiased, each sampled key is weighted by $r$—implemented effortlessly by adding $\log r$ to its attention logit under a single shared softmax normalizer.
  3. Center-Reflected Pairs: Rather than picking completely random points in a $4 \times 4$ cell, MEROS samples pairs of patches mirrored across the cell's center. If features vary smoothly (linearly) across a tiny cell, the two mirrored points cancel out the linear trend's variance.
  4. Hardware-Friendly Dense Pass: Because the sampling pattern depends only on spatial coordinates—not image content—it is fixed in advance. All 256 queries in a local tile share the exact same gathered list of far-field keys, executing as one dense matrix multiplication pass per tile that saturates GPU tensor cores just like FlashAttention.
Overview of MEROS: nested center-reflected sampling per cell, exact local/global computation combined with weighted far samples, and execution as a single dense GPU kernel.

Datasets

Because MEROS is strictly training-free, no training datasets are used for the operator itself (only standard frozen linear probes where required by benchmarks). No new datasets are introduced. Evaluation spans five dense perception tasks:

  • Operator Fidelity: DIV8K (up to 8K resolution).
  • Semantic Segmentation: UAVid, Cityscapes, DeepGlobe, and URUR ($5120^2$ px satellite imagery).
  • Dichotomous Image Segmentation (fine structures): DIS5K (DIS-TE).
  • Image Matting: PPM-100, AIM-500, and Transparent-460.
  • Monocular Depth & 3D Point Maps: Middlebury and ETH3D.
  • Visual Question Answering: HR-Bench (4K and 8K).

Key Insights and Ideas

  • More pixels = less error: In standard Horvitz–Thompson statistical sampling, independent zero-mean errors cancel out as sample size grows. As image resolution increases, the number of independent far-field cells grows proportionally. The authors prove—and empirically verify—that doubling an image's side length halves MEROS's error bound, even as exact attention becomes $16\times$ costlier.
Theoretical scaling: as pixel count grows, exact attention cost skyrockets while MEROS's error bound steadily drops.
  • Zero token removal preserves thin geometry: Token-merging methods physically shrink the sequence, forcing merged patches to share identical features—turning bicycle spokes, hair strands, and ceiling pipes into mush. MEROS keeps every single token and its native positional encodings (including 2D RoPE and relative biases) intact.
  • Zero runtime search overhead: Content-aware sparse methods burn precious milliseconds clustering queries or scoring blocks on every forward pass. Fixing the sample by geometry before inference eliminates search overhead and allows the entire model to run inside a static CUDA graph.

Key Results

Tested on NVIDIA B300 (and H200) GPUs across 14 ViTs and 4 VLMs, MEROS consistently outperforms 11 training-free attention baselines:

  • Raw Speed: At the single-layer level, MEROS ($r=8$) runs $4.0\times$ (at 1K) to $24.8\times$ (at 8K) faster than FlashAttention-2, and up to $8.4\times$ faster than FlashAttention-4, sustaining 51–54% of dense BF16 peak throughput. Whole ViT backbones speed up by up to $20.2\times$.
  • Segmentation & Thin Structures: Across 17 semantic segmentation settings, $r=2$ loses a median of 0.07 mIoU at $>3\times$ backbone speedup ($r=4$ loses 0.17 mIoU at $3.85\times$ speedup). On DIS-TE fine-structure segmentation, MEROS flips $5\times$ to $8\times$ fewer pixels than token-merging methods while running over $12\times$ faster.
  • Matting & Depth: On native-resolution matting (PPM-100), MEROS runs $3.78\times$ faster with virtually identical quality (35.5 vs. 35.3 SAD), beating even custom-trained efficient matting models. On 129k-token ETH3D depth estimation, it accelerates the MoGe-3 ViT-G encoder by $6.75\times$ while shifting AbsRel by just 0.03%.
  • VLMs: Dropping MEROS into VLM vision encoders (like Qwen3-VL-8B) delivers the first answer token $3.1\times$ to $8.8\times$ sooner (and up to $14.2\times$ sooner when paired with LLM-side token pruning like SparseVLM) with negligible accuracy loss—and occasionally slight gains—on HR-Bench 8K.
Visual and quantitative overview showing MEROS preserving fine structures across point clouds, depth, segmentation, and matting at a fraction of exact attention's latency.

Limitations and Future Work

While the paper does not feature a standalone "Limitations and Future Work" section, the authors note a clear theoretical and practical boundary condition regarding isolated distant attention spikes. MEROS's tight error bound relies on far-field mass being spread across many cells. When a model concentrates heavy attention mass onto a few isolated distant patches—most notably the "high-norm artifact" tokens known to appear in older, register-free ViTs (like original DINOv2 without registers)—the cell concentration factor ($\kappa$) rises and loosens the theoretical error bound. Future directions are not explicitly discussed in the paper.

Summary updated

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