Skip to main content
QUICK REVIEW

[Paper Review] Towards a Theoretical Understanding of the Robustness of Variational Autoencoders

Alexander Camuto, Matthew Willetts|arXiv (Cornell University)|Jul 14, 2020
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

This paper introduces $r$-robustness, a novel theoretical framework for quantifying Variational Autoencoder (VAE) robustness to adversarial perturbations. It derives a margin $R^{r}_{/mathcal{X}}(\mathbf{x})$ guaranteeing reconstruction similarity within a bounded input region, showing that larger encoder variance and smaller Jacobian norms enhance robustness—mechanisms naturally promoted by disentanglement methods like $β$-VAE.

ABSTRACT

We make inroads into understanding the robustness of Variational Autoencoders (VAEs) to adversarial attacks and other input perturbations. While previous work has developed algorithmic approaches to attacking and defending VAEs, there remains a lack of formalization for what it means for a VAE to be robust. To address this, we develop a novel criterion for robustness in probabilistic models: $r$-robustness. We then use this to construct the first theoretical results for the robustness of VAEs, deriving margins in the input space for which we can provide guarantees about the resulting reconstruction. Informally, we are able to define a region within which any perturbation will produce a reconstruction that is similar to the original reconstruction. To support our analysis, we show that VAEs trained using disentangling methods not only score well under our robustness metrics, but that the reasons for this can be interpreted through our theoretical results.

Motivation & Objective

  • To formalize what it means for a VAE to be robust, as no theoretical framework currently exists.
  • To develop a new robustness metric, $r$-robustness, tailored for probabilistic generative models.
  • To derive a theoretical input-space margin $R^{r}_{χ}(\mathbf{x})$ that guarantees reconstruction similarity under perturbations.
  • To identify architectural and training factors—specifically encoder variance and Jacobian norm—that contribute to robustness.
  • To demonstrate how existing disentanglement methods enhance robustness by modifying these factors.

Proposed method

  • Proposes $r$-robustness as a probabilistic robustness criterion: a VAE is $r$-robust if the reconstruction of a perturbed input is more likely to lie within an $r$-ball around the original reconstruction.
  • Defines a margin $R^{r}_{χ}(\mathbf{x})$ such that all perturbations within this margin preserve $r$-robustness, enabling certifiable robustness guarantees.
  • Derives a theoretical lower bound for $R^{r}_{χ}(\mathbf{x})$ in terms of encoder variance and Jacobian norm, linking model properties to robustness.
  • Uses calculus of variations to derive the optimal posterior for $β$-VAEs, showing that increasing $β$ increases encoder variance and reduces Jacobian norm.
  • Empirically validates that higher $β$ values lead to larger $R^{r}_{χ}(\mathbf{x})$, improved likelihood under attack, and reduced sensitivity to noise.
  • Connects disentanglement methods to robustness by showing they naturally increase encoder variance and reduce Jacobian norm, thereby enhancing $R^{r}_{χ}(\mathbf{x})$.

Experimental results

Research questions

  • RQ1What does it mean for a VAE to be robust in a formal, theoretical sense?
  • RQ2Can we define a certifiable margin in the input space within which VAE reconstructions remain stable under perturbations?
  • RQ3How do encoder variance and Jacobian norm influence the robustness of VAEs?
  • RQ4To what extent do disentanglement methods like $β$-VAE enhance VAE robustness through these factors?
  • RQ5Can we derive a theoretical bound for the robustness margin $R^{r}_{χ}(\mathbf{x})$ based on model architecture and training objectives?

Key findings

  • The theoretical bound for $R^{r}_{χ}(\mathbf{x})$ increases with encoder variance and decreases with Jacobian norm, providing a formal link between model properties and robustness.
  • Empirically, increasing $β$ in $β$-VAEs leads to larger $R^{r}_{χ}(\mathbf{x})$ across the dataset, confirming the theoretical predictions.
  • Larger $R^{r}_{χ}(\mathbf{x})$ values correlate with higher likelihoods of original inputs under adversarial attack, indicating stronger robustness.
  • The distribution of $R^{r}_{χ}(\mathbf{x})$ is well-behaved with low variance and skew, suggesting reliable estimation in practice.
  • Disentanglement methods such as $β$-VAE enhance robustness by simultaneously increasing encoder variance and reducing Jacobian norm.
  • The metric $R^{r}_{χ}(\mathbf{x})$ can be averaged over the data distribution to yield a global robustness score for a VAE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.