Reproduce “ReAct: Out-of-distribution Detection With Rectified Activations” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yiyou Sun, Chuan Guo, Yixuan Li

Rectified Activations (ReAct) enhances out-of-distribution detection by truncating extreme internal activations in neural networks' penultimate layer, achieving state-of-the-art performance with a 25.05% average reduction in FPR95 on the ImageNet benchmark.

Key insights

  • OOD inputs generate distinctively 'abnormal' internal activation patterns in neural networks, characterized by significantly higher variance and positive skewness compared to in-distribution data.
  • These outsized internal activations are a root cause of overconfident OOD predictions, and their selective rectification effectively mitigates this issue.
  • Mismatched BatchNorm statistics, derived from in-distribution data but applied during OOD inference, are a plausible explanation for the observed abnormal OOD activation patterns.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.