Occam learning

From HandWiki
Revision as of 22:21, 8 February 2024 by Wikisleeper (talk | contribs) (linkage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Model of algorithmic learning

In computational learning theory, Occam learning is a model of algorithmic learning where the objective of the learner is to output a succinct representation of received training data. This is closely related to probably approximately correct (PAC) learning, where the learner is evaluated on its predictive power of a test set.

Occam learnability implies PAC learning, and for a wide variety of concept classes, the converse is also true: PAC learnability implies Occam learnability.

Introduction

Occam Learning is named after Occam's razor, which is a principle stating that, given all other things being equal, a shorter explanation for observed data should be favored over a lengthier explanation. The theory of Occam learning is a formal and mathematical justification for this principle. It was first shown by Blumer, et al.[1] that Occam learning implies PAC learning, which is the standard model of learning in computational learning theory. In other words, parsimony (of the output hypothesis) implies predictive power.

Definition of Occam learning

The succinctness of a concept [math]\displaystyle{ c }[/math] in concept class [math]\displaystyle{ \mathcal{C} }[/math] can be expressed by the length [math]\displaystyle{ size(c) }[/math] of the shortest bit string that can represent [math]\displaystyle{ c }[/math] in [math]\displaystyle{ \mathcal{C} }[/math]. Occam learning connects the succinctness of a learning algorithm's output to its predictive power on unseen data.

Let [math]\displaystyle{ \mathcal{C} }[/math] and [math]\displaystyle{ \mathcal{H} }[/math] be concept classes containing target concepts and hypotheses respectively. Then, for constants [math]\displaystyle{ \alpha \ge 0 }[/math] and [math]\displaystyle{ 0 \le \beta \lt 1 }[/math], a learning algorithm [math]\displaystyle{ L }[/math] is an [math]\displaystyle{ (\alpha,\beta) }[/math]-Occam algorithm for [math]\displaystyle{ \mathcal{C} }[/math] using [math]\displaystyle{ \mathcal{H} }[/math] iff, given a set [math]\displaystyle{ S = \{ x_1, \dots, x_m \} }[/math] of [math]\displaystyle{ m }[/math] samples labeled according to a concept [math]\displaystyle{ c \in \mathcal{C} }[/math], [math]\displaystyle{ L }[/math] outputs a hypothesis [math]\displaystyle{ h \in \mathcal{H} }[/math] such that

  • [math]\displaystyle{ h }[/math] is consistent with [math]\displaystyle{ c }[/math] on [math]\displaystyle{ S }[/math] (that is, [math]\displaystyle{ h(x)=c(x),\forall x \in S }[/math]), and
  • [math]\displaystyle{ size(h) \le (n \cdot size(c))^\alpha m^\beta }[/math] [2][1]

where [math]\displaystyle{ n }[/math] is the maximum length of any sample [math]\displaystyle{ x \in S }[/math]. An Occam algorithm is called efficient if it runs in time polynomial in [math]\displaystyle{ n }[/math], [math]\displaystyle{ m }[/math], and [math]\displaystyle{ size(c). }[/math] We say a concept class [math]\displaystyle{ \mathcal{C} }[/math] is Occam learnable with respect to a hypothesis class [math]\displaystyle{ \mathcal{H} }[/math] if there exists an efficient Occam algorithm for [math]\displaystyle{ \mathcal{C} }[/math] using [math]\displaystyle{ \mathcal{H}. }[/math]

The relation between Occam and PAC learning

Occam learnability implies PAC learnability, as the following theorem of Blumer, et al.[2] shows:

Theorem (Occam learning implies PAC learning)

Let [math]\displaystyle{ L }[/math] be an efficient [math]\displaystyle{ (\alpha,\beta) }[/math]-Occam algorithm for [math]\displaystyle{ \mathcal{C} }[/math] using [math]\displaystyle{ \mathcal{H} }[/math]. Then there exists a constant [math]\displaystyle{ a \gt 0 }[/math] such that for any [math]\displaystyle{ 0 \lt \epsilon, \delta \lt 1 }[/math], for any distribution [math]\displaystyle{ \mathcal{D} }[/math], given [math]\displaystyle{ m \ge a \left( \frac 1 \epsilon \log \frac 1 \delta + \left(\frac {(n \cdot size(c))^\alpha)} \epsilon \right)^{\frac 1 {1-\beta}}\right) }[/math] samples drawn from [math]\displaystyle{ \mathcal{D} }[/math] and labelled according to a concept [math]\displaystyle{ c \in \mathcal{C} }[/math] of length [math]\displaystyle{ n }[/math] bits each, the algorithm [math]\displaystyle{ L }[/math] will output a hypothesis [math]\displaystyle{ h \in \mathcal{H} }[/math] such that [math]\displaystyle{ error(h)\le \epsilon }[/math] with probability at least [math]\displaystyle{ 1-\delta }[/math] .

Here, [math]\displaystyle{ error(h) }[/math] is with respect to the concept [math]\displaystyle{ c }[/math] and distribution [math]\displaystyle{ \mathcal{D} }[/math]. This implies that the algorithm [math]\displaystyle{ L }[/math] is also a PAC learner for the concept class [math]\displaystyle{ \mathcal{C} }[/math] using hypothesis class [math]\displaystyle{ \mathcal{H} }[/math]. A slightly more general formulation is as follows:

Theorem (Occam learning implies PAC learning, cardinality version)

Let [math]\displaystyle{ 0 \lt \epsilon, \delta \lt 1 }[/math]. Let [math]\displaystyle{ L }[/math] be an algorithm such that, given [math]\displaystyle{ m }[/math] samples drawn from a fixed but unknown distribution [math]\displaystyle{ \mathcal{D} }[/math] and labeled according to a concept [math]\displaystyle{ c \in \mathcal{C} }[/math] of length [math]\displaystyle{ n }[/math] bits each, outputs a hypothesis [math]\displaystyle{ h \in \mathcal{H}_{n,m} }[/math] that is consistent with the labeled samples. Then, there exists a constant [math]\displaystyle{ b }[/math] such that if [math]\displaystyle{ \log |\mathcal{H}_{n,m}| \leq b \epsilon m - \log \frac{1}{\delta} }[/math], then [math]\displaystyle{ L }[/math] is guaranteed to output a hypothesis [math]\displaystyle{ h \in \mathcal{H}_{n,m} }[/math] such that [math]\displaystyle{ error(h)\le \epsilon }[/math] with probability at least [math]\displaystyle{ 1-\delta }[/math].

While the above theorems show that Occam learning is sufficient for PAC learning, it doesn't say anything about necessity. Board and Pitt show that, for a wide variety of concept classes, Occam learning is in fact necessary for PAC learning.[3] They proved that for any concept class that is polynomially closed under exception lists, PAC learnability implies the existence of an Occam algorithm for that concept class. Concept classes that are polynomially closed under exception lists include Boolean formulas, circuits, deterministic finite automata, decision-lists, decision-trees, and other geometrically-defined concept classes.

A concept class [math]\displaystyle{ \mathcal{C} }[/math] is polynomially closed under exception lists if there exists a polynomial-time algorithm [math]\displaystyle{ A }[/math] such that, when given the representation of a concept [math]\displaystyle{ c \in \mathcal{C} }[/math] and a finite list [math]\displaystyle{ E }[/math] of exceptions, outputs a representation of a concept [math]\displaystyle{ c' \in \mathcal{C} }[/math] such that the concepts [math]\displaystyle{ c }[/math] and [math]\displaystyle{ c' }[/math] agree except on the set [math]\displaystyle{ E }[/math].

Proof that Occam learning implies PAC learning

We first prove the Cardinality version. Call a hypothesis [math]\displaystyle{ h\in \mathcal{H} }[/math] bad if [math]\displaystyle{ error(h) \geq \epsilon }[/math], where again [math]\displaystyle{ error(h) }[/math] is with respect to the true concept [math]\displaystyle{ c }[/math] and the underlying distribution [math]\displaystyle{ \mathcal{D} }[/math]. The probability that a set of samples [math]\displaystyle{ S }[/math] is consistent with [math]\displaystyle{ h }[/math] is at most [math]\displaystyle{ (1 - \epsilon)^m }[/math], by the independence of the samples. By the union bound, the probability that there exists a bad hypothesis in [math]\displaystyle{ \mathcal{H}_{n,m} }[/math] is at most [math]\displaystyle{ | \mathcal{H}_{n,m} | (1 - \epsilon)^m }[/math], which is less than [math]\displaystyle{ \delta }[/math] if [math]\displaystyle{ \log | \mathcal{H}_{n,m} | \leq O(\epsilon m) - \log \frac{1}{\delta} }[/math]. This concludes the proof of the second theorem above.

Using the second theorem, we can prove the first theorem. Since we have a [math]\displaystyle{ (\alpha,\beta) }[/math]-Occam algorithm, this means that any hypothesis output by [math]\displaystyle{ L }[/math] can be represented by at most [math]\displaystyle{ (n \cdot size(c))^\alpha m^\beta }[/math] bits, and thus [math]\displaystyle{ \log |\mathcal{H}_{n,m}| \leq (n \cdot size(c))^\alpha m^\beta }[/math]. This is less than [math]\displaystyle{ O(\epsilon m) - \log \frac{1}{\delta} }[/math] if we set [math]\displaystyle{ m \geq a \left( \frac 1 \epsilon \log \frac 1 \delta + \left(\frac {(n \cdot size(c))^\alpha)} \epsilon \right)^{\frac 1 {1-\beta}}\right) }[/math] for some constant [math]\displaystyle{ a \gt 0 }[/math]. Thus, by the Cardinality version Theorem, [math]\displaystyle{ L }[/math] will output a consistent hypothesis [math]\displaystyle{ h }[/math] with probability at least [math]\displaystyle{ 1 - \delta }[/math]. This concludes the proof of the first theorem above.

Improving sample complexity for common problems

Though Occam and PAC learnability are equivalent, the Occam framework can be used to produce tighter bounds on the sample complexity of classical problems including conjunctions,[2] conjunctions with few relevant variables,[4] and decision lists.[5]

Extensions

Occam algorithms have also been shown to be successful for PAC learning in the presence of errors,[6][7] probabilistic concepts,[8] function learning[9] and Markovian non-independent examples.[10]

See also

References

  1. 1.0 1.1 Blumer, A., Ehrenfeucht, A., Haussler, D., & Warmuth, M. K. (1987). Occam's razor. Information processing letters, 24(6), 377-380.
  2. 2.0 2.1 2.2 Kearns, M. J., & Vazirani, U. V. (1994). An introduction to computational learning theory, chapter 2. MIT press.
  3. Board, R., & Pitt, L. (1990, April). On the necessity of Occam algorithms. In Proceedings of the twenty-second annual ACM symposium on Theory of computing (pp. 54-63). ACM.
  4. Haussler, D. (1988). Quantifying inductive bias: AI learning algorithms and Valiant's learning framework . Artificial intelligence, 36(2), 177-221.
  5. Rivest, R. L. (1987). Learning decision lists. Machine learning, 2(3), 229-246.
  6. Angluin, D., & Laird, P. (1988). Learning from noisy examples. Machine Learning, 2(4), 343-370.
  7. Kearns, M., & Li, M. (1993). Learning in the presence of malicious errors. SIAM Journal on Computing, 22(4), 807-837.
  8. Kearns, M. J., & Schapire, R. E. (1990, October). Efficient distribution-free learning of probabilistic concepts. In Foundations of Computer Science, 1990. Proceedings., 31st Annual Symposium on (pp. 382-391). IEEE.
  9. Natarajan, B. K. (1993, August). Occam's razor for functions. In Proceedings of the sixth annual conference on Computational learning theory (pp. 370-376). ACM.
  10. Aldous, D., & Vazirani, U. (1990, October). A Markovian extension of Valiant's learning model. In Foundations of Computer Science, 1990. Proceedings., 31st Annual Symposium on (pp. 392-396). IEEE.

Further reading