Nonuniform Learnability
Any guarantee that agnostic PAC learnability provides, with one sample size valid for every comparison, already meets the nonuniform condition, since a constant function of h is a special case of a function of h.
A Prediction About Two Sample-Size Rules
Two learning guarantees look almost identical on the surface. In both, a learning algorithm receives a sample, produces a hypothesis, and that output must be $(\epsilon, \delta)$-competitive with every other hypothesis in the class. The two notions differ in one narrow place: whether the number of examples needed for the guarantee must stay the same across the different comparison hypotheses. This article follows that single question from start to finish.
What do you think happens?
Under which of the two notions may the required number of examples be different for different comparison hypotheses h?
Reveal answer
Nonuniform learnability only
Agnostic PAC learnability requires one sample-size requirement that does not depend on which h is chosen for the comparison. Nonuniform learnability permits the sample size m to depend on h, while keeping the same competitiveness requirement.
The Shared Competitiveness Requirement
Start with what the two notions have in common. The algorithm's output must be $(\epsilon, \delta)$-competitive with every other hypothesis in the class. The algorithm is not allowed to pick a hypothesis that is clearly worse than some competitor, at least with the stated confidence and accuracy. Nothing about this requirement is relaxed when we move from agnostic PAC learnability to nonuniform learnability.
So the question that separates the two notions is not which hypotheses are used for comparison. Every hypothesis in the class is still a comparison candidate. The real question is whether the number of examples needed for the guarantee must be uniform across those comparisons.
What Agnostic PAC Requires of the Sample Size
To compare the notions, fix a hypothesis h in the class and ask how the error of the algorithm's output compares with h. Under agnostic PAC learnability, the required sample size m cannot depend on which h was chosen for that comparison. One m must work for the comparison with every hypothesis in the class. The sample-size requirement is therefore h-independent.
The word uniform in this setting describes the sample-size condition. The algorithm still compares its output with every hypothesis in the class, but the required m is not allowed to change from one comparison hypothesis to another. This is a stronger requirement than allowing m to vary with h, which is why the uniform version is the more demanding of the two.
Tracing One Comparison Step by Step
Checking whether a bound may depend on h
A learning theorist proposes a sample-size bound m(h) for a class. For each candidate comparison hypothesis h, the bound gives a number of examples that suffices for the output to be $(\epsilon, \delta)$-competitive with h. Decide whether this bound fits agnostic PAC learnability or nonuniform learnability.
- 1Fix a comparison hypothesis
Pick one hypothesis h from the class. The comparison is between the algorithm's output and this h.
- 2Ask what the sample size depends on
The proposed bound is written as m(h), so the required number of examples is allowed to change with the choice of h.
- 3Check against the agnostic requirement
Agnostic PAC learnability requires one m that cannot depend on h. A bound of the form m(h) violates that, so it does not satisfy the agnostic requirement.
- 4Check against the nonuniform requirement
Nonuniform learnability keeps the same competitiveness requirement and permits m to depend on h. The bound m(h) is exactly that kind of dependency, so it fits nonuniform learnability.
The bound m(h) is a nonuniform-style sample-size rule. It would not establish agnostic PAC learnability on its own, because the agnostic notion forbids any dependence of m on the comparison hypothesis.
Notice what this example did not require. We did not compute any numerical value for m, and we did not need to know the class or the distribution. The decisive move was only to ask whether h is permitted to influence m. That is the same question the source treats as central.
Nonuniform Learnability as a Relaxation
Nonuniform learnability keeps the requirement that the output be $(\epsilon, \delta)$-competitive with every other hypothesis in the class. Its relaxation concerns only the sample-size policy: the bound may be different for different comparison hypotheses. Nonuniform learnability therefore permits a more flexible sample-size rule while retaining the same comparison requirement.
This is why nonuniform learnability is a relaxation of agnostic PAC learnability. Any guarantee that agnostic PAC learnability provides, with one sample size valid for every comparison, already meets the nonuniform condition, since a constant function of h is a special case of a function of h. Relaxing the sample-size rule can only enlarge the set of rules that qualify, so dropping the uniform requirement can only make the set of learnable classes larger, never smaller.
Sample Size as a Function of the Comparison
Under nonuniform learnability, each comparison hypothesis gets its own required sample size $m(h)$. Think of it as a lookup table: every key is a hypothesis, and the value stored under that key is the number of examples the guarantee needs when h is the comparator. The table is not forced to contain the same entry in every row.
Contrast this with agnostic PAC learnability. There the table would have one value shared by every row: a single m that works regardless of which hypothesis is the comparator. The keys are the same in both cases; only the constraint on the values differs.
Mistakes Learners Make With the Quantifier Order
Common mistake Thinking nonuniform learnability changes which hypotheses the output must be compared against.
Why it failsThe source states that the output must still be $(\epsilon, \delta)$-competitive with every other hypothesis in the class in both notions. Only the sample-size policy is relaxed.
Do this insteadKeep the comparison set fixed as the full class. Ask only whether m may depend on h.
Common mistake Assuming that allowing m to depend on h means the sample size can be arbitrary.
Why it failsThe relaxation only permits the sample size to vary with the comparison hypothesis. The competitiveness guarantee itself is unchanged.
Do this insteadRead nonuniform learnability as a more flexible sample-size rule under the same comparison requirement.
Common mistake Reading the word uniform as describing the algorithm's output rather than the sample size.
Why it failsThe source says the word uniform describes the sample-size condition, not the algorithm.
Do this insteadAttach uniform to m: the required m is not allowed to change from one comparison hypothesis to another.
Common mistake Concluding that agnostic PAC learnability is more permissive because it is the more familiar notion.
Why it failsAgnostic PAC learnability forbids h-dependence in m, which is a stronger requirement. Nonuniform learnability permits more.
Do this insteadRemember the direction of the relaxation: nonuniform is the weaker, more permissive condition.
Practice: Classifying a Sample-Size Rule
A colleague states a guarantee in which, for every hypothesis h in the class, there is a sample size m(h) that suffices for the output to be $(\epsilon, \delta)$-competitive with h. Another colleague states a guarantee in which there is one sample size m, chosen before any comparison hypothesis is considered, that suffices for the output to be $(\epsilon, \delta)$-competitive with every h in the class. Which guarantee corresponds to agnostic PAC learnability, and which to nonuniform learnability? Explain using only the dependence of the sample size on h.
Hints
- Ask first whether the sample size is allowed to change as the comparison hypothesis changes.
- The guarantee with one m chosen before any comparison has no dependence on h.
- The guarantee with m(h) is the one where the sample size depends on the comparator.
Summary of the Distinction
Both notions require the output to be $(\epsilon, \delta)$-competitive with every other hypothesis in the class. They differ only in whether the sample size may depend on the comparison hypothesis h. Agnostic PAC learnability uses one h-independent sample size. Nonuniform learnability permits m(h) to vary with h, which makes it a relaxation of agnostic PAC learnability.
At a glance
- Agnostic PAC learnability requires one sample-size requirement that cannot depend on the comparison hypothesis h.
- Nonuniform learnability keeps the same competitiveness requirement, but allows the sample size m to depend on h.
- Because the comparison requirement is unchanged and the sample-size rule is relaxed, nonuniform learnability is a relaxation of agnostic PAC learnability.
- The key test for any sample-size bound is whether h is permitted to influence m.