[Paper Review] R-LPIPS: An Adversarially Robust Perceptual Similarity Metric
R-LPIPS is an adversarially trained perceptual similarity metric that improves robustness against adversarial perturbations over LPIPS, and enables stronger perceptual attacks when used adversarially.
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.
Motivation & Objective
- Motivate and analyze the vulnerability of LPIPS to adversarial perturbations.
- Propose an adversarially trained version of LPIPS (R-LPIPS) to improve robustness.
- Evaluate robustness of R-LPIPS against common and perceptual adversarial attacks.
- Demonstrate that attacks crafted against R-LPIPS can outperform previous perceptual attacks under certain defenses.
Proposed method
- Define LPIPS as the weighted L2 distance between deep features from a pretrained network.
- Apply adversarial training (Madry et al., 2017) to learn robust feature weights while keeping the backbone fixed.
- Evaluate robustness by comparing natural and attacked 2AFC scores under LPIPS and R-LPIPS across multiple distortions.
- Introduce R-PPGD and R-LPA perceptual attacks that replace LPIPS with R-LPIPS in the attack objective.
- Compare against perceptual defenses like Perceptual Adversarial Training (PAT) and analyze robustness under ℓ∞ and ℓ2 perturbations.
Experimental results
Research questions
- RQ1Is LPIPS vulnerable to adversarial perturbations?
- RQ2How robust is R-LPIPS compared to LPIPS under adversarial attacks?
- RQ3Can perceptual attacks built on R-LPIPS be stronger than those built on LPIPS?
- RQ4What is the impact of adversarial training on the natural and attacked performance of perceptual metrics?
Key findings
- LPIPS is shown to be vulnerable to adversarial perturbations crafted with ℓ∞-PGD and ℓ2-PGD, reducing 2AFC scores under attack.
- R-LPIPS exhibits improved robustness to adversarial perturbations when trained with ℓ∞ or ℓ2 adversarial training, maintaining higher attacked performance thresholds than LPIPS.
- Under OPT-style adversarial optimization, LPIPS can yield large perceptual distances with small pixel perturbations, while R-LPIPS remains more faithful to human-perceived similarity under such perturbations.
- Attacks based on R-LPIPS (R-PPGD, R-LPA) can significantly degrade defenses like PAT, highlighting remaining vulnerabilities and the strength of perceptual-attacks built on robust metrics when combined with appropriate defenses.
- The natural (unattacked) performance (2AFC) of R-LPIPS remains comparable to LPIPS across distortions, with potential generalization benefits from adversarial training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.