UltraImage: Rethinking Resolution Extrapolation in Image Diffusion Transformers
Min Zhao, Bokai Yan, Xue Yang, Hongzhou Zhu, Jintao Zhang, Shilong Liu, Chongxuan Li, Jun Zhu
TL;DR
UltraImage tackles resolution extrapolation in image diffusion transformers by (1) identifying RoPE-based repetition as a mid-band frequency effect and applying recursive dominant frequency correction to keep the dominant frequency within a single period during extrapolation, and (2) diagnosing quality degradation as attention dilution and solving it with entropy-guided adaptive attention concentration, implemented efficiently via a Triton-based kernel. The method yields consistent improvements over prior work on Flux and Qwen-Image across direct, guided, and guided-view extrapolation, and demonstrates extreme extrapolation up to 6K×6K from 1328p without low-resolution guidance. These contributions enable high-fidelity, coherent ultra-resolution image generation, with practical impact for large-format media and high-detail simulations. The work advances understanding of frequency-domain effects in RoPE and introduces a per-head, entropy-aware attention sharpening mechanism that preserves global structure while enhancing local details.
Abstract
Recent image diffusion transformers achieve high-fidelity generation, but struggle to generate images beyond these scales, suffering from content repetition and quality degradation. In this work, we present UltraImage, a principled framework that addresses both issues. Through frequency-wise analysis of positional embeddings, we identify that repetition arises from the periodicity of the dominant frequency, whose period aligns with the training resolution. We introduce a recursive dominant frequency correction to constrain it within a single period after extrapolation. Furthermore, we find that quality degradation stems from diluted attention and thus propose entropy-guided adaptive attention concentration, which assigns higher focus factors to sharpen local attention for fine detail and lower ones to global attention patterns to preserve structural consistency. Experiments show that UltraImage consistently outperforms prior methods on Qwen-Image and Flux (around 4K) across three generation scenarios, reducing repetition and improving visual fidelity. Moreover, UltraImage can generate images up to 6K*6K without low-resolution guidance from a training resolution of 1328p, demonstrating its extreme extrapolation capability. Project page is available at \href{https://thu-ml.github.io/ultraimage.github.io/}{https://thu-ml.github.io/ultraimage.github.io/}.
