Layer-wise Adaptive Gradient Norm Penalizing Method for Efficient and Accurate Deep Learning

Sunwoo Lee
3/18/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Sharpness-aware minimization (SAM) is known to improve the generalization performance of neural networks. However, it is not widely used in real-world applications yet due to its expensive model perturbation cost. A few variants of SAM have been proposed to tackle such an issue, but they commonly do not alleviate the cost noticeably. In this paper, we propose a lightweight layer-wise gradient norm penalizing method that tackles the expensive computational cost of SAM while maintaining its superior generalization performance. Our study empirically proves that the gradient norm of the whole model can be effectively suppressed by penalizing the gradient norm of only a few critical layers. We also theoretically show that such a partial model perturbation does not harm the convergence rate of SAM, allowing them to be safely adapted in real-world applications. To demonstrate the efficacy of the proposed method, we perform extensive experiments comparing the proposed method to mini-batch SGD and the conventional SAM using representative computer vision and language modeling benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lee2025layerwise,
  title  = {Layer-wise Adaptive Gradient Norm Penalizing Method for Efficient and Accurate Deep Learning},
  author = {Sunwoo Lee},
  year   = {2025},
  eprint = {2503.14205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.14205v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.14205.svg)](https://codeofpaper.com/paper/2503.14205)

Discussion