Perceptual Fidelity Aware Mean Squared Error

Wufeng Xue, Xuanqin Mou, Lei Zhang, Xiangchu Feng

Abstract

Mean Squared Error (MSE) is widely used in image processing due to its mathematical convenience, yet it fails to align with human perception of image quality. This paper proposes Perceptual-fidelity Aware Mean Squared Error (PAMSE), a simple modification to MSE that applies a Gaussian smooth filter before calculating Euclidean distance. PAMSE retains the convexity and differentiability of MSE while significantly improving perceptual accuracy, rivaling the performance of the Structural Similarity Index (SSIM) at a fraction of the computational cost.

Introduction

In computer vision, measuring the difference between a distorted image and its original reference is fundamental. The Mean Squared Error (MSE) has long been the standard metric because it is mathematically elegant—convex, differentiable, and easy to optimize. However, MSE operates pixel-by-pixel, ignoring the spatial structures that define human visual perception. Consequently, images with similar MSE values can have vastly different perceived qualities.

While metrics like the Structural Similarity Index (SSIM) better model human perception, they are often non-linear and non-convex, making them difficult to use as loss functions in optimization tasks. This paper addresses the need for a metric that is both perceptually accurate and mathematically "well-behaved."

The PAMSE Framework

The authors derive PAMSE through a two-step evolution of the standard MSE framework.

Structural MSE (SMSE)

Initially, the authors propose Structural MSE (SMSE), which adds a structural error term to the standard MSE. This term employs a linear operator ($S$)—such as a gradient or Laplacian filter—to extract image features: $$SMSE = \text{MSE} + \alpha(\text{Structural Difference})$$

From SMSE to PAMSE

Through mathematical derivation, the authors demonstrate that by selecting specific structural extractors and weights, the complex SMSE formula simplifies into the Perceptual-fidelity Aware Mean Squared Error (PAMSE). PAMSE is defined as the MSE of Gaussian-smoothed images. By passing both the original and distorted images through a Gaussian low-pass filter before comparison, the metric becomes "perceptually aware" while remaining linear and convex.

Framework of SMSE and PAMSE showing the transition from structural error to Gaussian smoothing.

Experimental Setup

The proposed method was evaluated on three major Image Quality Assessment (IQA) benchmark datasets:

  • LIVE: 779 distorted images.
  • CSIQ: 866 distorted images.
  • TID2008: 1,700 distorted images across 17 distortion types.

These datasets provide subjective human scores, enabling a direct correlation between mathematical metrics and actual human perception.

Key Insights and Analysis

A critical finding is that Gaussian smoothing acts as a proxy for the human Contrast Sensitivity Function (CSF). Humans are naturally less sensitive to high-frequency noise; smoothing effectively filters out noise that the human eye tends to ignore.

Furthermore, the study reveals that the best performance in the SMSE framework often involves subtracting a portion of the structural error (negative weights). This counter-intuitive approach helps reduce the impact of high-frequency components that standard MSE typically over-estimates. The plots below illustrate how correlation with human perception peaks in specific parameter regions, including those where the metric remains positive-definite.

Performance of SMSE with different structural extractors ($S_d, S_g, S_l, S_{log}$) across datasets.

Performance Evaluation

PAMSE demonstrates significant improvements over standard MSE and competitive performance against SSIM:

  • Accuracy: On the TID2008 benchmark, PAMSE achieved a Spearman Rank Correlation (SRC) of 0.9162, a substantial leap from MSE’s 0.7718.
  • Consistency: PAMSE outperformed SSIM on the CSIQ and TID2008 datasets and remained close to more complex state-of-the-art metrics like FSIM.
  • Efficiency: PAMSE is highly efficient, running only 2.6 times slower than raw MSE. In contrast, SSIM is 10 times slower, and other high-performing metrics like VIF are significantly more computationally intensive.

Conclusion and Future Work

PAMSE offers a compelling alternative to MSE for full-reference image quality assessment, combining perceptual relevance with mathematical simplicity. Its convexity makes it a promising candidate for use as a loss function in image restoration and coding algorithms.

Future research will focus on evaluating PAMSE's effectiveness in optimization tasks, such as training deep learning models for denoising. Additionally, exploring how the optimal smoothing parameter ($\sigma$) varies with viewing conditions remains an open area for investigation.

Summary updated

BibTeX
@inproceedings{xue2013perceptual,
  author = {Wufeng Xue and Xuanqin Mou and Lei Zhang and Xiangchu Feng},
  title = {{Perceptual Fidelity Aware Mean Squared Error}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.93},
}
Figure