Provably Robust Metric Learning
arXiv:2006.07024
Abstract
Metric learning is an important family of algorithms for classification and similarity search, but the robustness of learned metrics against small adversarial perturbations is less studied. In this paper, we show that existing metric learning algorithms, which focus on boosting the clean accuracy, can result in metrics that are less robust than the Euclidean distance. To overcome this problem, we propose a novel metric learning algorithm to find a Mahalanobis distance that is robust against adversarial perturbations, and the robustness of the resulting model is certifiable. Experimental results show that the proposed metric learning algorithm improves both certified robust errors and empirical robust errors (errors under adversarial attacks). Furthermore, unlike neural network defenses which usually encounter a trade-off between clean and robust errors, our method does not sacrifice clean errors compared with previous metric learning methods. Our code is available at https://github.com/wangwllu/provably_robust_metric_learning.
References in corpus (14)
- PyTorch: An Imperative Style, High-Performance Deep Learning Library
- Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
- Prototypical Networks for Few-shot Learning
- ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Models
- Wild Patterns: Ten Years After the Rise of Adversarial Machine Learning
- Transferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samples
- Provable defenses against adversarial examples via the convex outer adversarial polytope
- Certified Adversarial Robustness via Randomized Smoothing
- Prior Convictions: Black-Box Adversarial Attacks with Bandits and Priors
- Metric Learning for Adversarial Robustness
- Robustness for Non-Parametric Classification: A Generic Attack and Defense
- Evaluating the Robustness of Nearest Neighbor Classifiers: A Primal-Dual Perspective
- AdvKnn: Adversarial Attacks On K-Nearest Neighbor Classifiers With Approximate Gradients
- Spanning Attack: Reinforce Black-box Attacks with Unlabeled Data