# Near-Optimal Sample Complexity of Deterministic Agnostic PAC Learning

Deterministic labels admit a tighter agnostic sample complexity bound

Shai Ben-David, Steve Hanneke, Farnam Mansouri, Amirreza Shaeiri · arXiv · 2026-11-9

- **Problem** Finite-diameter classes had a large gap between upper and lower sample complexity bounds under deterministic labels. The known upper bound scaled as K over epsilon, while the only lower bound was the standard realizable one.
- **Method** The authors combine an empirical risk minimizer with memorization, instead of relying on memorization alone as Ben-David and Urner did. The memorizing learner reproduces every observed label and uses the ERM's predictions on unseen points.
- **Results** The paper proves a sample complexity of order K^{1/3} d^{2/3} over epsilon for VC dimension d and diameter K. The authors also construct classes where this bound is tight up to logarithmic factors.

## Where the finite-diameter gap sits

Finite-diameter classes still lack a tight sample complexity under deterministic labels, because the known upper and lower bounds sit far apart. Deterministic labels are assumed to be given by a fixed function f⋆ that need not belong to the concept class C. The learner must therefore compete with the best concept in C, even when the true labeling rule is far more complicated.

For infinite-diameter classes, the known lower bound already matches the classical ERM upper bound, so the deterministic assumption buys little there.

The finite-diameter case is where the deterministic assumption could help, since the diameter D(C) measures how far apart concepts in C can disagree. Ben-David and Urner proved an upper bound of order D(C)/ε in this regime, written Õ(D(C)/ε). Their only known lower bound was the standard realizable PAC lower bound, of order VC(C)/ε plus log(1/δ)/ε, for non-trivial classes.

That leaves a gap between the two bounds, and closing it is the question the paper takes on. The paper's main result improves both sides: an upper bound of Õ(K^{1/3} d^{2/3}/ε) for VC dimension d and diameter K. The matching lower bound holds for suitable classes, up to logarithmic factors, so the gap closes in that sense.

## Memorizing sampled labels

The upper bound combines an empirical risk minimizer with memorization, instead of relying on memorization alone. Ben-David and Urner's algorithm was purely based on memorization, so this is the key contrast with the earlier method.

The memorizing predictor g\_{h,S} returns the observed label on each sampled instance and h(x) on every other instance. An empirical risk minimizer is any h in C that minimizes the empirical error L\_S(h) over the sample S. A memorizing empirical risk minimizer (MERM) is a predictor of the form g\_{h,S} for such an ERM h, so it reproduces every observed label exactly.

The paper states that a PAC learner A is MERM with respect to C when A^S is a MERM over S for every sample S.

The two-concept proof starts by replacing h\_0 with the all-zero function and h\_1 with h\_0 Δ h\_1, so that \|h\_1\| is at most K. The analysis then defines q as the weight of disagreement between h\_0 and h\_1, and mu as the ratio of positive labels in that disagreement region. Assuming mu is at least 1/2, the analysis treats h\_1 as the best concept in C.

The quantity n\_S^+ counts the sample points that fall in h\_1, and p\_S^+ measures the weight of the positive points memorized. Theorem 3.1 bounds the sample complexity of any MERM learner for two-concept classes with diameter at most K by a term that scales with K^{1/3}.

## How the two-concept proof runs

The analysis starts with a reduction: flipping the label of any fixed instance across all concepts leaves the argument unchanged. So \\(h\_0\\) can be replaced by the all-zero function and \\(h\_1\\) by \\(h\_0 \\triangle h\_1\\), which gives \\(\|h\_1\|\\le K\\). Let \\(q\\) be the mass of the disagreement region, \\(q=\\sum\_{x\\in h\_1} p\_x\\), where \\(p\_x\\) is the mass of instance \\(x\\).

The ratio \\(\\mu\\) is the share of positive labels inside that region, and the proof assumes \\(\\mu\\ge 1/2\\) without loss of generality.

The sample count \\(n^+\_S\\) is the number of sample points in \\(h\_1\\), and the proof sets a threshold \\(\\gamma\\) from it. \\\[ \\gamma := \\frac{n\_S^+\\,\\mu^2}{2(K+n\_S^+\\mu)} + \\frac{\\varepsilon}{2q} \\\] Because \\(\\gamma\\) grows with \\(\\mu\\), the assumption \\(\\mu\\ge 1/2\\) yields a lower bound \\(\\gamma'\\) that depends only on \\(n^+\_S\\), \\(K\\), \\(\\varepsilon\\) and \\(q\\).

The argument then splits on whether \\(2\\mu-1\\) exceeds \\(\\gamma\\).

In the first case the output is compared with the all-zero concept after the memorized mass is subtracted, which keeps the excess within \\(\\varepsilon\\). In the second case the ERM is shown to pick the all-zero concept with probability at most \\(2\\delta'\\), using Hoeffding's inequality on the fraction of positive points. The proof rests on three claims: a concentration bound for the memorized mass, a sample-size condition on \\(n^+\_S\\), and an inequality for \\(F(q)\\).

If \\(q\<\\varepsilon\\), the excess is already within \\(\\varepsilon\\), so the hard case is \\(q\\ge\\varepsilon\\).

Claim 3 turns the supremum over \\(q\\) into a maximum of \\(4/\\varepsilon\\) and \\(\\sqrt{27K/(n\\varepsilon^3)}\\) terms, multiplied by \\(4\\ln(1/\\delta')\\). A union bound over the failure events gives total failure probability at most \\(\\delta\\), which yields the two-concept bound. Theorem 3.1 states that the sample complexity is at most \\(8\\big((\\ln(4/\\delta))^{2/3}K^{1/3}+2\\ln(4/\\delta)\\big)/\\varepsilon\\) for a MERM learner.

## What the bounds establish

The main finite-diameter result gives a sample complexity of eO(K^{1/3} d^{2/3}/ε) for VC dimension d and diameter K. The earlier upper bound of Ben-David and Urner scaled linearly in the diameter, as eO(D(C)/ε). So the new bound swaps the linear dependence on K for K^{1/3} d^{2/3}, which is smaller when K is large relative to d. The classical agnostic guarantee of O(d/ε²) is the baseline that deterministic labels already improved on.

The paper also constructs concept classes for which this upper bound is tight up to logarithmic factors. These constructions need K to be at least the larger of a finite constant K0 and d. Before this work, the only known lower bound in the finite-diameter regime was the realizable PAC lower bound. That realizable bound is Ω(VC(C)/ε + log(1/δ)/ε), which leaves a gap to the upper bound.

The two-concept case, treated as a warm-up, gives a bound that grows as K^{1/3} over ε. The ln(4/δ) factor enters with a 2/3 power on the K^{1/3} term and an additive linear term. The proof first replaces h0 with the all-zero function and h1 with h0 Δ h1, so that \|h1\| ≤ K. The authors then set δ' = δ/4 and work with the disagreement weight q and the ratio µ.

For agnostic online learning, Theorem 1.2 gives a minimax expected regret of O(K) when the diameter is finite. For each K, the paper builds a class with Littlestone dimension 1 and diameter K whose regret is Ω(K). So the diameter sets the scale of the online regret, in line with the claim that it partly controls the minimax regret. The authors note that active learning with two concepts could need at most K queries, instead of K^{1/3}/ε.

## Why the lower bound is hard

The lower bound can't reuse the standard realizable argument, because memorization removes uncertainty on every sampled point. Under deterministic labels, the hardness therefore has to sit in the unsampled part of the support. The lower bounds still hold up to constant factors when randomized learning algorithms are allowed. The paper states the definitions of true error and empirical error before it proves them.

Each point gets a deterministic label drawn from a slightly biased coin. The direction of the bias is chosen uniformly at random.

That gives the contradiction the proof needs.

## Open problems in deterministic agnostic PAC learning

The upper bound for general VC classes depends on a finite cover, built with a technique similar to Hopkins et al. Its details sit in an appendix, so the main body only sketches how the pieces fit together. The authors combine an empirical risk minimizer with memorization, and they contrast this with the purely memorization-based algorithm of Ben-David and Urner.

Their analysis starts from the two-concept case, where the missing mass concentration inequalities play a key role.

In the infinite-diameter regime, the leading 1/ε² term of the upper bound is controlled by PERT-VC. The lower bound of Ben-David and Urner is expressed through SET-VC, which is at most PERT-VC. The authors ask whether SET-VC(C) and PERT-VC(C) always coincide, as Open Question 1.4. If they don't coincide, the upper and lower bounds may not match in the small-ε regime.

The authors leave multiclass agnostic PAC learning under deterministic labels for future work. They also leave agnostic PAC learning of partial concept classes under deterministic labels open. For two-function classes, they call it straightforward that the optimal query complexity of active learning is upper bounded by K. Hanneke's recent breakthrough result makes this direction especially interesting, since its proof uses the diameter in an essential way.

## Paper info

- **Authors**: Shai Ben-David, Steve Hanneke, Farnam Mansouri, Amirreza Shaeiri
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-11
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.13210
- **Category**: stat.ML · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.13210v1) · [PDF ↗](https://arxiv.org/pdf/2611.13210v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

We study the problem of agnostic PAC learning under deterministic labels, where the examples are labeled by an arbitrary deterministic function, which need not belong to the concept class $C$. This model captures misspecification without stochastic label noise and lies between the realizable and fully agnostic settings. Prior work showed that, when $C$ has finite diameter $K$ and VC dimension $d$, deterministic labels can improve the sample complexity upper bound from the classical agnostic guarantee $O(d/\\varepsilon^2)$ to $\\widetilde{O}(K/\\varepsilon)$, but left a large gap between upper and lower bounds. Our main result sharpens this picture. We prove that every class of VC dimension $d$ and finite diameter $K$ is learnable with sample complexity $\\widetilde{O}\\left( \\frac{K^{1/3} \\, d^{2/3}}{\\varepsilon} \\right)$, and we construct classes for which this bound is tight up to logarithmic factors. We also study the online analogue of this problem and show that the minimax regret is again partly controlled by the diameter of the class. Technically, our upper bounds are obtained via memorization-based learning algorithms that exploit the deterministic label structure.

## Quote from the paper

Shai Ben-David, Steve Hanneke, Farnam Mansouri, Amirreza Shaeiri (2026). Near-Optimal Sample Complexity of Deterministic Agnostic PAC Learning. arXiv:2611.13210v1. https://arxiv.org/abs/2611.13210v1

**BibTeX**

```
@misc{bendavid2026near,
  title = {{Near-Optimal Sample Complexity of Deterministic Agnostic PAC Learning}},
  author = {Shai Ben-David and Steve Hanneke and Farnam Mansouri and Amirreza Shaeiri},
  year = {2026},
  eprint = {2611.13210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13210v1}
}
```

## Other paper commentary

- [RadRef: A Reference-Free Metric for Radiology Report Generation](https://refivu.com/en/papers/c021bdd5-9b56-4971-9197-cb24eda10255-radref-a-reference-free-metric-for-radiology-report.md)
- [Programming Prescience: Issues in Human Construction of Forecasting Bots](https://refivu.com/en/papers/34469e6b-3cef-4c1e-b57c-1b0537e2c995-programming-prescience-issues-in-human-construction-of.md)
- [Hidden Tails: Certifying Tail-Risk Claims under Selective Labels](https://refivu.com/en/papers/75cb6ab3-f9c1-4466-b415-44269638d62a-hidden-tails-certifying-tail-risk-claims-under-selective.md)
- [Agnostic Marginal-Nonuniform Learning](https://refivu.com/en/papers/016f1038-e984-4177-99de-fa3e2feb1567-agnostic-marginal-nonuniform-learning.md)
- [Graph-Guided Bayesian Factor Analysis: A Fast Integrated EFA-CFA Approach for High-Dimensional Data](https://refivu.com/en/papers/5d2d391c-7613-40f5-b05b-d69ca40d0041-graph-guided-bayesian-factor-analysis-a-fast-integrated.md)
- [Causal discovery from Bayesian symbolic regression](https://refivu.com/en/papers/f0258736-ce15-41f3-ae77-5ca89f701a9c-causal-discovery-from-bayesian-symbolic-regression.md)
- [Audited Gradients, Anchored Policies: Model-Based Reinforcement Learning for Efficient Flow Control](https://refivu.com/en/papers/59b36b93-d7e6-4e24-a0db-14eab8639fe2-audited-gradients-anchored-policies-model-based.md)
- [How Much of Your VLA Is kNN](https://refivu.com/en/papers/f1a4a8bd-ed46-45bc-a242-753548c3e76e-how-much-of-your-vla-is-knn.md)
- [The Left Ripple of Byte-Pair Encoding: Certified Lookbehind for Every Dictionary](https://refivu.com/en/papers/8d3f090d-d15c-460b-8290-9facad800903-the-left-ripple-of-byte-pair-encoding-certified.md)
- [Grasping the Future: Joint 3D Hand-Object Forecasting From Internet Videos](https://refivu.com/en/papers/02530543-61b3-4f8d-8377-53215f9b9fea-grasping-the-future-joint-3d-hand-object-forecasting.md)
- [Vendi Anomaly Scores for Efficient and Accurate Anomaly Detection](https://refivu.com/en/papers/806f5b70-4ff5-4846-a82b-db852262f953-vendi-anomaly-scores-for-efficient-and-accurate-anomaly.md)
- [SWAM: Scaling World Action Models with Cross-Modal Alignment](https://refivu.com/en/papers/e8b2ba32-9c65-4ad1-b595-af05643ccc37-swam-scaling-world-action-models-with-cross-modal.md)

## Terms in this paper

- [memorization](https://refivu.com/en/terms/71212e2920ee-memorization)
- [missing mass](https://refivu.com/en/terms/65b0d1d1526a-missing-mass)
- [empirical risk minimizer](https://refivu.com/en/terms/789b0b6ffa46-empirical-risk-minimizer)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/39c5e4f6-4a92-4c1d-b07b-0e6ecad3cdc4-near-optimal-sample-complexity-of-deterministic-agnostic-pac)
