Why Does Machine Learning Work?
A model that does well on its training data can still fail on new data. Learning theory is the field that asks when it won't, and why. A plain guide to generalization, bias and variance, sample complexity, online learning and computational learning theory, and to where the theory still runs out.
In 2016, a team of researchers from Google, MIT and UC Berkeley ran a simple experiment. They took CIFAR-10, a standard dataset of 50,000 small labeled photos (cats, trucks, frogs, ships and so on), threw away the real labels, and gave every image a random one instead. A cat might now be labeled "truck." There was no pattern left to learn.
Then they trained ordinary image classification networks on it. The networks reached essentially 100% accuracy on the training set. They memorized 50,000 meaningless labels. On new images they did no better than guessing, which makes sense, because there was nothing real to learn.
The interesting part is the other half of the experiment. The same networks, with the same size and the same training procedure, trained on the real labels, do very well on photos they have never seen. So the network is clearly capable of pure memorization. And yet when a real pattern exists, it learns the pattern instead.
Classical theory says this should not happen. A model flexible enough to memorize anything should, by the textbook, generalize badly. It doesn't.
This post is about the question underneath that experiment:
Why should doing well on training data tell you anything about data you have never seen?
That is what it means for machine learning to "work," and the field that studies it is called learning theory. It has good answers for a lot of machine learning, partial answers for modern deep learning, and some honest gaps. This post covers all three.
The post is long, so here is the order:
- What learning means (the setup and the notation)
- Generalization bounds (when can you trust a training score?)
- Bias, variance and double descent (how deep learning broke the textbook)
- Sample complexity (how much data do you need?)
- Online learning (learning when the data fights back)
- Computational learning theory (when the answer is in the data but you can't find it)
- The open problem: deep learning
- So why does machine learning work
- The scorecard
- Glossary
There is some math. Section 2 builds its main results step by step with short derivations, because that is where the core ideas come from. Everywhere else, each formula is followed by a sentence that says the same thing in plain words, so if a formula does not click, read the sentence and move on. Every technical term is explained the first time it appears, and the glossary at the end has all of them.
What Learning Means
Before asking why learning works, we need to say precisely what learning is. This section sets up the few ideas everything else depends on.
The data. Imagine you are building a spam filter. Each example is a pair: an email and its label (spam or not spam). We assume all emails, past and future, come from some fixed but unknown distribution , a description of how likely every possible email and label is. You never see itself. You only see a training set of examples drawn from it:
The i.i.d. assumption. The examples are assumed to be independent and identically distributed (i.i.d.): each one is drawn from the same distribution, and knowing one tells you nothing about how the next was drawn. This is the assumption that the future looks like the past. Almost all of sections 2 to 4 rests on it. Section 5 shows what happens when you drop it.
The model. A hypothesis is any rule that takes an input and predicts a label, such as a particular spam filter with particular settings. The hypothesis class is the set of all hypotheses you are willing to consider: all straight lines, all decision trees of depth 5, or all networks of a given architecture with any possible weights. Choosing an architecture is choosing . Training picks one from it.
Two kinds of error. We count a prediction as wrong (loss 1) or right (loss 0). The true error or risk of is how often it is wrong on new data from :
The training error or empirical risk is how often it is wrong on the training set:
Here is 1 if the thing inside is true and 0 otherwise, so the sum just counts mistakes.
You can compute . You cannot compute , because you do not know . But is the only one you care about. The difference between them, , is called the generalization gap. Most of learning theory is about bounding that gap.
Why the gap is not obvious. The usual training method is to pick the hypothesis with the lowest training error. This is called empirical risk minimization (ERM). The trouble is that the winner was chosen because it looks good on this particular sample, and that makes its training score suspicious.
Here is the problem in miniature. Ask 1,000 people to each flip a fair coin 10 times. The chance that a given person gets 10 heads is . The chance that at least one of the 1,000 does is
So you will probably find someone with a perfect record. That person is not a skilled coin flipper. They are the luckiest of many. If you pick the best-looking model out of a huge class, you face the same risk: its training score might be partly luck. The more models you choose from, the more luck can creep in.
That is the core problem of learning theory, and it splits into three branches:
- Statistical learning theory assumes i.i.d. data and asks how much the training score can be trusted, and how much data is enough (sections 2 to 4).
- Online learning drops the i.i.d. assumption and asks what guarantees survive when data arrives one piece at a time, possibly chosen by an adversary (section 5).
- Computational learning theory asks whether the right answer, even when it is in the data, can be found in a reasonable amount of time (section 6).
The three share many tools and are studied together, and the main conference for all of them is COLT, the Conference on Learning Theory.
Generalization Bounds
The question: if a model scores well on training data, when can we be sure it will score well on new data?
A generalization bound is a statement of this shape:
which holds "with probability at least ." In words: true error is at most training error plus a penalty, and the penalty grows with how flexible the hypothesis class is and shrinks with how much data you have.
The phrase "with probability at least " is there because you might, by bad luck, get a very unrepresentative training set, and no guarantee can protect against that completely. is how much bad luck you are willing to allow. Setting means the bound holds for 95% of the training sets you could have drawn.
We will build the main bounds one step at a time, because each step answers a problem left by the one before.
Step 1: one fixed model
Start with the simplest case. Suppose you pick a hypothesis before looking at the data, and then just measure it.
Each training example is like a coin flip that comes up "mistake" with probability . The training error is the average of such flips. Hoeffding's inequality, a classic result from probability, says that an average of independent bounded random quantities is very unlikely to land far from its expected value:
In words: the chance that training error misses true error by more than shrinks exponentially as you add data.
Set the right-hand side equal to and solve for :
So with probability at least :
With examples and , the penalty is about 0.014, or 1.4 percentage points. The gap shrinks like : four times the data halves it.
This is exactly why a held-out test set works. A test set is data the model never trained on, so from the test set's point of view, the model was fixed in advance. Hoeffding applies directly, and the test score is trustworthy to within a known margin. Everything harder in this section comes from the fact that the training set was used to choose the model.
Step 2: choosing from a finite set of models
Now the real situation: you choose after seeing the data, from a class . Hoeffding no longer applies to the winner, for the coin-flip reason above.
The fix is to demand more. Instead of asking that one hypothesis be accurate, ask that every hypothesis in have a training error close to its true error, all at once. If that holds, then it holds for whichever one you pick, however you pick it.
The tool is the union bound: the chance that at least one of several bad events happens is at most the sum of their individual chances. If has hypotheses:
Set this equal to and solve again. With probability at least , for every :
The only change from Step 1 is the new term. Think of it as the price for choosing. The more options you pick from, the more luck can inflate the winner's score, and the more you have to discount it.
The logarithm makes this price surprisingly gentle. Choosing among a million hypotheses costs , not a million. With and , the penalty grows from 1.4 to about 3.0 percentage points.
There is a nice way to read this result. If every hypothesis in your class can be written down in bits, there are at most of them, so . A model with a short description has a small penalty. This is a precise version of Occam's razor: prefer simpler explanations, because simpler explanations are less likely to fit the training data by luck. We will come back to this idea under compression bounds.
Step 3: infinitely many models, and the VC dimension
Most useful classes are infinite. There are infinitely many straight lines, and infinitely many settings of a network's weights. Then is infinite and the bound above says nothing.
The key insight, from Vladimir Vapnik and Alexey Chervonenkis in 1971, is that on any particular set of points, an infinite class can only produce finitely many different labelings. Two lines that put the same points on the same sides behave identically on that data. What matters is not how many hypotheses exist, but how many distinct ways they can label the data.
A class shatters a set of points if it can produce every possible labeling of them. The VC dimension of a class is the size of the largest set of points it can shatter.
Take straight lines in a plane, where points on one side are labeled positive and points on the other negative. Place three points that are not all on one line. There are ways to label them, and a line can produce every one. Now try four points. If they form a square, label opposite corners the same (top-left and bottom-right positive, the other two negative), and no single line can separate them. If one point sits inside the triangle formed by the other three, label the inner point differently from the outer three, and again no line works. Every arrangement of four points fails in one of these ways. So the VC dimension of lines in the plane is 3. In general, linear classifiers in dimensions have VC dimension .
Why does this help? A result called the Sauer-Shelah lemma says that if a class has VC dimension , the number of distinct labelings it can produce on points is at most about . That grows like a polynomial in rather than like . Plugging this count into the union bound in place of (with a technical trick to make the substitution legal) gives, with probability at least :
The means "up to a constant factor." In words: the penalty depends on the VC dimension relative to the amount of data. If is much larger than , training error can be trusted.
This leads to one of the cleanest results in the field, often called the fundamental theorem of statistical learning: for binary classification, a hypothesis class can be learned from data if and only if its VC dimension is finite. Finite VC dimension is exactly the condition for learning to be possible at all.
Step 4: Rademacher complexity
The VC dimension is a worst case. It asks whether there exists any set of points the class can shatter, even if your real data looks nothing like it. Rademacher complexity measures flexibility on the data you actually have.
The idea is to test how well the class can fit pure noise. Take your training inputs, and for each one flip a fair coin to get a random label of or . Find the hypothesis in that agrees best with these random labels. Repeat with fresh coin flips and average:
Here means "the best achievable value," and is or . If the class can match any random labeling, this comes out near 1, its maximum. If it can barely do better than chance, it comes out near 0.
The resulting bound replaces the VC term with this measure. For classifiers with labels , with probability at least :
where is the average of over training sets of size . In words: if your model class cannot fit random noise on data like yours, its good training score is real.
Notice what the experiment at the top of this post did. Fitting random labels on CIFAR-10 is a direct measurement of Rademacher complexity, and the networks scored the maximum. That is why this bound, and the VC bound, say nothing useful about those networks.
Step 5: margin bounds
Some classifiers come with a measure of confidence. A linear classifier does not just say which side of the line a point is on; it says how far away from the line it is. That distance is the margin.
The idea behind margin bounds is that a classifier that separates the training data with a wide gap is unlikely to be fooled by new points, because small differences in the input will not push anything across the boundary. Formally, for linear classifiers whose inputs have length at most and whose weight vector has length at most 1, and for a margin fixed in advance, with probability at least :
Here is the fraction of training points that are either misclassified or classified correctly but closer to the boundary than .
The striking thing about this bound is what is missing: the number of dimensions. The model can live in a space with a million dimensions, or infinitely many, and the bound only cares about the ratio between the data's scale and the margin. This is the theory behind support vector machines (SVMs), which were designed by Corinna Cortes and Vladimir Vapnik in 1995 to explicitly maximize the margin. It also explained a puzzle about boosting, a method that combines many weak classifiers. Boosting's test error often keeps falling after its training error hits zero, and the explanation is that it keeps widening the margins.
Step 6: PAC-Bayes
PAC-Bayes bounds change the question slightly. Instead of bounding one hypothesis, they bound a distribution over hypotheses. In practice, think of a trained network whose weights are randomly jiggled with some noise each time it makes a prediction.
You choose a prior before seeing the data: a distribution over hypotheses that reflects what you would guess without any data, for example "weights near zero." After training, you have a posterior , a distribution centered on your trained model. With probability at least :
The new term, , is the Kullback-Leibler divergence, a measure of how different is from . Roughly, it is the amount of extra information you need to describe if you already know .
Compare this to Step 2. The structure is the same, with replaced by the KL term. The price for choosing is no longer "how many options did you have" but "how far did the data move you from where you started." If training barely moved you, the data did not have to work hard, and the result is trustworthy.
This connects to an old intuition about flat minima. If you can add a lot of noise to a trained network's weights without hurting its training error, the posterior can be wide, and a wide near the prior has a small KL. So networks sitting in flat, wide valleys of the loss get good bounds. In 2017, Gintare Karolina Dziugaite and Daniel Roy used exactly this approach to compute the first non-vacuous bound (a bound below 100% error, which actually says something) for a neural network with far more parameters than training examples: a guaranteed error of at most 16.1% on a two-class version of the MNIST digit dataset.
Step 7: compression and stability
Two more ideas complete the toolkit.
Compression bounds. Recall the Occam reading of Step 2: a hypothesis describable in bits has a penalty of about . A related result by Nick Littlestone and Manfred Warmuth from 1986 says that if your learned model can be rebuilt from just of the training examples (an SVM, for example, is determined by its support vectors, the few points closest to the boundary), then its generalization gap is roughly proportional to . Either way, the message is the same: if what you learned can be described briefly, you could not have memorized much. Modern work has pushed this far. In 2024, Sanae Lotfi and colleagues trained language models in a highly compressible form and computed the first non-vacuous generalization bounds for large language models, for models with up to nearly a billion parameters.
Stability. An algorithm is stable if replacing one training example with another barely changes what it learns. Olivier Bousquet and André Elisseeff showed in 2002 that stability alone guarantees generalization: if swapping any one example changes the loss on any point by at most , the generalization gap is roughly plus a term shrinking like . Regularized methods such as ridge regression are stable, with shrinking like . Later work showed that gradient descent run for a limited number of steps is also stable, at least for convex problems, which is one theoretical argument for stopping training early. This approach is different from everything above: it says nothing about the hypothesis class and everything about the algorithm.
Wins
Generalization bounds turned "will it work on new data?" from a matter of hope into a matter of proof, at least for many classical models. They explain why more data helps, why simpler models are safer, and why regularization works. They gave us the logic of test sets and the definitive answer to when learning is possible at all (finite VC dimension). They led directly to SVMs, and they explained boosting. And through PAC-Bayes and compression, they can now certify specific trained neural networks, even large language models.
Where it is used
- Test sets and evaluation: Hoeffding-style reasoning tells you how big a test set must be for its score to be trusted, and why reusing a test set many times (effectively choosing among many models with it) erodes that trust.
- Model selection: structural risk minimization picks the model class that best balances training error against the complexity penalty. Cross-validation and regularization are practical descendants.
- Algorithm design: SVMs maximize margins because the bound says to. Weight decay and early stopping have stability and norm-based justifications.
- Certification: PAC-Bayes and compression bounds are used to produce guaranteed error rates for specific trained models.
Flaws
The classic bounds fail badly for modern deep networks. The VC dimension of a network grows at least with its number of parameters, so a network with millions of parameters trained on 50,000 examples gets a VC bound far above 100% error, which is useless. The random-labels experiment shows why no refinement of a bound that depends only on the hypothesis class can rescue this: the same class, trained the same way, generalizes on real labels and fails on random ones, so the class alone cannot be what decides. In 2019, Vaishnavh Nagarajan and Zico Kolter went further and constructed settings where gradient descent generalizes well, yet any bound of the uniform convergence type (the type built in Steps 2 to 4) is provably vacuous.
More broadly, the classic bounds are worst-case and loose, often by large constant factors, and they ignore two things that clearly matter: which hypothesis the training algorithm actually picks, and how much structure the real data has. The bounds that do work for deep networks (PAC-Bayes, compression) are expensive to compute and usually apply to a modified model, a noisy or compressed version, rather than the exact network you deploy. And they certify that a particular model generalizes without explaining why training produced it.
Bias, Variance and Double Descent
The question: why do predictions go wrong on new data, and does making a model bigger help or hurt?
Bias and variance
Picture throwing darts at a board, where the bullseye is the true answer, and imagine retraining your model many times on different random training sets drawn from the same distribution, each time throwing one dart.
- Bias is when your darts cluster around the wrong spot. The model is systematically off, usually because it is too simple to capture the pattern, like fitting a straight line to a curve. This is underfitting.
- Variance is when your darts scatter widely. The model is so flexible that it chases the noise in each particular training set, so different training sets give very different models. This is overfitting.
For predicting numbers with squared error, this splits cleanly. Suppose the true relationship is , where the noise has variance , and is your trained model, which depends on the random training set. Then the expected error at a point is:
In words: your error is the square of how far your average prediction is from the truth, plus how much your predictions jump around between training sets, plus noise that no model can remove.
The classic tradeoff
Simple models have high bias and low variance. Complex models have low bias and high variance. As you increase model complexity, test error first falls (bias shrinking) and then rises (variance growing), tracing a U-shaped curve. The textbook advice follows: find the bottom of the U, and never fit the training data perfectly, because a model that passes exactly through every noisy training point must be badly overfit.
A classic illustration: fit polynomials to 20 noisy points from a smooth curve. A straight line misses the shape. A degree-3 polynomial does well. A degree-19 polynomial passes through all 20 points exactly and swings wildly between them.
Double descent
Then deep learning did the opposite of the advice. Practitioners trained networks large enough to fit their training data perfectly, sometimes including noisy labels, and got better test results than with smaller models.
In 2019, Mikhail Belkin, Daniel Hsu, Siyuan Ma and Soumik Mandal put a name and a picture to this: double descent. As model capacity grows, test error first follows the classic U. It peaks at the interpolation threshold, the point where the model is just barely able to fit the training data perfectly (for many models, roughly when the number of parameters equals the number of training examples). Then, as capacity keeps growing past that point, test error comes back down, often to a lower level than the bottom of the original U. They showed this in random feature models, neural networks and decision tree ensembles. Later in 2019, Preetum Nakkiran and colleagues showed the same pattern in modern convolutional networks and transformers, as a function of training time as well as model size, and found that in some ranges, adding more training data can temporarily make test error worse.
Why the peak, and why the second descent? At the interpolation threshold, there is roughly one way for the model to fit all the training points, and it has to contort itself to do so, much like the degree-19 polynomial. Past the threshold, there are many different ways to fit the training data perfectly, and the training algorithm tends to pick a smooth, "small" one among them. In linear regression this can be made exact: past the threshold, gradient descent started from zero finds the perfect-fit solution with the smallest weights, and that solution is far better behaved than the forced fit at the threshold.
This region past the threshold, where the model fits the training data exactly, is called the interpolation regime. Most large modern networks are trained in or near it.
Benign overfitting
If a model fits noisy labels perfectly, how can it still predict well? The theory of benign overfitting answers this for some settings. In 2020, Peter Bartlett, Philip Long, Gábor Lugosi and Alexander Tsigler proved that in linear regression, the smallest-weight perfect-fit solution can predict nearly as well as the best possible model, even with noisy labels, provided the data has the right structure: a few important directions carrying the signal, plus many unimportant directions with small variance. The noise gets absorbed into the unimportant directions, where it creates tiny, spiky bumps around each mislabeled training point that barely affect predictions anywhere else. The memorization happens, but it is tucked away. This is what "harmless label noise" refers to.
Wins
This line of work resolved an apparent contradiction between theory and practice. It explained why "just make the model bigger" can work, why perfect training accuracy is not automatically a warning sign, and why the classic U curve is only part of the picture. It also gave practical guidance: if a model sits near the interpolation threshold, you can usually improve it by going substantially bigger, going smaller, or adding regularization.
Where it is used
- Model sizing: deciding how large a model should be for a given amount of data, and the background for why scaling up models has worked so well.
- Diagnosis: the bias-variance lens is the everyday tool for reading learning curves. High error on both training and test data points to bias, so use a bigger model or better features. Low training error with high test error points to variance, so use more data, regularization or a smaller model.
- Ensembles: averaging many models reduces variance, which is why bagging and random forests work.
- Regularization and early stopping: both trade a little bias for a large reduction in variance.
Flaws
The clean three-part decomposition only holds for squared error. For classification there are several competing versions, none as tidy. Double descent is not universal either: Nakkiran and colleagues showed in 2020 that with optimally tuned regularization, the peak can disappear, and test error falls steadily as models grow. So the peak partly reflects poor tuning rather than a law of nature.
Benign overfitting has been proven mostly for linear models, kernel methods and some simple two-layer networks. Real deep networks are not fully benign: Neil Mallinar and colleagues found in 2022 that networks trained all the way to perfect training accuracy on noisy data are in an in-between regime they called tempered overfitting, where label noise does cost some test accuracy, just not catastrophically. Networks stopped early behaved benignly. We can observe and describe double descent in real networks, but we cannot yet predict exactly when or how strongly it will appear.
Sample Complexity
The question: how much data do you need to learn something to a given accuracy?
The PAC framework
In 1984, Leslie Valiant gave the definition that most of this section is built on: probably approximately correct (PAC) learning. You fix two numbers:
- (epsilon), the accuracy you want. "Approximately correct" means error at most .
- (delta), the failure chance you accept. "Probably" means the guarantee holds with probability at least .
A class is PAC learnable if there is an algorithm that, for any data distribution, given enough examples, achieves error within with probability at least . The sample complexity is how many examples "enough" is.
Realizable versus agnostic
Two settings matter, and they need very different amounts of data.
Realizable learning assumes a perfect hypothesis exists somewhere in your class: some in has zero true error. For a finite class, it is enough to have
examples, and then any hypothesis with zero training error will, with probability at least , have true error at most .
Agnostic learning makes no such assumption. Real data is noisy, and no hypothesis may be perfect, so the goal becomes getting within of the best hypothesis in the class. For a finite class it is enough to have
For infinite classes, is replaced by the VC dimension , and the rates are, up to constants and a logarithmic factor in the realizable case:
The difference between and is large. For , it is the difference between a factor of 100 and a factor of 10,000.
Why the gap? In the realizable case, a hypothesis with true error above is eliminated the moment it makes a single training mistake, and with about examples, it almost certainly will. In the agnostic case, every hypothesis makes mistakes, and you have to estimate error rates precisely enough to tell, say, 30% from 31%. Estimating a probability to within takes about samples, the same Hoeffding rate from section 2.
Minimax rates and lower bounds
The rates above are upper bounds: some algorithm achieves them. A lower bound goes the other way: it proves that no algorithm, however clever, can do better. For VC classes, lower bounds match the rates above up to constants, so the VC dimension really is the right measure of how much data binary classification needs.
A minimax rate is the best possible guarantee against the hardest problem in a family: the minimum, over all algorithms, of the maximum error over all problems. It answers "what is the best anyone can promise for problems of this type?"
A famous example shows how harsh this can be. Suppose you want to learn a smooth function of input variables (with well-behaved derivatives) from noisy examples. Charles Stone proved in 1982 that the best achievable squared error shrinks like
With one input and , error shrinks like , which is fast. With 100 inputs and , it shrinks like . At that rate, halving the error requires about , or roughly 67 million, times more data. This is the curse of dimensionality: in the worst case, learning in high dimensions needs an impossible amount of data.
Distribution-dependent bounds
Worst-case rates plan for the nastiest possible distribution. Distribution-dependent bounds use properties of the actual data to get tighter estimates. Examples include margin conditions (classes are well separated) and low-noise conditions (most points are far from the decision boundary), under which agnostic learning can approach the faster realizable rate.
Wins
Sample complexity gives a complete answer for binary classification: the VC dimension determines how much data you need, with matching upper and lower bounds. It explains why noise is expensive ( versus ), and lower bounds tell you when to stop searching for a cleverer algorithm and go get more data instead.
Where it is used
- Active learning: if the learner chooses which examples to label, it can sometimes need dramatically fewer labels. For learning a single threshold on a line, asking for labels in binary-search order needs about labels instead of .
- Reinforcement learning theory: how many interactions an agent needs before it finds a near-optimal policy is a sample complexity question, and much of RL theory is spent answering it.
- Labeling budgets and experimental design: deciding how much data to collect or label before training. Medical statisticians ask the same kind of question when they size a clinical trial with a power analysis.
- Statistics generally: minimax rates are the standard way to compare estimators.
Flaws
Most results are worst case over all distributions, and real data is usually far kinder, so the numbers are pessimistic. The curse of dimensionality says that learning from images with hundreds of thousands of pixels should be hopeless, yet it works, because natural images occupy a tiny, highly structured part of that space. The theory also counts examples and ignores computation: a sample complexity result may say 1,000 examples suffice while the only known algorithm that uses them would take longer than the age of the universe (section 6 is about exactly this). Finally, the classic framework treats each task in isolation, and says little about pretraining, where data from one task makes another task cheaper to learn.
Online Learning
The question: how do you learn when data arrives one piece at a time and might be chosen to work against you?
The setup
Online learning drops the i.i.d. assumption entirely. Learning happens in rounds :
- You make a choice (a prediction, an action, a set of weights).
- The environment reveals a loss for that round.
- You update and move to the next round.
The environment can be an adversary that sees your strategy and picks losses to hurt you. There is no distribution and no assumption that the future resembles the past.
Regret
Against an adversary, you cannot promise low error: it can always make every round hard. So online learning measures something else. Regret compares your total loss to that of the best single fixed choice in hindsight:
where is the loss in round . In words: how much worse you did than if you had known from the start which one option would end up best, and stuck with it.
The goal is regret that grows more slowly than . Then regret per round goes to zero, which means that on average you do as well as the best fixed option, without ever knowing in advance which one it was.
One more point: good online algorithms are usually randomized. A deterministic strategy can be predicted, and an adversary who can predict you can always hand you a loss.
The experts problem and multiplicative weights
The classic setting: you have experts, say weather forecasters, and each day each gives a forecast. You do not know who is good. Each day you decide how much to trust each one, and afterwards you see how everyone did.
The multiplicative weights algorithm (also called Hedge) is simple:
- Give each expert a weight of 1.
- Each round, follow expert with probability proportional to its weight .
- After seeing the losses (between 0 and 1), update every weight: .
Experts who do badly lose trust geometrically. The step size controls how fast. With , the expected regret satisfies
and no algorithm can do better than this by more than a constant factor.
A worked example: 100 forecasters over one year (). The bound gives regret of at most about 29, or about 0.08 per day. Over ten years it is at most about 92, or about 0.025 per day. The per-round regret keeps shrinking, and this holds even if the forecasts are chosen by an adversary.
Note how weakly the bound depends on the number of experts. Going from 100 experts to a million roughly triples , so regret grows by a factor of only about . You can compete with an enormous pool of strategies at a small cost.
This algorithm has a long history. Nick Littlestone and Manfred Warmuth introduced the weighted majority algorithm in 1994. Yoav Freund and Robert Schapire developed Hedge in 1997, in the same paper that introduced AdaBoost, which is Hedge applied to combining weak classifiers.
Online convex optimization, FTRL and mirror descent
Online convex optimization generalizes the experts problem. Each round you pick a point from a convex set (any shape without dents or holes, such as all weight vectors of length at most 1), and the adversary reveals a convex loss function. Plain gradient descent, run online, already achieves regret growing like .
Follow the leader is the most natural strategy: each round, pick whatever would have been best over all past rounds. It fails badly. With two options whose losses alternate, an adversary can arrange that the current leader is always the one about to lose, so you lose every round. The fix is follow the regularized leader (FTRL):
In words: pick what would have been best so far, plus a regularizer that pulls you toward a stable default and stops you from flip-flopping.
Mirror descent reaches the same place from the gradient descent side: take gradient steps, but measure distances in a geometry suited to the problem rather than ordinary straight-line distance. For linear losses, the two methods produce the same updates. Choosing the regularizer is choosing the geometry: an entropy regularizer gives exactly multiplicative weights, and a squared-length regularizer gives ordinary online gradient descent. Two algorithms that look unrelated turn out to be one idea.
Bandits
In the experts problem, you see every expert's loss each round. In the bandit setting, you only see the loss of the option you chose, like a gambler at a row of slot machines who only sees the payout of the machine they played. Now there is a tension between exploration (trying options to learn about them) and exploitation (playing what currently looks best).
The EXP3 algorithm (Peter Auer and colleagues, 2002) adapts multiplicative weights to this setting. When you see the loss of the option you played, you divide it by the probability you had of playing it. That makes rarely tried options count more when you do observe them, and on average it gives a fair estimate of every option's loss. EXP3's regret grows like , a factor of roughly worse than the experts setting. That factor is the price of seeing only your own outcome.
Online to batch
The two worlds connect. If an online algorithm has low regret, you can run it over an i.i.d. dataset one example at a time and average the hypotheses it produced, and the result generalizes well in the sense of section 2. Online learning guarantees, which assume nothing about the data, can be turned into statistical guarantees when the data does happen to be i.i.d.
Wins
Online learning gives guarantees with no assumptions about where data comes from, using very simple algorithms. It produced AdaBoost. It underlies a large part of game theory and multi-agent learning: when players in a two-player zero-sum game each run a low-regret algorithm, their average play converges to an equilibrium. And it gave practical deep learning some of its most used tools.
Where it is used
- Optimizers: AdaGrad (John Duchi, Elad Hazan and Yoram Singer, 2011) came directly out of online convex optimization, giving each parameter its own step size based on its gradient history. Adam, the most common optimizer in deep learning, builds on that per-parameter scaling idea.
- Recommendation and ads: contextual bandits choose which article, ad or product to show while learning from clicks. A well-known example is Yahoo's front-page news recommendation, studied by Lihong Li and colleagues in 2010.
- Adaptive A/B testing: shifting traffic toward the winning variant as evidence comes in, instead of splitting evenly until the end.
- Game-playing AI: counterfactual regret minimization, a regret-based algorithm, is the basis of the poker programs that beat professional players.
- Finance and filtering: online portfolio selection, and spam filters that adapt as spammers change tactics.
Flaws
Regret compares you to the best fixed choice in hindsight. If the world keeps changing, so that the best choice in January differs from the best in June, a fixed comparator is a weak standard, and an algorithm can have low regret while performing poorly. Variants such as adaptive and dynamic regret patch this partly. The adversarial worst case also makes algorithms more cautious than necessary when the data is actually well behaved.
Most of the clean guarantees assume convex losses, and deep learning is not convex. A telling example: Adam was originally published with a convergence proof in the online convex framework, and in 2018 Sashank Reddi, Satyen Kale and Sanjiv Kumar showed the proof had an error and constructed simple convex problems where Adam fails to converge. Adam remains the standard optimizer anyway. Its success in deep learning is mostly empirical.
Computational Learning Theory
The question: even when the data contains the answer, can a computer find it in a reasonable amount of time?
Sections 2 to 4 ask about data: is there enough information to learn? This section asks about time. Some problems are like a locked safe with the combination written somewhere in the room. The information is there, but finding it could take longer than anyone can wait.
Efficient learning
Valiant's original 1984 definition of PAC learning already included computation: a class counts as efficiently learnable only if the algorithm runs in time polynomial in , and the size of the problem. This made learning a question for computer science, not just statistics. (Valiant received the 2010 Turing Award, in part for this work.)
An early lesson was that the form of the answer matters. Leonard Pitt and Valiant showed in 1988 that learning a certain kind of logical formula is computationally hard if the learner must output a formula of the same kind, but easy if it may output a slightly larger, different kind of formula. Learning can become tractable just by allowing a richer hypothesis class.
Learning parities
The standard example of a hard problem is learning parities. Each input is a string of bits. Somewhere there is a hidden subset of positions, and the label is 1 if an odd number of those bits are 1, and 0 otherwise (the XOR of the hidden bits).
Without noise, this is easy. Each example is a linear equation in arithmetic modulo 2, so with about examples you can solve for the hidden subset using Gaussian elimination, the same method used for ordinary systems of equations.
With noise, if each label is flipped with some small probability (say 10%), the problem appears to become very hard. Gaussian elimination combines equations, and every combination spreads the errors further. This problem is called learning parity with noise (LPN). Statistically it is still easy: about examples, plus a little more to handle the noise, contain enough information to identify the answer. But the best known algorithm, from Avrim Blum, Adam Kalai and Hal Wasserman in 2003, takes time about . That beats trying all subsets, but it is still exponential.
The link to cryptography
Hard learning problems and cryptography are two sides of one coin. Cryptography needs problems that are easy to set up and hard to undo. A noisy learning problem fits: generate random examples from a hidden secret, add noise, and anyone without the secret faces a learning problem believed to be intractable.
LPN is used this way directly. Its close relative, learning with errors (LWE), introduced by Oded Regev in 2005, replaces bits with numbers modulo a larger value. A structured version of LWE is the basis of ML-KEM, the key-exchange standard that the US National Institute of Standards and Technology published in 2024 (as FIPS 203) to protect communications against future quantum computers. If someone found an efficient way to learn noisy linear functions of this kind, that standard would break.
The connection runs the other way too. Michael Kearns and Leslie Valiant showed in 1994 that efficiently learning some simple classes, such as small logical formulas, would let you break widely used cryptographic schemes. So unless that cryptography is broken, those classes cannot be learned efficiently.
The statistical query model
In 1998, Michael Kearns introduced the statistical query (SQ) model, a restricted kind of learner. An SQ learner never looks at individual examples. It can only ask questions about averages over the data, such as "on average, how often is bit 3 equal to 1 when the label is 1?", and receive approximately correct answers.
This sounds limiting, but most practical algorithms work this way. Gradient descent computes an average of gradients over a batch, which is exactly a statistical query. Kearns showed that anything learnable by statistical queries is automatically robust to random label noise, and that parities cannot be learned efficiently by statistical queries. For sparse parities, where the hidden subset has of the bits, SQ learners need roughly queries. ( means "at least, up to a constant factor.")
So an SQ lower bound is a statement about a whole family of algorithms, including, approximately, gradient descent on any architecture.
Statistical versus computational gaps
A statistical-computational gap is a problem where enough data exists to solve it in principle, but every known efficient algorithm needs much more data or fails.
The best-known example is planted clique. Take a large random network with nodes, where each pair is connected with probability one half, and secretly connect every pair within some group of nodes, forming a clique. Statistically, the hidden group can be detected once is larger than about . But the best known efficient algorithms need to be around , which is far larger. Between those sizes, the clique is there and the data reveals it, but no one knows how to find it quickly. Many other problems, such as finding sparse structure in high-dimensional data, have been shown to be at least as hard as planted clique.
The modern twist: parities and neural networks
Sparse parity has become a standard test bed for how neural networks learn. In 2022, Boaz Barak and colleagues trained ordinary networks with stochastic gradient descent on sparse parity problems. The networks succeeded, taking about steps, nearly matching the SQ lower bound. The training curves looked flat for a long time and then dropped suddenly. The authors showed this was not luck: SGD was making steady progress the whole time, through a quantity invisible in the loss and accuracy curves, until it crossed a threshold. This gives a concrete, analyzable example of the abrupt jumps in ability sometimes seen when models are scaled up or trained longer.
Wins
Computational learning theory explains why some problems resist more data and bigger models: the obstacle is computation, not information. It ties learning to cryptography in both directions, which has made learning problems the foundation of post-quantum security. SQ lower bounds give rigorous limits for broad families of algorithms rather than one algorithm at a time. And sparse parity gives deep learning researchers a clean, well-understood problem for studying training dynamics.
Where it is used
- Cryptography: the security of LPN- and LWE-based schemes, including post-quantum standards, rests on these hardness assumptions.
- Deep learning research: sparse parity and related problems are used to study feature learning, sudden jumps in performance, and why some tasks need far more training than others.
- Benchmark and task design: understanding which problems are computationally hard helps explain why breaking a task into intermediate steps can make it learnable.
- Statistics: statistical-computational gaps tell researchers when to stop looking for an efficient algorithm that would achieve the statistical limit.
Flaws
Much of the field rests on unproven assumptions. "LPN is hard" is a belief supported by decades of failed attempts, not a theorem, and the deepest related questions, such as whether P differs from NP, are unresolved. Worst-case hardness does not mean the problems you care about are hard: real data often has structure that makes it easy. And the SQ model is an approximation. Emmanuel Abbe and Colin Sandon showed in 2020 that stochastic gradient descent with small batches can, in principle, learn anything that any efficient algorithm can learn, including problems like parities that SQ learners cannot, while gradient descent with large enough batches cannot. So SQ lower bounds describe gradient descent well in large-batch, noisy conditions, but not in every possible regime.
The Open Problem: Deep Learning
Everything so far gives a good account of classical machine learning. For large neural networks, the account has a hole in the middle, and it helps to split the mystery into two separate questions.
Question 1: why does training succeed at all?
The loss of a neural network, as a function of its weights, is non-convex: a landscape of hills and valleys, with many local minima and saddle points. In theory, gradient descent could get stuck somewhere bad. In practice, on large networks, it almost always finds weights with very low training loss.
There are proofs for special cases. Several groups showed in 2019 that gradient descent reaches zero training loss on networks that are wide enough. But "wide enough" in those proofs is far wider than any network people actually train, and the proofs work in a regime where the weights barely move from where they started. Empirical studies suggest that large networks have few bad local minima, and that good solutions are often connected to each other by paths of low loss. Neither observation is a full explanation.
Question 2: why does the trained network generalize?
This is the deeper question, and the one the random-labels experiment poses. Several partial answers exist.
The neural tangent kernel. Arthur Jacot, Franck Gabriel and Clément Hongler showed in 2018 that as a network's width goes to infinity, training it with gradient descent becomes equivalent to a kernel method, a classical and well-understood technique. In that limit, training and generalization can both be analyzed with older theory. The catch, pointed out by Lénaïc Chizat, Edouard Oyallon and Francis Bach in 2019, is that in this limit the network's weights barely change, so it never learns new internal features. It behaves like a fixed kernel. Real networks do learn features, and that is a large part of why they outperform kernel methods. The neural tangent kernel explains a version of neural networks that works worse than the real thing.
Implicit bias of gradient descent. When many sets of weights fit the training data perfectly, the training algorithm picks one of them, and it seems to prefer simple ones. This is proven in some cases. Daniel Soudry and colleagues proved in 2018 that for logistic regression on separable data, gradient descent converges to the maximum-margin solution, the same one an SVM would find, without being told to. Similar tendencies toward simple, low-complexity solutions have been shown or conjectured for other simplified models. For real deep networks, what exactly gradient descent prefers, and why that preference generalizes, is open.
Flat minima. Networks trained with small-batch stochastic gradient descent tend to end up in wide, flat valleys of the loss, and flat valleys are associated with better generalization. This is the intuition that PAC-Bayes bounds make precise. But flatness is slippery: Laurent Dinh and colleagues showed in 2017 that because a network can be rescaled internally without changing what it computes, a flat minimum can be turned into a sharp one that generalizes identically. Flatness alone, measured naively, cannot be the whole story.
Structure in the data. Natural images, text and audio are not arbitrary points in high-dimensional space. They have low intrinsic dimension, repeated patterns, and hierarchical structure (edges form textures, textures form parts, parts form objects). Networks may generalize because their architecture and training are well matched to that structure. This is widely believed, and hard to make precise.
Certificates. As covered in section 2, PAC-Bayes and compression methods can now prove that specific trained networks, including language models, generalize. These are real guarantees. But they are checks after the fact: they confirm that a particular trained model generalizes, without explaining why training produced a model that does.
Other open threads
Several more observations in deep learning are well measured and poorly explained. Scaling laws show that test loss falls as a smooth power law in model size, data and compute, consistently enough to plan training runs around, but there is no accepted theory of why. Grokking, reported by Alethea Power and colleagues in 2022, is a network that memorizes its training data, sits at chance level on test data for a long time, and then suddenly generalizes, long after training error hit zero. In-context learning is a trained language model picking up a new task from a few examples in its prompt, with no weight updates. There are partial theories for each, mostly in simplified settings.
What we know and what we don't
| Status | |
|---|---|
| Gradient descent reaches zero training loss on extremely wide networks | Proven, under conditions far from practice |
| Infinitely wide networks behave like kernel methods | Proven, but that regime loses feature learning |
| Gradient descent finds the max-margin solution for logistic regression | Proven |
| Specific trained networks, including LLMs, generalize | Proven for individual models through PAC-Bayes and compression certificates |
| Gradient descent prefers simple solutions in real deep networks | Strongly suspected, not proven in general |
| Flat minima explain generalization | Partly supported, with known counterexamples to naive versions |
| Why real networks trained the real way generalize | Open |
So Why Does Machine Learning Work
Putting it all together, the honest answer comes in layers.
First, the future has to look like the past. Sections 2 to 4 all assume data is i.i.d. Without that, no training score means anything about new data. Online learning shows what can be saved without it: you can still compete with the best fixed strategy, but you cannot promise to do well in absolute terms.
Second, the model must not be able to explain too much. A good training score is only meaningful if the model could not have produced it by fitting noise. Each tool in section 2 is a different way of measuring this: counting labelings (VC), fitting random labels (Rademacher), margins, distance from a prior (PAC-Bayes), description length (compression) and sensitivity to single examples (stability). When the measure is small relative to the data, generalization is guaranteed.
Third, there must be enough data. How much depends on the complexity of the class, the accuracy you want, and how noisy the problem is, and section 4 gives the rates, including worst cases where the amount needed is impossibly large.
Fourth, the answer must be findable. Even with enough data, some problems may be computationally out of reach, and section 6 shows these are real and connected to cryptography.
For classical machine learning, these layers add up to a complete and largely proven answer.
Deep learning breaks the second layer as classically stated. Large networks can fit noise, so by the old measures they should not generalize, and they do. The most likely resolution is that the old theory measures capacity in the wrong place. What matters is not everything a network could represent, but what gradient descent, starting from a typical initialization, on structured real data, actually finds. That effective capacity seems to be much smaller than the parameter count, and the partial results in section 7 all point in that direction. Turning that into a complete theory is one of the central open problems in the field.
This is not an unusual position for science to be in. The steam engine was in industrial use from 1712, and Sadi Carnot's analysis that began the theory of thermodynamics came in 1824, more than a century later. The engines worked first and the theory caught up. Deep learning is in that gap now: the engineering is well ahead of the explanation.
If you want to go deeper, the best starting point is Understanding Machine Learning: From Theory to Algorithms by Shai Shalev-Shwartz and Shai Ben-David, which is free online and covers sections 2, 4 and part of 5 rigorously. Foundations of Machine Learning by Mehryar Mohri, Afshin Rostamizadeh and Ameet Talwalkar covers similar ground with more on Rademacher complexity and margins. For online learning, Elad Hazan's Introduction to Online Convex Optimization is free and readable. For the modern questions, read Zhang et al. on random labels and Belkin et al. on double descent. Both are short.
The Scorecard
| Framework | Question it answers | What it explains well | Where it is used | Where it breaks |
|---|---|---|---|---|
| Hoeffding and test sets | How far can one fixed model's score be from the truth? | Why held-out evaluation works | Every benchmark and test set | Only for models fixed before seeing the data |
| VC dimension | When is a class learnable, and with how much data? | Exactly when binary classification is possible | Theory of linear models, model selection | Vacuous for large neural networks |
| Rademacher complexity | Can the class fit noise on data like mine? | Data-dependent capacity | Norm-based bounds, theory of regularization | Deep nets fit random labels, so the bound is vacuous |
| Margin bounds | Does a wide separation guarantee generalization? | SVMs, boosting, high-dimensional linear models | Kernel methods, ensembles | Hard to apply to deep networks |
| PAC-Bayes | How far did training move from a prior? | Flat minima, certified error for trained nets | Non-vacuous bounds for neural nets | Applies to a noisy version of the model, costly to compute |
| Compression | Can the learned model be described briefly? | Occam's razor, bounds for LLMs | Certifying large models | Applies to a compressed version of the model |
| Stability | Does one example change the result? | Regularization, early stopping | Theory of ridge regression and SGD | Weak guarantees for long non-convex training |
| Bias and variance | Why are predictions wrong? | Underfitting, overfitting, ensembling | Everyday model diagnosis | Clean only for squared error |
| Double descent and benign overfitting | Why can bigger, perfectly fit models do better? | Large models in the interpolation regime | Model sizing, scaling decisions | Proven mostly for linear and kernel models |
| Sample complexity and minimax rates | How much data is needed? | Realizable vs agnostic gap, curse of dimensionality | Active learning, RL theory, statistics | Worst case, ignores computation and pretraining |
| Online learning and regret | What can be guaranteed without i.i.d. data? | Learning against adversaries, games | Optimizers, ads, recommendations, poker AI | Fixed comparator, mostly convex |
| Bandits | How to learn from partial feedback? | Exploration vs exploitation | Recommendations, adaptive A/B tests | Same as online learning |
| Computational hardness and SQ | Can the answer be found efficiently? | Why some problems resist more data | Post-quantum cryptography, deep learning research | Rests on unproven assumptions |
| Neural tangent kernel | What do infinitely wide networks do? | Trainability in the lazy regime | Theory of very wide networks | No feature learning |
| Implicit bias | Which solution does gradient descent pick? | Max-margin result for logistic regression | Theory of overparameterized models | Unproven for real deep networks |
Glossary
Agnostic learning: Learning without assuming a perfect hypothesis exists, aiming to get close to the best one available.
Bandit: An online learning setting where you only see the outcome of the option you chose.
Benign overfitting: Fitting noisy training labels perfectly while still predicting well on new data.
Bias: Systematic error from a model too simple to capture the true pattern.
Clique: A group of nodes in a network in which every pair is connected.
Compression bound: A generalization bound that depends on how briefly the learned model can be described.
Convex: A shape or function without dents, so any local minimum is a global minimum.
Curse of dimensionality: The way the data needed for learning can grow explosively with the number of input dimensions in the worst case.
Distribution: A description of how likely each possible example is.
Double descent: Test error falling, rising to a peak at the interpolation threshold, then falling again as model capacity grows.
Empirical risk minimization (ERM): Choosing the hypothesis with the lowest training error.
Experts problem: An online learning setting where you combine advice from several sources whose quality you do not know in advance.
Flat minimum: A wide valley in the loss landscape, where small changes to the weights barely change the loss.
Follow the regularized leader (FTRL): An online algorithm that picks what would have been best so far, plus a stabilizing regularizer.
Generalization: Performing well on new data, not just on training data.
Generalization bound: A guarantee that true error is at most training error plus a penalty.
Generalization gap: The difference between true error and training error.
Hoeffding's inequality: A result bounding how far an average of independent bounded quantities can be from its expected value.
Hypothesis: A specific prediction rule, such as a model with particular weights.
Hypothesis class: The set of all hypotheses a learner is willing to consider.
i.i.d.: Independent and identically distributed: every example drawn from the same distribution, independently of the others.
Implicit bias: The tendency of a training algorithm to prefer certain solutions among all that fit the data.
Interpolation threshold: The model size at which a model can just barely fit its training data perfectly.
Interpolation regime: The region where a model fits its training data perfectly.
Kernel method: A classical technique that implicitly maps data into a high-dimensional feature space and fits a linear model there.
KL divergence: A measure of how different one probability distribution is from another.
Learning parity with noise (LPN): Learning the XOR of a hidden subset of bits from examples with some labels flipped, believed to be computationally hard.
Learning theory: The field that studies when and why learning from data works.
Learning with errors (LWE): A generalization of LPN to numbers modulo a larger value, used in post-quantum cryptography.
Lower bound: A proof that no algorithm can do better than a certain amount.
Margin: How far a correctly classified point is from the decision boundary.
Minimax rate: The best guarantee achievable against the hardest problem in a family.
Mirror descent: Gradient descent with distances measured in a geometry suited to the problem.
Multiplicative weights (Hedge): An experts algorithm that shrinks each expert's weight geometrically with its losses.
Neural tangent kernel (NTK): The kernel that describes a neural network's training in the infinite-width limit.
Non-vacuous bound: A generalization bound that gives a meaningful answer, below 100% error.
Online learning: Learning from data that arrives one piece at a time, possibly chosen by an adversary.
Overfitting: Fitting noise in the training data so that performance on new data suffers.
PAC learning: Probably approximately correct learning: achieving error at most with probability at least .
PAC-Bayes: Generalization bounds for distributions over hypotheses, based on distance from a prior.
Planted clique: A problem where a clique is hidden in a random network, a standard example of a statistical-computational gap.
Posterior: In PAC-Bayes, the distribution over hypotheses after training.
Prior: In PAC-Bayes, a distribution over hypotheses chosen before seeing the data.
Rademacher complexity: A measure of how well a class can fit random labels on data like yours.
Realizable learning: Learning when a perfect hypothesis exists in the class.
Regret: How much worse an online learner did than the best fixed choice in hindsight.
Regularizer: A term added to an objective to favor simpler or more stable solutions.
Sample complexity: The number of examples needed to learn to a given accuracy and confidence.
Shatter: A class shatters a set of points if it can produce every possible labeling of them.
Stability: How little an algorithm's output changes when one training example is replaced.
Statistical-computational gap: A problem where the data contains enough information to solve it, but no known efficient algorithm can.
Statistical query (SQ) model: A model of learning where the learner can only ask about averages over the data.
Support vector machine (SVM): A classifier that maximizes the margin between classes.
Support vectors: The training points closest to an SVM's decision boundary, which determine it.
Training error (empirical risk): The fraction of training examples a hypothesis gets wrong.
True error (risk): The probability a hypothesis gets a new example wrong.
Union bound: The chance that at least one of several events happens is at most the sum of their chances.
Variance: Error from a model's sensitivity to the particular training set it saw.
VC dimension: The size of the largest set of points a class can shatter.
Disclaimer
I checked the math and the claims here against the papers and books listed below, but I may still have gotten something wrong. One thing to know if you compare with other sources: the same bound often shows up with slightly different constants in different books. I followed the textbooks in the references. If you find a mistake, tell me through the contact page and I'll fix it.
References
Textbooks
- Understanding Machine Learning: From Theory to Algorithms, Shai Shalev-Shwartz and Shai Ben-David (2014), free online. Source for the finite-class, VC and sample complexity bounds.
- Foundations of Machine Learning, 2nd edition, Mehryar Mohri, Afshin Rostamizadeh and Ameet Talwalkar (2018). Source for the Rademacher and margin bounds.
- Introduction to Online Convex Optimization, Elad Hazan, arXiv
- Prediction, Learning, and Games, Nicolò Cesa-Bianchi and Gábor Lugosi (2006), Cambridge University Press. Source for the Hedge regret bound.
Foundations
- Probability Inequalities for Sums of Bounded Random Variables, Wassily Hoeffding (1963), Journal of the American Statistical Association
- On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities, Vladimir Vapnik and Alexey Chervonenkis (1971), Theory of Probability and Its Applications
- A Theory of the Learnable, Leslie Valiant (1984), Communications of the ACM
- Optimal Global Rates of Convergence for Nonparametric Regression, Charles Stone (1982), Annals of Statistics
Generalization bounds
- Rademacher and Gaussian Complexities: Risk Bounds and Structural Results, Peter Bartlett and Shahar Mendelson (2002), JMLR
- Support-Vector Networks, Corinna Cortes and Vladimir Vapnik (1995), Machine Learning
- PAC-Bayesian Model Averaging, David McAllester (1999), COLT
- Stability and Generalization, Olivier Bousquet and André Elisseeff (2002), JMLR
- Train Faster, Generalize Better: Stability of Stochastic Gradient Descent, Moritz Hardt, Benjamin Recht and Yoram Singer (2016), ICML
- Boosting the Margin: A New Explanation for the Effectiveness of Voting Methods, Robert Schapire, Yoav Freund, Peter Bartlett and Wee Sun Lee (1998), Annals of Statistics
- Relating Data Compression and Learnability, Nick Littlestone and Manfred Warmuth (1986), unpublished technical report
- Understanding Deep Learning Requires Rethinking Generalization, Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht and Oriol Vinyals (2017), ICLR
- Uniform Convergence May Be Unable to Explain Generalization in Deep Learning, Vaishnavh Nagarajan and J. Zico Kolter (2019), NeurIPS
- Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Data, Gintare Karolina Dziugaite and Daniel Roy (2017), UAI
- PAC-Bayes Compression Bounds So Tight That They Can Explain Generalization, Sanae Lotfi et al. (2022), NeurIPS
- Non-Vacuous Generalization Bounds for Large Language Models, Sanae Lotfi et al. (2024), ICML
Bias, variance and double descent
- Reconciling Modern Machine Learning Practice and the Bias-Variance Trade-off, Mikhail Belkin, Daniel Hsu, Siyuan Ma and Soumik Mandal (2019), PNAS
- Deep Double Descent: Where Bigger Models and More Data Hurt, Preetum Nakkiran et al. (2019), ICLR 2020
- Benign Overfitting in Linear Regression, Peter Bartlett, Philip Long, Gábor Lugosi and Alexander Tsigler (2020), PNAS
- Optimal Regularization Can Mitigate Double Descent, Preetum Nakkiran, Prayaag Venkat, Sham Kakade and Tengyu Ma (2021), ICLR
- Benign, Tempered, or Catastrophic: Toward a Refined Taxonomy of Overfitting, Neil Mallinar et al. (2022), NeurIPS
Online learning
- The Weighted Majority Algorithm, Nick Littlestone and Manfred Warmuth (1994), Information and Computation
- A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting, Yoav Freund and Robert Schapire (1997), Journal of Computer and System Sciences
- The Nonstochastic Multiarmed Bandit Problem, Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund and Robert Schapire (2002), SIAM Journal on Computing
- Adaptive Subgradient Methods for Online Learning and Stochastic Optimization, John Duchi, Elad Hazan and Yoram Singer (2011), JMLR
- On the Convergence of Adam and Beyond, Sashank Reddi, Satyen Kale and Sanjiv Kumar (2018), ICLR
- A Contextual-Bandit Approach to Personalized News Article Recommendation, Lihong Li, Wei Chu, John Langford and Robert Schapire (2010), WWW
Computational learning theory
- Computational Limitations on Learning from Examples, Leonard Pitt and Leslie Valiant (1988), Journal of the ACM
- Cryptographic Limitations on Learning Boolean Formulae and Finite Automata, Michael Kearns and Leslie Valiant (1994), Journal of the ACM
- Efficient Noise-Tolerant Learning from Statistical Queries, Michael Kearns (1998), Journal of the ACM
- Noise-Tolerant Learning, the Parity Problem, and the Statistical Query Model, Avrim Blum, Adam Kalai and Hal Wasserman (2003), Journal of the ACM
- On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, Oded Regev (2005; journal version 2009), Journal of the ACM
- FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard, NIST (2024)
- Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit, Boaz Barak, Benjamin Edelman, Surbhi Goel, Sham Kakade, Eran Malach and Cyril Zhang (2022), NeurIPS
- Poly-Time Universality and Limitations of Deep Learning, Emmanuel Abbe and Colin Sandon (2020), journal version in Communications on Pure and Applied Mathematics (2023)
Deep learning theory
- Neural Tangent Kernel: Convergence and Generalization in Neural Networks, Arthur Jacot, Franck Gabriel and Clément Hongler (2018), NeurIPS
- On Lazy Training in Differentiable Programming, Lénaïc Chizat, Edouard Oyallon and Francis Bach (2019), NeurIPS
- The Implicit Bias of Gradient Descent on Separable Data, Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar and Nathan Srebro (2018), JMLR
- Sharp Minima Can Generalize for Deep Nets, Laurent Dinh, Razvan Pascanu, Samy Bengio and Yoshua Bengio (2017), ICML
- Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasets, Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin and Vedant Misra (2022)