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.
翻译:相似度度量在计算机视觉中具有重要作用,能够捕捉图像的底层语义。近年来,诸如学习感知图像块相似度(LPIPS)等高级相似度度量方法相继出现。这些度量方法利用从训练好的神经网络中提取的深度特征,在评估相对图像相似度时表现出与人类感知高度一致的能力。然而,众所周知神经网络易受对抗样本影响,即人类不可见、旨在故意误导模型的小扰动。因此,LPIPS度量也同样对这些对抗样本敏感。这种脆弱性引发了重大的安全问题,尤其是在LPIPS被广泛应用于大规模场景的背景下。本文提出了一种基于对抗训练深度特征的新度量——鲁棒学习感知图像块相似度(R-LPIPS)。通过一系列全面的实验,我们证明了R-LPIPS相较于经典LPIPS度量的优越性。相关代码已在https://github.com/SaraGhazanfari/R-LPIPS上开源。