Abstract
Variational Autoencoders (VAEs) are typically trained with a KL-divergence penalty, known as the "rate," which is widely considered a form of regularization that promotes generalization. This paper challenges this assumption through systematic Rate-Distortion (RD) analysis. The authors demonstrate that for high-capacity models, reducing the strength of the rate term paradoxically improves reconstruction on unseen data. These findings suggest that standard Gaussian priors often act as rigid constraints rather than helpful inductive biases, potentially hindering the model's ability to generalize to complex, multi-modal data distributions.
Introduction
Variational Autoencoders (VAEs) optimize an objective function comprising two competing terms: distortion (reconstruction accuracy) and rate (the KL-divergence between the encoder's posterior and a prior distribution). In standard machine learning theory, the rate term, weighted by a hyperparameter $\beta$, is expected to act as a regularizer that prevents overfitting. However, the practical observation that VAEs often underfit or produce blurry outputs led the authors to investigate whether this "regularization" actually aids generalization or merely limits the model's expressive capacity.
Methodology and Datasets
The study employs Rate-Distortion (RD) analysis, tracing performance curves by varying $\beta$ across different model capacities (1-layer vs. 3-layer architectures). To rigorously test generalization, the authors developed the Tetrominoes dataset, which consists of procedurally generated J-shaped blocks with five controllable factors: x-position, y-position, orientation, size, and color.
Beyond standard benchmarks like MNIST and Fashion-MNIST, the authors designed specific data splits to evaluate "out-of-domain" generalization. For instance, a "checkerboard" split forces the model to reconstruct combinations of features it never encountered during training, such as a specific color at a specific orientation.
The High-Capacity Paradox
A key finding is the "High-Capacity Paradox." While low-capacity (1-layer) models exhibit a traditional U-shaped generalization curve where an intermediate $\beta$ is optimal, high-capacity (3-layer) models show consistent improvement in test-set reconstruction as $\beta$ decreases. In these models, generalization is strongest when the rate penalty is weakest.
The authors also observed that high-capacity VAEs tend to "memorize" training data when the rate penalty is high. Forcing a complex data distribution into a simple spherical Gaussian prior creates "holes" in the latent space, leading to poor interpolation and reconstruction of unseen samples. This suggests the prior acts as a rigid constraint rather than a beneficial inductive bias.
Key Results
Experimental results across multiple datasets and architectures (MLPs and CNNs) show that the optimal $\beta$ for test-set performance is frequently less than 1, often around 0.1. This contradicts the standard VAE setting of $\beta = 1$. Even in "Hard" generalization tasks, reducing the rate term consistently improved the model's ability to handle unseen feature combinations.
Decomposing the rate term revealed that as $\beta$ decreases, Mutual Information (MI) between the input and latent code quickly saturates. Further gains in test-set performance primarily come from reducing the "Marginal KL," which measures how much the aggregate latent distribution deviates from the prior.
Conclusion and Future Work
This research highlights a critical need to rethink regularization in VAEs. The standard Gaussian prior may be a poor choice for complex data, acting as a bottleneck that impedes generalization. Future work should focus on developing more flexible, structured priors that can serve as true inductive biases. Furthermore, the authors advocate for the adoption of Rate-Distortion analysis as a standard tool for evaluating generalization in generative models.
Summary updated