Introduction
Generative modeling of discrete data, such as digital images or audio, presents a unique challenge for continuous density models like Normalizing Flows and Variational Autoencoders (VAEs). These models are designed to operate on continuous spaces, and directly fitting them to discrete values often leads to "degenerate" solutions. In such cases, the model "cheats" by placing infinite density spikes (Dirac deltas) on the discrete data points, resulting in an infinite likelihood that fails to capture the true underlying distribution. This paper addresses this fundamental issue by refining the process of dequantization.
The Dequantization Problem
Dequantization involves adding a small amount of noise to discrete data to "smear" it into a continuous space, allowing for stable likelihood training. While uniform noise is a common baseline, it is often too simplistic to allow the continuous model to accurately represent the discrete data's structure, especially at the boundaries between discrete bins.
The authors frame dequantization as a latent variable problem where the observed discrete data $x$ is a quantized version of a continuous latent variable $v$. By learning the distribution of this noise, the model can better bridge the gap between discrete observations and continuous density estimation.
Proposed Methods: Objectives and ARD
The paper introduces three key innovations to improve the dequantization process:
- Importance-Weighted (IW) Dequantization: Inspired by Importance Weighted Autoencoders (IWAE), this method utilizes multiple noise samples to create a tighter lower bound on the log-likelihood. This is particularly effective when the noise distribution is simple.
- Rényi Dequantization: A computationally efficient alternative based on variational Rényi bounds. The authors specifically utilize the "VR-max" approximation, which focuses on the sample with the highest weight, speeding up training compared to standard importance weighting.
- Autoregressive Dequantization (ARD): The authors propose using a highly flexible autoregressive flow to model the noise distribution $q(v|x)$. While autoregressive models are typically slow to sample from due to their sequential nature, ARD remains efficient in this context because it only requires generating noise during training and evaluation, avoiding the need for slow flow inversion.
Key Insights: The Compensation Effect and Bit-Depth
A major finding of the research is the compensation effect, where a flexible dequantization distribution can offset the limitations of a simpler density model. For instance, if the main generative model is a simple Gaussian, a complex ARD noise distribution can shape the data so that it fits the Gaussian perfectly.
As demonstrated in the 2D checkerboard task, ARD allows the model to capture sharp boundaries that uniform noise would otherwise blur. Furthermore, the choice of objective (IW or Rényi) is most impactful when using simple noise; with flexible ARD noise, the model becomes more robust to the specific training objective. The authors also noted that dequantization is most critical for low bit-depth data (e.g., 5-bit images), where the noise range is large relative to the data range.
Results and Impact
The proposed framework achieved state-of-the-art performance on CIFAR-10 with a negative log-likelihood of 3.06 bits per dimension (bpd). This result was particularly significant as it was achieved by a model that allows for efficient, parallel sampling, unlike traditional sequential autoregressive models. On binarized MNIST, switching to Importance-Weighted dequantization with simple uniform noise improved scores from 0.162 bpd to 0.159 bpd, demonstrating the value of the new objectives.
Conclusion
By treating dequantization as a learnable latent variable process, this work provides a unified framework that significantly enhances the ability of continuous models to handle discrete data. The introduction of ARD and advanced variational objectives sets a new standard for efficient and accurate discrete data modeling, particularly for high-dimensional datasets like images.
Summary updated