Reproduce “Penalizing Gradient Norm for Efficiently Improving Generalization in Deep Learning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yang Zhao, Hao Zhang, Xiuyuan Hu
Researchers from Tsinghua University introduce Gradient Norm Penalty (GNP), a method that improves deep learning model generalization by explicitly penalizing the L2-norm of the loss function's gradient. This approach is shown to generalize Sharpness-Aware Minimization (SAM), consistently outperforming it and standard training on various image classification tasks across datasets like Cifar and ImageNet and different model architectures.
Key insights
- Penalizing the gradient norm of the loss function directly biases optimization towards flatter minima, which leads to improved generalization.
- Sharpness-Aware Minimization (SAM) is a special case of the proposed Gradient Norm Penalty (GNP) framework, occurring when a specific balance coefficient is set to 1.
- Decoupling the penalty coefficient from the approximation scalar allows for greater flexibility and leads to better generalization than SAM's fixed configuration.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.