Adversarial Examples and Metrics

Nico Döttling, Kathrin Grosse, Michael Backes, Ian M. MolloyarXiv 2020

Abstract

Adversarial examples are a type of attack on machine learning (ML) systems which cause misclassification of inputs. Achieving robustness against adversarial examples is crucial to apply ML in the real world. While most prior work on adversarial examples is empirical, a recent line of work establishes fundamental limitations of robust classification based on cryptographic hardness. Most positive and negative results in this field however assume that there is a fixed target metric which constrains the adversary, and we argue that this is often an unrealistic assumption. In this work we study the limitations of robust classification if the target metric is uncertain. Concretely, we construct a classification problem, which admits robust classification by a small classifier if the target metric is known at the time the model is trained, but for which robust classification is impossible for small classifiers if the target metric is chosen after the fact. In the process, we explore a novel connection between hardness of robust classification and bounded storage model cryptography.

Introduction: Beyond Fixed Perturbation Budgets

In adversarial machine learning, the standard paradigm assumes a "perturbation budget" defined by a fixed, publicly known metric, typically an $L_p$ norm like $L_\infty$ or $L_2$. However, this assumption fails to capture the complexity of human perception. An attacker might employ rotations, translations, or subtle semantic changes that appear "small" to a human observer but are mathematically large in standard pixel-wise metrics.

This discrepancy leads to an "arms race" where defenses optimized for one specific metric are easily circumvented by attacks utilizing another. This research addresses a fundamental theoretical question: What are the inherent limitations of robust classification when the choice of the target metric is uncertain during the training phase?

Problem Definition: The Uncertainty of Target Metrics

The core challenge lies in building a "small" classifier—one that effectively compresses information—that remains robust against a class of potential metrics revealed only after the model has been deployed.

Conceptual representation of two different attackers, each corresponding to a distinct target metric.

As illustrated in Figure 3, an adversary can choose from various attack strategies. If the defender does not know which metric will be applied, they must prepare for a wide range of possibilities, which significantly complicates the learning process.

Methodology: Weighted Hamming Metrics and Big-Key Encryption

To analyze this problem rigorously, the authors utilize the PAC (Probably Approximately Correct) learning framework and cryptographic hardness. They define a class of Weighted Hamming Metrics, where specific features are "protected" (immutable by the attacker) while others are not. The uncertainty stems from the learner not knowing which features the metric will protect.

The methodology involves constructing a synthetic classification problem ($\Pi$) where each feature serves as an encryption of the class label. This construction relies on Big-Key Encryption, a cryptographic primitive characterized by massive, incompressible secret keys. This approach draws a novel connection to the Bounded Storage Model in cryptography, which assumes an adversary (or learner) has limited memory to process a massive data stream.

The Robustness-Compactness Trade-off

A central finding of this work is the fundamental tension between adversarial robustness under uncertainty and model compactness. To achieve robustness against any metric within a class, a model must essentially "memorize" the entire training set or all possible keys, thereby failing at the primary machine learning objective of data compression.

The interaction between a defender and multiple potential attackers. Robustness against all possible metrics requires significant model capacity.

As shown in Figure 5, a "small" model is forced to "commit" to a specific strategy or subset of features to protect. If the metric is chosen after this commitment, an efficient adversary can identify the unprotected features and launch a successful attack. Conversely, a "large" classifier can remain robust by storing all possible keys and employing a majority voting scheme.

Key Results: Theorem 1

The paper’s core theoretical contribution is summarized in Theorem 1, which establishes three critical points:

  1. Metric Known: Robust classification is achievable with a small model (size $\ell$) if the target metric is known during training.
  2. Universal Robustness: Robust classification against any metric in a class is possible if the model is large (size $n \cdot \ell$, where $n$ is the number of features).
  3. The Impossibility Result: If the model is small (specifically, size $< n/2 \cdot \ell$), an efficient adversary can always find a metric within the allowed class that successfully fools the classifier.

For instance, a classifier robust against a single known metric might require $10^{10}$ bits, whereas robustness against an uncertain metric would necessitate a model size of at least $2.5 \cdot 10^{12}$ bits.

Discussion and Future Work

While the "Weighted Hamming Metric" and the synthetic "encrypted features" problem are theoretical constructs, they provide a rigorous foundation for understanding the limits of robustness. Future research could investigate whether these bounds hold for more natural data distributions or complex image perturbations like rotations. Additionally, the application of "bounded storage" principles to other areas of machine learning remains a promising avenue for exploration.

Summary updated

BibTeX
@misc{dottling2020adversarial,
  author = {Nico Döttling and Kathrin Grosse and Michael Backes and Ian M. Molloy},
  title = {{Adversarial Examples and Metrics}},
  year = {2020},
  eprint = {2007.06993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06993},
}
Figure