Neglected Hessian component explains mysteries in Sharpness regularization

Yann N. Dauphin, Atish Agarwala, Hossein Mobahi
1/19/2024
cs.LG

No confident code implementation found for this paper.

Abstract

Recent work has shown that methods like SAM which either explicitly or implicitly penalize second order information can improve generalization in deep learning. Seemingly similar methods like weight noise and gradient penalties often fail to provide such benefits. We show that these differences can be explained by the structure of the Hessian of the loss. First, we show that a common decomposition of the Hessian can be quantitatively interpreted as separating the feature exploitation from feature exploration. The feature exploration, which can be described by the Nonlinear Modeling Error matrix (NME), is commonly neglected in the literature since it vanishes at interpolation. Our work shows that the NME is in fact important as it can explain why gradient penalties are sensitive to the choice of activation function. Using this insight we design interventions to improve performance. We also provide evidence that challenges the long held equivalence of weight noise and gradient penalties. This equivalence relies on the assumption that the NME can be ignored, which we find does not hold for modern networks since they involve significant feature learning. We find that regularizing feature exploitation but not feature exploration yields performance similar to gradient penalties.

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{dauphin2024neglected,
  title  = {Neglected Hessian component explains mysteries in Sharpness regularization},
  author = {Yann N. Dauphin and Atish Agarwala and Hossein Mobahi},
  year   = {2024},
  eprint = {2401.10809},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2401.10809},
  url    = {http://arxiv.org/abs/2401.10809v2},
  journal = {NEURIPS 2024 2024}
}

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/2401.10809.svg)](https://codeofpaper.com/paper/2401.10809)

Discussion