HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization

Yibing Liu Chris Xing Tian Haoliang Li Lei Ma Shiqi Wang

Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization

Abstract

The out-of-distribution (OOD) problem generally arises when neural networks encounter data that significantly deviates from the training data distribution, i.e., in-distribution (InD). In this paper, we study the OOD problem from a neuron activation view. We first formulate neuron activation states by considering both the neuron output and its influence on model decisions. Then, to characterize the relationship between neurons and OOD issues, we introduce the \textit{neuron activation coverage} (NAC) -- a simple measure for neuron behaviors under InD data. Leveraging our NAC, we show that 1) InD and OOD inputs can be largely separated based on the neuron behavior, which significantly eases the OOD detection problem and beats the 21 previous methods over three benchmarks (CIFAR-10, CIFAR-100, and ImageNet-1K). 2) a positive correlation between NAC and model generalization ability consistently holds across architectures and datasets, which enables a NAC-based criterion for evaluating model robustness. Compared to prevalent InD validation criteria, we show that NAC not only can select more robust models, but also has a stronger correlation with OOD test performance.

Code Repositories

bierone/ood_coverage
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
out-of-distribution-detection-on-imagenet-1k-10NAC-UE (ResNet-50)
AUROC: 97.9
out-of-distribution-detection-on-imagenet-1k-11NAC-UE (ResNet-50)
AUROC: 91.45
out-of-distribution-detection-on-imagenet-1k-3NAC-UE (ResNet-50)
AUROC: 96.52

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Neuron Activation Coverage: Rethinking Out-of-distribution Detection and Generalization | Papers | HyperAI