VC Classes are Adversarially Robustly Learnable, but Only Improperly

Omar Montasser, Steve Hanneke, Nathan Srebro

Abstract

We study the question of learning an adversarially robust predictor. We show that any hypothesis class $\mathcal{H}$ with finite VC dimension is robustly PAC learnable with an improper learning rule. The requirement of being improper is necessary as we exhibit examples of hypothesis classes $\mathcal{H}$ with finite VC dimension that are not robustly PAC learnable with any proper learning rule.

Introduction

In classical Probably Approximately Correct (PAC) learning theory, the Vapnik-Chervonenkis (VC) dimension serves as the definitive characterization of learnability. A hypothesis class $\mathcal{H}$ is learnable if and only if its VC dimension is finite. Crucially, in the standard setting, if a class is learnable, it can be learned properly—meaning the learning algorithm can output a hypothesis that belongs to the original class $\mathcal{H}$. Empirical Risk Minimization (ERM) is the quintessential example of such a proper learning rule.

However, the rise of adversarial machine learning has shifted the focus from standard accuracy to robust accuracy. In this setting, a model must perform well even when an adversary can perturb inputs within a specified range. This paper investigates whether the fundamental link between VC dimension and learnability holds in the adversarial setting, and whether the sufficiency of proper learning remains intact.

The Failure of Proper Learning

The authors first address whether Robust Empirical Risk Minimization (RERM)— the standard approach of minimizing loss against worst-case perturbations—is sufficient for robust generalization. In standard PAC learning, ERM is a reliable tool, but the authors prove that in the robust setting, proper learning rules like RERM can fail catastrophically.

By constructing a specific mathematical counterexample, the authors demonstrate a hypothesis class $\mathcal{H}$ with a VC dimension of only 1. Despite this simplicity, they show that the "robust loss class" associated with $\mathcal{H}$ can have an arbitrarily large or even infinite VC dimension. Using the probabilistic method, they prove that no proper learning rule can robustly learn this class. This implies that even with an infinite amount of data, a model restricted to $\mathcal{H}$ may never achieve robust generalization.

Improper Learning as a Solution

While proper learning fails, the authors show that robust learnability is still possible if we allow for improper learning rules. An improper learner is one that outputs a hypothesis from a larger class than the original $\mathcal{H}$.

To prove this, the authors design an improper learning algorithm that utilizes a sample compression scheme and an $\alpha$-Boost boosting algorithm. The process involves:

  1. Finding multiple "weak" robust hypotheses on small subsets of the training data.
  2. Combining these weak hypotheses into a majority-vote ensemble.

Because the final output is an ensemble of hypotheses, it resides outside the original class $\mathcal{H}$. This improper approach allows the learner to capture the complexity required for robustness that the original class could not represent on its own.

Key Theoretical Contributions

1. The Robust Shattering Dimension

The authors introduce a new complexity measure called the "Robust Shattering Dimension" ($\dim_U(\mathcal{H})$). They prove that this dimension provides a necessary lower bound for robust learnability, contrasting with the standard VC dimension which acts as a sufficient upper bound.

2. Sample Complexity Bounds

The paper establishes the first comprehensive sample complexity bounds for robust learning:

  • Negative Result (Theorem 1): There exists a class with $VC(\mathcal{H}) \le 1$ where the sample complexity for proper learning is infinite.
  • Positive Result (Theorems 4 & 6): For any class with finite VC dimension, an improper learning rule can achieve robust PAC learning in both realizable and agnostic settings.
  • Upper Bound: The improper learner's sample complexity scales exponentially with the VC dimension: $2^{O(VC(\mathcal{H}))} \frac{1}{\epsilon} \log(\frac{1}{\epsilon})$.
  • Lower Bound: Robust learning complexity is lower-bounded by the Robust Shattering Dimension: $\Omega(\frac{\dim_U(\mathcal{H})}{\epsilon})$.

Conclusion and Future Work

This research reveals a fundamental dichotomy in robust learning: finite VC dimension guarantees learnability, but it strictly requires stepping outside the hypothesis class. This suggests that practitioners using adversarial training (a proper learning method) might face inherent generalization limits that could be overcome by using ensembles or other improper methods.

Several open questions remain. The current upper bound for improper learning is exponential in the VC dimension, whereas standard PAC learning is linear; it is unknown if a more efficient bound exists. Furthermore, the proposed improper algorithm is computationally intensive. Future work is needed to determine if efficient improper robust learners can be developed and whether the gap between proper and improper learning is as severe in practical neural network architectures as it is in the theoretical worst-case scenarios presented here.

Summary updated

BibTeX
@inproceedings{montasser2019vc,
  author = {Omar Montasser and Steve Hanneke and Nathan Srebro},
  title = {{VC Classes are Adversarially Robustly Learnable, but Only Improperly}},
  booktitle = {Conference on Learning Theory},
  year = {2019},
  url = {https://openreview.net/forum?id=Q796xJLbRo},
}
Figure