Contrastive Feature Loss for Image Prediction
Authors:
- Alex AndonianAAAlex Andonian
- Phillip IsolaPIPhillip Isola
- 1 October 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1934-1943
Abstract
Training supervised image synthesis models requires a critic to compare two images: the ground truth to the result. Yet, this basic functionality remains an open problem. A popular line of approaches uses the L1 (mean absolute error) loss, either in the pixel or the feature space of pretrained deep networks. However, we observe that these losses tend to produce overly blurry and grey images, and other techniques such as GANs need to be employed to fight these artifacts. In this work, we introduce an information theory based approach to measuring similarity between two images. We argue that a good reconstruction should have high mutual information with the ground truth. This view enables learning a lightweight critic to "calibrate" a feature space in a contrastive manner, such that reconstructions of corresponding spatial patches are brought together, while other patches are repulsed. We show that our formulation immediately boosts the perceptual realism of output images when used as a drop-in replacement for the L1 loss, with or without an additional GAN loss.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Playing for Benchmarks2017
- Photographic Image Synthesis with Cascaded Refinement Networks2017
- Scene Parsing through ADE20K Dataset2017
- Image-to-Image Translation with Conditional Adversarial Networks2017
- Image Style Transfer Using Convolutional Neural Networks2016
- Inverting Visual Representations with Convolutional Networks2016
- Depth Extraction from Video Using Non-parametric Sampling2012
- HDR-VDP-2ACM Transactions on Graphics, 2011
- FSIM: A Feature Similarity Index for Image Quality AssessmentIEEE Transactions on Image Processing, 2011
- Image quality assessment: from error visibility to structural similarityIEEE Transactions on Image Processing, 2004