Occam's razor
Occam's razor is the principle that, of several explanations that fit the facts equally well, the one with the fewest assumptions should be preferred; in machine learning it is used to argue for simpler models.
The razor is named after William of Ockham, an English Franciscan friar and philosopher who lived from about 1287 to 1347. The idea is that a razor shaves away assumptions an explanation does not need. Its most famous wording, that entities are not to be multiplied without necessity, does not appear in Ockham's surviving works: it was written by the Irish Franciscan John Punch in 1639, who called it a common saying of the scholastics. The phrase Occam's razor itself came even later; Libert Froidmont claimed to have coined it in 1649.
The razor is a rule for choosing, not a proof. If two explanations account for the evidence equally well, it says to start with the simpler one. It says nothing about which explanation is true when the evidence favours the more complicated one.
In machine learning the razor is usually invoked against overfitting. Suppose two models fit the training data equally well, one a decision tree with ten branches and one with a thousand. The large tree may have memorised noise in the data and so do worse on new cases. Techniques such as regularisation, the minimum description length principle and the Akaike information criterion all penalise complexity in some way, and Ray Solomonoff's theory of inductive inference, developed around 1960, is often described as a mathematical version of the razor.
The principle has well-known critics inside the field. Pedro Domingos of the University of Washington argued in The Role of Occam's Razor in Knowledge Discovery that people use the razor in two different senses. Preferring simple models because they are easier to understand is sound, he wrote, but the belief that simpler models are more accurate is unfounded as a universal principle and fails as a practical rule. Modern deep learning adds another twist. In December 2018 Mikhail Belkin and colleagues described double descent: very large models that fit their training data exactly can still generalise well, with test error falling again as capacity grows beyond that point.
The practical lesson is to treat simplicity as a value and accuracy as something to measure. A simpler model is easier to explain, audit and run cheaply, and it makes a good baseline. Whether it is also more accurate is a question for held-out test data, not for the razor.
It says that when several explanations fit the evidence equally well, prefer the one that makes the fewest assumptions. It is a guide for choosing between explanations, not a law that the simplest one is always true. Not in the famous wording. The line about not multiplying entities without necessity was written by John Punch in 1639 and does not appear in Ockham's surviving works, although Ockham often argued along those lines. The name Occam's razor dates from the 17th century, centuries after his death. It is used to justify preferring simpler models, mainly to avoid overfitting, where a complex model learns noise in the training data and performs worse on new data. Regularisation and model selection criteria such as the Akaike information criterion build a penalty for complexity into training or model choice. No. Simpler models are easier to understand and check, but they are not automatically more accurate. Researchers have shown that very large models which fit their training data exactly can still perform well on new data, so accuracy has to be tested rather than assumed.Common questions
What does Occam's razor say?
Did William of Ockham actually say Occam's razor?
How is Occam's razor used in machine learning?
Does Occam's razor mean simpler AI models are more accurate?
Search for "Occam's razor machine learning", "overfitting" or "double descent" to see how the principle is applied and challenged. Reliable sources include philosophy and encyclopedia references for the history, and peer-reviewed papers or arXiv preprints for its role in machine learning. Be cautious of quotations attributed to Ockham or Einstein on simplicity, since many popular versions are not in their own writing.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.