NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Model

Zeyu LuOpenReview 2026

TL;DR

FiTv2 is an upgraded Flexible Vision Transformer designed to generate images of any resolution or aspect ratio without awkward cropping or distortion. By treating images as dynamic, variable-length token sequences and introducing key architectural fixes like QK-Norm and AdaLN-LoRA, FiTv2 achieves twice the convergence speed of its predecessor while outperforming standard Diffusion Transformers (DiT) at a fraction of the training cost.

What Problem Does This Paper Address?

Standard image generation models, such as the popular Diffusion Transformer (DiT), treat images as rigid, fixed-resolution grids (e.g., $256 \times 256$). When forced to generate images outside their trained resolution or aspect ratio, their performance plummets.

While the original Flexible Vision Transformer (FiT) bypassed this limitation by conceptualizing images as variable-length token sequences, it suffered from notable drawbacks: it was prone to training instabilities, carried high computational overhead, and underperformed on standard fixed-resolution benchmarks like ImageNet. FiTv2 addresses these efficiency, scalability, and stability bottlenecks to make arbitrary-resolution image generation truly practical.

Methods

FiTv2 introduces several architectural and training enhancements over the original FiT framework:

  • Training Stability (QK-Norm): The authors applied LayerNormalization to the Query (Q) and Key (K) vectors before computing attention. This eliminates excessively large attention logits, preventing the vanishing/exploding loss issues common during mixed-precision training.
  • Parameter Reassignment (AdaLN-LoRA & SwiGLU): To free up model capacity for actual self-attention layers, the heavy Adaptive Layer Normalization (AdaLN) blocks were replaced with a low-rank alternative (AdaLN-LoRA) combined with a shared Global AdaLN module. Additionally, the hidden size of the SwiGLU layer was optimized to match standard DiT baseline overhead.
  • Rectified Flow & Logit-Normal Sampling: The noise scheduler was switched from DDPM to a rectified flow framework. Crucially, timesteps are sampled using a Logit-Normal sampler, which concentrates training compute on the challenging middle stages of the diffusion process, drastically accelerating convergence.
  • Mixed Data Preprocessing: Instead of relying solely on image resizing (which causes blurriness), FiTv2 uses a pipeline that randomly toggles between resizing and selective cropping for large images. This aligns the training distribution with standard evaluation benchmarks without sacrificing aspect ratio flexibility.
  • Resolution Extrapolation: For inference beyond the training distribution, FiTv2 combines vision-specific positional interpolation (VisionNTK / VisionYaRN) with an Attention Scale factor to prevent attention entropy fluctuations when handling massive token sequences.

Datasets

The model was trained and evaluated using the following datasets:

  • ImageNet: Used for class-conditional image generation across multiple resolutions (both in-distribution like $256 \times 256$ and out-of-distribution like $160 \times 480$ and $512 \times 512$).
  • CC12M (PixelProse subset): Consisting of 8.6 million high-quality images with descriptive captions, used to train the text-to-image (T2I) variant.
  • MS-COCO: Used to benchmark the text-to-image generation performance via FID and CLIP scores.

Key Insights and Ideas

  • Images are Sequences, Not Grids: Shifting the paradigm from fixed 2D grids to variable-length 1D token sequences allows the network to natively handle aspect ratio variations without spatial distortion.
  • The AdaLN Bottleneck: The authors discovered that standard AdaLN blocks consume too many parameters, starving the self-attention blocks of capacity. Moving to a LoRA-based AdaLN design restores model capacity where it matters most.
  • Larger Models are More Efficient: Scaling laws apply beautifully here. Larger FiTv2 models (up to 3B parameters) prove to be more computationally efficient per unit of performance than smaller models trained for more steps.

Key Results

  • 2× Convergence Speed: FiTv2 trains twice as fast as the original FiT model.
  • Compute Efficiency: The FiTv2-XL/2 model holistically outperforms DiT-XL/2 and SiT-XL/2 while consuming only 28.6% of the training compute.
  • Superior Extrapolation: On out-of-distribution resolutions (e.g., $160 \times 480$), FiTv2-XL/2 achieves an FID of 13.55, completely crushing the baseline SiT-XL/2 model, which degrades to an FID of 104.57.
  • Strong Text-to-Image Performance: When evaluated on MS-COCO $256 \times 256$, FiTv2 reaches an optimal FID of 27.88 and a CLIP score of 0.2535, significantly outperforming the baseline SiT model (FID 40.8).

Limitations and Future Work

  • Extreme Scaling Overhead: Although training-free extrapolation techniques (like VisionNTK) work remarkably well, generating extremely high-resolution images still requires an explicit, albeit parameter-efficient, high-resolution post-training phase to maintain pristine quality.
  • Extension to Video: The paper focuses entirely on static image generation. Extending this dynamic tokenization paradigm to video generation—where aspect ratios, frame counts, and frame rates vary wildly—remains an open and promising direction.

Summary updated

BibTeX
@misc{lu2026fitv,
  author = {Zeyu Lu},
  title = {{FiTv2: Scalable and Improved Flexible Vision Transformer for Diffusion Model}},
  year = {2026},
  url = {https://openreview.net/forum?id=AZZIZXxO4p},
  howpublished = {OpenReview},
}
Figure