In classical statistical learning theory, there is a fundamental tension between model complexity and generalization. The logic of Occam’s Razor suggests that as we add parameters or iterations to a model, we eventually begin to "memorize" noise, leading to overfitting. However, empirical observations in the late 1990s presented a baffling contradiction: ensemble methods like AdaBoost and large neural networks often continue to improve their test performance long after they have achieved zero training error.
This phenomenon suggests that the "capacity" of a model is not the only factor determining its success. Instead, researchers have found that generalization is driven by the margin—a measure of the confidence or robustness of a prediction.
The Paradox of Continued Improvement
The mystery began with the observation that boosting algorithms, which combine many "weak" learners into a single "strong" classifier, do not overfit as expected. As Peter Bartlett, Yoav Freund, and Wee Sun Lee noted in Boosting the margin: a new explanation for the effectiveness of voting methods, test error often keeps dropping even after training error hits zero.
Traditional measures like VC-dimension or the number of base learners failed to explain this. The breakthrough was the realization that even if the training error is zero, the model can still be "refined." By adding more learners, the ensemble doesn't necessarily change its classification of a point, but it increases the margin—the gap between the combined vote for the correct class and the vote for the runner-up.
Defining the Margin as Confidence
Intuitively, the margin represents a safety buffer. A model that predicts a class with 51% confidence is "correct" on the training set, but it is fragile. A model that predicts the same class with 99% confidence is much more likely to remain correct when the input data is slightly perturbed.
Robert E. Schapire argued in Advances in Boosting that boosting is essentially an iterative process of margin maximization. Each new weak learner is chosen to focus on the examples where the current margin is smallest. This "aggressive margin expansion" ensures that the final classifier is not just accurate, but robust. Later work by Cynthia Rudin and colleagues in Analysis of boosting algorithms using the smooth margin function provided the mathematical tools to prove that AdaBoost’s margin bounds are asymptotically tight, confirming that maximizing the training margin is a reliable proxy for minimizing test error.
Closing the Theoretical Gap
For decades, a small logarithmic gap existed between the theoretical upper bounds of generalization and the empirical performance of voting classifiers. Recent work by Natascha Schalburg and Kasper Green Larsen in Tight Margin-Based Generalization Bounds for Voting Classifiers over Finite Hypothesis Sets finally settled this. By refining the analysis of "discretization cost" using Rademacher complexity, they proved that the margin is the primary determinant of generalization, regardless of the number of base learners. This confirms that complexity is not a liability if it is used to increase the confidence of the model.
From Ensembles to Deep Learning
The lessons from boosting have direct implications for modern deep learning. Just as boosting combines weak learners, neural networks can be viewed as high-capacity models that benefit from similar margin-increasing mechanisms. Holger Schwenk and Yoshua Bengio demonstrated in Training Methods for Adaptive Boosting of Neural Networks that even high-capacity neural networks benefit from boosting because it forces the network to increase its classification margin.
This helps explain why massive networks generalize well despite having enough parameters to memorize the data. As Behnam Neyshabur and colleagues explored in A PAC-Bayesian Approach to Spectrally-Normalized Margin Bounds for Neural Networks, a large margin allows a network to tolerate noise in its weights. If the margin is large, small changes to the internal parameters (the "accidental complexity" described by Barak A. Pearlmutter and Ronald Rosenfeld in Chaitin-Kolmogorov Complexity and Generalization in Neural Networks) won't flip the final prediction.
Implicit Bias and the Geometry of Optimization
Perhaps the most surprising finding is that we don't always need to explicitly program margin maximization into our algorithms. Modern research into implicit bias shows that standard optimization algorithms like Gradient Descent naturally seek out solutions with large margins.
In Flavors of Margin: Implicit Bias of Steepest Descent in Homogeneous Neural Networks, Nikolaos Tsilivis and Julia Kempe show that even after the training loss has vanished, the "geometric margin" continues to increase. The training process acts as a systematic movement toward specific stationary points that maximize this margin. This explains why "overtraining"—continuing to train after reaching zero error—is often beneficial: it isn't changing the training accuracy, but it is refining the geometry of the decision boundary to be more robust for unseen data.