Distilled Decoding 1: One-step Sampling of Image Auto-regressive Models with Flow Matching
Abstract
Autoregressive (AR) models have achieved state-of-the-art performance in text and image generation but suffer from slow generation due to the token-by-token process. We ask an ambitious question: can a pre-trained AR model be adapted to generate outputs in just one or two steps? If successful, this would significantly advance the development and deployment of AR models. We notice that existing works that try to speed up AR generation by generating multiple tokens at once fundamentally cannot capture the output distribution due to the conditional dependencies between tokens, limiting their effectiveness for few-step generation. To address this, we propose Distilled Decoding (DD), which uses flow matching to create a deterministic mapping from Gaussian distribution to the output distribution of the pre-trained AR model. We then train a network to distill this mapping, enabling few-step generation. DD doesn't need the training data of the original AR model, making it more practical.We evaluate DD on state-of-the-art image AR models and present promising results on ImageNet-256. For VAR, which requires 10-step generation, DD enables one-step generation (6.3times speed-up), with an acceptable increase in FID from 4.19 to 9.96. For LlamaGen, DD reduces generation from 256 steps to 1, achieving an 217.8times speed-up with a comparable FID increase from 4.11 to 11.35. In both cases, baseline methods completely fail with FID>100. DD also excels on text-to-image generation, reducing the generation from 256 steps to 2 for LlamaGen with minimal FID increase from 25.70 to 28.95. As the first work to demonstrate the possibility of one-step generation for image AR models, DD challenges the prevailing notion that AR models are inherently slow, and opens up new opportunities for efficient AR generation. The project website is at https://imagination-research.github.io/distilled-decoding.
Community
Project website: https://imagination-research.github.io/distilled-decoding/
๐ For the first time, Image AR models (like ๐ฉ๐๐ฅ and ๐๐น๐ฎ๐บ๐ฎ๐๐ฒ๐ป) can be distilled to generate images in just ๐ข๐ก๐ step (up to ๐ฎ๐ญ๐ด๐ ๐ณ๐ฎ๐๐๐ฒ๐ฟ)!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- ZipAR: Accelerating Auto-regressive Image Generation through Spatial Locality (2024)
- High-Resolution Image Synthesis via Next-Token Prediction (2024)
- CART: Compositional Auto-Regressive Transformer for Image Generation (2024)
- Continuous Speculative Decoding for Autoregressive Image Generation (2024)
- Collaborative Decoding Makes Visual Auto-Regressive Modeling Efficient (2024)
- X-Prompt: Towards Universal In-Context Image Generation in Auto-Regressive Vision Language Foundation Models (2024)
- Language-Guided Image Tokenization for Generation (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper