1. Introduction
Occam’s Razor roughly states that “all other things being equal, the simplest hypothesis is the best hypothesis.” Although originally invoked by William of Ockham to shave away what he took to be the excessive metaphysical commitments of the scholastics, scientists and philosophers alike appeal to it today. It arises in many scientists’ commitment to elegance and simplicity in their theories and in discussions of parsimony in the philosophy of science. Although Occam’s Razor is quite intuitive—it can be argued we use it every day of our lives—a question remains: Why should we adhere to such a principle?
Broadly speaking, there are three main interpretations of the razor: metaphysical, pragmatic, and epistemic. The metaphysical interpretation is that Occam’s Razor states a property about the world: we should expect the world to be simple. The pragmatic interpretation states that using simple hypotheses makes our practical inference easier: it is easier for us to work with simple hypotheses. The epistemic interpretation states that Occam’s Razor is rather best understood as a principle of methodology: favoring simpler hypotheses over more complex ones helps us reach the truth in our inquiry.
Occam’s Razor is discussed in the philosophy literature. In particular, Sober (Reference Sober2015) traces Occam’s Razor in the history of philosophy and science, drawing from philosophers such as Aristotle, Descartes, Hume, and Kant. He follows the razor to its modern day incarnations in probability theory, surveying Bayesian and frequentist justifications and uses of simplicity in inquiry.
There are also justifications in the computational learning theory and machine learning literature. In this article I aim to clarify and argue against one widely used justification of the epistemic value of Occam’s Razor—a theorem from probably approximately correct (PAC) learning. This result, first proved by Blumer et al. (Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987), is still frequently reproduced and cited. In their words, they show that “under very general assumptions, Occam’s Razor produces hypotheses that with high probability will be predictive of future observations” (378). Even Valiant, the computer scientist who first introduced the PAC framework, references this result in his recent book (Valiant Reference Valiant2013).
The argument from PAC learning is just one of many seeking to justify the epistemic value of Occam’s Razor. There are arguments from Kolmogorov complexity and computability theory in the form of Solomonoff induction (see Ming and Vitányi Reference Ming, Vitányi and Leeuwen1990) and from attempts to minimize changes of opinion to increase efficiency while still satisfying the strongest convergence to the truth available (see Kelly Reference Kelly2004). Thus, this article is not meant to be a takedown argument of every justification of the epistemic virtue of Occam’s Razor, but rather it is meant to clarify what exactly the result from PAC learning does and does not show.
It is also worthwhile to consider the philosophical implications of getting a better grip on arguments purported to justify Occam’s Razor. Consider the argument from Solomonoff induction mentioned above. Although on the surface it seems plausible, Sterkenburg (Reference Sterkenburg2016) recently showed that using Solomonoff induction to justify Occam’s Razor does not work. Although we can view such a result as negative, such projects also have positive implications. By demonstrating that simplicity played no role in the supposed success of Solomonoff induction, Sterkenburg was able to reveal where Solomonoff induction was philosophically interesting: its inductive assumption of an effective environment. By getting clarity on the structure of such arguments, we can uncover where the real philosophical interest lies.
In section 2 I introduce the PAC learning framework. In section 3 I introduce the theorem given to justify Occam’s Razor in the PAC learning literature. A proof is provided in appendix A. I then motivate this article by stating a similar theorem that, by the same reasoning, would justify Anti-Occam’s Razor: the principle that we should favor complex hypotheses over simple ones. A proof of this theorem is in appendix B. This is meant to demonstrate the misinterpretation of the Occam result. In section 4 I discuss what both these theorems actually say and why they do not conflict, and I suggest a different interpretation than the one standard in the literature. Rather than providing a justification for Occam’s Razor, what we find is that we can learn when we are able to restrict our full hypothesis space to a properly growing subspace and we are guaranteed to output an approximately correct hypothesis. This requires that each hypothesis space in the family exhibits a certain similarity property. It is this requirement, I argue, that is the unstated assumption that is doing most of the work. In section 5 I give two further arguments meant to cast doubt on this justification of Occam’s Razor. In section 6 I offer some brief concluding remarks.
2. PAC Learning Framework
One of the most studied and discussed frameworks in computer science and machine learning is PAC learning. Drawing on ideas from computational complexity and function approximation, Valiant introduced the PAC learning framework, to show that it is possible to design machines that fulfill the following three desiderata:
1. The machines can provably learn whole classes of concepts. Furthermore, these classes can be characterized.
2. The classes of concepts are appropriate and nontrivial for general-purpose knowledge.
3. The computational process by which the machines deduce the desired programs requires a feasible (i.e., polynomial) number of steps.
(Reference Valiant1984, 1134)
Although framed here in terms of machines, I follow later authors and discuss learning methods, or learning algorithms. Informally defined, a learning method is a function from data to a concept.Footnote 1
PAC learning, then, is a model used to understand which classes of concepts learning algorithms can learn in a feasible number of steps. Informally, in this context we say an algorithm can “learn” if it has a high chance of producing a predictively accurate concept. “Feasible” in this context is cashed out as polynomial, both for the time complexity of the learning algorithm and the number of examples needed to learn the function. We can think of time and examples as resources that the algorithm requires to learn. When we say that an algorithm requires an amount of some resource such as time or sample size “polynomial in” some other quantity X, this means that, as X grows, the amount of resources needed by the algorithm to learn can be upperbounded by a polynomial function of the quantity of X.Footnote 2
In what follows I present the framework following the modern way PAC learning is described and used in the Occam proof (I follow Blumer et al. Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987 in particular). Let the hypothesis class ℋn be a set of functions that each map from a domain χ to a range χ′. There is some
that is the true function, or concept, that the learner is trying to learn. An observation is a pair (xi, f(xi)) where
. Observations of f are made independently according to a probability distribution P on χ that does not change over time. A sample of f is a sequence of m observations (x 1, f(x 1)), (x 2, f(x 2)), … , (xm, f(xm)).
For example, χ could be the set of all strings of 0’s and 1’s of length n, which we denote as {0, 1}n, and
, where ℱn is the set of all n-place Boolean functions. I follow the custom of using this as the canonical example. In particular, even in cases in which χ is not a set of finite binary strings, the proofs of Occam’s Razor always assume some standard encoding of all
and all
such that this setup is equivalent to these cases (see Blumer et al. Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987).
A learning algorithm is an algorithm that maps each sample of any function
to a function
that is consistent with the sample (i.e., for all xi in the sample,
) in time polynomial in the length of the given sample.
For an example of the kind of learning context described by the framework, consider the learning problem in which we are trying to identify pictures of cats. Our strings could encode the pixels in an image (e.g., a 1,024 length string could be a string representing a 32 × 32 image of black and white pixels). Our labels are 1 corresponding to cat and 0 corresponding to noncat. For each set of n-length strings, our hypothesis space is some subset of all
Boolean functions. This subset has the true cat function in it for images of a certain size, but we do not know which one it is. Here is a sketch of a general learning procedure: any time the learner observes a picture with a label, it deletes any hypothesis in the hypothesis space that assigns that picture the wrong label. If the image is of a cat, but a hypothesis says 0 (noncat), the learner deletes that hypothesis. When queried for an affirmative hypothesis, the learner chooses one of the remaining hypotheses according to some decision method.
Once we specify our error tolerances, we can use the tools of PAC learning to calculate how many examples we would need to see to learn to distinguish cats from noncats for images encoded by strings of different length. This is where the sequence of hypothesis spaces ℋ1, ℋ2, … , ℋn is playing a role in the formal framework. When considering images encoded with a string of length n, there is some hypothesis space ℋn containing all the possible concepts for images of that size, which is a subset of all n-place Boolean functions. Intuitively, increasing the size of our pictures means that we have to consider more hypotheses. If the number of examples needed by the algorithm to learn grows polynomially with the size of our image, then the family of hypothesis spaces is PAC learnable.
We can now give a formal definition of learnability within the framework.
Definition 1. A family of hypothesis spaces
is polynomially (or PAC) learnable if there exists a learning algorithm A and a function
polynomial in the arguments
,
, n such that, for every
, every concept
, every probability distribution P on {0, 1}n, every
, and every
, A on input of a sample of any size greater than or equal to m(ε, δ, n) (chosen according to P) with probability
outputs a hypothesis
that disagrees with the true function f on an
drawn randomly according to P with at most probability ε.
This definition is at the heart of PAC learning, whence it derives its name—probably approximately correct learning. Intuitively, a family of hypothesis spaces is PAC learnable if we have an algorithm that requires only a reasonable (polynomial) number of examples as n increases to output a hypothesis that is within the ε-neighborhood of f with probability
. Since
, we can also think of n increasing as the length of the binary strings the algorithm needs to learn to classify increasing. A hypothesis h is within the ε-neighborhood of f if the probability that
when x is drawn randomly according to P is at most ε. Informally, δ corresponds to “probably” and ε corresponds to “approximately”—that is, δ represents how confident you want to be that the algorithm outputs a function h close to f, and ε specifies how much disagreement between h and f you are willing to tolerate.
Thus, by applying the definition to a given case, we are able to see whether a family of hypothesis spaces is learnable. We have the tools we need to understand the theorems in the following section, as well as the proofs of the theorems in appendixes A and B.
3. Occam and Anti-Occam
3.1. Occam’s Razor
Although there are subtly different ways to try to prove Occam’s Razor in the PAC learning framework (e.g., Wolf Reference Wolf1997; Ming, Tromp, and Vitányi Reference Ming, Tromp and Vitányi2003), they all follow a pattern similar to the original proof given by Blumer et al. For the purposes of this article, the proof I include follows closely the presentation of the original Blumer et al. paper (Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987). I follow parallel reasoning in my proof of Anti-Occam’s Razor given in appendix B.
In order to sharpen the notion of description length, I suppose we have fixed some standard binary encoding of the hypotheses in the family ℋ, in the sense that we have an encoding function
, where ℒ is the set of possible function names in our encoding. I assume that the alphabet of ℒ is {0, 1} so that ℒ is some binary encoding. Thus, the name of f is ξ(f), and the length of ξ(f) is λ(ξ(f)), which I often abbreviate as ℓ(f). It is important to note that, of course, ℓ(f) is relative to the choice of ξ. The complexity of f is then ℓ(f). This is meant to match our intuition that more complex hypotheses require a longer description.
Now that we have a precise notion of description length, we are ready to define an Occam algorithm.
Definition 2. A learning algorithm 𝒪 is an Occam algorithm if for every
with respect to the hypothesis space ℋn, on input of a sample of any
of (sufficiently large) size m, 𝒪 produces a hypothesis h such that
, where p is a polynomial and
.Footnote 3
This definition says that an Occam algorithm is guaranteed to output a hypothesis with a short name. This allows us to restrict the hypothesis space from the full ℋn to include only hypotheses h of length
. Note that since the names are binary strings, the cardinality of the reduced hypothesis space is at most
. We are now in a position to state the main theorem.
Theorem 1. For a hypothesis class ℋ, for each Occam algorithm 𝒪 there is a polynomial function m(ε, δ, n) such that the following holds. For every
, every concept
, every probability distribution P on {0, 1}n, every
, and every
, on input of a sample of any size greater than or equal to m(ε, δ, n) chosen according to P, 𝒪 outputs a hypothesis
that with probability
disagrees with the true function f on an
drawn randomly according to P with at most probability ε.Footnote 4
This theorem is presented as an epistemic justification of Occam’s Razor. As Blumer et al. write:
Given two explanations of the data, all other things being equal, the simpler explanation is preferable. This principle is very much alive today in the emerging science of machine learning, whose expressed goal is often to discover the simplest hypothesis that is consistent with the sample data. As laudable as this goal may seem, whether in the area of machine learning or in science as a whole, one can still ask why the simplest hypothesis for a given sequence of observations should perform well on further observations taken from the same source. After all, the real value of a scientific explanation lies not in its ability to explain past events, but in predicting events that have yet to occur. We show that, under very general assumptions, Occam’s Razor produces hypotheses that with high probability will be predictive of future observations.
(Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987, 377–78)It is clear from the language in this passage that Blumer et al. are concerned with the assumption that Occam’s Razor is a good epistemic principle. They are not suggesting that scientists and computer scientists treat it as a pragmatic principle but rather that they actually expect it to help us choose good hypotheses for making predictions. Further, they view their proof of theorem 1 as providing a justification of this principle.
In order to highlight that philosophical interpretation that some computer scientists give this theorem, consider also what Kearns and Vazirani write:
Despite its long and illustrious history in the philosophy of science and its extreme generality, there is something unsatisfying about the notion of an Occam algorithm. After all, the primary goal of science (or more generally, of the learning process) is to formulate theories that accurately predict future observations, not just to succinctly represent past observations. In this chapter, we will prove that when restricted to the probabilistic setting of the PAC model, Occam algorithms do indeed have predictive power. This provides a formal justification of the Occam principle, albeit in a restricted setting.
(Reference Kearns and Vazirani1994, 32)We see both that they are interested in providing a formal justification for a philosophical principle—indeed, the authors call their take on the theorem a “philosophical interpretation” (32)—and that they take theorem 1 to be such a justification.
We have before us the canonical PAC-learning theorem demonstrating the epistemic virtue of simplicity. We turn to a puzzle—a similar theorem demonstrates the virtue of complexity.
3.2. Anti-Occam’s Razor
If one takes theorem 1 to justify Occam’s Razor, one might take the theorem in this section to justify the principle that I call Anti-Occam’s Razor—the principle that we should favor complex hypotheses. I first define an Anti-Occam algorithm.
Definition 3. A learning algorithm Α is an Anti-Occam algorithm if for every
with respect to the hypothesis space ℋn, on input of a sample of any
of (sufficiently large) size m, 𝒪 only outputs one of the top C most complex hypotheses, where
, p(n) is a polynomial, and
.
This definition says that an Anti-Occam algorithm outputs a hypothesis only if it is among the most complex. We are now in a position to state the main theorem of this section. Although the proof is almost identical to the proof of theorem 1, I provide it in appendix B in full so that the reader may compare the two and get an understanding of what is doing the work, so to speak.
Theorem 2. For a hypothesis class ℋ, for each Anti-Occam algorithm Α there is a polynomial function m(ε, δ, n) such that what follows holds. For every
, every concept
, every probability distribution P on {0, 1}n, every
, and every
, on input of a sample of any size greater than or equal to m(ε, δ, n) chosen according to P, Α outputs a hypothesis
that with probability
disagrees with the true function f on an
drawn randomly according to P with at most probability ε.
If the proof of theorem 1 in appendix A is a proof of Occam’s Razor, then the proof of theorem 2 in appendix B is a proof of Anti-Occam’s Razor. What are we to make of this? It cannot be the case that we have just proved two contradictory epistemic principles.
4. Interpretation
The standard interpretation of theorem 1 is meant to support the use of Occam’s Razor in our inquiry, at the very least, in the context of PAC learning.Footnote 5 However, theorem 2 confuses this. In order to understand how we should interpret these results, I examine how the term “exists” is used in the definition of PAC learning (definition 1). The result is that the way existence is used in the PAC learning definition makes the correct interpretation of the theorems far from a justification of either razor.
4.1. Existence in the Definition of PAC Learnability
Informally, the definition of PAC learnability states that a family of hypothesis spaces is learnable if there exists a learning algorithm that only needs a polynomial number of examples in order to find a PAC hypothesis. This is reasonable—the polynomial bound is meant to capture the notion of a feasible number of steps (Valiant Reference Valiant1984), and if no such algorithm exists this means that there is no method that can feasibly learn the family.
What would it mean for there not to be an algorithm that can do this? This is important to clarify, as definition 1, theorem 1, and theorem 2 all make use of a condition of the form, “if there exists such and such an algorithm.” For example, in the case of definition 1, what stops me from saying that every hypothesis space is learnable? In what case does no such algorithm exist?
To understand this, we need to look closely at definition 1. The definition states that there must exist one “learning algorithm A and a function
polynomial in the arguments
,
, n such that, for every
, every concept
, every probability distribution P on {0, 1}n, every
, and every
, A on input of a sample of any size greater than or equal to m(ε, δ, n) (chosen according to P) with probability
outputs a hypothesis.” The algorithm has to work for any choice of δ and ε, and for every concept
. This is important. This means that I cannot simply say a good algorithm exists for ℋ if you give me an algorithm that correctly identifies a hypothesis g in the ε-neighborhood of the true function f by luck. Clearly, if this were allowed, then every ℋ would be learnable, as there is some algorithm whose first guess at every n simply is the true hypothesis for some particular choice of
. The same algorithm has to work regardless of which
is the true function for every
.
Consider our earlier cat example. Although the command “learn the cat function” sounds like a good description of the problem, in the PAC framework it would be more correct to say “learn which of the functions in the hypothesis space is the true function.” We do not want our algorithm to work only for the actual cat function because we do not know beforehand which function in the space is the true one. This is why the definition says that a “family of hypothesis spaces” is learnable; it does not say that a “function” is learnable.
The intuitive way to think of this is that when we ask whether a certain problem is PAC learnable, we are not asking whether a particular function in a hypothesis class is learnable but whether the class is learnable. That is, the algorithm should work regardless of which function in the hypothesis space turns out to be the true one. We have seen, then, that in the definition of PAC learning, a necessary condition for a good algorithm existing for a certain family ℋ is that, for each
, the algorithm must work regardless of which
is the true hypothesis.
4.2. Implications for the Occam Theorem
Informally, theorem 1 states that every Occam algorithm for a family of hypothesis spaces is a good learner, in the PAC learning sense. That is, it needs only a feasible number of examples. However, in general, we are not guaranteed that any Occam algorithms exist for a specific family of hypothesis spaces. Thus, we want to know the conditions under which there exists an Occam algorithm for a family of hypothesis spaces.
What would it mean for there not to be an Occam algorithm for a family of hypothesis spaces? A learning algorithm 𝒪 is Occam if the length of the name of any function it outputs is bounded by a term polynomial in n. Thus, for each
, the Occam algorithm restricts the hypotheses under consideration from the full ℋn given by the family to a subset of ℋn, whose cardinality is
. For ease of reference, let this set be called
. Then, clearly,
.
Now it is clear what is driving the result. Informally, if an algorithm is able to restrict its attention to a subset of the actual hypothesis space, then it is able to learn.
This raises a problem that is not present in the standard PAC learning context. Usually, since our algorithm considers the full hypothesis space, we are guaranteed that there is at least one function in the ε-neighborhood of the true function that will always be consistent with any sample: the true function itself. Thus, even though learning algorithms only output a hypothesis if it is consistent with all of the examples, we are guaranteed that we will always have such a hypothesis to output, because the true hypothesis is in the set of hypotheses under consideration.Footnote 6
This is not necessarily so for Occam algorithms. Because such algorithms only consider a subset of the hypothesis space,
, it is entirely possible that the true function lies outside of this subset. One might think that this is not necessarily a problem because all that needs to lie within
is a hypothesis within the ε-neighborhood of the true function. However, even this would not be entirely satisfying, for, since such a hypothesis would not be identical to the true hypothesis, it would disagree on some examples, and it is possible that it would be eliminated during training, leaving 𝒪 no hypothesis to output. That is, even if there is some
that is in the ε-neighborhood of the true f, we have no guarantee that it will not get eliminated during training. Again, this is very different from the more standard case when the true f is guaranteed to be in the set of hypotheses, in which we never need to worry that we will not output a hypothesis.
Furthermore, it is important to note that we also have no guarantee that there will be some
that is in the ε-neighborhood of the true f. It is entirely possible that in choosing our subset we only end up with hypotheses that lie outside of the ε-neighborhood of the true f. During training, these will all be eliminated with probability
, leaving 𝒪 with no hypothesis to output. Furthermore, even if by chance one is not eliminated, this will be a hypothesis outside of the ε-neighborhood of the true function.
In the standard PAC learning context, where we consider all hypotheses, the algorithm always outputs a hypothesis because the true f can never be eliminated. A hypothesis family is PAC learnable if the hypothesis it outputs is guaranteed to be within the ε-neighborhood of the true f.
When using an Occam algorithm, however, we might end up in a situation in which there is no hypothesis that 𝒪 can output. Consider the simple case in which there is no function in
that is in the ε-neighborhood of the true function. Then, clearly, the probability that 𝒪 outputs a hypothesis in the ε-neighborhood of the true function is 0.
Thus, in order for there to exist an Occam algorithm for a hypothesis class, there needs to be some kind of guarantee that, as n grows, there will always be some
that is within the ε-neighborhood of the true function. In fact, we might want the stronger condition that the true
, if we want the probabilistic bounds to satisfy the PAC definition. This is a strong condition, and tacitly assuming it is what is doing all the work in the proof of theorem 1.
Now, it seems likely that a proponent of this justification of Occam’s Razor might concede that it is true this assumption is needed. However, she might say, this is fine because this assumption is merely what it means for there to exist an Occam algorithm for a hypothesis space. In fact, I am aiding in the overall project of justifying Occam’s Razor through PAC learning by more clearly stating the conditions under which an Occam algorithm exists. On first pass this seems reasonable. However, notice the nature of this condition. First, it makes specific reference to the true hypothesis f, which we are not supposed to know beforehand. Thus, this condition is not a condition of the hypothesis class but rather a condition about how
relates to the true hypothesis at each n. However, as we saw in section 4.1, PAC learnability is defined for the family of hypothesis spaces and does not make reference to the particular true hypothesis. In fact, PAC learnability is a good definition because it does not depend on which hypothesis ends up being the true one—we can learn any hypothesis in any space belonging to the family.
In order to save the use of theorem 1, the proponent must reply with something along these lines: You are right that the condition must be expressed in terms of the family of spaces and should not depend on which hypothesis ends up being the true one. However, this is fine—we can see that an Occam algorithm exists for a class if, whichever hypothesis ends up being the true one,
always includes a hypothesis in the ε-neighborhood of the true f. Clearly if
then this is satisfied. However, even if
does not include f, all we require is that it includes some
that is within the ε-neighborhood of f.
I have two replies to the proponent. The first is weaker but I think worth stating; however, I take the second to be fatal for a justification of Occam’s Razor of this sort. Before stating my replies, I want to clarify what this condition is. This seems like some kind of strong similarity condition of the hypothesis space (for each n). The functions of ℋn must be sufficiently similar that, for every
,
contains some g in the ε-neighborhood of h.
First, this is an incredibly strong condition, and if we take something like this to be an interesting condition for epistemic principles, then we can prove a great deal. Consider, for example, a principle we will call Super-Occam’s Razor. Super-Occam’s Razor tells us to consider only the simplest hypothesis (in terms of description length). Thus,
is set with only one element: the simplest hypothesis in the class. I can prove amazing bounds with this if we make the same kind of similarity assumption. If we assume that
contains a hypothesis in the ε-neighborhood of the true f, then, in fact, I do not need to see any examples; my algorithm just outputs the one hypothesis under consideration. Thus, I can construct a proof similar to that in appendix A and prove Super-Occam’s Razor. Clearly, this cannot be what we have in mind when we are wondering whether a hypothesis class is learnable; we have imported too much information about the true hypothesis and its relation to others in the class to make it interesting from an epistemic point of view. Furthermore, such a result certainly does not provide a justification of the epistemic principle Super-Occam’s Razor.
Second, let us grant the proponent that this is still interesting and, thus, that theorem 1 might still be able to provide an epistemic justification of Occam’s Razor. One of the main reasons an Occam algorithm can learn efficiently as stated in theorem 1 is because of the similarity condition described above. However, this clearly has nothing to do with simplicity; this is why we can prove theorem 2, which makes use of complexity, with the same kind of (unstated) similarity condition. Both theorems rely on some way of choosing subsets of the hypothesis space that grow at the right speed with n—this is baked right into the definition of both an Occam algorithm and an Anti-Occam algorithm. As long as the similarity condition holds, these kind of “choose a particular subset that grows at the right rate” algorithms can learn.
There is nothing about simplicity in theorem 1 that is doing the work. What is really doing the work is a similarity condition; tracking the simplicity (or complexity) of hypotheses is inessential. With such a strong condition, different ways of taking subsets of hypothesis spaces that grow at a certain rate can achieve the same learning bounds, without relying on any notions of simplicity or complexity. Thus, theorem 1 cannot be a justification of Occam’s Razor.
5. Other Concerns
Before concluding with a few remarks, I briefly put forward two further concerns about the result.
5.1. Encoding
In section 4, I did not challenge any of the assumptions or choices made in the proof of Occam’s Razor. Instead, I argued against the interpretation of theorem 1 as a justification of Occam’s Razor and took for granted the explicit background assumptions that led to these theorems. This revealed implicit assumptions of the argument.
In this section, however, I want to cast doubt on one of the main assumptions at play in the proof: the assumption that the length of a hypothesis’s “standard encoding” is a good measure of the complexity of that hypothesis. I am not the first to notice this. In an earlier critique of the PAC-learning argument for Occam’s Razor, Domingos writes: “[The result states] if a model with zero training-set error is found within a sufficiently small set of models, it is likely to have low generalization error. This model, however, could be arbitrarily complex. The only connection of this result to Occam’s razor is provided by the information-theoretic notion that, if a set of models is small, its members can be distinguished by short codes” (Reference Domingos1999, 410). Domingos is noting the tenuous link between the cardinality of
and the coding. He also notes that the coding need not track the complexity of the model (what we have been calling “hypothesis”).
I make two further objections to using encoding as a measure of complexity. The first, and more cautious, is that the notion of complexity is dependent on some standard fixed encoding. As Blumer et al. write, “the complexity of a hypothesis
[is] defined as the number of bits needed to represent h in some fixed encoding of the hypothesis in H” (Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987, 379). I mentioned this earlier in section 3.1, in which I more formally defined complexity in this spirit using a mapping function ξ. Although the specific encoding is lost in the background of the presentation of proofs of Occam’s Razor in the literature,Footnote 7 it is important to remember that, under this formulation, the complexity of a hypothesis is completely relative to the choice of ξ.Footnote 8 Choose a different encoding, and the complexity of a hypothesis could (in most cases would) change. In general, for a hypothesis h and two different encodings ξ1 and ξ2, it is not always the case that
. Thus, an Occam algorithm that uses some ξ1 as its encoding and one that uses some ξ2 as its encoding might select entirely different hypotheses for consideration. In fact, ξ2 might assign the shortest names to the most complex hypotheses under the ξ1 encoding. Thus, even here it is hard to see how simplicity in the spirit of Occam is doing anything, since it is entirely relative to the choice of encoding. One might argue that there will be some more or less natural encoding that does track a more objective notion of complexity. However, in this case no such argument or encoding was given—it was merely assumed (Blumer et al. Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987). As theorem 1 holds for any choice of encoding, it seems that we would need to have a quite different justification of Occam’s Razor even if there were a standard encoding—the specific encoding would be doing none of the work.
This leads me to my second objection—that description length is a good measure of complexity at all. First, my concern above shows that description length (or “minimum description length”) is not an absolute notion but is relative to the choice of encoding. Presumably, the intuitive notion of the complexity of a hypothesis is not dependent on the choice of language in which it is expressed. Even if there were some “standard” encoding, there is no reason to suppose that the length of the name of a hypothesis captures its complexity in the informal, intuitive sense. When one introduces a formalization of complexity—say, description length—and then moves from an epistemic principle that references this formal notion (e.g., a proof of the predictive virtue of shorter description length in a particular context) to one that references an informal notion like the general principle of Occam’s Razor (“under very general assumptions, Occam’s Razor produces hypotheses that with high probability will be predictive of future observations”; Blumer et al. Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987, 378), one is overstating the reach of one’s result. It is against this that I want to caution: equivocating our informal notion of “simplicity” of a theory with a more formal notion such as description length.Footnote 9
5.2. Direction of Implication
This section is an instance of the philosopher’s old concern about necessary and sufficient conditions. Thus, I take my concern here not to be a devastating or original observation but rather a reminder that, even if the standard interpretation of theorem 1 had been largely correct, we would still be further away from a justification of Occam’s Razor than it might seem before reflection.
As stated, theorem 1 says (informally) that any Occam algorithm for a family of hypothesis spaces is a good (PAC) learner. This is supposed to be a justification of Occam’s Razor. However, even if there were no hidden assumptions that take away the force of the result (as I argued in sec. 4.2), theorem 1 is not enough to justify Occam’s Razor as an epistemic principle. Even if it were straightforwardly true that any Occam algorithm for a class can learn that class efficiently, this does not give us reason to use Occam’s Razor in general, for it is not guaranteed to work whenever (or even most of the time) a class is learnable. This much is made clear by theorem 2; if theorem 1 did justify Occam’s Razor, then theorem 2 would justify Anti-Occam’s Razor. We cannot consistently have a justification for both razors from these formal results.
In order to justify Occam’s Razor as an epistemic principle within this kind of framework, we would want a result that says that whenever a class is PAC learnable then an Occam algorithm can learn it. This is in fact slightly weaker than the other direction of implication of section 3.1, which would say that every PAC learner for a class is an Occam algorithm. Although there has been some attempt to prove a result like this, neither the direct converse of theorem 1 nor the weaker version has been proved.Footnote 10
6. Conclusion
In this article I considered an argument from the PAC learning literature in favor of Occam’s Razor as an epistemic principle. Bringing forward a number of objections, I argued that the standard interpretation of the result in the literature is misguided. I further argued that a better reading does not, in fact, support Occam’s Razor at all.
Although this is only one argument for Occam’s Razor, I am skeptical that we will be able to provide a solid epistemic justification of Occam’s Razor.Footnote 11 Thus, my own suspicion is that Occam’s Razor is merely a pragmatic way to make it easier for us to work with our theories.
Although PAC learning did not provide a justification for this particular epistemic principle, I think that philosophers, and formal epistemologists in particular, should care about the feasibility of the recommendations we seek to give to rational agents. Abstracting away from the resources and capabilities required by a method can be a useful idealization, but it does not paint a full picture of how agents should learn. In order to make ourselves more honest about the rational recommendations we give to agents, we should consider the limitations of the agents to which we give them. PAC learning is one such attempt to sharpen notions of learnability by incorporating computational complexity into the considerations of epistemic principles. The integration of the tools and concerns of philosophers and computer scientists will prove fertile for advancing our understanding of rational learning.
Appendix A. Proof of Occam’s Razor
The proof will follow Blumer et al. (Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987) closely.
Lemma A1. Given a hypothesis space ℋn and any
, the probability that any hypothesis in ℋn with error larger than ε is consistent with m observations of f is less than
.
Proof.Let Ei be the event that hypothesis
agrees with a single observation of f, and let
be the event that hi agrees with all m observations of f. Let Pm be the product probability distribution of χm according to the probability P. Let
. Then
is the probability of the event that there is some hypothesis in ℋn that is outside of the ε-neighborhood of f (which I denote by
) that agrees with m observations of f drawn according to the distribution P. It is this probability that we want to bound.
For any particular hypothesis
outside the ε-neighborhood of f, the probability that it is consistent with a sample of size m drawn according to P is
since each example is independently drawn according to P and the probability that hi agrees with f on an example drawn according to P is less than (
).
By the subadditivity of probability measures we have that

Thus,
which is our result. QED
The following proof of theorem 1 will follow Blumer et al. (Reference Blumer, Ehrenfeucht, Haussler and Warmuth1987) closely.
Proof.By lemma A1, there is an upper bound on the number of examples m needed. In particular, since we want the probability of outputting a hypothesis outside the ε-neighborhood of the true f to be less than δ, we have that, if m satisfies
then m is a sufficient number of examples.
Suppose there is some Occam algorithm 𝒪 for a family
of hypothesis spaces. Since 𝒪 is a learning algorithm, any hypothesis it outputs on input of a sample of size m will be consistent with all m observations.
To show that 𝒪 produces with probability at least
a hypothesis within the ε-neighborhood of the true f with sample size m polynomial in ε, δ, n, we show that the following bound is sufficient:

We can rewrite the second lower bound as
Here we use the fact that 𝒪 is an Occam algorithm. The algorithm only considers a hypothesis h if its complexity ℓ(h) is less than or equal to p(n)m α. Since ξ is a binary encoding, this means that the algorithm considers at most
possible hypotheses. By the previous bound, we have that
If we multiple both sides by
, we get
But then by lemma A1 and the first lower bound on m,
QED
Appendix B. Proof of Anti-Occam’s Razor
The proof here runs parallel to that given in appendix A.
Proof.By lemma A1, there is an upper bound on the number of examples m needed:
Suppose there is some Anti-Occam algorithm Α for a family
of hypothesis spaces. Since Α is a learning algorithm, any hypothesis it outputs on input of a sample of size m will be consistent with all m observations.
To show that Α produces with probability at least
a hypothesis within the ε-neighborhood of the true f with sample size m polynomial in ε, δ, n, we show that the following bound is sufficient:

We can rewrite the second lower bound as
Here we use the fact that Α is an Anti-Occam algorithm. The algorithm only considers a hypothesis h if it is one of the top
complex hypotheses. By the previous bound, we have that
and thus
But then by lemma A1 and the first lower bound on m,
QED