Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer

Zhuoyi Yang, Heyang Jiang, Wenyi Hong, Jiayan Teng, Wendi Zheng +3 more
2/14/2026

No official code found. Best implementation: zai-org/Inf-DiT (449 stars, Apache-2.0, last commit 2024-07-05).

Abstract

Diffusion models have shown remarkable performance in image generation in recent years. However, due to a quadratic increase in memory during generating ultra-high-resolution images (e.g. 4096*4096), the resolution of generated images is often limited to 1024*1024. In this work. we propose a unidirectional block attention mechanism that can adaptively adjust the memory overhead during the inference process and handle global dependencies. Building on this module, we adopt the DiT structure for upsampling and develop an infinite super-resolution model capable of upsampling images of various shapes and resolutions. Comprehensive experiments show that our model achieves SOTA performance in generating ultra-high-resolution images in both machine and human evaluation. Compared to commonly used UNet structures, our model can save more than 5x memory when generating 4096*4096 images. The project URL is https://github.com/THUDM/Inf-DiT.

View on arXivView PDF

Code Implementations(1)

zai-org/Inf-DiTCommunity100%
Apache-2.0

Official implementation of Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer

44924Shell, PythonMay 7, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2026infdit,
  title  = {Inf-DiT: Upsampling Any-Resolution Image with Memory-Efficient Diffusion Transformer},
  author = {Zhuoyi Yang and Heyang Jiang and Wenyi Hong and Jiayan Teng and Wendi Zheng and Yuxiao Dong and Ming Ding and Jie Tang},
  year   = {2026},
  eprint = {2405.04312},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.04312},
  journal = {ECCV 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.04312.svg)](https://codeofpaper.com/paper/2405.04312)

Discussion