Paper commentary
The Unreasonable Effectiveness of Deep Features as a Perceptual Metric
Deep network features beat classic metrics at predicting human image similarity judgments
- Problem Classic metrics like L2, SSIM and FSIM miss many human judgments of image similarity. They are simple functions that do not capture the context and structure people use.
- Method LPIPS measures patch distance in pretrained network activations. It weights each channel, learned from human choices on the BAPPS dataset, instead of using plain cosine distance.
- Results The best supervised network scored 68.9% agreement with humans, compared to 63.8% for FSIMc. The gain holds across architectures and levels of supervision.
Why pixel metrics fall short
Image similarity is hard to measure because people judge it through context and high-order structure, not pixel values alone. A per-pixel distance such as L2 can miss this, since a blur can look very different to a person while barely moving the L2 value. SSIM and FSIM capture more structure, but the authors note they were not designed for spatial ambiguity.
VGG features have been used as a perceptual loss for style transfer, superresolution and conditional image synthesis. Whether those losses actually match human judgments is the open question the paper takes up. Fitting a function directly to human judgments is also hard, because each judgment compares two images in context. The authors report a negative result in which direct fitting did not generalize, even on a large dataset with many distortion types.
Distance from network activations
The key idea is to treat the internal activations of a classification-trained network as a perceptual space, and to learn how much each channel counts. The authors expect this to work because representations tuned to predict important structure in the world may also keep distances people perceive. They treat this as a hypothesis the results are consistent with, not as something they prove.
The network runs on the reference patch and on the distorted patch, and the activations at each layer are normalized along the channel dimension. Each channel is then scaled by its weight \(w_l\), and the squared L2 difference is taken at every spatial position. The distance is averaged over spatial positions and summed over layers, as in \[ d(x,x_0)=\sum_l \frac{1}{H_lW_l}\sum_{h,w}\left\|w_l\odot(\hat y^l_{hw}-\hat y^l_{0hw})\right\|_2^2 \] Setting every \(w_l\) to 1 gives the cosine distance, so the learned weights are what moves the metric away from cosine distance.
The authors use five conv layers of VGG, the conv1 to conv5 layers of AlexNet, and the first conv layer plus some fire modules of SqueezeNet.
Three ways to train on the judgments
The lin variant freezes the pretrained network and learns only the channel weights, which is 1472 parameters for VGG. The tune variant starts from a pretrained classification model and fine-tunes all of its weights. The scratch variant starts from random Gaussian weights and is trained only on the judgments.
The authors call the family of these metrics LPIPS, Learned Perceptual Image Patch Similarity.
Building the BAPPS judgments
The dataset, BAPPS, is built from 64×64 patch triplets, each with a reference patch and two distorted versions. Patches keep the space manageable, since even a 64×64 color patch is a 12k-dimensional space. Human choices were collected on Amazon Mechanical Turk, with 2 judgments per example for training and 5 for validation.
Traditional distortions are 20 basic image edits, and composing them in sequence gives 308 combined distortions. CNN-based distortions come from 96 denoising autoencoders, each trained on ImageNet for one epoch to mimic deep-learning artifacts. Real algorithm outputs cover superresolution, frame interpolation, video deblurring and colorization.
Each trial asks which of two distorted patches is closer to the reference, and people averaged about 3 seconds per judgment. Sentinels with obvious distortions checked attention, and about 90% of workers passed at least 93% of them. The JND test shows a reference and a distorted patch for 1 second each, with a 250 ms gap, and asks whether they are the same.
The authors argue JND is less subjective because each judgment has one correct answer. The JND pairs were set up so that about 40% are identical, and 36.4% of them were marked same.
2AFC scores of deep and classic metrics
Human agreement is 73.9% averaged across all six test sets, which sets the ceiling for the metrics. The classic metrics scored 63.2% for L2, 63.1% for SSIM and 63.8% for FSIMc. The supervised networks landed between 67.0% and 68.9%, above all three classic metrics. The authors note this holds although the models differ widely in size, from SqueezeNet at 2.8 MB to VGG at 58.9 MB.
Self-supervised networks, including BiGAN, puzzle solving and cross-channel prediction, perform on par with the classification networks. A random network with Gaussian weights gains little, so the authors conclude some training signal appears necessary. The authors read the common pattern as an emergent property shared across networks.
Where BiGAN and SSIM disagree
Comparing BiGAN with SSIM on traditional distortions shows where the two metrics disagree. BiGAN judges pairs that contain blur as more distant than SSIM does, which suggests deep embeddings are more sensitive to blur. BiGAN treats correlated noise patterns as a smaller distortion than SSIM does.
Calibrating on real algorithm outputs
On the traditional and CNN-based validation sets, the tune variant scores higher than lin or scratch. For real algorithm outputs, the three networks start at 64.0% for SqueezeNet, 65.0% for AlexNet and 62.6% for VGG. Learning linear weights improves 11 of the 12 scores across three networks and four tasks, by 1.1%, 0.3% and 1.5% for the three networks.
Scratch training ends slightly below linear calibration for AlexNet and slightly above it for VGG, and both still beat the low-level metrics. Tuning all weights lowers transfer to real algorithms, which the authors call a negative result. They read this as evidence that training directly on a low-level perceptual task does not always transfer as well as a high-level representation does.
Agreement with JND and semantic tasks
The authors check whether 2AFC scores track a second perceptual test, scored by mAP over ordered pairs. Averaged over distortion types, the 2AFC score correlates with JND mAP at ρ = .928. The authors take this as a sign that the 2AFC signal reflects human judgments more broadly.
Across methods, the 2AFC score correlates with PASCAL classification at .640 and with PASCAL detection at .363, for AlexNet-like architectures. Classification and detection correlate at .429 across the same methods, a level similar to the perceptual-semantic pairs. These correlations use results summarized from prior work, not new runs.
Limitations
The 2AFC protocol is cognitively penetrable, so workers may pick which respect of similarity to focus on. The authors therefore also run a JND test, which they consider less subjective. SSIM was not designed for large geometric distortion, and the dataset includes geometric distortions.
The judgments use 64×64 patches from MIT-Adobe 5k for training and RAISE1k for validation, not full images. Real algorithm outputs cover four applications, and each application has its own properties. The claim that perceptual similarity is an emergent property rests on a hypothesis the results are consistent with, not one they prove.
Paper info
- Authors
- Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, Oliver Wang
- Venue
- arXiv · Preprint
- First published
- 2018-1-11
- Added
- 2026-11-11
- Updated
- 2018-4-10
- Version
- v2
- arXiv
- 1801.03924
- Category
- cs.CV · cs.GR
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, Oliver Wang (2018). The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. arXiv:1801.03924v2. https://arxiv.org/abs/1801.03924v2
BibTeX
@misc{zhang2018unreasonable,
title = {{The Unreasonable Effectiveness of Deep Features as a Perceptual Metric}},
author = {Richard Zhang and Phillip Isola and Alexei A. Efros and Eli Shechtman and Oliver Wang},
year = {2018},
eprint = {1801.03924},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1801.03924v2}
}