cs.LGAug 6, 2026
SaveAn Optimal Agnostic PAC Algorithm
Organizations: Department of Computer Science, Aarhus University · Division of Artificial Intelligence and Data Science, School of Computing and Data Science, The University of Hong Kong · Department of Statistics, University of California, Berkeley
Abstract
Let be a class of finite VC dimension . Writing for the binary risk and , we construct a learner achieving the statistically optimal risk bound: from an i.i.d.\ sample of size , for every , with probability at least ,
This settles the sample complexity of agnostic PAC learning up to universal constants at every fixed , matching the lower bounds of Devroye, Györfi, and Lugosi [A Probabilistic Theory of Pattern Recognition, Springer, 1996].
Explore similar work
We study the problem of \emph{adversarially robust} PAC learning. In this framework, the learner observes independent samples from an unknown distribution over , as in classical PAC learning. However, given a perturbation map known to the learner, the goal is to output, with high probability, a predictor that correctly classifies \emph{every} perturbation of most future examples drawn from the same underlying distribution. We determine the \emph{optimal} -independent sample complexity of this problem in both the realizable and agnostic settings. More specifically, for every concept class of dimension , we prove upper bounds of in the realizable setting and in the agnostic setting, together with an optimal first-order refinement of the latter. These bounds match the corresponding lower bounds for classical PAC learning. Consequently, and perhaps surprisingly, adversarial robustness incurs \emph{no additional} distribution-free statistical cost, uniformly over all perturbation maps. Our bounds improve exponentially on those of [Montasser, Hanneke, and Srebro; COLT '19]. On the technical side, we present short and elementary proofs based on a new algorithmic principle that we call \emph{binomial-bagging}. We believe that binomial-bagging and its analysis may be of independent interest.
The Sample Complexity of Distributionally Robust PAC Learning under Cressie--Read Divergences
We study distributionally robust PAC learning for the ---loss, where adversarial perturbations of the data distribution are constrained by a Cressie--Read divergence of order and radius . For hypothesis classes with VC dimension , we establish realizable and agnostic sample-complexity bounds tight up to constant and logarithmic factors, respectively; ordinary empirical risk minimization attains both rates up to logarithmic factors. For target accuracy and confidence , their respective orders are
where . For every fixed , robustness changes the realizable -dependence from to as . In the agnostic case, for , robustness changes the -dependence from to , whereas for the exponent remains the classical , with nontrivial -dependence. Building on the known scalar reduction of robust -- risk to ordinary classification error, our analysis reveals a scale-sensitive interaction between the statistical estimation of classification error and its amplification by robustness, sharply explaining the transition in the agnostic rate. We extend the previously studied -divergence case to every Cressie--Read order , close its upper--lower gaps, and recover standard PAC learning rates as , unlike previous bounds that fail to interpolate correctly in this limit.
Bagging Robustly Learns VC Classes with Linear Sample Complexity
We revisit the problem of learning predictors robust to adversarial examples at test-time. We prove that VC classes are adversarially robustly learnable with sample complexity linear in the VC dimension , providing an exponential improvement over the previous upper bound of Montasser, Hanneke, and Srebro (2019). Remarkably, this result is achieved with a simple improper algorithm that combines the classic heuristic bagging (bootstrap aggregation) of Breiman (1996) with robust empirical risk minimization (RERM). Our algorithm computes RERMs on independent bootstrap samples and outputs their majority vote, where denotes the dual VC dimension. We complement this result with a lower bound showing that this is unavoidable: in general, any learner in this oracle model requires calls to an RERM oracle, even when given arbitrarily many training examples.