$\alpha$-VAEs : Optimising variational inference by learning data-dependent divergence skew

Jacob Deasy, Tom Andrew McIver, Nikola Simidjievski, Pietro LioINNF @ ICML 2021

TL;DR

This paper introduces $\alpha$-VAEs, a novel approach to variational autoencoders that learns a data-dependent "skew" parameter for the divergence term. This allows for more flexible and robust regularization, leading to improved reconstruction and denoising performance compared to standard VAEs and those with fixed divergence skew.

What Problem Does This Paper Address?

Variational Autoencoders (VAEs) are powerful generative models, but their performance often hinges on the choice of the divergence function used to regularize the latent space. The Kullback-Leibler (KL) divergence, commonly used, has limitations like asymmetry and unboundedness. While the skew-geometric Jensen-Shannon divergence ($\textrm{JSG}_{\alpha}$) offers a way to balance forward and reverse KL, finding the optimal skew parameter ($\alpha$) has historically required an expensive grid search, and the optimal value is often fixed throughout training. This paper addresses the challenge of finding an optimal, data-dependent divergence skew that adapts during training, leading to better model performance and avoiding the need for costly hyperparameter tuning.

Methods

The core innovation is the introduction of $\alpha$-VAEs, which learn the skew parameter $\alpha$ as a trainable parameter alongside the VAE's encoder and decoder. This transforms the fixed divergence regularization into a data-dependent and learnable component. The authors leverage the properties of the $\textrm{JSG}_{\alpha}$ divergence, which interpolates between forward and reverse KL. They derive theoretical results showing that the optimal skew $\alpha^*$ is data-dependent and that its optimization is convex, making gradient-based learning feasible. The $\alpha$ parameter is optimized using a separate optimizer from the main VAE parameters to facilitate this 1D analysis.

Datasets

The paper evaluates $\alpha$-VAEs on several standard image datasets:

  • MNIST: 28x28 grayscale images of handwritten digits.
  • Fashion-MNIST: 28x28 grayscale images of clothing items.
  • dSprites: 64x64 grayscale images of 2D shapes with procedurally generated latent factors.
  • Chairs: 64x64 grayscale images of 3D chairs.
  • CelebA: Resampled 64x64x3 color images of celebrity faces.

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Data-Dependent Skew is Crucial: The optimal divergence skew is not static but depends on the data's complexity and the encoder's learned representations. This justifies learning $\alpha$ dynamically.
  • Convex Optimization for Skew: The paper proves that the optimization problem for the skew parameter $\alpha$ is convex, which is a significant theoretical result enabling efficient gradient-based learning.
  • Improved Regularization: By learning the skew, $\alpha$-VAEs can better balance the trade-offs between reconstruction quality and latent space regularization, adapting to different data distributions and noise levels.
  • Robustness to Initialization: The learned skew values consistently converge across a range of initial $\alpha$ values and training seeds, indicating a stable and reliable optimization process.
  • Beyond KL Divergence: $\alpha$-VAEs demonstrate that moving beyond standard KL divergence can unlock significant improvements in VAE performance, particularly in denoising and reconstruction tasks.

Key Results

  • $\alpha$-VAEs consistently outperform standard VAEs (using KL divergence) and VAEs with fixed $\alpha$ values across multiple datasets (MNIST, Fashion-MNIST, dSprites, Chairs, CelebA) in terms of reconstruction error. For instance, on MNIST, $\alpha$-VAEs achieved a reconstruction error of 8.82±0.04, significantly lower than vanilla VAEs (10.67±0.27) and fixed $\alpha=0.5$ VAEs (11.24±0.05).
  • The method shows improved denoising capabilities, maintaining lower reconstruction loss on noisy images compared to other divergence regularizers.
  • Learned skew values were shown to converge consistently across different initializations and training seeds, demonstrating the robustness of the approach.
  • Rate-distortion curves indicate that $\alpha$-VAEs achieve a better trade-off between rate (latent space complexity) and distortion (reconstruction error) compared to KL-based VAEs.

Limitations and Future Work

  • Computational Cost: While avoiding grid search, training $\alpha$-VAEs still involves learning an additional parameter, which might add a slight computational overhead compared to a vanilla VAE with a fixed divergence.
  • Theoretical Analysis of $\alpha$: While the paper proves convexity for the optimization of $\alpha$, a deeper theoretical understanding of why specific $\alpha$ values emerge for different data complexities could be explored further.
  • Generalization to Other Divergences: The paper focuses on the $\textrm{JSG}_{\alpha}$ family. Future work could explore learning data-dependent skew for other divergence measures.
  • Applications: The authors suggest $\alpha$-VAEs are a practical choice for various tasks, implying future work could explore their application in more complex generative modeling scenarios, such as conditional generation or anomaly detection.

Summary updated

BibTeX
@inproceedings{deasy2021alpha,
  author = {Jacob Deasy and Tom Andrew McIver and Nikola Simidjievski and Pietro Lio},
  title = {{$\textbackslash\{\}alpha$-VAEs : Optimising variational inference by learning data-dependent divergence skew}},
  booktitle = {INNF @ ICML},
  year = {2021},
  url = {https://openreview.net/forum?id=av2hdS1rLI},
}
Figure