[Paper Review] On Implicit Regularization in $β$-VAEs
This paper uncovers the implicit regularization in $β$-VAEs by analyzing how the variational family enforces uniqueness and geometry in the decoder. It derives a deterministic autoencoding objective with analytic regularizers based on the Jacobian and Hessian of the decoder, showing strong empirical alignment with $β$-VAE in objective value and sample quality across MNIST and CelebA.
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 $β$-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 $β$-VAE in terms of objective value and sample quality.
Motivation & Objective
- To understand the role of variational inference in regularizing learned generative models in VAEs, particularly in the absence of explicit inductive biases.
- To investigate how the choice of variational family influences the uniqueness and identifiability of learned generative models by restricting solution space.
- To characterize the regularization effect of the variational distribution on the local geometry of the decoder, especially through its covariance structure.
- To derive a deterministic approximation of the $β$-VAE objective that captures its implicit regularizers via Jacobian and Hessian terms.
- To empirically validate the theoretical approximation and demonstrate that the derived objective matches $β$-VAE in both objective value and sample quality.
Proposed method
- Analyzes the impact of the variational family on model uniqueness by identifying transformations that preserve the marginal likelihood but alter the latent representation.
- Derives a relationship between the covariance of the variational posterior $q(z|x)$ and the Jacobian $J_g(z)$ of the decoder, under Gaussian assumptions.
- Uses a second-order Taylor expansion of the $β$-VAE objective to approximate the variational inference term, leading to a deterministic objective with analytic regularizers.
- Introduces a new objective, GRAE ≈, which replaces the stochastic KL term with a deterministic regularizer based on $J_g(z)^\top J_g(z)$ and $\Sigma_{z|x}$.
- Employs a stochastic approximation of the GRAE ≈ objective for training, using a fixed $β/2$ weight for both encoder and decoder regularizers.
- Validates the approximation through comparisons on MNIST and CelebA using objective values, FID scores, and qualitative sample quality.
Experimental results
Research questions
- RQ1How does the choice of variational family influence the uniqueness of solutions in $β$-VAEs?
- RQ2What is the implicit regularizer embedded in the $β$-VAE objective, and how is it related to the geometry of the decoder?
- RQ3Can a deterministic autoencoding objective with analytic regularizers based on the Jacobian and Hessian of the decoder approximate the $β$-VAE objective?
- RQ4How well does the derived deterministic objective (GRAE ≈) match the behavior of $β$-VAE in terms of objective value and sample quality?
- RQ5What is the relationship between the structure of the variational posterior covariance and the local geometry of the decoder Jacobian?
Key findings
- The choice of variational family, particularly its covariance structure, restricts the set of optimal generative models and enforces uniqueness by ruling out non-identifiable transformations.
- For Gaussian variational distributions, the inverse covariance $\Sigma_{z|x}^{-1}$ is closely related to the matrix $J_g(h(x))^\top J_g(h(x))$, with block-diagonal structures in $\Sigma_{z|x}^{-1}$ promoting block-diagonal structures in the decoder Jacobian Gram matrix.
- The derived deterministic objective, GRAE ≈, closely approximates the $β$-VAE objective across a wide range of $β$ values, with objective values remaining highly aligned, especially for small $β$.
- Empirical evaluation on MNIST and CelebA shows that models trained with GRAE ≈ produce samples of similar quality to $β$-VAE, with FID scores remaining close for $β \geq 0.01$.
- The gap between the $β$-VAE objective and its Taylor approximation increases with $β$, but the trend of the objectives remains similar, validating the approximation’s accuracy.
- The analysis generalizes prior results (e.g., Rolinek et al., 2019) by showing that diagonal or block-diagonal variational posteriors induce corresponding structural biases in the decoder Jacobian, even for non-Gaussian observation models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.