Disparity Between Batches as a Signal for Early Stopping

Mahsa Forouzesh, Patrick Thiran
7/14/2021
cs.LG

Official code: mahf93/disparity_early_stopping (6 stars, Python, last commit 2023-03-31).

Abstract

We propose a metric for evaluating the generalization ability of deep neural networks trained with mini-batch gradient descent. Our metric, called gradient disparity, is the $\ell_2$ norm distance between the gradient vectors of two mini-batches drawn from the training set.

Show full abstract

It is derived from a probabilistic upper bound on the difference between the classification errors over a given mini-batch, when the network is trained on this mini-batch and when the network is trained on another mini-batch of points sampled from the same dataset. We empirically show that gradient disparity is a very promising early-stopping criterion (i) when data is limited, as it uses all the samples for training and (ii) when available data has noisy labels, as it signals overfitting better than the validation data. Furthermore, we show in a wide range of experimental settings that gradient disparity is strongly related to the generalization error between the training and test sets, and that it is also very informative about the level of label noise.

View on arXivView PDF

Code Implementations(1)

Code for "Disparity Between Batches as a Signal for Early Stopping"

61Python, Jupyter NotebookJul 1, 20213 years ago

Similar Papers

Cite this paper

@article{forouzesh2021disparity,
  title  = {Disparity Between Batches as a Signal for Early Stopping},
  author = {Mahsa Forouzesh and Patrick Thiran},
  year   = {2021},
  eprint = {2107.06665},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.06665}
}

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

Discussion