I-Max: Maximize the Resolution Potential of Pre-trained Rectified Flow Transformers with Projected Flow

Ruoyi Du, Dongyang Liu, Le Zhuo, Qin Qi, Hongsheng Li, Zhanyu Ma, Peng Gao · DOI

Introduction

State-of-the-art text-to-image models, such as Flux.1 and Stable Diffusion 3, are typically constrained to resolutions between 1024² and 2048². Training models for ultra-high resolution (4K or 8K) is computationally prohibitive, requiring massive datasets and extensive GPU time. While tuning-free extrapolation methods exist, they often suffer from structural collapse—where global layouts become nonsensical—and distribution shifts that lead to artifacts as token counts increase.

I-Max is a tuning-free framework designed to overcome these limitations. It enables pre-trained Rectified Flow Transformers (RFTs) to generate high-quality images at resolutions up to 8K by maintaining structural integrity while unlocking latent fine-grained details.

High-resolution images generated by I-Max using Lumina-Next-2K and Flux.1-dev across various aspect ratios and resolutions up to 8K.

Methodology

The I-Max framework is built upon two core pillars: Projected Flow guidance and a specialized inference toolkit.

Projected Flow Guidance

The central innovation of I-Max is the "Projected Flow" strategy. The authors treat low-resolution image space as a low-dimensional projection of high-resolution space. By leveraging the stable, linear paths inherent in Rectified Flows, I-Max uses a low-resolution generation to "anchor" the early stages of a high-resolution flow. This ensures the global structure remains consistent, allowing the high-resolution process to focus on rendering emergent local details during the later denoising steps.

Inference Toolkit for Scaling

To adapt RFTs to massive token sequences, I-Max integrates several calibration techniques:

  • NTK-aware Scaled RoPE: Rescales rotary positional embeddings to maintain spatial perception over large distances.
  • SNR Shift Balancing: Adjusts the noise schedule to account for signal-to-noise ratio changes at higher resolutions.
  • Attention Entropy Balancing: Prevents self-attention dilution as token counts grow quadratically.
  • Text Duplication: In models like Flux, text tokens are repeated to maintain a balanced ratio against the increasing number of image tokens.

Key Results and Insights

I-Max successfully pushed Lumina-Next-2K to 16x its native resolution and enabled stable 4K generation for Flux.1-dev. Beyond simple upscaling, the framework demonstrates an "inference scaling law," where increased test-time compute via guidance unlocks capabilities not explicitly seen during training.

Comparison of 1024² vs 4096² generations. I-Max significantly improves detail in small objects, such as faces in a crowd and the texture of a rope on a gummy bear.

Quantitative evaluations using GPT-4o as a preference judge showed that I-Max achieved over 50% win rates against native-resolution outputs. Notably, I-Max corrects artifacts in small objects that are often present in lower-resolution versions, as demonstrated by the enhanced clarity in facial features and textures in high-resolution crops.

Limitations and Future Work

Despite its success, I-Max faces challenges regarding computational efficiency. Generating 4K or 8K images is memory-intensive and slow; a 30-step 4K generation on an A100 GPU can exceed 800 seconds. Furthermore, there is a "knowledge ceiling" where the model eventually lacks the prior knowledge to fill additional pixels effectively. Future research will focus on efficiency techniques like token merging or "deep cache" to reduce the exponential inference costs associated with ultra-high-resolution generation.

Summary updated

BibTeX
@misc{du2024i,
  author = {Ruoyi Du and Dongyang Liu and Le Zhuo and Qin Qi and Hongsheng Li and Zhanyu Ma and Peng Gao},
  title = {{I-Max: Maximize the Resolution Potential of Pre-trained Rectified Flow Transformers with Projected Flow}},
  year = {2024},
  eprint = {2410.07536},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.07536},
}
Figure