Sample Size Flexibility
The two notions share the same competitiveness requirement.
The Comparison Question
Suppose a learning algorithm receives a sample and produces a hypothesis. The central question is how that output is evaluated against hypotheses in the class. In both agnostic PAC learnability and nonuniform learnability, the output must be (ε, δ)-competitive with every other hypothesis in the class. The difference is whether the number of examples needed for that guarantee must be the same for every comparison hypothesis.
Sample size flexibility concerns dependency: may the required sample size change when the comparison hypothesis changes?
Agnostic PAC Requires Uniformity
Agnostic PAC learnability uses an h-independent sample-size requirement. Here, h denotes the hypothesis selected for comparison with the algorithm's output. After fixing any comparison hypothesis h in the class, the required sample size m cannot depend on which h was chosen. The same sample-size condition must therefore work uniformly across those comparisons.
Tracing a Uniform Bound
Testing an agnostic PAC requirement
An algorithm's output must be compared with h1 and h2. A proposed guarantee uses one sample-size requirement m for both comparisons. Does this match the h-independence requirement?
Choose h1: Compare the algorithm's output with h1 and apply the proposed sample-size requirement m.
Choose h2: Replace h1 with h2. The proposed requirement still uses m rather than changing the required number of examples.
Check dependency: The required sample size does not depend on which comparison hypothesis was selected.
The proposed rule has the required uniform form for agnostic PAC learnability with respect to this dependency question.
Nonuniform Flexibility
Nonuniform learnability relaxes the sample-size condition. It permits the required m to depend on the particular comparison hypothesis h. Thus, fixing h1 may lead to one sample-size requirement, while fixing h2 may lead to another. This changes the sample-size policy, not the comparison target: the algorithm's output must still be (ε, δ)-competitive with every other hypothesis in the class.
Testing a nonuniform requirement
A proposed learning guarantee uses m(h1) when comparing with h1 and m(h2) when comparing with h2. Is the dependence on h allowed under nonuniform learnability?
Fix h1: The required number of examples is determined using the comparison hypothesis h1.
Fix h2: The requirement may change because the comparison hypothesis is now h2.
Check the preserved condition: Even though the sample-size rule varies, the output still has to be compared with every hypothesis in the class.
The hypothesis-dependent sample-size rule is permitted by nonuniform learnability, while the all-comparisons requirement remains.
Why This Is a Relaxation
Nonuniform learnability is a relaxation because it removes one restriction while retaining the shared performance requirement. Agnostic PAC learnability requires a sample-size rule that is independent of h. Nonuniform learnability allows that rule to vary with h. Since the nonuniform notion accepts the additional possibility of hypothesis-dependent sample sizes, it imposes a less restrictive sample-size condition.
Dependency Audit
- Identify the comparison hypothesis h used in the guarantee.
- Ask whether changing h is allowed to change the required sample size m.
- If m must remain independent of h, the sample-size condition has the agnostic PAC form.
- If m may vary with h, the sample-size condition has the nonuniform form.
- Check separately that the output is still required to be (ε, δ)-competitive with every hypothesis in the class.
| Question | Agnostic PAC learnability | Nonuniform learnability |
|---|---|---|
| May m depend on h? | No | Yes |
| Must the output be competitive with every hypothesis in the class? | Yes | Yes |
| What changes between the notions? | The sample-size rule is uniform across comparison hypotheses | The sample-size rule may vary with the comparison hypothesis |
Common Mistakes
Treating nonuniform learnability as if it weakened the comparison requirement.
The relaxation concerns only the sample-size policy. Both notions retain the requirement of being (ε, δ)-competitive with every other hypothesis in the class.
Fix:
Separate the performance requirement from the sample-size requirement. Ask first whether all comparisons are still required, then ask whether m may depend on h.Assuming that uniform means comparing against only one hypothesis.
Uniform describes whether m changes across comparisons, not how many hypotheses are used.
Fix:
Remember that the output can still be compared with every hypothesis in the class while the same sample-size condition is used for all of them.Checking only whether a bound has a numerical value.
The decisive issue is dependency, not calculating a numerical sample size.
Fix:
Audit the inputs to the sample-size rule and determine whether the comparison hypothesis is permitted to influence m.
Practice Check
A learning guarantee compares the algorithm's output with every hypothesis in the class. In one version, the required sample size is the same regardless of the comparison hypothesis. In another version, the required sample size may vary with the comparison hypothesis. Identify which version has the agnostic PAC form and which has the nonuniform form. Then state the requirement shared by both.
Hints
- Look only at whether m may depend on h.
- Do not confuse sample-size flexibility with the set of hypotheses used for comparison.
- Both versions retain the same competitiveness requirement.
What do you think happens?
If a proposed guarantee uses one sample-size requirement for h1 and a different requirement for h2, which notion permits this dependency?
Reveal answer
Answer: Nonuniform learnability
Nonuniform learnability permits the required sample size to depend on the comparison hypothesis, while agnostic PAC learnability requires an h-independent sample-size condition.
Key Takeaways
- Agnostic PAC learnability requires an h-independent sample-size condition.
- Nonuniform learnability permits the required sample size to depend on the comparison hypothesis h.
- Nonuniform learnability is a relaxation because it loosens the sample-size condition.
- Both notions still require the algorithm's output to be (ε, δ)-competitive with every hypothesis in the class.
- To classify a sample-size bound, inspect whether changing h is allowed to change m.
Key Takeaways
- Agnostic PAC learnability uses a sample-size requirement that cannot depend on the comparison hypothesis.
- Nonuniform learnability allows different comparison hypotheses to have different sample-size requirements.
- The nonuniform notion relaxes sample-size uniformity, not the requirement to compare against every hypothesis.
- The decisive test is whether the comparison hypothesis h is permitted to influence m.