Do We Need Zero Training Loss After Achieving Zero Training Error?

Takashi Ishida, Ikko Yamane, Tomoya Sakai, Gang Niu, Masashi Sugiyama
2/20/2020
cs.LGstat.ML

Official code: takashiishida/flooding (96 stars, Python, GPL-3.0, PyTorch, last commit 2022-12-09).

Abstract

Overparameterized deep networks have the capacity to memorize training data with zero \emph{training error}. Even after memorization, the \emph{training loss} continues to approach zero, making the model overconfident and the test performance degraded.

Show full abstract

Since existing regularizers do not directly aim to avoid zero training loss, it is hard to tune their hyperparameters in order to maintain a fixed/preset level of training loss. We propose a direct solution called \emph{flooding} that intentionally prevents further reduction of the training loss when it reaches a reasonably small value, which we call the \emph{flood level}. Our approach makes the loss float around the flood level by doing mini-batched gradient descent as usual but gradient ascent if the training loss is below the flood level. This can be implemented with one line of code and is compatible with any stochastic optimizer and other regularizers. With flooding, the model will continue to "random walk" with the same non-zero training loss, and we expect it to drift into an area with a flat loss landscape that leads to better generalization. We experimentally show that flooding improves performance and, as a byproduct, induces a double descent curve of the test loss.

View on arXivView PDF

Code Implementations(1)

PyTorchGPL-3.0

[ICML 2020] code for the flooding regularizer proposed in "Do We Need Zero Training Loss After Achieving Zero Training Error?"

969PythonFeb 10, 20203 years agoGPL-3.0
deep-learningpytorch

Similar Papers

Cite this paper

@article{ishida2020need,
  title  = {Do We Need Zero Training Loss After Achieving Zero Training Error?},
  author = {Takashi Ishida and Ikko Yamane and Tomoya Sakai and Gang Niu and Masashi Sugiyama},
  year   = {2020},
  eprint = {2002.08709},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.08709}
}

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

Discussion