# Settling the Sample Complexity of Deterministic Agnostic PAC Learning

*Shai Ben-David, Steve Hanneke, Farnam Mansouri, Amirreza Shaeiri*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148168) · [OpenReview](https://openreview.net/forum?id=znpXwzJ5NC) · [Open on the map](../papers.html#p148168)

Category: [Causality, Privacy & Learning Theory](../pcat/11.md) › [PAC Learning Theory and Sample Complexity](../pgroup/295.md) · Type: theory · Keywords: deterministic agnostic PAC learning, sample complexity, VC dimension, finite diameter, online learning

## Summary
The paper determines the exact sample complexity for deterministic agnostic PAC learning, proving a bound of widetildeO(K1/3 d2/3 / varepsilon) that is tight up to logarithmic factors and extending the analysis to the online setting.

## Explained to a 5-year-old
Imagine you want to learn a rule that guesses answers, but the answers are always given by a fixed, maybe wrong, function. You don't know the true rule, and the answers never change, so there's no random noise. The goal is to figure out how many examples you need to get the rule good enough. The answer depends on how many different possible answers there are and how complex the rule can be. This helps scientists understand the limits of learning when the data is deterministic but not perfect.

## Explained to a 5-year-old, longer
When you try to learn something, you often get answers that might be wrong. Sometimes the wrong answers are always the same, never changing like random mistakes. This paper looks at learning when the answers are always the same wrong function. It asks how many examples you need to see before you can trust your learned rule. The answer depends on two things: how many different possible answers there are, and how complicated the rule can be. The researchers found a formula that tells you exactly how many examples you need. The formula says you need a bit of the first number raised to one third, times a bit of the second number raised to two thirds, all divided by how accurate you want to be. They also built examples that show you cannot do better than this formula, so it is the best possible. The same ideas work when you learn step by step in an online game. In that game, the difficulty also depends on how many answers the class can produce. This helps scientists understand the limits of learning when the data is deterministic but not perfect. It gives a clear picture of how hard it is to learn under these conditions.

## For a technical reader
The paper studies a learning setting where the training labels are produced by a fixed deterministic function that may not belong to the hypothesis class, sitting between the ideal realizable case and the fully agnostic case. It shows that for any concept class with VC dimension d and finite diameter K, the number of samples needed to achieve ε accuracy can be bounded by widetildeO(K1/3 d2/3 / varepsilon), and this bound cannot be improved much. The authors achieve this by designing memorization-based algorithms that exploit the deterministic label structure and by constructing hard examples that match the upper bound. They also extend the analysis to the online learning scenario, proving a regret bound that scales with the class diameter. Overall, the work tightens our understanding of sample complexity in misspecified deterministic environments and provides both algorithmic insights and optimal theoretical guarantees.

## Problem
In deterministic agnostic PAC learning, where labels are generated by an arbitrary deterministic function not necessarily in the concept class, what is the optimal sample complexity as a function of VC dimension d and class diameter K? Prior work gave an upper bound of widetildeO(K/varepsilon) but left a large gap to the lower bound.

## Method
The approach uses memorization-based learning algorithms that exploit the deterministic label structure, combined with combinatorial analysis of VC dimension and class diameter to obtain upper bounds and construct matching lower-bound examples.

## Results
The sample complexity bound is widetildeO(K1/3 d2/3 / varepsilon), and matching lower-bound constructions show this is optimal up to logarithmic factors; the online version also yields a regret bound that scales with the class diameter.

## Contributions
The paper closes the gap between upper and lower bounds for deterministic agnostic PAC learning, providing tight sample complexity bounds and extending the analysis to the online setting, along with memorization-based algorithms that exploit deterministic labels.

## Limitations and assumptions
The results apply only to concept classes with finite diameter K and finite VC dimension d.

## Research questions this paper is counted under

- [What is the optimal sample complexity for learning concept classes under deterministic agnostic PAC, differential privacy, and realizable PAC?](../q/724.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148168)
