Improving Generalization of Deep Neural Networks by Leveraging Margin Distribution
Shen-Huan Lyu, Lu Wang, Zhi-Hua Zhou
TL;DR
The paper reframes generalization in deep neural networks through margin distribution instead of the traditional minimum margin, introducing mean margin $r$, margin standard deviation $\theta$, and margin ratio $\lambda=\theta/r$. It proves a PAC-Bayesian generalization bound based on the entire margin distribution, showing the bound tightens as $\lambda$ decreases, and proposes Margin Distribution Networks (mdNet) with a convex loss $\ell_{r,\theta,\eta}$ to optimize the margin band around $r$. Empirical results on MNIST, CIFAR-10, and ImageNet demonstrate mdNet yields better generalization, more separable representations, and faster convergence, especially under limited data. The work provides both theoretical and practical tools for margin-distribution-aware learning, with implications for regularization and model capacity control in deep learning.
Abstract
Recent research has used margin theory to analyze the generalization performance for deep neural networks (DNNs). The existed results are almost based on the spectrally-normalized minimum margin. However, optimizing the minimum margin ignores a mass of information about the entire margin distribution, which is crucial to generalization performance. In this paper, we prove a generalization upper bound dominated by the statistics of the entire margin distribution. Compared with the minimum margin bounds, our bound highlights an important measure for controlling the complexity, which is the ratio of the margin standard deviation to the expected margin. We utilize a convex margin distribution loss function on the deep neural networks to validate our theoretical results by optimizing the margin ratio. Experiments and visualizations confirm the effectiveness of our approach and the correlation between generalization gap and margin ratio.
