Improving Generalization of Deep Neural Networks by Optimum Shifting
Yuyan Zhou, Ye Li, Lei Feng, Sheng-Jun Huang
TL;DR
The paper presents Optimum Shifting (OS), a penalty-free framework that moves neural-network parameters from sharp to flat minima without increasing training loss by exploiting under-determined linear systems in linear layers. A theoretical bound shows the Hessian trace $\mathrm{tr}(\mathbf{H}_{L})$ is controlled by the last-layer weight norm $\|\boldsymbol{V}\|^2$, so OS seeks the minimum-norm solution within $\boldsymbol{A}\boldsymbol{V}=\boldsymbol{Z}$, yielding $\boldsymbol{V}^* = \boldsymbol{A}^T(\boldsymbol{A}\boldsymbol{A}^T)^{-1}\boldsymbol{Z}$. To reduce computational cost, the authors develop Stochastic Optimum Shifting (SOS) guided by Neural Collapse, enabling OS on small batches with the expectation that empirical loss remains stable on the full dataset. Empirical results across CIFAR-10/100, ImageNet, and VOC show reduced Hessian traces and improved generalization, including modest to meaningful accuracy gains and better detection metrics, with SOS being compatible with standard regularizers like weight decay and SAM. The work broadens the toolkit for improving generalization by focusing on constraint-based flatness shifts rather than additive penalties, and demonstrates practical effectiveness on image-based tasks, while outlining future directions for NLP tasks.
Abstract
Recent studies showed that the generalization of neural networks is correlated with the sharpness of the loss landscape, and flat minima suggests a better generalization ability than sharp minima. In this paper, we propose a novel method called \emph{optimum shifting}, which changes the parameters of a neural network from a sharp minimum to a flatter one while maintaining the same training loss value. Our method is based on the observation that when the input and output of a neural network are fixed, the matrix multiplications within the network can be treated as systems of under-determined linear equations, enabling adjustment of parameters in the solution space, which can be simply accomplished by solving a constrained optimization problem. Furthermore, we introduce a practical stochastic optimum shifting technique utilizing the Neural Collapse theory to reduce computational costs and provide more degrees of freedom for optimum shifting. Extensive experiments (including classification and detection) with various deep neural network architectures on benchmark datasets demonstrate the effectiveness of our method.
