NAMI: Efficient Image Generation via Bridged Progressive Rectified Flow Transformers

Yuhang Ma, Bo Cheng, Shanyuan Liu, Hongyi Zhou, Liebucha Wu, Dawei Leng, Yuhui Yin

TL;DR

NAMI accelerates flow-based Diffusion Transformers (DiTs) by decomposing the image generation process into progressive, multi-resolution stages. By using fewer transformer layers for early, low-resolution layouts and adding layers as resolution increases, NAMI slashes inference latency by roughly 64% while maintaining highly competitive generation quality.

What Problem Does This Paper Address?

State-of-the-art text-to-image models like FLUX and SD3 rely on massive Flow-based Diffusion Transformers to generate highly detailed, photorealistic images. However, their massive parameter sizes incur steep computational costs and high inference latency, making commercial deployment challenging.

The authors identify a core inefficiency in how these models operate: current architectures apply the exact same heavy denoising network uniformly across every single step of the generation process. In reality, the early steps of diffusion only establish rough conceptual layouts and outlines, which do not require high-resolution processing or the full capacity of a multi-billion parameter model. Fine details are only filled in during the later stages. NAMI addresses this spatiotemporal redundancy by matching model capacity and resolution to the actual progression of the image generation process.

Overview of the image generation process showing that early stages handle layouts while later stages enhance details.

Methods

NAMI introduces a Bridged Progressive Rectified Flow Transformer framework that splits the image generation process into $K$ distinct resolution stages and corresponding time windows. The core components include:

  • Spatial Cascading (Model Partitioning): Instead of running the full transformer stack at all times, NAMI allocates a subset of layers to lower resolutions. For example, in the NAMI-2B model, only 9 layers are active during the initial $256\times256$ stage. As the resolution steps up to $512\times512$, 7 more layers are appended, and the final 6 layers are added for the ultimate $1024\times1024$ stage (totaling 22 layers).
  • BridgeFlow Module: Transitioning between resolution stages requires aligning the probability distributions at the boundaries. While previous methods used complex, non-parametric mathematical renoising operations, NAMI introduces a simple, learnable linear transformation ($W \cdot \text{Up}(\hat{x}) + B$) to smoothly map and align the flows between stages in a data-driven manner.
  • Multi-Resolution Joint Training: Rather than sequentially fine-tuning a model from low to high resolutions, NAMI trains all resolution stages simultaneously. This joint optimization strategy encourages internal knowledge sharing and prevents the catastrophic forgetting typically seen in sequential fine-tuning.
Overview of NAMI's progressive flow transformer architecture and the learnable BridgeFlow module.

Datasets

  • Training Data: The model was trained on a massive dataset of approximately 100 million images, combining LAION, GRIT-20M, and a curated set of 100K high-quality internal images filtered for aesthetics and semantics.
  • Evaluation Benchmarks: The authors evaluated NAMI on standard open-source benchmarks, including GenEval (for text-image alignment) and DPG-Benchmark (for complex, long-text prompts).
  • NAMI-1K Benchmark: To overcome the distribution biases and limited prompt diversity of existing benchmarks, the authors introduced NAMI-1K. This new evaluation dataset contains 1,000 prompts across a balanced distribution of topic categories and text lengths, integrating short prompts, human-created real-world queries, and complex long prompts.
The distribution of text lengths across GenEval, DPG-Benchmark, and the newly proposed NAMI-1K dataset.

Key Insights and Ideas

  • Layouts are Cheap: Coarse structural layouts can be effectively modeled using both lower resolutions and fewer parameters, saving massive compute upfront without harming the final output.
  • Learnable Alignment Beats Hand-Crafted Math: Replacing rigid, non-parametric mathematical renoising at resolution boundaries with a simple learnable linear layer (BridgeFlow) yields better distribution alignment and faster inference.
  • Simultaneous Multi-Res Training: Training all resolution stages together in a single joint optimization process ensures the model retains structural awareness while mastering fine details.

Key Results

  • 64.82% Speedup: NAMI-2B reduces the inference time for generating $1024\times1024$ images from 8.47 seconds (baseline FLUX-2B model) down to just 2.98 seconds on a single A100 GPU.
  • Component Impact: Breaking down the efficiency gains, the piecewise flow design accounts for a 53.01% reduction in computation time, while the model layer partitioning shaves off an additional 11.81%.
  • Competitive Performance: In human preference evaluations on the NAMI-1K dataset, NAMI-2B achieved an overall score of 70.69, outperforming comparable 2B-scale models such as SD3-medium (69.97), Infinity (69.77), Hunyuan-DiT (68.95), and SANA (67.80).
Inference latency comparison between NAMI-2B and the baseline model across different resolutions.

Limitations and Future Work

While NAMI-2B easily outperforms other models in its weight class, it still trails behind significantly larger models like the 12-billion-parameter FLUX-dev in overall aesthetic quality and prompt adherence.

The authors note that NAMI's progressive framework is highly orthogonal to other optimization techniques (like efficient attention or token masking) and plan to explore combining them in future work. They also intend to extend NAMI to downstream tasks like image editing.

Summary updated

BibTeX
@inproceedings{ma2026nami,
  author = {Yuhang Ma and Bo Cheng and Shanyuan Liu and Hongyi Zhou and Liebucha Wu and Dawei Leng and Yuhui Yin},
  title = {{NAMI: Efficient Image Generation via Bridged Progressive Rectified Flow Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=THbriLGALy},
}
Figure