UltraImage: Rethinking Resolution Extrapolation in Image Diffusion Transformers

Min Zhao, Bokai Yan, Xue Yang, Hongzhou Zhu, Jintao Zhang, Shilong Liu, Chongxuan Li, Jun ZhuarXiv 2025 · DOI

Abstract

UltraImage is a training-free framework designed to enable image diffusion transformers to generate ultra-high-resolution images—up to 6K×6K—far exceeding their native training scales. By addressing the dual failures of content repetition and quality degradation, UltraImage provides a principled solution for resolution extrapolation. The framework introduces Recursive Dominant Frequency Correction (RDFC) to eliminate structural tiling and Entropy-Guided Adaptive Attention Concentration to restore fine details lost to attention dilution. Experimental results on state-of-the-art models like Flux and Qwen-Image demonstrate significant quantitative and qualitative improvements over existing interpolation methods.

Introduction

Modern image diffusion transformers, such as Flux and Qwen-Image, excel at generating high-fidelity images at their native training resolutions (e.g., 1024×1024). However, when tasked with generating larger images—a process known as resolution extrapolation—these models typically encounter two critical failure modes: content repetition and quality degradation.

Content repetition manifests as the model tiling the image with repeating objects or layouts, while quality degradation results in overly smoothed or blurry outputs. Existing techniques adapted from Large Language Models, such as Position Interpolation or NTK-aware scaling, often fail to resolve repetition or do so at the cost of severe blurring. UltraImage identifies the root causes of these issues in the mathematical properties of Rotary Position Embeddings (RoPE) and attention mechanisms.

Comparison of standard extrapolation (top) vs. UltraImage (bottom) at increasing resolutions, showing the prevention of blur and repetition.

Methodology

1. Recursive Dominant Frequency Correction (RDFC)

The authors' analysis of RoPE revealed that mid-band frequencies—those whose periods align with the native training resolution—control the global structure of an image. During extrapolation, these "dominant" frequencies wrap around, causing the model to repeat content across the expanded canvas. RDFC iteratively identifies and scales these specific frequencies so their periods stretch to cover the target resolution. This approach effectively eliminates repetition without distorting the high frequencies responsible for local textures.

2. Entropy-Guided Adaptive Attention Concentration

As resolution increases, the number of tokens grows quadratically, causing softmax attention scores to "dilute." This spreading of weights averages out features, leading to blurriness. UltraImage utilizes Shannon entropy to measure the function of different attention heads:

  • Low-entropy heads (local focus): These receive a strong sharpening factor to restore crisp details.
  • High-entropy heads (global focus): These receive a weaker factor to maintain long-range structural consistency.

To handle the massive memory requirements of high-resolution attention matrices (e.g., 40K×40K), the framework employs a custom block-wise online softmax kernel implemented in Triton.

Results and Discussion

UltraImage was evaluated using 1,000 high-quality captions from the LAION-5B dataset. On the Flux model extrapolated to 3600×3600, UltraImage improved the Frechet Inception Distance (FID) by 113.41 over NTK-aware scaling and 41.31 over Position Interpolation.

Qualitative results showing UltraImage generating coherent, high-detail images across various aspect ratios and resolutions up to 8K.

Qualitatively, the framework successfully pushed Qwen-Image to generate 6K×6K images with sharp textures—such as individual hairs and defined environmental details—without the need for low-resolution guidance. The visual results confirm the complete elimination of the tiling effect seen in baseline models.

Conclusion

UltraImage provides a robust, training-free methodology for scaling image diffusion transformers to ultra-high resolutions. By correcting the periodicity of positional embeddings and dynamically adjusting attention concentration based on entropy, the framework overcomes the traditional trade-offs between structural coherence and fine detail. Future work may extend these insights to temporal extrapolation in video diffusion models, which face similar repetition and degradation challenges.

Summary updated

BibTeX
@misc{zhao2025ultraimage,
  author = {Min Zhao and Bokai Yan and Xue Yang and Hongzhou Zhu and Jintao Zhang and Shilong Liu and Chongxuan Li and Jun Zhu},
  title = {{UltraImage: Rethinking Resolution Extrapolation in Image Diffusion Transformers}},
  year = {2025},
  eprint = {2512.04504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.04504},
}
Figure