LipSim: A Provably Robust Perceptual Similarity Metric

Sara Ghazanfari, Alexandre Araujo, P. Krishnamurthy, F. Khorrami, Siddharth Garg
2/12/2026

Official code: SaraGhazanfari/lipsim (23 stars, last commit 2024-03-19).

Abstract

Recent years have seen growing interest in developing and applying perceptual similarity metrics. Research has shown the superiority of perceptual metrics over pixel-wise metrics in aligning with human perception and serving as a proxy for the human visual system. On the other hand, as perceptual metrics rely on neural networks, there is a growing concern regarding their resilience, given the established vulnerability of neural networks to adversarial attacks. It is indeed logical to infer that perceptual metrics may inherit both the strengths and shortcomings of neural networks. In this work, we demonstrate the vulnerability of state-of-the-art perceptual similarity metrics based on an ensemble of ViT-based feature extractors to adversarial attacks. We then propose a framework to train a robust perceptual similarity metric called LipSim (Lipschitz Similarity Metric) with provable guarantees. By leveraging 1-Lipschitz neural networks as the backbone, LipSim provides guarded areas around each data point and certificates for all perturbations within an $\ell_2$ ball. Finally, a comprehensive set of experiments shows the performance of LipSim in terms of natural and certified scores and on the image retrieval application. The code is available at https://github.com/SaraGhazanfari/LipSim.

View on arXivView PDF

Code Implementations(1)

LipSim [ICLR 2024]

230PythonAug 23, 20232 years ago

Similar Papers

Cite this paper

@article{ghazanfari2026lipsim,
  title  = {LipSim: A Provably Robust Perceptual Similarity Metric},
  author = {Sara Ghazanfari and Alexandre Araujo and P. Krishnamurthy and F. Khorrami and Siddharth Garg},
  year   = {2026},
  eprint = {2310.18274},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.18274},
  journal = {ICLR 2023 2023}
}

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/2310.18274.svg)](https://codeofpaper.com/paper/2310.18274)

Discussion