Occam learning explained

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. 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

c

in concept class

l{C}

can be expressed by the length

size(c)

of the shortest bit string that can represent

c

in

l{C}

. Occam learning connects the succinctness of a learning algorithm's output to its predictive power on unseen data.

Let

l{C}

and

l{H}

be concept classes containing target concepts and hypotheses respectively. Then, for constants

\alpha\ge0

and

0\le\beta<1

, a learning algorithm

L

is an

(\alpha,\beta)

-Occam algorithm
for

l{C}

using

l{H}

iff, given a set

S=\{x1,...,xm\}

of

m

samples labeled according to a concept

c\inl{C}

,

L

outputs a hypothesis

h\inl{H}

such that

h

is consistent with

c

on

S

(that is,

h(x)=c(x),\forallx\inS

), and

size(h)\le(nsize(c))\alpham\beta

[1] [2] where

n

is the maximum length of any sample

x\inS

. An Occam algorithm is called efficient if it runs in time polynomial in

n

,

m

, and

size(c).

We say a concept class

l{C}

is Occam learnable with respect to a hypothesis class

l{H}

if there exists an efficient Occam algorithm for

l{C}

using

l{H}.

The relation between Occam and PAC learning

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

Theorem (Occam learning implies PAC learning)

Let

L

be an efficient

(\alpha,\beta)

-Occam algorithm for

l{C}

using

l{H}

. Then there exists a constant

a>0

such that for any

0<\epsilon,\delta<1

, for any distribution

l{D}

, given

m\gea\left(

1
\epsilon

log

1
\delta

+\left(

(nsize(c))\alpha)
\epsilon
1
1-\beta
\right)

\right)

samples drawn from

l{D}

and labelled according to a concept

c\inl{C}

of length

n

bits each, the algorithm

L

will output a hypothesis

h\inl{H}

such that

error(h)\le\epsilon

with probability at least

1-\delta

.
Here,

error(h)

is with respect to the concept

c

and distribution

l{D}

. This implies that the algorithm

L

is also a PAC learner for the concept class

l{C}

using hypothesis class

l{H}

. A slightly more general formulation is as follows:

Theorem (Occam learning implies PAC learning, cardinality version)

Let

0<\epsilon,\delta<1

. Let

L

be an algorithm such that, given

m

samples drawn from a fixed but unknown distribution

l{D}

and labeled according to a concept

c\inl{C}

of length

n

bits each, outputs a hypothesis

h\inl{H}n,m

that is consistent with the labeled samples. Then, there exists a constant

b

such that if

log|l{H}n,m|\leqb\epsilonm-log

1
\delta
, then

L

is guaranteed to output a hypothesis

h\inl{H}n,m

such that

error(h)\le\epsilon

with probability at least

1-\delta

.

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

l{C}

is polynomially closed under exception lists if there exists a polynomial-time algorithm

A

such that, when given the representation of a concept

c\inl{C}

and a finite list

E

of exceptions, outputs a representation of a concept

c'\inl{C}

such that the concepts

c

and

c'

agree except on the set

E

.

Proof that Occam learning implies PAC learning

We first prove the Cardinality version. Call a hypothesis

h\inl{H}

bad if

error(h)\geq\epsilon

, where again

error(h)

is with respect to the true concept

c

and the underlying distribution

l{D}

. The probability that a set of samples

S

is consistent with

h

is at most

(1-\epsilon)m

, by the independence of the samples. By the union bound, the probability that there exists a bad hypothesis in

l{H}n,m

is at most

|l{H}n,m|(1-\epsilon)m

, which is less than

\delta

if

log|l{H}n,m|\leqO(\epsilonm)-log

1
\delta
. This concludes the proof of the second theorem above.

Using the second theorem, we can prove the first theorem. Since we have a

(\alpha,\beta)

-Occam algorithm, this means that any hypothesis output by

L

can be represented by at most

(nsize(c))\alpham\beta

bits, and thus

log|l{H}n,m|\leq(nsize(c))\alpham\beta

. This is less than

O(\epsilonm)-log

1
\delta
if we set

m\geqa\left(

1
\epsilon

log

1
\delta

+\left(

(nsize(c))\alpha)
\epsilon
1
1-\beta
\right)

\right)

for some constant

a>0

. Thus, by the Cardinality version Theorem,

L

will output a consistent hypothesis

h

with probability at least

1-\delta

. 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, 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

Further reading

Notes and References

  1. Kearns, M. J., & Vazirani, U. V. (1994). An introduction to computational learning theory, chapter 2. MIT press.
  2. Blumer, A., Ehrenfeucht, A., Haussler, D., & Warmuth, M. K. (1987). Occam's razor. Information processing letters, 24(6), 377-380.
  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.