Stiffness: A New Perspective on Generalization in Neural Networks

By Stanislav Fort, Pawel Krzysztof Nowak, Stanislaw Jastrzebski, Srini Narayanan. 2019

109 citations recorded by the source corpus.

In this paper we develop a new perspective on generalization of neural networks by proposing and investigating the concept of a neural network stiffness. We measure how stiff a network is by looking at how a small gradient step in the network's parameters on one example affects the loss on another example. Higher stiffness suggests that a network is learning features that generalize. In particular, we study how stiffness depends on 1) class membership, 2) distance between data points in the input space, 3) training iteration, and 4) learning rate. We present experiments on MNIST, FASHION MNIST, and CIFAR-10/100 using fully-connected and convolutional neural networks, as well as on a transformer-based NLP model. We demonstrate the connection between stiffness and generalization, and observe its dependence on learning rate. When training on CIFAR-100, the stiffness matrix exhibits a coarse-grained behavior indicative of the model's awareness of super-class membership. In addition, we measure how stiffness between two data points depends on their mutual input-space distance, and establish the concept of a dynamical critical length -- a distance below which a parameter update based on a data point influences its neighbors.

Subfields: Artificial Intelligence, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Sergey Levine
  3. Kyunghyun Cho
  4. Mohit Bansal
  5. Joelle Pineau
  6. Quoc V. Le
  7. Bernhard Schölkopf
  8. Jianfeng Gao

In Statistical and Nonlinear Physics

  1. Simon Lacoste-Julien
  2. Pascal Vincent
  3. Kyunghyun Cho
  4. Joelle Pineau
  5. Aristide Baratin
  6. Doina Precup
  7. Bernhard Schölkopf
  8. Quanshi Zhang

Citations in the corpus