FreqExit: Enabling Early-Exit Inference for Visual Autoregressive Models via Frequency-Aware Guidance

Ying Li, chengfei lv, Huan WangNeurIPS 2025

TL;DR

FreqExit is a novel training framework that enables "early-exit" acceleration for Visual Autoregressive (VAR) models. By allowing models to skip layers during inference, FreqExit achieves up to a 2× speedup. Through frequency-aware supervision and wavelet-based losses, it ensures that even when the model stops early, it maintains the high-quality details that traditional acceleration methods typically lose.

The Challenge of Accelerating VAR Models

Autoregressive models are the engines behind modern generative AI, but their sequential data generation makes them notoriously slow. A new paradigm called Visual AutoRegressive (VAR) modeling improves this by generating images "scale-by-scale"—starting with a tiny, coarse version and progressively refining it into a high-resolution image.

However, accelerating VAR models is tricky. Traditional "early-exit" strategies (where a model stops processing at an intermediate layer if it is "confident" enough) rely on two assumptions:

  1. Semantic Stability: Intermediate layers should look somewhat like the final output.
  2. Monotonic Locality: Representations should change smoothly across layers.

VAR models break both rules. In VAR, every layer acts as a "worker" adding unique information, keeping representations highly dynamic until the very end. Early layers focus on global structure (low frequency), while later layers handle fine textures (high frequency). Attempting to "exit early" using standard methods results in images that are blurry or structurally unsound.

Visual examples of FreqExit at different early-exit layers, demonstrating maintained image quality even at 2.0x speedup.

The FreqExit Approach

To solve this, the authors propose FreqExit, a unified training framework that alters how the model learns to handle "shortcuts" without changing its underlying architecture. It relies on three main pillars:

  1. Curriculum-Based Supervision: During training, the model uses "layer dropout" (randomly skipping layers) alongside a rotational curriculum. This forces early layers to become more expressive and capable of producing a decent output independently.
  2. High-Frequency (HF) Consistency Loss: Using a Discrete Wavelet Transform (DWT), the model decomposes images into different frequency bands. This loss aligns the spectral content of the "student" (the early exit) with a "teacher" (the full model), ensuring high-frequency details aren't sacrificed for speed.
  3. Frequency-Gated Self-Reconstruction (FGSR): A lightweight, auxiliary module used only during training. It uses learnable "gates" to help the model decide which frequency bands to focus on at different generation stages, guiding the transition from coarse structures to fine details.

Key Insights

  • The Frequency Shift: Analysis reveals a clear "two-stage" process in VAR. The first six steps of generation focus almost entirely on low-frequency structure, while steps 7–10 see a massive spike in high-frequency detail generation.
  • No "Safe" Exit: Unlike some Language Models where middle layers might be redundant, VAR models have almost no redundancy. Every transformer block meaningfully modifies the image representation.
  • Frequency as a Proxy for Quality: Because humans perceive high-frequency details as "sharpness" and "quality," supervising the model specifically in the frequency domain allows for aggressive acceleration without typical blurriness.

Key Results and Performance

Evaluated on the gold-standard ImageNet 256×256 dataset, FreqExit sets a new state-of-the-art for the efficiency-fidelity trade-off in visual autoregressive models, outperforming competitive baselines like CALM, LayerSkip, and CoDe.

FID vs. Speedup trade-off for FreqExit compared to baseline methods like LayerSkip and CALM.
  • 2.0× Speedup: At its most aggressive setting (using only 10 layers instead of 20), FreqExit achieves a 2× speedup with only minor degradation in image quality (FID score moving from 2.78 to 3.58).
  • 1.3× Speedup: It can achieve a 30% boost in speed with no perceptible loss in quality.
  • High Throughput: On an NVIDIA RTX 4090, FreqExit reached a throughput of 7.72 images per second, significantly outperforming baselines.
  • Versatility: The method extends beyond standard image generation to tasks like zero-shot inpainting, where the model successfully fills in missing parts of an image.

Limitations and Future Work

While FreqExit is powerful, it introduces multiple loss terms that require careful balancing. If the high-frequency loss is too strong, it can interfere with the model's ability to learn basic low-frequency structures. Currently, tuning these weights requires manual effort.

Future work will explore adaptive training strategies to automatically coordinate frequency-aware supervision with semantic objectives, reducing the need for manual hyperparameter tuning and making the framework even more robust.

Summary updated

BibTeX
@inproceedings{li2025freqexit,
  author = {Ying Li and chengfei lv and Huan Wang},
  title = {{FreqExit: Enabling Early-Exit Inference for Visual Autoregressive Models via Frequency-Aware Guidance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=DUlZTgLkeh},
}
Figure