TL;DR
Standard autoregressive (AR) models generate images token-by-token across raster scanlines, which awkwardly forces 1D sequential causality onto 2D continuous data. Frequency Autoregressive (FAR) redefines image AR generation as a coarse-to-fine spectral progression—generating full spatial frames from low to high frequency bands. Paired with a continuous tokenizer and diffusion loss, FAR generates high-fidelity images in just 10 inference steps while preserving 2D spatial locality.
What Problem Does This Paper Address?
Autoregressive language models predict discrete tokens sequentially from left to right. When applied to vision, the standard recipe discretizes images into codebook indices (VQ-VAE) and flattens them into 1D sequences via raster scan.
This approach clashes with visual data across two dimensions:
- Tokenizer Format: Quantizing continuous visual features into discrete codebook entries discards fine, high-frequency details (e.g., human faces, textures) and introduces an artificial bottleneck.
- Regression Direction: Raster-scanning breaks spatial locality (the first token of row two depends strongly on the pixel directly above it, not the distant end of row one). Masked AR or random-order AR fixes some locality issues but sacrifices strict causality. Multi-scale AR (like VAR) preserves locality, but its residual-quantization (RQ) structure compounds prediction errors and fails when combined with continuous tokens.
Methods
FAR introduces next-frequency prediction, where an image is progressively reconstructed from low-frequency structural bands to high-frequency detail bands:
- Spectral Progressive AR: The model applies low-pass filters to intermediate latent representations $x_i$ across $F$ frequency levels ($i \in \{1, \dots, F\}$). At each step, FAR uses bidirectional self-attention across the entire 2D token grid simultaneously, completely preserving spatial locality while satisfying causal dependency along the frequency axis.
- Continuous Diffusion Loss (DMS): To avoid discrete codebooks, FAR follows MAR by using a continuous VAE latent space and modeling per-token distributions via an auxiliary denoising MLP. Instead of modeling $p(x_{i+1} \mid x_i)$ directly at each level—which overburdens the small MLP—FAR trains the network to predict the clean target latent $p(x \mid x_i)$ and applies spectral filtering post-hoc to obtain $x_{i+1}$.
- Frequency-Aware Loss & Sampling:
- Loss weighting (FTL): High-frequency bands are weighted more heavily via a sine schedule ($w_i = 1 + \sin(\frac{\pi}{2} \cdot \frac{i}{F})$) so optimization is not dominated by low frequencies.
- Adaptive sampling: Early, blurry stages require fewer diffusion denoising steps ($T=40$), while fine detail stages receive more ($T=100$), saving 30% inference time.
- Dynamic masking: Early frequencies are information-sparse, so random input token masking (up to 70%) is applied, cutting training FLOPs and boosting sample diversity.
[Low-frequency base x_1] ──> [FAR Transformer] ──> [Diffusion MLP] ──> Filter ──> [Next-frequency x_2] ──> ...
(All 2D tokens) (Bidirectional) (Predict clean x)
Datasets
- ImageNet (256×256): Used for class-conditional generation benchmarks across 1,000 classes.
- JourneyDB (~4.19M pairs) + Internal Data (~3.57M pairs): Used for text-to-image pretraining (evaluated against MS-COCO 2014 zero-shot FID-30K and the GenEval benchmark).
- Note: No new datasets or benchmarks were created; evaluations relied on established standard benchmarks.
Key Insights and Ideas
- Diffusion is implicit spectral autoregression: Recent theoretical work shows that diffusion noise schedules naturally behave like spectral filters (revealing low frequencies first). FAR makes this frequency progression explicit within an autoregressive architecture.
- VAR breaks down with continuous representations: VAR relies heavily on residual quantization (RQ) summed across scales. When continuous tokenizers are dropped into VAR without discrete codebooks, exposure bias compounds rapidly, resulting in severe visual artifacts (FID collapses to 75.35).
- Random masking unlocks AR diversity: Removing the mask mechanism from continuous AR causes sample diversity (recall) to crater. Injecting masking during frequency progression injects necessary entropy, dropping FID from 13.47 to 4.11.
Key Results
- Class-Conditional ImageNet (256×256):
- FAR-H (812M): Achieves 3.21 FID and 300.6 Inception Score (IS) in just 10 steps.
- Compared to MAR-H at 10 steps (FID 9.32), FAR yields significantly higher fidelity at identical speed. (MAR requires 256 steps to reach 1.55 FID).
- Outperforms discrete AR baselines like VAR (3.30 FID, 10 steps) and MaskGIT (6.18 FID, 8 steps).
- Text-to-Image Generation:
- Trained on only 7.8M image-text pairs using 24 A100 GPU days, FAR achieves an MS-COCO FID-30K of 13.91 and a GenEval score of 0.37 in 10 steps, outperforming earlier large discrete models like DALL-E (27.50) and CogView2 (17.50) while using a fraction of the compute.
Limitations and Future Work
- Diversity Gap vs. Diffusion: While visual fidelity and Inception Scores are high, FAR exhibits slightly lower recall/diversity than full-step diffusion models (e.g., DiT-XL/2) or 256-step MAR, which holds back its overall FID score.
- Scale of Text-to-Image Experiments: The text-to-image model was evaluated on smaller public/internal corpora (7.8M pairs) and cannot yet compete with modern web-scale systems (e.g., SD3, DALL-E 3) trained on billions of images.
- Spatial Domain Approximation: The authors note that spatial downsampling/upsampling performed similarly to true Fourier-domain bandpass filtering; further exploration into mathematically exact wavelet/frequency decompositions remains future work.
Summary updated