Agnostic PAC Learnability
The upper bound shows that a sufficiently large sample can make ERM an agnostic PAC learner.
Learning Without Perfect Representation
Agnostic learning does not assume that the data can be perfectly represented by a hypothesis in the chosen class. The learner therefore does not promise to find a perfect hypothesis. Instead, it aims to find a hypothesis whose performance is close to that of the best hypothesis available in the class. The upper-bound argument shows that, when the sample is sufficiently large, empirical risk minimization can achieve this goal with a controlled probability of failure.
The central result is not that ERM always chooses a perfect hypothesis. It is that a sufficiently large sample can make ERM an agnostic PAC learner.
From Sample to ERM Hypothesis
The learning process begins with a sample. ERM examines the hypotheses in the class and selects one that minimizes empirical risk, meaning the risk measured on that sample. This selection rule alone only describes performance on the observed data. To show that the selected hypothesis is useful beyond the sample, the proof must connect empirical risk with true risk. Theorem 26.5 supplies that connection, and the remaining probability argument makes the comparison hold across the entire hypothesis class.
Tracing the ERM Argument
Follow the proof idea when the learner must choose among several hypotheses even though none is assumed to represent the data perfectly.
Start with the sample: The learner receives data and evaluates the hypotheses using empirical risk on that sample.
Apply ERM: ERM selects a hypothesis with minimum empirical risk in the hypothesis class.
Compare risks: Theorem 26.5 is used to control the difference between each hypothesis's empirical risk and its true risk.
Control all hypotheses: The union bound combines the individual failure events so that the comparison can hold for every hypothesis in the class with a controlled overall failure probability.
Impose the sample condition: A sufficient sample-size condition from Lemma A.2 is imposed so the final error is below epsilon.
The resulting ERM procedure is shown to be an agnostic learner when the sample is sufficiently large.
True Risk and Empirical Risk
Empirical risk is computed from the sample used by ERM. True risk refers to performance over the data distribution. The key difficulty is that ERM directly minimizes only the empirical quantity. Theorem 26.5 provides a uniform risk comparison: it controls the difference between empirical and true risk for every hypothesis in the class, rather than establishing the comparison only for the single hypothesis eventually selected by ERM.
Combining Failure Events
The theorem gives a risk comparison for individual hypotheses, while the learner needs a statement that covers the whole hypothesis class. The union bound combines the failure events associated with the individual hypotheses. This produces a probability guarantee for the combined event that the desired risk comparison holds for every hypothesis simultaneously. That uniform guarantee is what lets the proof apply the comparison to the ERM-selected hypothesis.
The Sufficient Sample Condition
The proof needs a sufficient sample-size condition because the uniform risk-estimation error must be small enough to meet the desired accuracy and confidence requirements. The source excerpt does not display the literal algebraic expression for the sample complexity. Its structural conclusion is that one first proves the uniform risk bound, then combines the relevant failure events, and finally imposes the sufficient condition from Lemma A.2 so that the final error is below epsilon.
Common Proof Mistakes
Treating minimum empirical risk as an immediate guarantee of minimum true risk
ERM minimizes empirical risk, but a theorem is needed to relate empirical performance to true performance.
Fix:
Use Theorem 26.5 to control the difference between empirical and true risk.Applying a risk comparison only to the selected hypothesis
The proof needs a comparison that remains valid for whichever hypothesis ERM selects.
Fix:
Use the uniform comparison for every hypothesis in the class.Ignoring the combined failure probability
The learner's guarantee concerns the whole class, not one isolated hypothesis.
Fix:
Apply the union bound to control the probability of the combined events.Omitting the sufficient sample-size condition
The proof still needs the risk-estimation error to be small enough for the desired epsilon accuracy.
Fix:
Impose the sufficient condition from Lemma A.2.
Proof-Structure Practice
Arrange these ideas in the order used by the agnostic PAC upper-bound argument: apply ERM, impose the sufficient sample-size condition, obtain a uniform risk comparison, start with a sample, and combine failure events with the union bound.
Hints
- Begin with the object available to the learner.
- The union bound is used after individual risk-comparison events have been identified.
- The sufficient condition is used to make the final error meet the desired epsilon requirement.
- A correct order is: start with a sample, apply ERM, obtain a uniform risk comparison, combine failure events with the union bound, and impose the sufficient sample-size condition.
Key Takeaways
- An agnostic learner does not rely on perfect representation of the data. ERM chooses a hypothesis by minimizing empirical risk, but Theorem 26.5 is needed to relate that sample-based quantity to true risk. The theorem provides a uniform comparison across the hypothesis class. The union bound combines the individual failure events into a guarantee that the comparison holds simultaneously. Finally, a sufficient sample-size condition makes the uniform error small enough for the desired epsilon accuracy, establishing the upper-bound result.
Key Takeaways
- Agnostic learning seeks performance close to the best hypothesis in the class without assuming perfect representation.
- ERM minimizes empirical risk, so a theorem must connect empirical risk with true risk.
- Theorem 26.5 supplies a uniform risk comparison for every hypothesis in the class.
- The union bound controls the combined probability of failure across hypotheses.
- A sufficient sample-size condition ensures that the final error is below epsilon.