Back to the 2023 paper

Module 5: Probabilistic & Reinforcement Methods

20237m

Write short notes on Probably Approximately Correct (PAC) learning model.

Worked SolutionAI Assisted

Probably Approximately Correct (PAC) Learning Model (Valiant 1984):

Framework to analyze learnability: when can learner, with high probability, find approximately correct hypothesis with polynomial sample/computation?

Setup: Instance space XX, concept class CC, hypothesis space HH, distribution DD over XX, target c∈Cc\in C, training set S∼DmS\sim D^m labeled by cc.

Learner outputs h∈Hh\in H.

Definition: CC is PAC-learnable if exists algorithm LL and polynomial poly(1/ϵ,1/δ,n,size(c))poly(1/\epsilon,1/\delta,n,size(c)) such that for any ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), any DD, any c∈Cc\in C, given m≥poly(...)m\ge poly(...) examples, LL outputs hh with P(ErrorD(h)≤ϵ)≥1−δP(Error_D(h)\le \epsilon) \ge 1-\delta.

Error: $Error_D(h)=P_{x\sim D}[h(x)
eq c(x)]$, training error zero for consistent learner.

ϵ\epsilon: Accuracy parameter (approximately correct, error ≤ϵ\epsilon). δ\delta: Confidence (probably, with probability 1-δ\delta).

Sample complexity bounds:
For finite ∣H∣|H|: m≥1ϵ(ln⁡∣H∣+ln⁡1/δ)m \ge \frac1\epsilon(\ln|H| + \ln1/\delta) sufficient for consistent learner (if realizable). Using Hoeffding: P(∃h∈H:Errortrain=0butErrortrue>ϵ)≤∣H∣e−ϵmP(\exists h\in H: Error_{train}=0 but Error_{true}>\epsilon) \le |H|e^{-\epsilon m}.

For infinite HH, VC-dimension d=VC(H)d=VC(H): m=O(1ϵ(dlog⁡1/ϵ+log⁡1/δ))m = O(\frac1\epsilon(d\log1/\epsilon +\log1/\delta)) (agnostic: m=O(1ϵ2(d+log⁡1/δ))m=O(\frac1{\epsilon^2}(d+\log1/\delta))).

Examples:

  • Conjunctions of nn literals: PAC-learnable with m=O(1ϵ(nlog⁡n+log⁡1/δ))m=O(\frac1\epsilon(n\log n +\log1/\delta))
  • Axis-aligned rectangles in R2\mathbb{R}^2 PAC-learnable, VC=4VC=4.
  • Parity not efficiently PAC-learnable.

Agnostic PAC: $c
otin Hornoise,learnerfinds or noise, learner finds hwitherror≤ with error ≤ \min_{h\in H}Error_D(h)+\epsilon$.

Implications: PAC gives theoretical guarantee linking sample size, hypothesis complexity (∣H∣|H| or VC), accuracy and confidence. Guides Occam's razor: simpler HH needs fewer samples.

Limitations: Distribution-free worst-case, often loose bounds, assumes i.i.d.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.