Abstract
Variational autoencoders (VAEs) optimize an objective that combines a reconstruction loss (the distortion) and a KL term (the rate). The rate is an upper bound on the mutual information, which is often interpreted as a regularizer that controls the degree of compression. We here examine whether inclusion of the rate also acts as an inductive bias that improves generalization. We perform rate-distortion analyses that control the strength of the rate term, the network capacity, and the difficulty of the generalization problem. Decreasing the strength of the rate paradoxically improves generalization in most settings, and reducing the mutual information typically leads to underfitting. Moreover, we show that generalization continues to improve even after the mutual information saturates, indicating that the gap on the bound (i.e. the KL divergence relative to the inference marginal) affects generalization. This suggests that the standard Gaussian prior is not an inductive bias that typically aids generalization, prompting work to understand what choices of priors improve generalization in VAEs.
Introduction
Variational Autoencoders (VAEs) are fundamental to unsupervised representation learning, balancing the minimization of reconstruction loss (distortion) with a latent representation constraint (the rate). Traditionally, the machine learning community has viewed the rate term—the KL divergence between the approximate posterior and a prior—as a regularizer that prevents overfitting by smoothing the latent space. However, the actual impact of this term on combinatorial generalization—the ability to reconstruct novel combinations of known features—remains poorly understood. This paper investigates whether the rate term truly serves as a beneficial inductive bias or if it primarily acts as a bottleneck that hinders the model's ability to capture underlying data structures.
Experimental Methodology
The authors utilize Rate-Distortion (RD) analysis to evaluate VAE behavior across varying conditions. The study systematically manipulates three primary variables:
- The $\beta$ coefficient: Adjusting the weight of the KL term in the objective function ($ELBO = -Distortion - \beta \cdot Rate$).
- Network Capacity: Comparing shallow (1-layer) versus deep (3-layer) encoder/decoder architectures.
- Generalization Difficulty: Creating specific data splits to test how models handle out-of-distribution samples.
To test generalization, the authors distinguish between "Easy" and "Hard" tasks. In "Easy" tasks, test data is close to training data (random splits). In "Hard" tasks, such as the checkerboard or constant volume splits, the test data is intentionally kept far from the training data in feature space, forcing the model to generalize rather than rely on local interpolation.
Datasets
To ensure robust findings, the study employs several benchmarks, including MNIST, Fashion-MNIST, SmallNORB, and 3dShapes. Central to the analysis is a new procedurally generated dataset called Tetrominoes. This dataset consists of J-shaped blocks where factors of variation—such as color, size, orientation, and X/Y position—can be precisely controlled to create the "Hard" generalization splits mentioned above.
Key Results and Analysis
The Regularization Paradox
Contrary to the expectation that the KL term prevents overfitting, the results reveal a "Regularization Paradox." In high-capacity models, decreasing $\beta$ (reducing regularization) almost always leads to better test-set reconstruction. The classic U-shaped curve, where an intermediate level of regularization is optimal, was only observed in very low-capacity, 1-layer models. In deeper models, the rate term primarily caused underfitting rather than preventing over-complex solutions.
VAEs as Master Memorizers
The study finds that even simple 3-layer VAEs are capable of memorizing training data. Paradoxically, this memorization is most pronounced when the rate term is strong ($\beta=1$). In these cases, the model fails to learn the general structure of the data manifold and instead defaults to "remembering" specific training points to satisfy the reconstruction objective under a heavy bottleneck.
Mutual Information and the Prior
By decomposing the rate into Mutual Information (MI) and Marginal KL (the gap between the aggregate posterior and the prior), the authors found that generalization continues to improve even after MI saturates. This suggests that the standard Gaussian prior itself is a poor inductive bias. Because the Gaussian prior is unimodal and continuous, forcing a complex, potentially multi-modal data distribution to fit it creates "sharp" boundaries in the latent space that degrade generalization performance.
Discussion and Conclusion
The findings suggest that the standard VAE formulation, particularly the use of a simple Gaussian prior, may be counterproductive for combinatorial generalization. For high-capacity models, the best generalization (lowest test distortion) often occurs at $\beta \approx 0.1$, significantly lower than the standard $\beta=1$ setting.
This work serves as a call to move beyond simple fixed priors in VAE research. Future efforts should focus on developing more flexible, learned, or structured priors that can better accommodate the complexities of real-world data manifolds without imposing artificial bottlenecks that hinder the model's ability to generalize to unseen feature combinations.
Summary updated