On Implicit Regularization in β-VAEs.

Abhishek Kumar, Ben PoolearXiv 2020

Abstract

While the impact of variational inference (VI) on posterior inference in a fixed generative model is well-characterized, its role in regularizing a learned generative model when used in variational autoencoders (VAEs) is poorly understood. We study the regularizing effects of variational distributions on learning in generative models from two perspectives. First, we analyze the role that the choice of variational family plays in imparting uniqueness to the learned model by restricting the set of optimal generative models. Second, we study the regularization effect of the variational family on the local geometry of the decoding model. This analysis uncovers the regularizer implicit in the $\beta$-VAE objective, and leads to an approximation consisting of a deterministic autoencoding objective plus analytic regularizers that depend on the Hessian or Jacobian of the decoding model, unifying VAEs with recent heuristics proposed for training regularized autoencoders. We empirically verify these findings, observing that the proposed deterministic objective exhibits similar behavior to the $\beta$-VAE in terms of objective value and sample quality.

Introduction

Variational Autoencoders (VAEs) are a staple of modern generative modeling, prized for their ability to learn "disentangled" representations. While the success of $\beta$-VAEs is often attributed to the information bottleneck created by the KL-divergence term, the theoretical mechanisms behind how they favor specific latent orientations remain under-explored. This paper investigates the implicit regularization provided by the choice of variational family, demonstrating how it breaks rotational symmetry and shapes the geometry of the learned decoder.

Breaking Latent Symmetry

A fundamental challenge in unsupervised learning is identifiability. In a standard Maximum Likelihood Estimation (MLE) framework, the latent space is rotationally invariant; rotating the latents does not change the data likelihood. However, $\beta$-VAEs often recover specific, interpretable axes.

The authors prove that restricting the variational family—for instance, to diagonal Gaussian distributions—breaks this symmetry. Because a diagonal distribution cannot represent a rotated version of the true posterior with equal fidelity, the optimization process is forced to "pin down" a unique orientation that aligns with the constraints of the variational family.

Rotation angle of inferred latents vs ELBO for full and diagonal covariance families.

As shown in Figure 1, while a full covariance matrix allows for a wide range of rotation angles with similar ELBO values, the diagonal constraint restricts the model to specific orientations, effectively regularizing the latent space toward a unique solution.

The Deterministic Perspective: GRAE

To further understand the implicit regularizer, the authors perform a second-order Taylor expansion of the $\beta$-VAE objective. This derivation results in the Gaussian Regularized AutoEncoder (GRAE), a deterministic objective that replaces stochastic sampling with analytic penalties.

The GRAE objective consists of a standard reconstruction term plus a geometric regularizer that depends on the Jacobian and Hessian of the decoder. Specifically, it encourages the decoder's Jacobian to have orthogonal columns, aligning the model's local geometry with the factorized prior. This reveals that the "noise" in a VAE acts as a proxy for measuring the local curvature of the decoding manifold.

Empirical Results

The authors validated their theoretical findings on MNIST and CelebA datasets. A key result is the close alignment between the standard $\beta$-VAE objective and the derived GRAE objective across training.

Comparison of test objective values for $\beta$-VAE and GRAE over training iterations.

Figure 4 demonstrates that the GRAE objective faithfully tracks the $\beta$-VAE objective throughout training. Furthermore, models trained with a stochastic approximation of GRAE (GRAE$\approx$) achieved sample quality (measured by FID scores) comparable to standard $\beta$-VAEs, confirming that the deterministic geometric penalties capture the essence of VAE regularization.

Conclusion

This work provides a new lens through which to view VAEs, shifting the focus from purely probabilistic inference to geometric regularization. By showing that the choice of variational family implicitly enforces Jacobian orthogonality, the authors unify VAEs with regularized autoencoders and provide a theoretical foundation for the disentanglement observed in practice. Future work may explore the computational efficiency of these analytic regularizers in larger-scale architectures.

Summary updated

BibTeX
@misc{kumar2020implicit,
  author = {Abhishek Kumar and Ben Poole},
  title = {{On Implicit Regularization in β-VAEs.}},
  year = {2020},
  eprint = {2002.00041},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.00041},
}
Figure