SOTAVerified

Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancement

2023-09-30Code Available1· sign in to hype

Kai Xu, Rongyu Chen, Gianni Franchi, Angela Yao

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

The capacity of a modern deep learning system to determine if a sample falls within its realm of knowledge is fundamental and important. In this paper, we offer insights and analyses of recent state-of-the-art out-of-distribution (OOD) detection methods - extremely simple activation shaping (ASH). We demonstrate that activation pruning has a detrimental effect on OOD detection, while activation scaling enhances it. Moreover, we propose SCALE, a simple yet effective post-hoc network enhancement method for OOD detection, which attains state-of-the-art OOD detection performance without compromising in-distribution (ID) accuracy. By integrating scaling concepts into the training process to capture a sample's ID characteristics, we propose Intermediate Tensor SHaping (ISH), a lightweight method for training time OOD detection enhancement. We achieve AUROC scores of +1.85\% for near-OOD and +0.74\% for far-OOD datasets on the OpenOOD v1.5 ImageNet-1K benchmark. Our code and models are available at https://github.com/kai422/SCALE.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
Far-OODISH (ResNet50)AUROC96.79Unverified
Far-OODSCALE (ResNet50)AUROC96.53Unverified
ImageNet-1k vs Curated OODs (avg.)SCALE (ResNet50)FPR9520.05Unverified
ImageNet-1k vs iNaturalistSCALE (ResNet50)AUROC98.17Unverified
ImageNet-1k vs PlacesSCALE (ResNet50)FPR9534.51Unverified
ImageNet-1k vs SUNSCALE (ResNet50)FPR9523.27Unverified
ImageNet-1k vs TexturesSCALE (ResNet50)AUROC97.37Unverified
Near-OODISH (ResNet50)AUROC84.01Unverified
Near-OODSCALE (ResNet50)AUROC81.36Unverified

Reproductions