Skip to main content
QUICK REVIEW

[Paper Review] Loss Functions for Neural Networks for Image Processing

Hang Zhao, Orazio Gallo|arXiv (Cornell University)|Nov 28, 2015
Advanced Image Processing TechniquesComputer Science26 references222 citations
TL;DR

This paper proposes a novel differentiable loss function, Mix, for neural networks in image restoration tasks, combining the benefits of L1 and MS-SSIM losses. It demonstrates that using perceptually motivated losses significantly improves image quality over standard ℓ₂, even with fixed architectures, with Mix outperforming ℓ₂, ℓ₁, SSIM, and MS-SSIM across super-resolution, JPEG artifact removal, and joint denoising/demosaicking tasks.

ABSTRACT

Neural networks are becoming central in several areas of computer vision and image processing and different architectures have been proposed to solve specific problems. The impact of the loss layer of neural networks, however, has not received much attention in the context of image processing: the default and virtually only choice is L2. In this paper, we bring attention to alternative choices for image restoration. In particular, we show the importance of perceptually-motivated losses when the resulting image is to be evaluated by a human observer. We compare the performance of several losses, and propose a novel, differentiable error function. We show that the quality of the results improves significantly with better loss functions, even when the network architecture is left unchanged.

Motivation & Objective

  • Address the lack of attention given to loss functions in image restoration neural networks, despite their critical role in training.
  • Investigate alternatives to the default ℓ₂ loss, which poorly correlates with human perception of image quality.
  • Evaluate the impact of perceptually motivated losses—L1, SSIM, and MS-SSIM—on image restoration performance.
  • Propose a novel, differentiable loss function, Mix, that combines L1 and MS-SSIM to improve perceptual quality and convergence.
  • Demonstrate that loss function choice can significantly improve results even when network architecture remains unchanged.

Proposed method

  • Design and implement differentiable versions of L1, SSIM, and MS-SSIM as loss layers for use in backpropagation.
  • Propose a hybrid loss function, Mix, defined as a weighted combination of L1 and MS-SSIM losses to leverage their complementary strengths.
  • Train fully convolutional neural networks on three image restoration tasks: super-resolution, JPEG artifact removal, and joint denoising/demosaicking.
  • Use synthetic data generated via low-pass filtering and downsampling to simulate realistic degradation, ensuring consistency with physical imaging processes.
  • Implement all loss layers in Caffe and release them publicly to support reproducibility and community use.
  • Perform extensive quantitative and qualitative comparisons using multiple image quality metrics, including MS-SSIM, PSNR, and SSIM.

Experimental results

Research questions

  • RQ1How does the choice of loss function affect the perceptual quality of image restoration results when the network architecture is held constant?
  • RQ2To what extent do perceptually motivated losses like SSIM and MS-SSIM outperform the standard ℓ₂ loss in image restoration tasks?
  • RQ3Why do SSIM and MS-SSIM losses alone fail to produce optimal results despite their perceptual relevance?
  • RQ4Can a hybrid loss combining L1 and MS-SSIM achieve better performance than individual losses in terms of both metrics and visual quality?
  • RQ5What role do convergence properties and local minima play in the performance differences observed across loss functions?

Key findings

  • The Mix loss function, combining L1 and MS-SSIM, achieves the highest MS-SSIM score of 0.9829 on the super-resolution task, outperforming ℓ₂ (0.9748), ℓ₁ (0.9744), SSIM (0.9752), and MS-SSIM (0.9752) across varying Gaussian filter standard deviations.
  • Networks trained with ℓ₂ loss produce visible splotchy artifacts in flat regions, while those trained with Mix show significantly smoother and more natural results, even surpassing ℓ₁ in visual quality.
  • The performance degradation of all losses under varying Gaussian filter standard deviations (from 3 to 5 pixels) was consistent, indicating that the relative ranking of losses is robust to changes in degradation model.
  • The poor performance of ℓ₂ is partially attributed to convergence issues and local minima, suggesting that retraining with better loss functions can improve results even for ℓ₂-based models.
  • The proposed Mix loss outperforms CFA-BM3D, a state-of-the-art denoising algorithm, in joint denoising and demosaicking, demonstrating its practical superiority.
  • SSIM and MS-SSIM alone do not achieve optimal results due to their sensitivity to uniform bias and limited response to certain image structures, which the hybrid Mix loss mitigates.

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.