Mining the Shadows: Distilling Dark Ranking Knowledge for OOD Detection
Dishanika Denipitiyage, Aditya Krishna Menon, Nishavi Ranaweera, Shaohua Zhong, Suranga Seneviratne, Sanjay Chawla
原文摘要
Out-of-distribution (OOD) detection remains a notoriously challenging problem for deep learning classifiers. Recent work has introduced an effective new class of OOD detectors, based on a simple insight: whilst OOD samples may spuriously receive high-confidence predictions for a certain target class, their ranking over non-target classes may not reflect typical semantic patterns. While such ranking-based OOD detectors have achieved impressive empirical success, they have two shortcomings: (i) empirically, such methods can degrade in-distribution test accuracy; (ii) conceptually, a precise formalism for why a class ranking signal can improve OOD detection remains elusive. In this paper, we address both of these gaps by relating ranking-based OOD detectors to a specific form of knowledge distillation (KD). We use this perspective to design a new instance-level Plackett-Luce Knowledge Distillation loss (PL-KD) that maintains the strong OOD detection performance of ranking-based detectors, while boosting the in-distribution test accuracy. On CIFAR-10, CIFAR-100, and ImageNet-200, PL-KD reduces FPR95 relative to RANKOOD in every dataset and logit-based scoring-function combination we evaluate, while improving in-distribution accuracy by up to 5.3 points. Relative to standard cross-entropy training, it approximately halves both near- and far-OOD FPR95 on CIFAR-10. Finally, we provide a formal justification for ranking-based OOD detectors, extending the classic notion of 'dark knowledge' in KD to the OOD detection setting.
cs.CV