mlsanityData to 26 Nov 2026

Attraction-Ranking Mismatch in Out-of-Distribution Detection: Theory and Evidence from Hamiltonian Feature Dynamics

arXiv 2611.06021 ↗Submitted 4 Nov 2026cs.LG math.OCcited by 0

Not on the map. Why?

Abstract (arXiv)

Attracting features toward learned in-distribution (ID) regions is an intuitive strategy for out-of-distribution (OOD) detection, but does such attraction improve detection? We investigate this question using class-conditioned Hamiltonian dynamics as a controlled testbed and identify an attraction-ranking mismatch: improving individual class-affinity scores need not improve the relative ordering of ID and OOD samples. Our analysis separates misalignment between the driving field and the detection score from ranking failure that persists even when they are aligned. An exact AUROC decomposition and a local boundary analysis identify relative score changes at the ID-OOD ranking boundary as the source of first-order AUROC change under regularity conditions. Experiments demonstrate that a score-aligned rule can improve performance on a held-out source validation split yet consistently degrade it after transfer, even without a single winning-class change. A separate perturbation study finds that near-boundary relative score changes track the direction of small AUROC changes in the tested settings. Finally, centroid approximation and shared scales connect the zero-step score to a static centroid family that includes the existing CTM detector. Together, these results explain why class attraction is insufficient to justify feature refinement and motivate evaluating its effect on the ranking boundary.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 23 of its 32 references that are in the map. Submitted 4 Nov 2026.

Builds on

23 of 32 references.

References · 23

  1. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,494
  2. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,538
  3. 2020Energy-based Out-of-distribution Detectioncited by 1,346
  4. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 629
  5. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 498
  6. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 485
  7. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 420
  8. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 223
  9. 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 222
  10. 2023OpenOOD v1.5: Enhanced Benchmark for Out-of-Distribution Detectioncited by 193
  11. 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 173
  12. 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 81
11 more
  1. 2023Nearest Neighbor Guidance for Out-of-Distribution Detectioncited by 69
  2. 2022RankFeat: Rank-1 Feature Removal for Out-of-distribution Detectioncited by 53
  3. 2025CADRef: Robust Out-of-Distribution Detection via Class-Aware Decoupled Relative Feature Leveragingcited by 12
  4. 2025Revisiting Logit Distributions for Reliable Out-of-Distribution Detectioncited by 5
  5. 2023A Cosine Similarity-based Method for Out-of-Distribution Detectioncited by 3
  6. 2024FEVER-OOD: Free Energy Vulnerability Elimination for Robust Out-of-Distribution Detectioncited by 3
  7. 2025GradPCA: Leveraging NTK Alignment for Reliable Out-of-Distribution Detectioncited by 3
  8. 2025Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detectioncited by 3
  9. 2024Prototype-based Optimal Transport for Out-of-Distribution Detectioncited by 2
  10. 2025Gradient Short-Circuit: Efficient Out-of-Distribution Detection via Feature Interventioncited by 2
  11. 2023GROOD: GRadient-Aware Out-of-Distribution Detectioncited by 1

Built on by

Not cited yet.