Abstract
Standard Variational Inference (VI) often fails when training data is "dirty" or contains a high proportion of uninformative noise. This paper introduces a Robust Variational Inference objective that adds a small constant $\epsilon$ to the evidence, effectively allowing the model to "ignore" outliers and noise during training. The result is a Variational Autoencoder (rVAE) that remains stable even when the majority of the training set consists of random noise.
Introduction
In unsupervised learning, we typically assume training data accurately represents the target distribution. However, real-world datasets are often corrupted by noise or outliers. Standard VI, which maximizes the Evidence Lower Bound (ELBO), forces models to explain every data point. When noise is prevalent, this "forced explanation" pulls model parameters away from the true signal, degrading representation quality and generative performance. We propose a robust modification to VI that allows models to focus on the signal while discounting noise.
Methods: The Robust ELBO
The core innovation is a simple modification to the log-evidence objective. Instead of maximizing $\sum \log p(x_i)$, we maximize a robust counterpart: $$\sum \log(\epsilon + p(x_i))$$ where $\epsilon$ acts as a probability floor.
Gradient Masking
Applying Jensen's inequality yields a "robust" lower bound ($L_\epsilon$) optimizable via stochastic gradient methods. Crucially, the gradient of this objective is the standard ELBO gradient scaled by a factor that approaches zero when $p(x_i) \ll \epsilon$. This mechanism effectively "masks" gradients from highly unlikely samples, allowing the model to stop learning from noise it cannot explain.
Dynamic $\epsilon$
To avoid manual tuning of a static floor, we use a dynamic $\epsilon$ tied to the dataset's mean ELBO: $$\epsilon = \alpha \exp\left(rac{\mathcal{L}(X, \theta, \phi)}{|X|}\right)$$ This ensures $\epsilon$ scales appropriately as the model's overall likelihood improves during training.
Experimental Setup
We evaluated the rVAE on MNIST and OMNIGLOT datasets. To simulate "dirty" data, we introduced synthetic noise images (mean-pixel intensity) at various signal-to-noise ratios: 2:1, 1:1, and 1:2. In the most extreme case (1:2), two-thirds of the training data was pure noise.
Results
The rVAE demonstrates significant resilience to heavy noise compared to standard VAEs.
Stability Under Heavy Noise
As shown in the figure below, standard VAE performance degrades sharply as the noise ratio increases. In contrast, the rVAE maintains nearly constant test log-likelihood, effectively filtering out noise even when it constitutes 66% of the training set.
Performance on Clean Data
Interestingly, the rVAE also provides a small performance boost (approx. 0.7 nats) on clean datasets. This suggests the robust objective acts as a regularizer, preventing overfitting to natural outliers or rare samples in the original distribution.
Discussion and Limitations
The $\epsilon$ term provides an automatic outlier detection mechanism. Since noise samples are naturally harder for the model to explain, their influence is suppressed without explicit labeling. However, the model remains sensitive to the scaling parameter $\alpha$, which currently requires empirical tuning. Future work will focus on automatic $\alpha$ selection and testing on real-world datasets with non-synthetic noise.
Conclusion
Robust Variational Inference offers a simple yet powerful way to train generative models on corrupted data. By introducing a probability floor, we enable models to ignore uninformative noise, leading to more stable training and better generalization in both noisy and clean environments.
Summary updated