NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Generalization of Deep Neural Networks by Optimum Shifting

Yuyan Zhou, Ye Li, Lei Feng, Sheng-Jun Huang

Abstract

The generalization capability of deep neural networks (DNNs) is closely linked to the geometry of the loss landscape, where "flat" minima typically generalize better than "sharp" ones. Traditional methods like Sharpness-Aware Minimization (SAM) use penalty-based regularization to find these regions. This paper proposes Optimum Shifting (OS), a penalty-free approach that decouples loss minimization from sharpness reduction. By exploiting the over-parameterization of the final layer, OS shifts parameters toward flatter regions without altering the training loss. We further introduce Stochastic Optimum Shifting (SOS) to make the process computationally efficient. Empirical results across multiple benchmarks demonstrate that SOS consistently improves the generalization of both pre-trained and training models.

Introduction

Modern DNNs are characterized by extreme over-parameterization, leading to a loss landscape with many global minima. While these minima achieve near-zero training error, their generalization performance varies significantly. Sharp minima, characterized by high curvature, are sensitive to small perturbations in data distribution, whereas flat minima are more robust.

Existing techniques often modify the loss function to penalize sharpness. However, this paper explores whether we can find flatter regions without changing the loss. The authors propose sliding the model's parameters through the solution space—a process termed "Optimum Shifting."

Methodology: The Mechanics of Optimum Shifting

The core of Optimum Shifting lies in the final linear layer of a network, represented as $AV = Z$, where $A$ is the input feature matrix, $V$ is the weight matrix, and $Z$ is the output. Because DNNs are over-parameterized, this system is under-determined, meaning there are infinite weight configurations $V$ that produce the same output $Z$ for a given $A$.

Conceptual illustration of Optimum Shifting moving parameters from a sharp to a flat minimum along a zero-loss plateau.

To find the "flattest" solution, the authors mathematically prove that minimizing the Frobenius norm of the weights ($||V||^2$) serves as a proxy for minimizing the Hessian trace (a standard measure of sharpness). By solving a constrained least-squares problem via Gaussian elimination, the weights can be shifted to a region with lower curvature while keeping the training loss constant.

Stochastic Optimum Shifting (SOS) and Neural Collapse

Applying OS globally is computationally prohibitive. Instead, the authors propose Stochastic Optimum Shifting (SOS), which operates on small batches. The validity of this local shift for the global landscape is supported by the "Neural Collapse" phenomenon. Late in training, features of the same class tend to cluster around a central mean. Consequently, if a shift preserves the loss for a representative batch (e.g., slightly larger than the number of classes), it is highly likely to preserve the loss for the entire dataset.

Experimental Results

The effectiveness of SOS was validated on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet.

  1. Post-Training Enhancement: Applying SOS to converged models yielded immediate accuracy gains. For instance, a pre-trained VGG-16 on CIFAR-100 improved from 72.12% to 73.38%, and a ResNet-50 on ImageNet saw a top-1 accuracy increase from 76.14% to 76.59%.
  2. Integration with Training: When used alongside standard optimizers or SAM, SOS provided additive benefits. On CIFAR-100, combining SAM with SOS improved ResNet-50 accuracy from 81.65% to 82.41%.
Eigenvalue analysis of DenseNet121 on CIFAR-100 showing reduced Hessian trace and top eigenvalue after SOS.

Hessian analysis confirms the flattening effect. As shown in the eigenvalue distribution above, both the Hessian trace (average sharpness) and the top eigenvalue (worst-case sharpness) decrease after applying SOS, indicating a smoother, more robust loss landscape.

Conclusion and Limitations

Optimum Shifting offers a unique, penalty-free way to improve generalization by exploiting the inherent redundancy in neural network parameters. While highly effective, the method is sensitive to batch size—too large a batch reduces the degrees of freedom for shifting, while too small a batch may violate the Neural Collapse assumption and degrade training loss. Future work may extend these closed-form shifts to intermediate layers of the network.

Summary updated

BibTeX
@inproceedings{zhou2025improving,
  author = {Yuyan Zhou and Ye Li and Lei Feng and Sheng-Jun Huang},
  title = {{Improving Generalization of Deep Neural Networks by Optimum Shifting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i10.33181},
}
Figure