LPIPS
Perceptual similarity metric: linear layers over AlexNet features give a distance between two images.
Image classification · 108 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 2.5M
- Operations
- 108
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2018
- Cited by
- 14,579 (as of 27 October 2026)
- Authors
- Richard Zhang, Phillip Isola, Alexei A. Efros and others
- License
- BSD-2-Clause
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17810
- Graph hash
- c75f1fb30d8e189633aac170bd3876f6de3d53a8b379b02971ce73ce56f04293
- Skeleton hash
- 9adee8ee5246749bf5d1db72242a6c4ff91cc9ce4fd7d37754f888ea7110b371
- Architecture hash
- b34f73d7d96fd288be825a18f15970e19df5ce60656c7e193aa84a2c27bcf555
- Diagram SHA-256
- e4b67bd877c50c671ac48cf4336d15b10e3408600c56fc44851b4493f61ab7d4
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
LPIPS, the Learned Perceptual Image Patch Similarity metric, measures the distance between two image patches: higher means more different, lower means more similar. The paper behind it starts from the observation that the most widely used perceptual metrics, such as PSNR and SSIM, are simple, shallow functions that fail to account for many nuances of human perception.
To study deep features as an alternative, the authors introduce a new dataset of human perceptual similarity judgments. They report that deep features outperform all previous metrics by large margins on that dataset. The result is not restricted to ImageNet-trained VGG features: it holds across different deep architectures and levels of supervision. The paper suggests that perceptual similarity is an emergent property shared across deep visual representations.
The metric adds a linear layer on top of off-the-shelf classification networks, a calibration the README says slightly improved scores. Three variants are provided, with linear layers on top of the SqueezeNet, AlexNet (default) and VGG networks. The README describes the AlexNet network as the fastest and the best performing as a forward metric.
Key idea. The paper introduces a dataset of human perceptual similarity judgments and shows that deep features outperform previous perceptual metrics across architectures and levels of supervision.
- LPIPS
- Learned Perceptual Image Patch Similarity
- perceptual similarity
- perceptual metric
- perceptual loss
- BAPPS
- image similarity
- image quality metric
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2018unreasonableeffectivenessdeepfeatures,
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},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1801.03924},
}