Skip to main content
QUICK REVIEW

[Paper Review] The Level Weighted Structural Similarity Loss: A Step Away from the MSE

Yingjing Lu|arXiv (Cornell University)|Apr 30, 2019
Generative Adversarial Networks and Image SynthesisComputer Science4 references3 citations
TL;DR

This paper proposes Level Weighted Structural Similarity Loss (LWSSIM), a novel loss function for convolutional autoencoders that improves image reconstruction by replacing MSE and standard SSIM. By combining luminance, contrast, and structure measures additively across multiple filter scales, LWSSIM better captures spatial dependencies and preserves color vibrancy, outperforming both MSE and SSIM in structural similarity and reconstruction quality on Celeb-A and other benchmarks.

ABSTRACT

The Mean Square Error (MSE) has shown its strength when applied in deep generative models such as Auto-Encoders to model reconstruction loss. However, in image domain especially, the limitation of MSE is obvious: it assumes pixel independence and ignores spatial relationships of samples. This contradicts most architectures of Auto-Encoders which use convolutional layers to extract spatial dependent features. We base on the structural similarity metric (SSIM) and propose a novel level weighted structural similarity (LWSSIM) loss for convolutional Auto-Encoders. Experiments on common datasets on various Auto-Encoder variants show that our loss is able to outperform the MSE loss and the Vanilla SSIM loss. We also provide reasons why our model is able to succeed in cases where the standard SSIM loss fails.

Motivation & Objective

  • To address the limitations of MSE in autoencoders, which assumes pixel-wise independence and fails to model spatial dependencies in convolutional feature learning.
  • To overcome the shortcomings of standard SSIM as a reconstruction loss, particularly its insensitivity to luminance and poor performance on RGB images.
  • To develop a loss function that better aligns with human perception by integrating structural, contrast, and luminance information in a non-independent, compensatory manner.
  • To improve image reconstruction quality by incorporating multi-scale feature extraction through varying filter sizes in the SSIM computation.
  • To provide a theoretically grounded, differentiable loss that enhances both structural similarity and absolute pixel accuracy in generative models.

Proposed method

  • Replace the multiplicative combination of SSIM components (luminance, contrast, structure) with an additive formulation to allow compensation between factors, especially between mean and variance.
  • Apply sliding window operations with multiple filter sizes (ξ_i × ξ_i) across the image to capture multi-level spatial features.
  • Compute the level-weighted SSIM score at each scale using the additive formulation: LWSSIM = l^α + c^β · s^γ.
  • Aggregate scores across I levels using learnable or fixed weights λ_i to form a weighted average loss.
  • Integrate the LWSSIM loss into standard autoencoder architectures, including VAE and MMD-AE, replacing the standard MSE loss.
  • Use the resulting loss in end-to-end training to optimize encoder and decoder parameters for improved reconstruction.

Experimental results

Research questions

  • RQ1How does replacing the multiplicative SSIM with an additive formulation improve reconstruction quality in autoencoders?
  • RQ2Why does standard SSIM fail to preserve color vibrancy in RGB images during training with reconstruction loss?
  • RQ3Can multi-scale filtering in the SSIM computation enhance feature representation and reduce over-smoothing in generated images?
  • RQ4Does the proposed LWSSIM loss achieve better trade-offs between structural similarity and pixel-level accuracy than MSE or SSIM?
  • RQ5How does the additive combination of luminance, contrast, and structure components enable better compensation for luminance variance issues in image reconstruction?

Key findings

  • On the Celeb-A 64 dataset, the MMD-AE trained with LWSSIM achieved a structural similarity score of 0.88, surpassing both MSE (0.81) and SSIM (0.86).
  • The LWSSIM-trained model achieved a lower MSE (0.0033) than the SSIM-trained model (0.0062), indicating improved pixel-level reconstruction accuracy.
  • Visual comparisons show that LWSSIM generates sharper images with better color fidelity compared to SSIM, which produces overly desaturated outputs due to luminance insensitivity.
  • In VAEs, LWSSIM achieved a higher SSIM (0.59) than MSE (0.53) while reducing MSE from 0.0235 to 0.0206, demonstrating improved perceptual quality.
  • The ablation shows that the additive formulation of SSIM components enables better compensation for luminance variance, solving a key limitation of standard SSIM as a loss function.
  • The multi-scale filtering strategy effectively captures local and global structural patterns, reducing over-smoothing and improving detail preservation in generated images.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.