Lune

NeurIPS2023Top-tier venue

Optimal Parameter and Neuron Pruning for Out-of-Distribution Detection

Chao Chen, Zhihang Fu, Kai Liu, Ze Chen, Mingyuan Tao, Jieping Ye

Abstract

For a machine learning model deployed in real world scenarios, the ability of detecting out-of-distribution (OOD) samples is indispensable and challenging. Most existing OOD detection methods focused on exploring advanced training skills or training-free tricks to prevent the model from yielding overconfident confidence score for unknown samples. The training-based methods require expensive training cost and rely on OOD samples which are not always available, while most training-free methods can not efficiently utilize the prior information from the training data. In this work, we propose an Optimal Parameter and Neuron Pruning (OPNP) approach, which aims to identify and remove those parameters and neurons that lead to over-fitting. The main method is divided into two steps. In the first step, we evaluate the sensitivity of the model parameters and neurons by averaging gradients over all training samples. In the second step, the parameters and neurons with exceptionally large or close to zero sensitivities are removed for prediction. Our proposal is training-free, compatible with other post-hoc methods, and exploring the information from all training data. Extensive experiments are performed on multiple OOD detection tasks and model architectures, showing that our proposed OPNP consistently outperforms the existing methods by a large margin.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ITP: Instance-Aware Test Pruning for Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
  • ITP: Instance-Aware Test Pruning for Out-of-Distribution Detection cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites ITP: Instance-Aware Test Pruning for Out-of-Distribution Detection
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection cites Energy-based Out-of-distribution Detection
  • Simplification Is All You Need against Out-of-Distribution Overconfidence cites Energy-based Out-of-distribution Detection
  • Simplification Is All You Need against Out-of-Distribution Overconfidence cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Simplification Is All You Need against Out-of-Distribution Overconfidence cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • Out-of-Distribution Detection with Deep Nearest Neighbors cites Energy-based Out-of-distribution Detection
  • Out-of-Distribution Detection with Deep Nearest Neighbors cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. INSIDE: LLMs' Internal States Retain the Power of Hallucination DetectionChao Chen, Kai Liu, Ze Chen, Yi Gu et al.ICLR 2024 · 281 citations
  2. ITP: Instance-Aware Test Pruning for Out-of-Distribution DetectionHaonan Xu, Yang YangAAAI 2025 · 3 citations
  3. Shaping Parameter Contribution Patterns for Out-of-Distribution DetectionHaonan Xu, Yang YangAAAI 2026
  4. Simplification Is All You Need against Out-of-Distribution OverconfidenceKeke Tang, Chao Hou, Weilong Peng, Xiang Fang et al.CVPR 2025

Builds on21

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  3. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  4. Pruning neural networks without any data by iteratively conserving synaptic flowHidenori Tanaka, Daniel Kunin, Daniel L. K. Yamins, Surya GanguliNeurIPS 2020 · 884 citations
  5. Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 citations

Related papers

  1. Enhancing Out-of-Distribution Detection with Extended Logit NormalizationYifan Ding, Xixi Liu, Jonas Unger, Gabriel EilertsenCVPR 2026 · 4 citations
  2. Detection of Out-of-Distribution Samples Using Binary Neuron Activation PatternsBartlomiej Olber, Krystian Radlak, Adam Popowicz, Michal Szczepankiewicz et al.CVPR 2023
  3. Revisiting Logit Distributions for Reliable Out-of-Distribution DetectionJiachen Liang, Ruibing Hou, Minyang Hu, Hong Chang et al.NeurIPS 2025 · 9 citations
  4. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  5. Neural Mean Discrepancy for Efficient Out-of-Distribution DetectionXin Dong, Junfeng Guo, Ang Li, Wei-Te Ting et al.CVPR 2022 · 40 citations
Dusk over the sea between two cliffs drawn in fine vertical lines