Computational Learning Theory & PAC Learning
Source: Unit 5 §10
Computational learning theory (CoLT)
CoLT studies the complexity of learning algorithms - a theoretical analysis of when learning can succeed and when it is impossible.
- Is a model always capable of learning? How many instances are sufficient? When is learning impossible?
- Can we identify inherently hard and easy problem classes, independently of the algorithm used?
| Quantity | Question it answers |
|---|---|
| Sample Complexity | How many training examples are needed to converge, with high probability? |
| Computational Complexity | How much compute is needed to converge? |
| Mistake Bound | How many misclassifications happen before converging? |
PAC Learning and VC Dimension. Their applications are worth remembering too: PAC underpins boosting, and VC theory underpins SVMs.
The PAC problem setting
We are given instances , hypotheses , target concepts where , and a fixed, unknown distribution over . The learner sees examples and outputs a hypothesis that estimates , which is then evaluated on new instances drawn from .
| Error | Definition |
|---|---|
| Training error | Whether h(x) = c(x) on the training instances |
**True error error_D(h)** | The probability that h misclassifies an instance drawn at random from D |
Two relaxations: why "probably approximately correct"
- Approximately - we do not demand zero error, just error bounded by , a small number.
- Probably - we do not demand success on every sample, just a failure probability bounded by .
The PAC framework
A concept class is PAC-learnable by using if, for all , for all distributions , and for , the learner outputs a hypothesis with , with probability at least , in time polynomial in , , and .
- Output with high probability and low error .
- Do it in efficient time - polynomial in , , and .
To guarantee that the hypothesis is correct on all instances you would have to check all the examples. Generalization is impossible without assumptions, which is precisely why the PAC guarantee is stated in terms of and rather than certainty.
Sample complexity for consistent learners
A consistent learner outputs an that fits the training examples perfectly whenever that is possible, so , the version space.
ε-exhausted version space: is ε-exhausted with respect to and if every in it has .
Haussler's Theorem (1988) - for finite and i.i.d. examples:
- A "bad" hypothesis - one with - is consistent with a single example with probability at most .
- So it is consistent with all examples with probability at most .
- With bad hypotheses, the union bound gives at most .
- Using , this is at most .
- Set the failure probability to at most : , and solve for .
Sample complexity bound:
Sample complexity grows as the natural log of , as , and linearly in . Halving the error you will tolerate doubles the data you need; halving the failure probability barely costs anything.