Abstract
Standard image reconstruction models often produce blurry results due to the use of pixel-wise loss functions like Mean Squared Error (MSE), which fail to account for human visual perception. This paper explores the use of the Multi-Scale Structural Similarity Index (MS-SSIM) as a differentiable loss function. By training models—including autoencoders, Variational Autoencoders (VAEs), and super-resolution networks—to optimize for perceptual similarity rather than pixel-wise distance, the authors demonstrate significant improvements in image sharpness, artifact reduction, and the quality of learned internal representations.
Introduction
In the field of image synthesis and reconstruction, the choice of objective function is critical. Traditionally, Mean Squared Error (MSE) or Mean Absolute Error (MAE) have been the default choices due to their mathematical simplicity. However, these metrics assume that the importance of a pixel is independent of its neighbors, a premise that contradicts human visual processing. MSE tends to penalize large outliers heavily, leading models to predict the "average" of possible outcomes, which manifests as blurriness.
This research addresses the "blurriness problem" by replacing standard pixel-wise losses with a perceptual metric: the Multi-Scale Structural Similarity Index (MS-SSIM). MS-SSIM evaluates images based on luminance, contrast, and structure across multiple scales, better aligning with human judgment of image quality.
Methods
The authors propose a framework where MS-SSIM is used as a differentiable loss function. This allows it to be integrated into standard deep learning pipelines using gradient descent.
Expected-Loss VAE (EL-VAE)
A key contribution is the Expected-Loss Variational Autoencoder (EL-VAE). Standard VAEs are derived from a probabilistic framework that typically assumes a Gaussian likelihood, which is equivalent to MSE. The EL-VAE generalizes this framework, allowing for the use of arbitrary, non-probabilistic loss functions like MS-SSIM while preserving the generative capabilities of the VAE.
Experimental Setup
The approach was tested across three tasks: deterministic autoencoders (CIFAR-10, STL-10), generative modeling (EL-VAE on STL-10), and super-resolution (SRCNN on ImageNet and BSD200).
Results and Discussion
The shift from pixel-wise to structural optimization yielded both qualitative and quantitative improvements.
Human Perceptual Validation
To validate the effectiveness of MS-SSIM, the authors conducted extensive human subject testing via Amazon Mechanical Turk. The results were overwhelming: in head-to-head comparisons, subjects preferred MS-SSIM reconstructions over MSE by a nearly 7:1 ratio. In ranking experiments for generative models, MS-SSIM was ranked as the best reconstruction in 992 out of 1000 cases.
Feature Learning and Classification
Beyond aesthetics, the choice of loss function significantly impacted the utility of learned features. By forcing the network to prioritize structure and contrast, the encoder learned more meaningful representations. On the Extended Yale B Faces dataset, the error rate for face identification dropped from 5.6% (MSE) to 3.53% (MS-SSIM), suggesting that perceptual losses encourage the discovery of features like edges and contours.
Conclusion
This work demonstrates that perceptual metrics like MS-SSIM are superior to traditional pixel-wise losses in producing human-centric results. While MS-SSIM is more computationally intensive and currently focused on grayscale images, its success suggests a path forward for more sophisticated "learned" perceptual metrics that could further bridge the gap between machine vision and human perception.
Summary updated