Analyzing and Improving Representations with the Soft Nearest Neighbor Loss

By Nicholas Frosst, Nicolas Papernot, Geoffrey E. Hinton. 2019

194 citations recorded by the source corpus.

We explore and expand the $\textit{Soft Nearest Neighbor Loss}$ to measure the $\textit{entanglement}$ of class manifolds in representation space: i.e., how close pairs of points from the same class are relative to pairs of points from different classes. We demonstrate several use cases of the loss. As an analytical tool, it provides insights into the evolution of class similarity structures during learning. Surprisingly, we find that $\textit{maximizing}$ the entanglement of representations of different classes in the hidden layers is beneficial for discrimination in the final layer, possibly because it encourages representations to identify class-independent similarity structures. Maximizing the soft nearest neighbor loss in the hidden layers leads not only to improved generalization but also to better-calibrated estimates of uncertainty on outlier data. Data that is not from the training distribution can be recognized by observing that in the hidden layers, it has fewer than the normal number of neighbors from the predicted class.

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. Sergey Levine
  2. Trevor Darrell
  3. Andrew Zisserman
  4. Pieter Abbeel
  5. Quoc V. Le
  6. Yoshua Bengio
  7. Bernt Schiele
  8. Stefano Soatto

In Statistical and Nonlinear Physics

  1. Stefano Soatto
  2. Hengrui Jia
  3. Christopher A. Choquette-Choo
  4. Micah Goldblum
  5. Pratik Chaudhari
  6. Mohammad Norouzi
  7. Ting-Li Chen
  8. Ce Liu

Citations in the corpus