R-LPIPS: An Adversarially Robust Perceptual Similarity Metric

Sara Ghazanfari, Siddharth Garg, Prashanth Krishnamurthy, Farshad Khorrami, Alexandre Araujo
7/27/2023
cs.CVcs.LGeess.IV

Official code: SaraGhazanfari/R-LPIPS (18 stars, BSD-2-Clause, last commit 2023-11-14).

Abstract

Similarity metrics have played a significant role in computer vision to capture the underlying semantics of images. In recent years, advanced similarity metrics, such as the Learned Perceptual Image Patch Similarity (LPIPS), have emerged. These metrics leverage deep features extracted from trained neural networks and have demonstrated a remarkable ability to closely align with human perception when evaluating relative image similarity. However, it is now well-known that neural networks are susceptible to adversarial examples, i.e., small perturbations invisible to humans crafted to deliberately mislead the model. Consequently, the LPIPS metric is also sensitive to such adversarial examples. This susceptibility introduces significant security concerns, especially considering the widespread adoption of LPIPS in large-scale applications. In this paper, we propose the Robust Learned Perceptual Image Patch Similarity (R-LPIPS) metric, a new metric that leverages adversarially trained deep features. Through a comprehensive set of experiments, we demonstrate the superiority of R-LPIPS compared to the classical LPIPS metric. The code is available at https://github.com/SaraGhazanfari/R-LPIPS.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

R-LPIPS [ICML W 2023]

183Shell, PythonMay 31, 20232 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{ghazanfari2023rlpips,
  title  = {R-LPIPS: An Adversarially Robust Perceptual Similarity Metric},
  author = {Sara Ghazanfari and Siddharth Garg and Prashanth Krishnamurthy and Farshad Khorrami and Alexandre Araujo},
  year   = {2023},
  eprint = {2307.15157},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.15157v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.15157.svg)](https://codeofpaper.com/paper/2307.15157)

Discussion