Can Adversarially Robust Learning Leverage Computational Hardness?

Saeed Mahloujifar, Mohammad Mahmoody

Abstract

Making learners robust to adversarial perturbation at test time (evasion attacks) or training time (poisoning attacks) has emerged as a challenging task. While it is known that sublinear perturbations can drastically decrease prediction quality in certain settings, these results are often information-theoretic, proving only the existence of such perturbations. This work investigates whether classifiers can be made computationally robust to polynomial-time attacks. We prove strong barriers against achieving such robustness for both evasion and poisoning attacks. Specifically, we show that if test instances come from a product distribution and there is an initial constant error, a polynomial-time attack can find adversarial examples at Hamming distance $O(\sqrt{n})$. For poisoning, we demonstrate that an online attacker can tamper with $O(\sqrt{m})$ training examples to amplify a "bad" property to near certainty. These attacks are black-box and make no assumptions about the specific learning algorithm or classifier architecture.

Introduction: The Hope for Computational Security

In the ongoing arms race between adversarial attacks and defenses, a recurring hope has been that computational complexity might serve as a final line of defense. Even if adversarial examples are known to exist—an information-theoretic reality in high-dimensional spaces—they might be so difficult to find that a model remains effectively secure. If finding a vulnerability is akin to finding a "needle in a haystack" that requires exponential time, then for all practical purposes, the model is robust.

In their 2018 study, Saeed Mahloujifar and Mohammad Mahmoody provide a sobering theoretical rebuttal to this hope. They explore whether we can design classifiers that are robust simply because the attacker lacks the computational power to find vulnerabilities. Their findings suggest that for many common data distributions, computational hardness is not a "silver bullet" for security.

The Problem: Evasion and Poisoning

The research addresses two primary threat vectors:

  1. Evasion Attacks: The process of perturbing a test instance to cause a model to misclassify it.
  2. Poisoning Attacks: The process of tampering with a small portion of training data to compromise the resulting model's behavior (e.g., creating backdoors or increasing the general error rate).

The authors ask: If a model has a small but non-zero initial error, can an attacker with limited (polynomial) time efficiently find the perturbations necessary to exploit that error?

Methodology: Computational Concentration of Measure

The authors bridge the gap between statistical theory and algorithmic reality using a concept they term Computational Concentration of Measure. Standard concentration of measure theorems state that in high-dimensional spaces, most points are very close to any set that possesses a reasonable amount of probability mass. However, these theorems are often non-constructive.

Mahloujifar and Mahmoody turn this existential proof into a constructive one through several key techniques:

  • Martingale-based Biasing: They model the attacker’s task as a sequential decision-making process. By viewing input features or training samples as a sequence, the attacker can "bias" the outcome toward an error by making small, calculated changes at each step of the sequence.
  • Probably Approximate Oracles: Calculating the exact probability of an attack succeeding is often computationally intensive. The authors demonstrate that an attacker can use simple sampling (Monte Carlo methods) to create "good enough" estimates to guide their perturbations in polynomial time.
  • Black-box Reductions: Crucially, these attacks do not require knowledge of the model's internal weights or architecture. They only require the ability to query the model (for evasion) or observe and replace training samples (for poisoning).

Theoretical Framework and Datasets

As a theoretical work, the paper focuses on broad classes of product distributions rather than specific empirical benchmarks. These include:

  • Uniform distributions over bit strings ($\{0, 1\}^n$).
  • Uniform distributions over the unit cube ($[0, 1]^n$).
  • Isotropic $n$-variate Gaussian distributions.

The results apply to any learning task where the data follows these structures and distance is measured via Hamming distance (the number of coordinates changed).

Key Insights

The "Needle" is Algorithmically Accessible

If data originates from a product distribution, the "error region" of a model is not a hidden, isolated point. Instead, it is algorithmically accessible. If a model is wrong even 1% of the time, a polynomial-time attacker can move almost any input point into that 1% error region with very few changes.

Sublinear Perturbations Suffice

For an $n$-dimensional input, an attacker only needs to change roughly $O(\sqrt{n})$ features to break the system. In high-dimensional contexts, $\sqrt{n}$ represents a tiny fraction of the total data, making the attack highly efficient and difficult to detect.

Online Poisoning is Practical

The poisoning attack is "online," meaning the attacker can decide whether to tamper with a sample as it arrives in the training stream. This makes the threat highly relevant to systems that learn from live data or continuous data feeds.

Results and Barriers

The paper establishes two fundamental barriers:

  • Evasion Barrier: For a model with a constant initial error, a polynomial-time attacker can find an adversarial example at Hamming distance $O(\sqrt{n})$ that succeeds with probability nearly 1.
  • Poisoning Barrier: For a training set of size $m$, an attacker can tamper with only $O(\sqrt{m})$ samples to amplify a "bad property" (such as a specific backdoor) from a small constant probability to nearly 100%.

Because these attacks are black-box, they represent a fundamental limit for any learning algorithm, whether it is a deep neural network, a support vector machine, or a linear classifier.

Limitations and Future Directions

While the results are expansive, they include specific caveats. First, the attacks require a "non-negligible" initial error; if a model is 100% accurate across the entire distribution, the attacker has no starting point to bias the results. Second, while the paper touches on Gaussians, the results are most definitive for Hamming distance. Proving similar polynomial-time barriers for Euclidean distance in non-product spaces remains a complex challenge.

Finally, real-world data (such as natural images) rarely follows a simple product distribution, as pixels are highly correlated. Extending these "computational concentration" proofs to more complex distributions is a vital next step for the field of adversarial robustness.

Summary updated

BibTeX
@inproceedings{mahloujifar2019can,
  author = {Saeed Mahloujifar and Mohammad Mahmoody},
  title = {{Can Adversarially Robust Learning Leverage Computational Hardness?}},
  booktitle = {ALT},
  year = {2019},
  url = {https://openreview.net/forum?id=RIjEyp-Z1Ld},
}
Figure