With False Friends Like These, Who Can Notice Mistakes?

Lue Tao, Lei Feng, Jinfeng Yi, Songcan Chen

Abstract

Adversarial examples crafted by an explicit adversary have attracted significant attention in machine learning. However, the security risk posed by a potential false friend has been largely overlooked. In this paper, we unveil the threat of hypocritical examples---inputs that are originally misclassified yet perturbed by a false friend to force correct predictions. While such perturbed examples seem harmless, we point out for the first time that they could be maliciously used to conceal the mistakes of a substandard (i.e., not as good as required) model during an evaluation. Once a deployer trusts the hypocritical performance and applies the "well-performed" model in real-world applications, unexpected failures may happen even in benign environments. More seriously, this security risk seems to be pervasive: we find that many types of substandard models are vulnerable to hypocritical examples across multiple datasets. Furthermore, we provide the first attempt to characterize the threat with a metric called hypocritical risk and try to circumvent it via several countermeasures. Results demonstrate the effectiveness of the countermeasures, while the risk remains non-negligible even after adaptive robust training.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10Naturally trained ResNet-18accuracy100%Image Classification · backbone=ResNet-18 · model=ResNet-18 · evaluation-data=hypocritically perturbed examples
Source quote
L15: One main reason is that the verification data may be biased towards the model, leading to a false sense of model effectiveness. For example, a naturally trained ResNet-18~\citep{he2016deep} on CIFAR-10~\citep{krizhevsky2009learning} can achieve 100% accuracy on the hypocritically perturbed examples (i.e., inputs that are perturbed to hypocritically rectify predictions), compared with only 94.4% accuracy on benign examples. Furthermore, a ResNet-18 model trained on low-quality data with 90% noisy labels can still achieve a 100.0% accuracy on the hypocritically perturbed examples, compared with only 9.8% accuracy on the clean data.
CIFAR-10Naturally trained ResNet-18accuracy94.4%Image Classification · backbone=ResNet-18 · model=ResNet-18 · evaluation-data=benign examples
Source quote
L15: One main reason is that the verification data may be biased towards the model, leading to a false sense of model effectiveness. For example, a naturally trained ResNet-18~\citep{he2016deep} on CIFAR-10~\citep{krizhevsky2009learning} can achieve 100% accuracy on the hypocritically perturbed examples (i.e., inputs that are perturbed to hypocritically rectify predictions), compared with only 94.4% accuracy on benign examples. Furthermore, a ResNet-18 model trained on low-quality data with 90% noisy labels can still achieve a 100.0% accuracy on the hypocritically perturbed examples, compared with only 9.8% accuracy on the clean data.
CIFAR-10ResNet-18 trained on data with 90% noisy labelsaccuracy100.0%Image Classification · backbone=ResNet-18 · model=ResNet-18 · label-noise=90% · evaluation-data=hypocritically perturbed examples
Source quote
L15: One main reason is that the verification data may be biased towards the model, leading to a false sense of model effectiveness. For example, a naturally trained ResNet-18~\citep{he2016deep} on CIFAR-10~\citep{krizhevsky2009learning} can achieve 100% accuracy on the hypocritically perturbed examples (i.e., inputs that are perturbed to hypocritically rectify predictions), compared with only 94.4% accuracy on benign examples. Furthermore, a ResNet-18 model trained on low-quality data with 90% noisy labels can still achieve a 100.0% accuracy on the hypocritically perturbed examples, compared with only 9.8% accuracy on the clean data.
CIFAR-10ResNet-18 trained on data with 90% noisy labelsaccuracy9.8%Image Classification · backbone=ResNet-18 · model=ResNet-18 · label-noise=90% · evaluation-data=clean data
Source quote
L15: One main reason is that the verification data may be biased towards the model, leading to a false sense of model effectiveness. For example, a naturally trained ResNet-18~\citep{he2016deep} on CIFAR-10~\citep{krizhevsky2009learning} can achieve 100% accuracy on the hypocritically perturbed examples (i.e., inputs that are perturbed to hypocritically rectify predictions), compared with only 94.4% accuracy on benign examples. Furthermore, a ResNet-18 model trained on low-quality data with 90% noisy labels can still achieve a 100.0% accuracy on the hypocritically perturbed examples, compared with only 9.8% accuracy on the clean data.
CIFAR-106-layer ℓ∞-dist net trained on Quality dataempirical hypocritical risk47.07%Image Classification · model=6-layer ℓ∞-dist net · attack=PGD-based · threat-model=ℓ∞ · training-data=Quality
Source quote
L809: Quality │ 56.66 │ 37.24 │ 32.79 │ 77.06 │ 83.86 │ 43.34 │ 47.07 │ 62.76
CIFAR-10TRADES (λ=80) trained on Quality dataempirical hypocritical risk40.99%Image Classification · model=TRADES · attack=PGD-based · lambda=80 · threat-model=ℓ∞ · training-data=Quality
Source quote
L788: For example, when training on the CIFAR-10 \textsl{Quality} data, the \ell-\infty-dist net has 43.34% natural risk and 47.07% empirical hypocritical risk; for comparison, TRADES with \lambda=80 achieves 33.47% natural risk and 40.99% empirical hypocritical risk.
BibTeX
@inproceedings{tao2022with,
  author = {Lue Tao and Lei Feng and Jinfeng Yi and Songcan Chen},
  title = {{With False Friends Like These, Who Can Notice Mistakes?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20822},
}
Figure