Abstract
Autoregressive (AR) models have emerged as powerful tools for image synthesis, yet their sequential nature makes them computationally expensive. We present Distilled Decoding 2 (DD2), a method that enables high-quality, one-step image generation from AR models by reinterpreting them as conditional score models. By aligning the "scores" of a one-step generator with a teacher AR model through Conditional Score Distillation (CSD), DD2 achieves speedups of up to 238× while maintaining significantly higher image fidelity than previous distillation techniques.
Introduction: The Speed Bottleneck of Autoregressive Models
Autoregressive models like VAR and LlamaGen have recently set new benchmarks in image synthesis, often surpassing diffusion models in quality. However, they share a fundamental flaw: they are slow. Because they generate images token-by-token (sequentially), a single image might require hundreds of forward passes through a massive transformer.
Previous work, specifically Distilled Decoding 1 (DD1), attempted to solve this using flow matching to create a deterministic mapping from noise to tokens. While DD1 proved one-step AR generation was possible, it suffered from significant quality degradation and high training costs due to its rigid mapping requirements. DD2 addresses these issues by matching underlying probability distributions rather than specific point-to-point mappings.
Methods: Conditional Score Distillation
The core innovation of DD2 is Conditional Score Distillation (CSD). The researchers move away from fitting a direct mapping and instead focus on matching the underlying probability distributions.
- Teacher as a Score Model: The authors reinterpret the discrete probability outputs of a standard AR model as a "conditional score"—essentially the gradient of the log-probability density in the codebook embedding space. This allows them to apply techniques from diffusion distillation to AR models.
- The CSD Loss: They train a "one-step generator" alongside a "conditional guidance network." The guidance network learns to estimate the score of the generator's current output. The CSD loss then aligns this "fake" score with the "true" score provided by the teacher AR model at every token position.
- Ground Truth Score (GTS) Initialization: To stabilize training, the authors introduce a two-stage pipeline. They first use a novel GTS loss to pre-align the networks using the teacher's knowledge before moving into the main distillation phase.
- Architecture: Both the generator and the guidance network use a decoder-only transformer backbone with a lightweight MLP head to handle continuous latent embeddings instead of discrete tokens.
Key Insights
- Distribution Matching > Point Mapping: By matching scores rather than specific input-output pairs, the generator has the freedom to find the most efficient path through the latent space.
- Bridging Discrete and Continuous: Even though AR models output discrete tokens, the process of choosing those tokens can be modeled as a continuous flow in embedding space. This allows the use of Score Distillation on models not originally designed for it.
- Sequential Alignment: The CSD loss is applied progressively. Ensuring the distribution of each token is correct, conditioned on previous ones, allows the model to maintain global coherence in a single forward pass.
Key Results
DD2 represents a massive leap in the feasibility of real-time AR image generation. Evaluated on the ImageNet-256 dataset using VAR and LlamaGen teachers, the results demonstrate superior performance across metrics.
- Massive Speedups: DD2 achieves an 8.0× speedup for VAR and a staggering 238× speedup for LlamaGen (compressing 256 steps into 1).
- High Fidelity: On ImageNet-256, the VAR-d20 model's FID only increased from 3.40 (teacher) to 5.43 (DD2), significantly outperforming DD1's FID of 9.55.
- Error Reduction: DD2 reduces the performance gap between one-step sampling and the original AR model by up to 67% compared to DD1.
- Training Efficiency: Because DD2 doesn't need to simulate the entire sequential sampling process during training, it is up to 12.3× faster to train than previous methods.
Limitations and Future Work
While DD2 significantly narrows the gap, a one-step model still doesn't quite match the absolute quality of a 256-step teacher. Multi-step sampling (2-6 steps) remains a viable middle ground for higher quality. Future work includes exploring compatibility with continuous-space AR models (like MAR) and scaling to large-scale text-to-image tasks.
Summary updated