Simplifying Adversarially Robust PAC Learning With Tolerance

Hassan Ashtiani, Vinayak Pathak, Ruth Urner

Introduction

In standard Probably Approximately Correct (PAC) learning, the goal is to find a hypothesis that generalizes well to unseen data from the same distribution. However, in many security-critical applications, average-case performance is insufficient. Adversarially robust learning demands that a model remains accurate even when inputs are subjected to small, worst-case perturbations.

Historically, achieving adversarial robustness has been significantly more difficult than standard learning. While standard PAC learning requires a sample size proportional to the VC-dimension of the hypothesis class, robust learning often suffers from exponential sample complexity. This paper addresses this gap by introducing the concept of "tolerance"—a slight relaxation of the robustness requirement that yields dramatic algorithmic and theoretical simplifications.

The Problem: The Hardness of Robustness

In robust learning, we seek a hypothesis $h$ such that for an input $x$, $h$ predicts correctly not just for $x$, but for all $z$ within a perturbation set $U(x)$. Previous research indicated that without restrictive assumptions, the number of samples needed to learn a robust classifier could be prohibitively high. Existing solutions often relied on complex "compression schemes" or "one-inclusion-graph" algorithms that are difficult to implement in practice.

The authors propose a "tolerant" approach. Instead of requiring robustness against the exact set $U$, they evaluate the learner against a slightly larger reference set $V$. This relaxation is practically motivated: in most real-world scenarios, a user indifferent to a perturbation of radius $\epsilon$ is typically also indifferent to a radius of $\epsilon + \gamma$ for a very small $\gamma$. This "mild relaxation" reflects the reality that robustness boundaries are rarely absolute.

Algorithmic Frameworks

The paper introduces two primary frameworks that leverage tolerance to simplify the learning process, moving away from intricate subroutines toward more intuitive methods.

1. RERM-and-Smooth (Realizable Case)

In the realizable setting—where a perfectly robust classifier exists within the hypothesis class—the authors propose a two-step process:

  • Robust Empirical Risk Minimization (RERM): Find a hypothesis $h$ that is robust on the training samples.
  • Local Smoothing: To ensure generalization, the algorithm "smoothes" $h$ by outputting the majority vote of $h$ over a small neighborhood around any given test point.

This smoothing acts as a powerful regularizer, preventing the model from overfitting to specific adversarial "holes" in the training distribution.

2. RERM-and-Discretize (Agnostic Case)

For the agnostic case, where the data may be noisy or no perfect classifier exists, the authors employ a discretization strategy. By creating a global grid (an $\eta$-net) of the input space and finding a robust hypothesis on this grid, they can use a nearest-neighbor approach to classify new points. This avoids the need for the complex geometric constructions required by prior "improper" learners.

Key Insights and Results

The central contribution of this work is the proof that tolerance collapses the sample complexity of robust learning from exponential to linear.

  • Linear Sample Complexity: The authors demonstrate that a simple learner can achieve a sample complexity of $\tilde{O}(\frac{VC(H) \cdot d}{\epsilon})$ in the realizable case and $\tilde{O}(\frac{VC(H) \cdot d}{\epsilon^2})$ in the agnostic case. This brings robust learning much closer to the efficiency of standard PAC learning.
  • "Almost Proper" Learning: Unlike previous "improper" learners that might output arbitrary functions, these algorithms are "almost proper." They select a function from the original hypothesis class and apply a simple smoothing transformation.
  • Universality: These results do not require the hypothesis class to possess specific geometric properties or "regularity," making the findings broadly applicable across different types of models.

Limitations and Future Directions

While the paper provides a significant theoretical leap, some challenges remain:

  • Dimension Dependence: The sample complexity bounds currently depend on the ambient dimension $d$ of the input space (e.g., the number of pixels in an image). Eliminating this dependence for inductive learners remains a key open question.
  • Computational Overhead: While the sample complexity (the amount of data needed) is low, the computational task of solving the initial Robust ERM can still be intensive for complex hypothesis classes.
  • Strict Properness: In highly regulated domains, the "smoothed" nature of the output might be a hurdle if the final model must reside strictly within the original hypothesis class without any post-processing.

Conclusion

By introducing a small amount of tolerance, this research demonstrates that adversarially robust learning does not inherently require the extreme complexity previously assumed. The transition from exponential to linear sample complexity via simple smoothing and discretization techniques provides a new foundation for developing efficient, robust machine learning algorithms that are both theoretically sound and practically accessible.

Summary updated

BibTeX
@inproceedings{ashtiani2025simplifying,
  author = {Hassan Ashtiani and Vinayak Pathak and Ruth Urner},
  title = {{Simplifying Adversarially Robust PAC Learning With Tolerance}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
}
Figure