RankOOD -- Class Ranking-based Out-of-Distribution Detection
Dishanika Denipitiyage, Naveen Karunanayake, Suranga Seneviratne, Sanjay Chawla
TL;DR
RankOOD tackles OOD detection by exploiting rank-based structure in classifier logits. It derives canonical per-class rankings from an RPM via ILP, then trains a model with a hybrid $L_{CE}$ and $L_{ListMLE}$ objective to enforce global rank consistency using the $Plackett-Luce$ formulation. At inference, RankOOD computes a score that penalizes deviations from the canonical ranks and from class-specific logit thresholds, achieving state-of-the-art near-OOD performance on TinyImageNet and strong results overall without requiring outlier data or architectural changes. The approach demonstrates that preserving structured logit hierarchies improves OOD discrimination and offers robust, interpretable signaling for deployment in safety-critical systems.
Abstract
We propose RankOOD, a rank-based Out-of-Distribution (OOD) detection approach based on training a model with the Placket-Luce loss, which is now extensively used for preference alignment tasks in foundational models. Our approach is based on the insight that with a deep learning model trained using the Cross Entropy Loss, in-distribution (ID) class prediction induces a ranking pattern for each ID class prediction. The RankOOD framework formalizes the insight by first extracting a rank list for each class using an initial classifier and then uses another round of training with the Plackett-Luce loss, where the class rank, a fixed permutation for each class, is the predicted variable. An OOD example may get assigned with high probability to an ID example, but the probability of it respecting the ranking classification is likely to be small. RankOOD, achieves SOTA performance on the near-ODD TinyImageNet evaluation benchmark, reducing FPR95 by 4.3%.
