Distilled Decoding 1: One-step Sampling of Image Auto-regressive Models with Flow Matching

Enshu Liu, Xuefei Ning, Yu Wang, Zinan Lin

Autoregressive (AR) models have recently achieved state-of-the-art performance in both text and image generation. However, their primary limitation is a notoriously slow generation speed due to their sequential, token-by-token nature. For instance, generating a single 256x256 image using LlamaGen takes 256 steps, requiring about 5 seconds on an A100 GPU.

Sample high-quality image generation.

This paper asks an ambitious question: Can a pre-trained AR model be adapted to generate outputs in just one or two steps? Existing methods that attempt to speed up AR generation by predicting multiple tokens at once fundamentally fail. Because they attempt to predict tokens without knowing the preceding ones, the model assumes the tokens are independent. This "independence trap" forces the model to output a blurry average of all possible images, destroying the data distribution. To overcome this, the authors introduce Distilled Decoding (DD), a novel technique using flow matching to compress hundreds of AR generation steps into just one or two.

Bypassing the Independence Trap with Distilled Decoding

To achieve one-step generation, Distilled Decoding bridges Autoregressive modeling and Flow Matching (a technique closely related to diffusion models). The process works in three main phases:

  1. AR Flow Matching: Instead of predicting the probability of the next token, DD introduces a random Gaussian noise token. It uses Flow Matching to create a deterministic mathematical mapping (an ODE trajectory) from this noise token to the actual generated data token in the continuous embedding space.
  2. Trajectory Construction: By repeating this process using the pre-trained "teacher" AR model, the authors construct a complete, deterministic trajectory from a sequence of pure noise to a sequence of final image tokens.
  3. Distillation: Finally, a "student" neural network is trained to learn this trajectory. The student model takes the pure noise sequence and learns to jump directly to the final generated image in a single step (or a few intermediate steps).

A major advantage of this approach is that DD does not require the original training data of the AR model. It only needs the pre-trained teacher model to generate noise-data pairs for training, making it highly practical for real-world scenarios where massive training datasets are proprietary or unreleased. Furthermore, because DD learns a continuous trajectory, users can dynamically choose their speed-versus-quality trade-off at runtime—using 1 step for maximum speed, or 2-3 steps for slightly better quality.

Key Results and Performance

The authors evaluated DD on state-of-the-art image AR models, specifically VAR (10 steps) and LlamaGen (256 steps), using ImageNet 256x256 and LAION-COCO datasets.

Example of generated output.
  • LlamaGen (ImageNet): The generation process was compressed from 256 steps to 1 step, achieving a massive 217.8x speedup. The FID (Fréchet Inception Distance, where lower is better) increased only slightly from 4.11 to 11.35.
  • VAR (ImageNet): Compressed from 10 steps to 1 step (6.3x speedup), with FID shifting from 4.19 to 9.96.
  • Text-to-Image (LlamaGen on LAION-COCO): Compressed from 256 steps to 2 steps (92.9x speedup), with FID increasing minimally from 25.70 to 28.95.

In all tested scenarios, naive baseline methods (like skipping steps or standard one-step prediction) completely failed, resulting in unrecognizable images with FID scores exceeding 100.

Limitations and Future Directions

While Distilled Decoding successfully challenges the prevailing notion that AR models are inherently slow, it does have limitations. Because DD is a distillation method, its generation quality is strictly upper-bounded by the pre-trained teacher model. Future work could explore "teacher-free" consistency training for AR models to bypass this ceiling.

Additionally, while theoretically applicable to Large Language Models (LLMs), practical implementation remains challenging. LLMs possess much larger codebook sizes and significantly longer sequence lengths than image models, introducing new scaling hurdles.

Ultimately, this research suggests that current autoregressive models might be wasting compute that could be mathematically optimized away, opening up exciting new opportunities for highly efficient AR generation.

Summary updated

BibTeX
@inproceedings{liu2025distilled,
  author = {Enshu Liu and Xuefei Ning and Yu Wang and Zinan Lin},
  title = {{Distilled Decoding 1: One-step Sampling of Image Auto-regressive Models with Flow Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=zKlFXV87Pp},
}
Figure