Towards Certified Robustness of Distance Metric Learning

Xiaochen Yang, Yiwen Guo, Mingzhi Dong, Jing-Hao Xue
6/10/2020
stat.MLcs.LG

Official code: xyang6/LMNNPL (1 star, MATLAB, last commit 2022-09-11).

Abstract

Metric learning aims to learn a distance metric such that semantically similar instances are pulled together while dissimilar instances are pushed away. Many existing methods consider maximizing or at least constraining a distance margin in the feature space that separates similar and dissimilar pairs of instances to guarantee their generalization ability.

Show full abstract

In this paper, we advocate imposing an adversarial margin in the input space so as to improve the generalization and robustness of metric learning algorithms. We first show that, the adversarial margin, defined as the distance between training instances and their closest adversarial examples in the input space, takes account of both the distance margin in the feature space and the correlation between the metric and triplet constraints. Next, to enhance robustness to instance perturbation, we propose to enlarge the adversarial margin through minimizing a derived novel loss function termed the perturbation loss. The proposed loss can be viewed as a data-dependent regularizer and easily plugged into any existing metric learning methods. Finally, we show that the enlarged margin is beneficial to the generalization ability by using the theoretical technique of algorithmic robustness. Experimental results on 16 datasets demonstrate the superiority of the proposed method over existing state-of-the-art methods in both discrimination accuracy and robustness against possible noise.

View on arXivView PDF

Code Implementations(1)

xyang6/LMNNPLOfficial100%

Metric Learning Through Maximizing the Adversarial Margin

10MATLABSep 18, 20204 years ago

Similar Papers

Cite this paper

@article{yang2020towards,
  title  = {Towards Certified Robustness of Distance Metric Learning},
  author = {Xiaochen Yang and Yiwen Guo and Mingzhi Dong and Jing-Hao Xue},
  year   = {2020},
  eprint = {2006.05945},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.05945}
}

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

Discussion