atlas

Research map / Image generation / Autoregressive and latent generation

FiT: Flexible Vision Transformer for Diffusion Model

ICML 2024 · Image generation › Autoregressive and latent generation · approach: High-resolution diffusion synthesis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FiT, a diffusion transformer that trains on native-aspect-ratio images packed as variable-length token sequences with masked attention and 2D RoPE, plus training-free VisionNTK/VisionYaRN extrapolation for arbitrary resolutions.

Problem

Diffusion transformers such as DiT are trained on fixed-resolution, center-cropped square images and generalize poorly to other resolutions and aspect ratios.

Approach

Treat images as sequences of dynamically sized tokens: preserve aspect ratio without cropping, pad to a max token length with masked attention, replace absolute PE with 2D RoPE, and adapt NTK/YaRN interpolation separately per height and width for training-free extrapolation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train with flexible resolutions instead of fixed-resolution training (ablation)DiT-B/2 · ImageNet 160×320FID: 91.32 -> 50.51Helped
train with flexible resolutions instead of fixed-resolution training (ablation)DiT-B/2 · ImageNet 224×448FID: 109.1 -> 52.55Helped
replace MLP with SwiGLU (ablation)flexibly trained DiT-B/2 · ImageNet 256×256, 160×320, and 224×448FID: 43.34 -> 41.75; 50.51 -> 48.66; 52.55 -> 52.34Helped
replace absolute PE with 2D RoPE (ablation)flexibly trained DiT-B/2 · ImageNet 256×256, 160×320, and 224×448FID: 43.34 -> 37.29; 50.51 -> 45.06; 52.55 -> 46.16Helped
retain absolute PE in addition to 2D RoPE (ablation)flexibly trained DiT-B/2 · ImageNet 256×256, 160×320, and 224×448FID: 37.29 -> 39.11; 45.06 -> 46.71; 46.16 -> 46.60Hurt
use flexible training, 2D RoPE, and SwiGLU (ablation)DiT-B/2 · ImageNet 256×256, 160×320, and 224×448FID: 44.83 -> 36.36; 91.32 -> 43.96; 109.1 -> 44.67Helped
apply PI (ablation)FiT-B/2 · ImageNet 320×320, 224×448, and 160×480FID: 61.35 -> 65.76; 44.67 -> 175.42; 56.81 -> 224.83Hurt
apply vanilla YaRN (ablation)FiT-B/2 · ImageNet 320×320, 224×448, and 160×480FID: 61.35 -> 44.76; 44.67 -> 82.19; 56.81 -> 104.06Mixed
replace vanilla YaRN with VisionYaRN (ablation)FiT-B/2 · ImageNet 224×448 and 160×480FID: 82.19 -> 41.92; 104.06 -> 62.84Helped
use VisionNTK instead of direct extrapolation (ablation)FiT-B/2 · ImageNet 320×320, 224×448, and 160×480FID: 61.35 -> 57.31; 44.67 -> 43.84; 56.81 -> 56.76Helped
use FiT-XL/2 with VisionNTK rather than the best listed baselineclass-conditional ImageNet generation · ImageNet 160×320FID: 6.93 -> 5.74Helped
use FiT-XL/2 with VisionNTK rather than the best listed baselineclass-conditional ImageNet generation · ImageNet 128×384FID: 29.67 -> 16.81Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet

Benchmarks: ImageNet

Metrics: FID-50K sFID IS Precision Recall

Baselines: DiT-XL/2 U-ViT-H/2 ADM LDM-4 MDT BigGAN-deep StyleGAN-XL MaskGIT CDM

Builds on: DiT RoPE NTK-aware interpolation YaRN SwiGLU

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy