Papers › Decoupling MaxLogit for Out-of-Distribution Detection

Decoupling MaxLogit for Out-of-Distribution Detection

1 Jan 2023CVPR 2023 6archive 2025-07-28

Zihan Zhang, Xiang Xiang

In machine learning, it is often observed that standard training outputs anomalously high confidence for both in-distribution (ID) and out-of-distribution (OOD) data. Thus, the ability to detect OOD samples is critical to the model deployment. An essential step for OOD detection is post-hoc scoring. MaxLogit is one of the simplest scoring functions which uses the maximum logits as OOD score. To provide a new viewpoint to study the logit-based scoring function, we reformulate the logit into cosine similarity and logit norm and propose to use MaxCosine and MaxNorm. We empirically find that MaxCosine is a core factor in the effectiveness of MaxLogit. And the performance of MaxLogit is encumbered by MaxNorm. To tackle the problem, we propose the Decoupling MaxLogit (DML) for flexibility to balance MaxCosine and MaxNorm. To further embody the core of our method, we extend DML to DML+ based on the new insights that fewer hard samples and compact feature space are the key components to make logit-based methods effective. We demonstrate the effectiveness of our logit-based OOD detection methods on CIFAR-10, CIFAR-100 and ImageNet and establish state-of-the-art performance.

PaperPDFConference PDF

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Out-of-Distribution Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Out-of-Distribution Detection ImageNet-1k vs Curated OODs (avg.) DML FPR95 54.74 #13 of 16 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Places DML FPR95 61.43 #19 of 25 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs SUN DML FPR95 57.40 #18 of 22 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs Textures DML FPR95 52.80 #31 of 34 Archive leaderboard report
Out-of-Distribution Detection ImageNet-1k vs iNaturalist DML FPR95 47.32 #26 of 28 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections