In the landscape of deep generative modeling, two titans usually dominate the conversation: Autoregressive Models (ARMs), which predict data one element at a time, and Diffusion Models, which gradually denoise a signal. While ARMs provide exact likelihoods, they are notoriously slow to sample from. Diffusion models are flexible but often require hundreds of steps to produce high-quality results.
At ICLR 2022, researchers from Google introduced Autoregressive Diffusion Models (ARDMs), a framework that elegantly bridges these two paradigms. ARDMs generalize order-agnostic autoregressive models and discrete diffusion, offering a simple, powerful way to train models that can generate data in any order and at varying speeds.
TL;DR
ARDMs are a new class of generative models that combine the exact likelihood training of autoregressive models with the flexible, parallel sampling of diffusion models. By removing the need for restrictive "causal masking" in neural architectures, ARDMs achieve state-of-the-art results in lossless compression and efficient image/audio generation.
What Problem Does This Paper Address?
Standard Autoregressive Models (like GPT or PixelCNN) factorize a joint distribution into a sequence of conditionals. This forces two major constraints:
- Fixed Ordering: You must choose a specific order (e.g., left-to-right) to generate data, which isn't always natural for images or audio.
- Sequential Bottleneck: Generating a $D$-dimensional image requires $D$ separate forward passes of the network.
- Architectural Constraints: To ensure the model doesn't "cheat" during training, researchers must use complex causal masking or specific triangular dependencies in the network layers.
Diffusion models solve some of these issues but often struggle with discrete data and require many steps to reach peak performance. ARDMs aim to provide a "best-of-both-worlds" solution: a model that is easy to train, imposes no architectural constraints, and allows for parallelized generation.
Methods
The core innovation of ARDMs lies in how they handle the training objective and the model architecture.
- Order-Agnostic Training: Instead of training on every step of a sequence, ARDMs use a diffusion-style objective. For a given data point, they sample a random timestep $t$ and a random permutation $\sigma$, then train the model to predict the "missing" variables given the "known" ones.
- Masking as Conditioning: Unlike standard ARMs that use causal masking inside the network, ARDMs simply mask the input. The network sees a partially completed data point and predicts the values for the masked locations. This means you can use any off-the-shelf architecture, like a standard U-Net or a non-causal Transformer.
- Parallel Generation via Dynamic Programming: At test time, you don't have to generate one token at a time. The authors use a dynamic programming algorithm to determine an optimal "schedule" for generating multiple tokens in parallel, balancing the generation budget against the loss in likelihood.
- Depth Upscaling: For high-resolution data (like 16-bit audio), predicting the full value at once is hard. ARDMs can "upscale" by generating data in stages—for example, generating the most significant bits first, then refining the details in subsequent passes.
Datasets
The authors evaluated ARDMs across three distinct modalities:
- Text: The text8 dataset (character-level modeling).
- Images: CIFAR-10, a standard benchmark for generative image modeling.
- Audio: SC09 (Speech Commands), consisting of one-second audio clips of spoken digits.
Key Insights and Ideas
- Equivalence to Diffusion: The paper mathematically demonstrates that ARDMs are essentially a continuous-time limit of "absorbing" discrete diffusion models. This unifies two previously separate sub-fields.
- Architecture Freedom: Because the conditioning is handled via input masking, the model is "architecture agnostic." The authors successfully used standard U-Nets for images and WaveNets for audio without needing to modify their internal connectivity.
- Lossless Compression Powerhouse: ARDMs are uniquely suited for lossless compression. Most deep learning compressors use "bits-back coding," which works well for entire datasets but has a high overhead for single images. ARDMs can compress a single image efficiently (2.71 bits per dimension on CIFAR-10) because they provide direct conditional probabilities.
Key Results
- Efficiency: On the text8 dataset, ARDMs achieved performance comparable to state-of-the-art discrete diffusion models (D3PM) but required 4x fewer steps to get there.
- Image Quality: On CIFAR-10, the "Upscale 4" ARDM achieved 2.64 bits per dimension (bpd), outperforming standard discrete diffusion and many specialized autoregressive models.
- Compression: ARDMs significantly outperformed existing methods like IDF++ and HiLLoC for per-image lossless compression, requiring only 2.71 bpd compared to 3.26 bpd for the next best model.
- Audio Refinement: Depth upscaling proved vital for audio; the model improved from 7.93 bpd (single stage) to 6.29 bpd by using bit-level refinement stages.
Limitations and Future Work
Despite the strong results, the authors note a few areas for improvement:
- The Text Gap: While ARDMs beat other order-agnostic methods on text, there is still a performance gap compared to traditional, fixed-order autoregressive Transformers.
- Discrete Focus: The current formulation is designed for discrete variables. While images and audio can be discretized, extending ARDMs to truly continuous spaces remains an open challenge.
- Sampling vs. Likelihood: The paper focuses heavily on log-likelihood (compression). The authors suggest that different architectural choices might be better if the primary goal is sample synthesis quality rather than compression efficiency.
Summary updated