Pooled far field
Most of the image only provides context to a query. There, NVA pools the 16 tokens of each area into one key that counts once, which gives the query the view of the whole image that it had in training.
Preprint 2026
Shanghai Jiao Tong UniversityMoE Key Lab of Artificial Intelligence · Institute of AI
The problem & the idea
Diffusion transformers sampled beyond their training resolution lose global structure and produce artifacts, and their attention cost grows quadratically with the number of tokens. We trace both problems to one cause. Attention counts every token once, and in training each token stands for a fixed area of the image. At a higher resolution, the same area is split into many near-identical tokens, so dense attention counts it many times. Comparing attention at both resolutions, we find that the prompt, whose tokens do not multiply, loses most of its attention. Adapting position encodings or sharpening attention does not restore it. Window attention avoids the cost but counts nothing outside its window, so content repeats. We propose Native View Attention (NVA), a training-free attention operator that counts every image area once, as in training. Where detail is not needed, the tokens of an area are pooled into one. Near each token and in the few most relevant distant regions, they are kept and share the count of their area. Pooling also fixes the number of tokens each token attends to, which makes the cost linear. On FLUX.1-dev and Qwen-Image, NVA surpasses prior training-free methods in global fidelity, prompt alignment and human preference, and is the fastest, up to 8.4× faster than dense attention at 81922.
One cause
The text makes the miscount measurable, because its tokens do not multiply. On FLUX.1-dev at 40962, under every dense-attention operator except I-Max, the share of an image query's attention that goes to the text falls from about 16% to 2–4%, and attention shifts toward distant regions. Position extrapolation and attention scaling do not change the keys, so they cannot restore it. Window attention loses the attention on distant regions and still lowers the text share by about 6 percentage points.
Inside NVA
Most of the image only provides context to a query. There, NVA pools the 16 tokens of each area into one key that counts once, which gives the query the view of the whole image that it had in training.
Details form near the query, so its near field keeps the target tokens. The few distant regions that the query attends to strongly at the native resolution also keep their target tokens.
Kept tokens share the count of their area, and all keys share one softmax, as in training. The number of keys per query no longer grows with the resolution, so the attention cost is linear.
Reported in the paper
40962 · best training-free (next: 136.2)
40962 · best training-free (next: 137.8)
81922 on FLUX.1-dev · same cascade
On Aesthetic-Eval@4096 (195 prompts), NVA leads all training-free methods on both models in FID, IS, CLIP score, HPS and MUSIQ. It is also the fastest training-free method, at 182 s per 40962 image on FLUX.1-dev and 561 s on Qwen-Image on one A800 GPU. On FLUX.1-dev, NVA also exceeds the 4K-fine-tuned Diffusion-4K on all seven quality metrics.
Linear in tokens
From 40962 to 163842, each doubling of the side length multiplies the time of an NVA attention layer by 4.1–4.2, close to the factor of 4 of a linear cost. For dense FlashAttention-2, the factor is 16–19. At 163842, one layer takes 0.79 s with NVA and 85.0 s with dense attention. End to end, NVA generates 40962 and 81922 images on FLUX.1-dev 2.5× and 8.4× faster than the same cascade with dense attention.
Reference
@article{shang2026nva,
title={Native View Attention: Training-Free Ultra-High-Resolution Image Generation in Linear Time},
author={Shang, Xuanming and Zhang, Weijia and Liu, Yuehao and Ren, Xiangxuan and Ma, Chao},
journal={arXiv preprint arXiv:XXXX.XXXXX},
year={2026}
}