A Few Useful Things to Know About Machine Learning
📜 Abstract
Machine learning algorithms can figure out how to perform important tasks by generalizing from examples. This is often feasible and cost-effective where manual programming is not. As more data becomes available, more ambitious problems can be tackled. As a result, machine learning is widely used in computer science and other fields. However, developing successful machine learning applications requires a substantial amount of “black art” that is hard to find in textbooks. This article summarizes twelve key lessons that machine learning researchers and practitioners have learned. These include pitfalls to avoid, important issues to focus on, and answers to common questions.
✨ Summary
Overview
Pedro Domingos distills practical knowledge for developing machine-learning systems, using classification as the primary example. The central argument is that successful machine learning depends not only on selecting an algorithm, but also on choosing an appropriate representation, evaluation function, and optimization method.
Main lessons
- Learning consists of representation, evaluation, and optimization. The representation defines the hypothesis space, the evaluation function distinguishes desirable models, and optimization searches that space. These choices can matter as much as the nominal learning algorithm.
- Generalization is the actual objective. Training accuracy is an unreliable measure of performance because memorization can produce excellent results on observed examples while failing on unseen data. Strict separation of training, validation, and test data is therefore essential; cross-validation can help with model and parameter selection.
- Data alone is insufficient. Generalization requires inductive assumptions or prior knowledge, such as smoothness, similarity, limited dependencies, or bounded complexity. The no-free-lunch perspective implies that no learner is uniformly superior across all possible problems.
- Overfitting has multiple causes and forms. Bias and variance describe different failure modes. Cross-validation, regularization, statistical testing, and other controls can reduce overfitting, but none is universally optimal. Multiple testing also creates opportunities for apparently significant results to arise by chance.
- High dimensionality defeats intuition. Irrelevant features can overwhelm useful signals, similarity measures can become ineffective, and fixed-size datasets cover only a tiny fraction of high-dimensional input spaces. Effective low-dimensional structure in real data can partly mitigate these effects.
- Theoretical guarantees have limited practical scope. Generalization bounds establish important principles, but are often loose and may require unrealistic sample sizes. Asymptotic guarantees likewise do not determine which learner performs best with finite data.
- Feature engineering is frequently decisive. Constructing informative features from raw data is often the most labor-intensive and domain-specific part of a project. Features that appear uninformative individually can be highly useful in combination.
- More data often outperforms a more sophisticated algorithm. Additional training examples can improve generalization, although computational cost and scalability may make complex learners impractical. The limiting resource may be processing time rather than data availability.
- Simple learners should be tried first, but learner design still matters. More advanced methods introduce additional tuning requirements and opacity. The appropriate balance depends on the available data, computation, and human expertise.
- Combining models is often better than selecting one. Bagging, boosting, stacking, and related ensemble methods can reduce variance or exploit complementary models. Ensembles should not be conflated with Bayesian model averaging.
- Simplicity does not guarantee accuracy. The number of parameters or an informal notion of model simplicity is not, by itself, a reliable predictor of test performance. The effective search procedure and prior preferences also influence generalization.
- Representability does not imply learnability. A representation may be capable of expressing a target function while the available algorithm, data, time, or memory cannot recover it. The relevant practical question is whether the function can be learned efficiently.
- Correlation does not establish causation. Predictive models trained on observational data generally identify associations rather than intervention effects. Experimental data, such as randomized Web experiments, is preferable when the goal is to predict the consequences of actions.
Influence and reach
The article has had substantial pedagogical and practitioner reach. The University of Washington reported that the freely available version had been downloaded more than 100,000 times during its first year online. (news.cs.washington.edu) A bibliographic index currently lists more than 3,000 citations, although citation totals vary across services. (scinovex.com) These indicators support the conclusion that the paper became a widely reused reference for practical machine-learning guidance and education, rather than introducing a single new algorithm or formal learning theory result.