Analyzing and Improving Representations with the Soft Nearest Neighbor Loss
Nicholas Frosst, Nicolas Papernot, Geoffrey Hinton

TL;DR
This paper introduces the Soft Nearest Neighbor Loss to measure and manipulate the entanglement of class representations, revealing that increasing entanglement in hidden layers enhances discrimination, generalization, and uncertainty calibration.
Contribution
It extends the Soft Nearest Neighbor Loss as an analytical tool and demonstrates that maximizing entanglement improves model performance and uncertainty estimation.
Findings
Maximizing entanglement improves classification accuracy.
Entangled representations lead to better outlier detection.
Enhanced calibration of uncertainty estimates.
Abstract
We explore and expand the to measure the 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 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDomain Adaptation and Few-Shot Learning · Anomaly Detection Techniques and Applications · Model Reduction and Neural Networks
