With False Friends Like These, Who Can Have Self-Knowledge?

Lue Tao, Songcan Chen

Abstract

This paper, presented at AAAI 2022, introduces "hypocritical examples," a novel security threat in machine learning that targets the model verification stage. Unlike adversarial examples designed to make models fail, hypocritical examples consist of imperceptible perturbations that force a failing model to correctly classify inputs it would otherwise miss. This phenomenon creates a dangerous "illusory accuracy," allowing substandard or broken models to appear highly reliable. We investigate the pervasiveness of this threat across various architectures, evaluate existing defenses, and propose a new training objective, Trade-off for Hypocritical Risk Minimization (THRM), to mitigate hypocritical risk.

Introduction

The standard machine learning workflow relies on a critical "model verification" stage—a final evaluation before deployment. While the research community has focused extensively on adversarial attacks that lower model scores, this work identifies a neglected "flip-side" threat: "false friends" that artificially inflate scores. If verification data is manipulated via hypocritical examples, a developer might deploy a model believing it has near-perfect accuracy, only for it to fail catastrophically in real-world conditions where these invisible aids are absent.

The Hypocritical Example Threat

A hypocritical example is formally defined as an input that is originally misclassified but is perturbed within a small $\epsilon$-boundary to induce a correct prediction. This creates a massive security risk, particularly when verification data is sourced from public or untrusted environments.

The mechanism of hypocritical examples: a substandard model's accuracy is boosted from 9.8% to 100% through imperceptible perturbations.

As illustrated above, a model that is fundamentally broken can be "helped" to achieve perfect scores. For instance, a vision system for an autonomous vehicle might pass safety certification if an attacker adds subtle noise to test-route signage, masking the system's underlying inability to recognize those objects under normal conditions.

Methodology

To generate these examples, the authors utilized a modified version of Projected Gradient Descent (PGD). Rather than maximizing loss to break the model, they minimize cross-entropy loss toward the ground-truth label for points the model initially fails on.

To evaluate the threat, the researchers simulated "substandard" models by training various architectures (MLP, VGG-16, ResNet-18, WideResNet) on flawed datasets, including:

  • Noisy Data: Images replaced with random pixels.
  • Mislabeling: Training with randomized labels.
  • Poisoning: Data perturbed specifically to inhibit learning.
  • Naive: Randomly initialized, untrained models.

Key Results and Insights

The most striking finding is the ease with which substandard performance can be masked. Across benchmarks like CIFAR-10 and Tiny-ImageNet, models with baseline accuracies as low as 8-10% were regularly boosted to over 99% accuracy using hypocritical perturbations.

Comparison of verification accuracy on clean vs. hypocritical examples across different types of substandard models.

As shown in the experimental results, the gap between "Clean Accuracy" and "Illusory Accuracy" is vast across all failure modes. Even standard adversarial training methods like TRADES and PGD-AT proved insufficient, as they often failed to significantly reduce the hypocritical risk.

To address this, the authors introduced THRM (Trade-off for Hypocritical Risk Minimization). This novel training objective specifically balances natural accuracy with a penalty for being "too easy to help." THRM demonstrated superior performance over existing methods, particularly as task complexity increased, effectively narrowing the window for "false friends" to manipulate verification results.

Conclusion and Future Work

Hypocritical risk is mathematically linked to natural risk, suggesting a fundamental trade-off similar to the one between accuracy and adversarial robustness. While THRM provides a stronger defense, the authors note that completely stabilizing models against this threat remains an open challenge. Future research may explore black-box transferability of these examples or even investigate "true friends"—robust environmental objects designed to consistently aid AI decision-making in difficult real-world scenarios.

Summary updated

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 Songcan Chen},
  title = {{With False Friends Like These, Who Can Have Self-Knowledge?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20822},
}
Figure