Preprint 2026

Native View AttentionTraining-Free Ultra-High-Resolution
Image Generation in Linear Time

Xuanming Shang Weijia Zhang Yuehao Liu Xiangxuan Ren Chao Ma

Shanghai Jiao Tong UniversityMoE Key Lab of Artificial Intelligence · Institute of AI

Attention patterns of dense attention, window attention and NVA for one image query at 4096 by 4096, each with a generated image and two zoomed regions.
Count every image area once. At 40962, each image area of the native 10242 resolution holds 16 tokens. Dense attention counts every area 16 times, window attention does not count the areas outside its window, and NVA counts every area once.

The problem & the idea

Abstract

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 prompt loses its attention

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.

Scatter plot of the change in distant-region and text attention share at 4096 by 4096 relative to native attention, for each training-free method.
Change of attention of an image query at 40962 on FLUX.1-dev, relative to native 10242 attention (origin), under each method's attention operator. I-Max adds 16 copies of the text tokens, which offsets the dilution of the text.

Inside NVA

The native view at the target resolution

NVA overview: a cascade from 1024 by 1024 to 4096 by 4096 with routing from native attention, and the key set of one query block.
(a) The first stage generates a 10242 image. Its latent is upsampled, re-noised and denoised at 40962 with NVA, and native attention selects the routed blocks of each query. (b) The key set of one query block. (c) Each key is weighted by the native area it covers, and all keys share one softmax.

Key ideas

01

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.

02

Near field and routed blocks

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.

03

One area, one count

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

Better images, linear cost

133.9 FID on FLUX.1-dev

40962 · best training-free (next: 136.2)

134.4 FID on Qwen-Image

40962 · best training-free (next: 137.8)

8.4× faster than dense attention

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.

Seeing the details

Qualitative comparison at 40962

Whole images and 512 by 512 full-resolution crops from training-free methods and NVA on FLUX.1-dev and Qwen-Image.
FLUX.1-dev (top two blocks) and Qwen-Image (bottom). In each block, the upper row shows whole images, and the lower row shows the boxed regions as 5122 crops at full resolution. Click to open the full-size figure.

Linear in tokens

Attention time

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.

Log-log plot of the time of one attention layer against resolution for NVA and dense attention.
Time of one FLUX.1-dev attention layer on one A800 GPU, on log axes.

Reference

Cite NVA

@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}
}