Abstract
Variational Auto-Encoders (VAEs) often suffer from "blurriness," producing hazy reconstructions that fail to capture the fine-grained details of the data manifold. While this is frequently attributed to limited network capacity or latent space regularization, this paper identifies the observation model's fixed variance ($\sigma$) as a primary culprit. We introduce the L-VAE framework, which treats model sharpness as a learnable parameter. Our results demonstrate that learning $\sigma$ allows the model to act as a self-tuning simulated annealing schedule, leading to near-perfect reconstructions and significantly higher Evidence Lower Bounds (ELBO).
Introduction: The Blurriness Problem
The hallmark of a struggling VAE is the generation of "blurry" samples—images that appear as averaged, low-frequency versions of the training data. Conventional wisdom suggests that increasing neural network depth or adjusting the KL-divergence weight might solve this. However, Berger and Sebag argue that the issue often lies in the observation model.
In a standard VAE, the decoder outputs the parameters of a distribution (typically Gaussian). Most implementations fix the variance ($\sigma$) of this distribution, often implicitly by using Mean Squared Error (MSE) loss, which corresponds to $\sigma^2 = 0.5$. If this fixed "sharpness" is mismatched with the actual scale of the data manifold, the model becomes mathematically incapable of identifying the underlying structure, regardless of its architectural complexity.
Methodology: Learning Model Sharpness (L-VAE)
The authors propose the L-VAE framework, where the model autonomously learns the optimal sharpness. Two variants are explored:
- LS-VAE (Scalar): Learns a single scalar $\sigma$ for the entire dataset.
- LV-VAE (Vectorial): Learns a vectorial $\sigma(z)$ that can vary per pixel and per sample, allowing the decoder to adjust sharpness locally.
The theoretical foundation rests on Theorem 1, which proves that if the assumed noise ($\sigma$) is too large relative to the features of the data manifold (e.g., the radius of a hyper-sphere), the VAE will fail to capture the manifold, instead "smoothing" it into a generic blob.
Experimental Results
The framework was validated on an artificial 2D "wiggly" manifold, MNIST, and CelebA.
Visualizing the Sharpness Effect
On the artificial 2D dataset, the impact of $\sigma$ is stark. When $\sigma$ is fixed too high (e.g., $\sigma=0.3$), the model produces a smoothed-out approximation. When $\sigma$ is too low (e.g., $\sigma=0.01$), the optimization often fails to find the manifold. Learned $\sigma$ values, however, allow the model to start "blurry" and gradually "sharpen" as it converges.
Quantitative Performance
Quantitatively, the L-VAE variants significantly outperform fixed-$\sigma$ models. As shown in the table below, both LS-VAE and LV-VAE achieve substantially higher ELBO values compared to any fixed-$\sigma$ baseline.
Key Insights
- The MSE Trap: Standard MSE loss assumes a fixed noise level that is often too high for normalized pixel data, forcing the model to ignore fine details.
- Simulated Annealing for Free: Learning $\sigma$ creates a natural optimization schedule. High initial $\sigma$ values smooth the energy landscape, helping the model find the general manifold shape, while subsequent sharpening allows for fine-grained detail capture.
- Denoising vs. Encoding: A fixed, large $\sigma$ forces the VAE to act as a denoiser, discarding details as noise. A learned, small $\sigma$ compels the latent space to actually encode those details.
Conclusion and Future Work
Learning the observation model's sharpness resolves a fundamental identifiability issue in VAEs, leading to "quasi pixel-perfect" reconstructions. However, this increased detail puts higher pressure on the latent space. Future work will focus on more expressive latent structures (e.g., non-Euclidean or hierarchical) and full-rank covariance matrices to better model local manifold tangents.
Summary updated