Investigating Generalization by Controlling Normalized Margin

Alexander R. Farhang, Jeremy Bernstein, Kushal Tirumala, Yang Liu, Yisong Yue
5/8/2022
cs.LG

Official code: alexfarhang/margin (2 stars, Jupyter Notebook, last commit 2022-07-16).

Abstract

Weight norm $\|w\|$ and margin $γ$ participate in learning theory via the normalized margin $γ/\|w\|$. Since standard neural net optimizers do not control normalized margin, it is hard to test whether this quantity causally relates to generalization.

Show full abstract

This paper designs a series of experimental studies that explicitly control normalized margin and thereby tackle two central questions. First: does normalized margin always have a causal effect on generalization? The paper finds that no -- networks can be produced where normalized margin has seemingly no relationship with generalization, counter to the theory of Bartlett et al. (2017). Second: does normalized margin ever have a causal effect on generalization? The paper finds that yes -- in a standard training setup, test performance closely tracks normalized margin. The paper suggests a Gaussian process model as a promising explanation for this behavior.

View on arXivView PDF

Code Implementations(1)

alexfarhang/marginOfficial100%

Controlling normalized margin

20Jupyter Notebook, PythonApr 4, 20224 years ago

Similar Papers

Cite this paper

@article{farhang2022investigating,
  title  = {Investigating Generalization by Controlling Normalized Margin},
  author = {Alexander R. Farhang and Jeremy Bernstein and Kushal Tirumala and Yang Liu and Yisong Yue},
  year   = {2022},
  eprint = {2205.03940},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.03940}
}

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

Discussion