Abstract
This paper is the first work to propose a network to predict a structured uncertainty distribution for a synthesized image. Previous approaches have been mostly limited to predicting diagonal covariance matrices. Our novel model learns to predict a full Gaussian covariance matrix for each reconstruction, which permits efficient sampling and likelihood evaluation. We demonstrate that our model can accurately reconstruct ground truth correlated residual distributions for synthetic datasets and generate plausible high frequency samples for real face images. We also illustrate the use of these predicted covariances for structure-preserving image denoising.
The Problem: Blurriness in Generative Models
In the world of deep generative models, there is a persistent "blurriness" problem. Whether using a Variational Autoencoder (VAE) or a standard Autoencoder, reconstructed images often appear scrubbed of fine details. This research argues that the culprit isn't just model architecture—it’s the way we define "uncertainty."
Standard generative models assume that pixel-wise errors are independent (white noise), which forces them to produce overly smooth, blurry images. If a model misses a sharp edge or a strand of hair, the error is spatially correlated—the "mistake" at one pixel is highly related to the "mistake" at its neighbor. By assuming pixels are independent (a diagonal Gaussian likelihood), standard models are forced to average out these structured details.
Proposed Method: Structured Gaussian Covariance
The core challenge of predicting a full covariance matrix $\Sigma$ for an image is scale. For a $64 \times 64$ image, a full covariance matrix has over 8 million unique parameters. To make this tractable, the authors introduced several innovations:
- Precision over Covariance: Instead of predicting $\Sigma$, the network predicts the precision matrix $\Lambda = \Sigma^{-1}$, simplifying log-likelihood calculations.
- Sparse Cholesky Decomposition: The precision matrix is represented as $\Lambda = LL^T$, where $L$ is a lower triangular matrix. A sparsity pattern is imposed on $L$, only allowing non-zero values for pixels within a local spatial neighborhood (e.g., a $5 \times 5$ patch).
- The Covariance Network: A secondary network is attached to a trained generative model. This network takes the latent representation (or the reconstructed mean) and outputs the non-zero entries of the sparse Cholesky factor $L$.
Key Results and Visual Realism
The model was validated on the CelebA dataset of face images. By modeling the structure of the residuals, the network can "hallucinate" realistic high-frequency details like skin wrinkles, teeth, and hair texture that are typically lost in standard VAEs.
Quantitative Performance
- Better Likelihoods: On CelebA, the structured VAE achieved a significantly better Negative Log-Likelihood (NLL) of -8386 compared to -6079 for a standard diagonal VAE.
- Superior Denoising: The predicted covariance matrices define a "manifold" of valid face residuals. By projecting a noisy image onto the eigenvectors of the predicted $\Sigma$, the model can strip away white noise while preserving facial features. The model achieved a Mean Squared Error (MSE) of $2.99 \times 10^{-3}$, nearly doubling the performance of a standard Denoising Autoencoder ($5.13 \times 10^{-3}$).
Conclusion
By treating reconstruction error as a signal with its own structure rather than simple noise, Structured Uncertainty Prediction Networks provide a path toward sharper, more realistic generative modeling. While the model currently relies on Gaussian assumptions and fixed sparsity patterns, it demonstrates that local pixel correlations are sufficient to represent complex textures and edges.
Summary updated