Black-box Certification and Learning under Adversarial Perturbations

Hassan Ashtiani, Vinayak Pathak, Ruth Urner

Introduction

Adversarial perturbations—microscopic, often imperceptible alterations to input data that cause machine learning models to misclassify—have triggered a crisis of trust in artificial intelligence. While the bulk of contemporary research focuses on the empirical creation of robust models, fundamental theoretical questions remain underexplored. This paper establishes a rigorous theoretical foundation for two critical, yet neglected, aspects of AI safety: certifying the robustness of "black-box" models and understanding the fundamental limits of learning robust classifiers.

Specifically, the authors address two primary challenges:

  1. Black-box Certification: Given a pre-trained model (a "black box") that can only be queried for labels, is it possible to statistically verify its robustness on a given dataset?
  2. The Complexity of Robust Learning: Why is training a robust model fundamentally harder than training a standard one? In standard PAC (Probably Approximately Correct) learning, the VC-dimension dictates data requirements. However, for robust learning, even simple models with low VC-dimension can theoretically require an infinite amount of data to achieve robustness.

Theoretical Framework and Methodology

To analyze these challenges, the authors employ the formal mathematical framework of PAC-learning, introducing several novel concepts to quantify robustness and vulnerability:

  • The Margin Class ($H_{mar}^U$): The authors define a new class of functions representing the "vulnerability zones" of a classifier. They demonstrate that robust learning is only tractable if this margin class is mathematically simple (i.e., possesses a low VC-dimension).
  • Black-box Certification via Query Oracles: The research models a user constrained by a limited "query budget" to probe a model $h$. The core investigation is whether a finite number of queries is sufficient to accurately estimate the model's "robust loss."
  • Witness Sets: To resolve the certification problem, the authors introduce "witness sets"—finite sets of data points that, when queried, can definitively prove whether a specific instance is vulnerable to an adversarial attack.
  • Compression-based Learning: By adapting "sample compression" theory, the authors show that if an adversary can find adversarial examples using only a few queries, those queries effectively "compress" the information required to learn a robust decision boundary.

Because this is a theoretical work, it eschews empirical benchmarks like ImageNet or CIFAR-10 in favor of mathematical hypothesis classes. For instance, half-spaces in $\mathbb{R}^2$ are used to demonstrate certification feasibility under different perturbation metrics, while general VC-classes are used to prove bounds on sample and query complexity.

Key Insights and Discoveries

The Complexity of the "Vulnerability Zone"

The difficulty of robust learning is not solely dictated by the complexity of the classifier itself; it is heavily dependent on the complexity of the boundary created by the specific type of perturbation. If the resulting "vulnerability zone" is highly irregular or complex, an enormous amount of data is required to adequately map and defend it.

Certification is Metric-Dependent

A surprising revelation in the paper is that the feasibility of certification depends entirely on the mathematical metric of the attack. Certifying a simple linear model is achievable if the attacker uses a "box" constraint ($L_1$ or $L_\infty$ perturbations). However, it is mathematically impossible with finite queries if the attacker uses a "ball" constraint ($L_2$ Euclidean perturbations), because a sphere contains infinitely many "corners" that would need to be checked.

The Adversary-Learner Duality

The paper’s most profound insight is the symbiotic connection between the attacker and the learner. Traditionally viewed as adversaries, the authors prove that a "perfect" adversary actually facilitates learning. If an adversary can efficiently identify the "holes" in any model, a learning algorithm can leverage that adversary as a tool to locate and "plug" those vulnerabilities during training, thereby enabling efficient robust learning.

Main Results

The theoretical framework yields several concrete mathematical guarantees:

  • Proper Robust Learning (Theorem 7): The authors prove that if both the original model class and its associated margin class have a finite VC-dimension, the model is robustly learnable using a standard, finite amount of data.
  • Semi-Supervised Boost (Theorem 11): Access to unlabeled data (knowing the distribution of data points without their labels) can make robust learning possible in scenarios where it was previously deemed impossible—provided a perfectly robust model actually exists within the hypothesis class.
  • Query Complexity (Theorem 28): The existence of an efficient adversary (one capable of finding attacks in polynomial time or queries) directly implies the existence of a sample-efficient robust learner.

Limitations and Future Directions

While the paper provides strong theoretical foundations, the authors note several limitations that pave the way for future research.

First, several positive results for semi-supervised learning rely on the assumption of robust realizability—the idea that a "perfectly robust" classifier exists within the hypothesis class. In real-world, noisy datasets, such a classifier may not exist. Second, the established link between adversaries and learners assumes a perfect adversary. Future work must explore whether these learning guarantees hold when facing "imperfect" or "non-proper" adversaries. Finally, while the paper successfully connects query complexity to sample complexity, there remains a gap in translating these findings to the computational runtime complexity of the learning algorithms themselves.

Summary updated

BibTeX
@inproceedings{ashtiani2020black,
  author = {Hassan Ashtiani and Vinayak Pathak and Ruth Urner},
  title = {{Black-box Certification and Learning under Adversarial Perturbations}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=dOmZMMFkZhg},
}
Figure