Analyzing and Improving Representations with the Soft Nearest Neighbor Loss
Not on the map. Why?
Abstract (arXiv)
We explore and expand the textitSoft Nearest Neighbor Loss to measure the textitentanglement 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 textitmaximizing 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.
Key facts. Cited by 95 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Feb 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 14; 2022: 18; 2023: 21; 2024: 21; 2025: 10; 2026: 11.
95 papers.
Sort:
By area:
- 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
- 2021Dissecting Supervised Contrastive Learningcited by 64
- 2022Contrastive Boundary Learning for Point Cloud Segmentationcited by 56
- 2022Neural Collapse with Normalized Features: A Geometric Analysis over the Riemannian Manifoldcited by 50
- 2022Mitigating Data Sparsity for Short Text Topic Modeling by Topic-Semantic Contrastive Learningcited by 38
- 2024Revisiting Nearest Neighbor for Tabular Data: A Deep Tabular Baseline Two Decades Latercited by 28
- 2022Beyond Just Vision: A Review on Self-Supervised Representation Learning on Multimodal and Temporal Datacited by 27
- 2025It Takes Two: Your GRPO Is Secretly DPOcited by 25
- 2024Adapting to Distribution Shift by Visual Domain Prompt Generationcited by 23
- 2022On the Difficulty of Defending Self-Supervised Learning against Model Extractioncited by 22
- 2021ReMeDi: Resources for Multi-domain, Multi-service, Medical Dialoguescited by 20
- 2024Separating the "Chirp" from the "Chat": Self-supervised Visual Grounding of Sound and Languagecited by 17
38 more
- 2021A Closer Look at Few-Shot Video Classification: A New Baseline and Benchmarkcited by 16
- 2021Learning Debiased and Disentangled Representations for Semantic Segmentationcited by 16
- 2024Modeling Dynamic Topics in Chain-Free Fashion by Evolution-Tracking Contrastive Learning and Unassociated Word Exclusioncited by 16
- 2025Neighbor GRPO: Contrastive ODE Policy Optimization Aligns Flow Modelscited by 16
- 2023Quality-aware Pre-trained Models for Blind Image Quality Assessmentcited by 15
- 2023Toward Fairness Through Fair Multi-Exit Framework for Dermatological Disease Diagnosiscited by 14
- 2023Uncovering Intermediate Variables in Transformers using Circuit Probingcited by 12
- 2023Contrastive Learning for Enhancing Robust Scene Transfer in Vision-based Agile Flightcited by 11
- 2024Symbol as Points: Panoptic Symbol Spotting via Point-based Representationcited by 11
- 2025Syntriever: How to Train Your Retriever with Synthetic Data from LLMscited by 11
- 2024Achieve Fairness without Demographics for Dermatological Disease Diagnosiscited by 10
- 2021Fool Me Once: Robust Selective Segmentation via Out-of-Distribution Detection with Contrastive Learningcited by 9
- 2023Leveraging Multi-lingual Positive Instances in Contrastive Learning to Improve Sentence Embeddingcited by 9
- 2024Achieving Fairness Through Channel Pruning for Dermatological Disease Diagnosiscited by 9
- 2022Logit Normalization for Long-tail Object Detectioncited by 8
- 2023Identity Encoder for Personalized Diffusioncited by 8
- 2023Bucks for Buckets (B4B): Active Defenses Against Stealing Encoderscited by 8
- 2024End-to-End Training Induces Information Bottleneck through Layer-Role Differentiation: A Comparative Analysis with Layer-wise Trainingcited by 8
- 2024Learning Data Association for Multi-Object Tracking using Only Coordinatescited by 8
- 2023SCoRe: Submodular Combinatorial Representation Learningcited by 7
- 2023Inversion dynamics of class manifolds in deep learning reveals tradeoffs underlying generalisationcited by 6
- 2023Deep Classifier Mimicry without Data Accesscited by 6
- 2022Empirical Evaluation and Theoretical Analysis for Representation Learning: A Surveycited by 5
- 2023Contrastive Initial State Buffer for Reinforcement Learningcited by 5
- 2023Unsupervised Pretraining for Fact Verification by Language Model Distillationcited by 5
- 2026CLIPO: Contrastive Learning in Policy Optimization Generalizes RLVRcited by 5
- 2021SoundCLR: Contrastive Learning of Representations For Improved Environmental Sound Classificationcited by 4
- 2021Privacy Inference Attacks and Defenses in Cloud-based Deep Neural Network: A Surveycited by 4
- 2021ASK: Adversarial Soft k-Nearest Neighbor Attack and Defensecited by 4
- 2022A Flexible Nadaraya-Watson Head Can Offer Explainable and Calibrated Classificationcited by 4
- 2024Towards Robust Vision Transformer via Masked Adaptive Ensemblecited by 4
- 2022Semantic-based Pre-training for Dialogue Understandingcited by 3
- 2023Numerical Data Imputation for Multimodal Data Sets: A Probabilistic Nearest-Neighbor Kernel Density Approachcited by 3
- 2024Unsupervised Contrastive Learning for Robust RF Device Fingerprinting Under Time-Domain Shiftcited by 3
- 2022Incremental Few-Shot Learning via Implanting and Compressingcited by 2
- 2022Supervised Contrastive CSI Representation Learning for Massive MIMO Positioningcited by 2
- 2022p-DkNN: Out-of-Distribution Detection Through Statistical Testing of Deep Representationscited by 2
- 2022Improving Meta-Learning Generalization with Activation-Based Early-Stoppingcited by 2
50 most cited of 95 All 95 (JSON)
- 2026Language Discrimination Improves Linguistic Learning in Multilingual Speech Models27 Sep 2026
- 2026What Do Tabular Foundation Models Compute In Context? In-Situ Representation Refinement through Attention-Gated Updates23 Sep 2026
- 2026Understanding Submodular Information Measure Based Objectives for Representation Learning: A Variance and Separation Perspective30 Jul 2026
- 2026Distributional Loss for Robust Classification11 Jun 2026
- 2026Robust Scene Transfer for PointGoal Navigation via Privileged Sensor Guided Contrastive Learning3 Jun 2026
- 2026VLAMotor: Test-Guided Enhancement of Vision-Language-Action Models via Agent-BasedData Synthesis16 May 2026
- 2026The Cancellation Hypothesis in Critic-Free RL: From Outcome Rewards to Token Credits9 May 2026
- 2026Retrieval-aligned Tabular Foundation Models Enable Robust Clinical Risk Prediction in Electronic Health Records Under Real-world Constraints2 Apr 2026
- 2026Mixture of Experts with Soft Nearest Neighbor Loss: Resolving Expert Collapse via Representation Disentanglement20 Mar 2026
- 2026CLIPO: Contrastive Learning in Policy Optimization Generalizes RLVR10 Mar 2026
- 2026SHaSaM: Submodular Hard Sample Mining for Fair Facial Attribute Recognition5 Feb 2026
- 2025Kinetic Mining in Context: Few-Shot Action Synthesis via Text-to-Motion Distillation12 Dec 2025
38 more
- 2025Neural Coherence : Find higher performance to out-of-distribution tasks from few samples5 Dec 2025
- 2025Neighbor GRPO: Contrastive ODE Policy Optimization Aligns Flow Models21 Nov 2025
- 2025A Dataset and Baseline for Deep Learning-Based Visual Quality Inspection in Remanufacturing19 Nov 2025
- 2025It Takes Two: Your GRPO Is Secretly DPO1 Oct 2025
- 2025Towards Automated Error Discovery: A Study in Conversational AI13 Sep 2025
- 2025Borrowing From the Future: Enhancing Early Risk Assessment through Contrastive Learning15 Aug 2025
- 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularization24 Jul 2025
- 2025Implicit Contrastive Representation Learning with Guided Stop-gradient12 Mar 2025
- 2025Syntriever: How to Train Your Retriever with Synthetic Data from LLMs6 Feb 2025
- 2024On the Use of Deep Learning Models for Semantic Clone Detection19 Dec 2024
- 2024JEMA: A Joint Embedding Framework for Scalable Co-Learning with Multimodal Alignment31 Oct 2024
- 2024Adenocarcinoma Segmentation Using Pre-trained Swin-UNet with Parallel Cross-Attention for Multi-Domain Imaging23 Sep 2024
- 2024Aircraft Trajectory Segmentation-based Contrastive Coding: A Framework for Self-supervised Trajectory Representation29 Jul 2024
- 2024Towards Robust Vision Transformer via Masked Adaptive Ensemble22 Jul 2024
- 2024FlowCon: Out-of-Distribution Detection using Flow-Based Contrastive Learning3 Jul 2024
- 2024Revisiting Nearest Neighbor for Tabular Data: A Deep Tabular Baseline Two Decades Later3 Jul 2024
- 2024Separating the "Chirp" from the "Chat": Self-supervised Visual Grounding of Sound and Language9 Jun 2024
- 2024Early Detection of Misinformation for Infodemic Management: A Domain Adaptation Approach2 Jun 2024
- 2024Modeling Dynamic Topics in Chain-Free Fashion by Evolution-Tracking Contrastive Learning and Unassociated Word Exclusion28 May 2024
- 2024A Robust Autoencoder Ensemble-Based Approach for Anomaly Detection in Text16 May 2024
- 2024Achieving Fairness Through Channel Pruning for Dermatological Disease Diagnosis14 May 2024
- 2024Adapting to Distribution Shift by Visual Domain Prompt Generation5 May 2024
- 2024On the Surprising Efficacy of Distillation as an Alternative to Pre-Training Small Models4 Apr 2024
- 2024Disentangling Hippocampal Shape Variations: A Study of Neurological Disorders Using Mesh Variational Autoencoder with Contrastive Learning31 Mar 2024
- 2024Learning Data Association for Multi-Object Tracking using Only Coordinates12 Mar 2024
- 2024Unsupervised Contrastive Learning for Robust RF Device Fingerprinting Under Time-Domain Shift6 Mar 2024
- 2024End-to-End Training Induces Information Bottleneck through Layer-Role Differentiation: A Comparative Analysis with Layer-wise Training14 Feb 2024
- 2024Symbol as Points: Panoptic Symbol Spotting via Point-based Representation19 Jan 2024
- 2024Achieve Fairness without Demographics for Dermatological Disease Diagnosis16 Jan 2024
- 2024Rethinking Test-time Likelihood: The Likelihood Path Principle and Its Application to OOD Detection10 Jan 2024
- 2023Value Explicit Pretraining for Learning Transferable Representations19 Dec 2023
- 2023Enhancing Peak Assignment in 13C NMR Spectroscopy: A Novel Approach Using Multimodal Alignment23 Nov 2023
- 2023Contrastive Learning of View-Invariant Representations for Facial Expressions Recognition12 Nov 2023
- 2023Uncovering Intermediate Variables in Transformers using Circuit Probing7 Nov 2023
- 2023Bucks for Buckets (B4B): Active Defenses Against Stealing Encoders12 Oct 2023
- 2023SCoRe: Submodular Combinatorial Representation Learning29 Sep 2023
- 2023Unsupervised Pretraining for Fact Verification by Language Model Distillation28 Sep 2023
- 2023Contrastive Learning for Enhancing Robust Scene Transfer in Vision-based Agile Flight18 Sep 2023
50 newest of 95 All 95 (JSON)
- 2021Adversarial Poisoning Attacks and Defense for General Multi-Class Models Based On Synthetic Reduced Nearest Neighborscited by 1
- 2023Pick your Poison: Undetectability versus Robustness in Data Poisoning Attackscited by 1
- 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularizationcited by 1
- 2025CLEAR: Unlearning Spurious Style-Content Associations with Contrastive LEarning with Anti-contrastive Regularization24 Jul 2025
- 2023Pick your Poison: Undetectability versus Robustness in Data Poisoning Attacks7 May 2023
- 2021Adversarial Poisoning Attacks and Defense for General Multi-Class Models Based On Synthetic Reduced Nearest Neighbors11 Feb 2021
- 2025It Takes Two: Your GRPO Is Secretly DPOcited by 25
- 2026CLIPO: Contrastive Learning in Policy Optimization Generalizes RLVRcited by 5
- 2026CLIPO: Contrastive Learning in Policy Optimization Generalizes RLVR10 Mar 2026
- 2025It Takes Two: Your GRPO Is Secretly DPO1 Oct 2025
- 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
- 2021Dissecting Supervised Contrastive Learningcited by 64
- 2022Contrastive Boundary Learning for Point Cloud Segmentationcited by 56
- 2022Neural Collapse with Normalized Features: A Geometric Analysis over the Riemannian Manifoldcited by 50
- 2022Mitigating Data Sparsity for Short Text Topic Modeling by Topic-Semantic Contrastive Learningcited by 38
- 2024Revisiting Nearest Neighbor for Tabular Data: A Deep Tabular Baseline Two Decades Latercited by 28
- 2022Beyond Just Vision: A Review on Self-Supervised Representation Learning on Multimodal and Temporal Datacited by 27
- 2024Adapting to Distribution Shift by Visual Domain Prompt Generationcited by 23
- 2022On the Difficulty of Defending Self-Supervised Learning against Model Extractioncited by 22
- 2021ReMeDi: Resources for Multi-domain, Multi-service, Medical Dialoguescited by 20
- 2024Separating the "Chirp" from the "Chat": Self-supervised Visual Grounding of Sound and Languagecited by 17
- 2021A Closer Look at Few-Shot Video Classification: A New Baseline and Benchmarkcited by 16
12 most cited of 86 All 86 (JSON)
- 2026Language Discrimination Improves Linguistic Learning in Multilingual Speech Models27 Sep 2026
- 2026What Do Tabular Foundation Models Compute In Context? In-Situ Representation Refinement through Attention-Gated Updates23 Sep 2026
- 2026Understanding Submodular Information Measure Based Objectives for Representation Learning: A Variance and Separation Perspective30 Jul 2026
- 2026Distributional Loss for Robust Classification11 Jun 2026
- 2026Robust Scene Transfer for PointGoal Navigation via Privileged Sensor Guided Contrastive Learning3 Jun 2026
- 2026The Cancellation Hypothesis in Critic-Free RL: From Outcome Rewards to Token Credits9 May 2026
- 2026Retrieval-aligned Tabular Foundation Models Enable Robust Clinical Risk Prediction in Electronic Health Records Under Real-world Constraints2 Apr 2026
- 2026SHaSaM: Submodular Hard Sample Mining for Fair Facial Attribute Recognition5 Feb 2026
- 2025Kinetic Mining in Context: Few-Shot Action Synthesis via Text-to-Motion Distillation12 Dec 2025
- 2025Neural Coherence : Find higher performance to out-of-distribution tasks from few samples5 Dec 2025
- 2025A Dataset and Baseline for Deep Learning-Based Visual Quality Inspection in Remanufacturing19 Nov 2025
- 2025Towards Automated Error Discovery: A Study in Conversational AI13 Sep 2025
12 newest of 86 All 86 (JSON)