[Paper Review] Understanding SSIM
This paper critically analyzes the Structural Similarity Index (SSIM), revealing nonintuitive, undefined, and perceptually incongruent behaviors, and argues for careful use or replacement in image quality assessment and deep learning losses.
The use of the structural similarity index (SSIM) is widespread. For almost two decades, it has played a major role in image quality assessment in many different research disciplines. Clearly, its merits are indisputable in the research community. However, little deep scrutiny of this index has been performed. Contrary to popular belief, there are some interesting properties of SSIM that merit such scrutiny. In this paper, we analyze the mathematical factors of SSIM and show that it can generate results, in both synthetic and realistic use cases, that are unexpected, sometimes undefined, and nonintuitive. As a consequence, assessing image quality based on SSIM can lead to incorrect conclusions and using SSIM as a loss function for deep learning can guide neural network training in the wrong direction.
Motivation & Objective
- Review the mathematical formulation of SSIM and its common simplifications.
- Investigate the perceptual basis and limitations of SSIM components (luminance, contrast, structure).
- Identify scenarios where SSIM yields counterintuitive or undefined results.
- Evaluate SSIM performance on grayscale and color images, and across different resolutions and distortions.
- Discuss implications for SSIM's use as a quality metric and as a learning objective in vision tasks.
Proposed method
- Present the original SSIM equations and the simplified MSSIM form.
- Derive minima for the SSIM components to show their ranges and potential nonintuitive behavior.
- Examine the behavior of SSIM with constant grayscale, color images, and gradient/mirrored cases across resolutions.
- Analyze the possibility of undefined results when negative values are raised to non-integer powers in SSIM components.
- Compare SSIM behavior to human perception using synthetic and real image examples.
- Discuss implications for SSIM as a metric and a loss function in rendering and vision systems.
Experimental results
Research questions
- RQ1What are the mathematical properties and ranges of the SSIM components (l, c, s) under common parameter choices?
- RQ2Can SSIM produce counterintuitive or undefined results for real or synthetic image pairs, and how does this relate to perceptual similarity?
- RQ3How does SSIM behave with color versus grayscale inputs and with various distortions (noise, dithering, edges, lighting)?
- RQ4To what extent is SSIM aligned with human visual perception, and what are the implications for using SSIM in deep learning losses?
- RQ5What alternatives or cautions should be adopted when using SSIM in rendering quality assessment and machine learning pipelines?
Key findings
- SSIM can yield nonintuitive and even undefined results under certain inputs and parameter settings.
- The l component can be highly sensitive to luminance changes, potentially misaligning with human perception across brightness levels.
- Color images processed via grayscale conversion can produce misleading SSIM values, suggesting color-aware metrics are preferable.
- Edges and gradients can cause high SSIM values inferences that do not match perceptual differences, and negative s values can lead to complex results when raised to non-integer exponents.
- SSIM minima for l, c, s demonstrate distinct, scenario-dependent limitations, challenging claims of a strictly perception-based index.
- SSIM’s relationship to MSE/PSNR is nuanced, with evidence of mathematical transforms connecting SSIM* to MSE* under certain conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.