Abstract
Variational Autoencoders (VAEs) are powerful generative models but remain highly susceptible to adversarial attacks, where small input perturbations lead to significant reconstruction errors. This paper introduces a novel framework for training VAEs with certified robustness. By mathematically bounding the Lipschitz constants of the encoder and decoder networks, the authors provide a priori guarantees that reconstructions remain stable within defined input noise margins. The approach utilizes Björck Orthonormalization and GroupSort activations to enforce these constraints. Evaluations on MNIST and Fashion-MNIST show that Lipschitz-VAEs significantly outperform standard models in maintaining reconstruction integrity under adversarial conditions.
Introduction
Deep learning models, including generative ones like VAEs, are notoriously fragile. A subtle, human-imperceptible "adversarial" tweak to an input image can cause a VAE to produce a completely different target image or nonsensical noise. While empirical defenses like adversarial training exist, they often fail against new, more sophisticated attacks. This work addresses the lack of formal guarantees by proposing a method to bake security directly into the generative architecture.
Methodology
The core of the proposed solution is the enforcement of Lipschitz continuity. A function is $M$-Lipschitz if the change in its output is bounded by $M$ times the change in its input.
Theoretical Robustness Bounds
The authors derive mathematical bounds for $(r, \epsilon)$-robustness. By knowing the Lipschitz constants of the encoder and decoder, one can calculate a "margin." Any input perturbation within this margin is guaranteed to keep the reconstruction within a radius $r$ of the original with a probability of at least $\epsilon$.
Lipschitz-VAEs
To implement these constraints, the authors introduce two key components:
- Björck Orthonormalization: An iterative process that maintains orthonormal weight matrices, ensuring linear layers have a Lipschitz constant of 1.
- GroupSort Activations: Unlike ReLU, GroupSort is gradient norm-preserving, allowing the network to remain expressive while strictly adhering to Lipschitz bounds.
Practitioners can specify a desired robustness level before training, allowing for "robustness by design."
Experimental Setup
The framework was evaluated on two standard benchmarks:
- MNIST: Handwritten digits.
- Fashion-MNIST: Complex clothing item images.
Key Results and Discussion
The primary finding is that robustness can be an intrinsic property of the VAE architecture rather than a post-hoc patch.
Performance Under Attack
Against "Maximum Damage" attacks, Lipschitz-VAEs demonstrated superior stability. While standard VAEs often produced unrelated digits or noise when perturbed, the robust models maintained recognizable reconstructions.
The Smoothness Trade-off
There is an inherent tension between reconstruction fidelity and robustness. Lowering the Lipschitz constant $M$ increases the robustness margin but can decrease reconstruction likelihood, as the model becomes too "smooth" to capture fine details. Additionally, Lipschitz constraints tend to expand the latent space, a phenomenon mitigated by using a $\beta$-VAE framework to regularize the representation.
Conclusion
This work provides a rigorous foundation for building secure generative models. While the theoretical bounds can be conservative and the training involves additional computational overhead (e.g., Björck Orthonormalization), the ability to certify robustness is a significant step forward. Future research will focus on tightening these bounds and scaling the approach to high-resolution datasets like ImageNet.
Summary updated