Lune

AAAI2025Top-tier venue

ITP: Instance-Aware Test Pruning for Out-of-Distribution Detection

Haonan Xu, Yang Yang

Abstract

Out-of-distribution (OOD) detection is crucial for ensuring the reliable deployment of deep models in real-world scenarios. Recently, from the perspective of over-parameterization, a series of methods leveraging weight sparsification techniques have shown promising performance. These methods typically focus on selecting important parameters for in-distribution (ID) data to reduce the negative impact of redundant parameters on OOD detection. However, we empirically find that these selected parameters may behave overconfidently toward OOD data and hurt OOD detection. To address this issue, we propose a simple yet effective post-hoc method called Instance-aware Test Pruning (ITP), which performs OOD detection by considering both coarse-grained and fine-grained levels of parameter pruning. Specifically, ITP first estimates the class-specific parameter contribution distribution by exploring the ID data. By using the contribution distribution, ITP conducts coarse-grained pruning to eliminate redundant parameters. More importantly, ITP further adopts a fine-grained test pruning process based on the right-tailed Z-score test, which can adaptively remove instance-level overconfident parameters. Finally, ITP derives OOD scores from the pruned model to achieve more reliable predictions. Extensive experiments on widely adopted benchmarks verify the effectiveness of ITP, demonstrating its competitive performance.

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

  • On the Importance of Gradients for Detecting Distributional Shifts in the Wild cites Energy-based Out-of-distribution Detection
  • 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 Scaling Out-of-Distribution Detection for Real-World Settings
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites ReAct: Out-of-distribution Detection With Rectified Activations
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge Distillation
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • Shaping Parameter Contribution Patterns for Out-of-Distribution Detection cites Probabilistic Group Mask Guided Discrete Optimization for Incremental Learning
  • ReAct: Out-of-distribution Detection With Rectified Activations cites Energy-based Out-of-distribution Detection
  • ReAct: Out-of-distribution Detection With Rectified Activations cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge Distillation cites Energy-based Out-of-distribution Detection
  • Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge Distillation cites On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge Distillation 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 On the Importance of Gradients for Detecting Distributional Shifts in the Wild
  • Out-of-Distribution Detection with Deep Nearest Neighbors cites ReAct: Out-of-distribution Detection With Rectified Activations
  • Probabilistic Group Mask Guided Discrete Optimization for Incremental Learning cites Energy-based Out-of-distribution Detection
  • GR-LoRA: Gradient-Recycling Low-Rank Adaptation for Class-Incremental Learning cites Energy-based Out-of-distribution Detection
  • GR-LoRA: Gradient-Recycling Low-Rank Adaptation for Class-Incremental Learning cites Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge Distillation
  • GR-LoRA: Gradient-Recycling Low-Rank Adaptation for Class-Incremental Learning cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • GR-LoRA: Gradient-Recycling Low-Rank Adaptation for Class-Incremental Learning cites Probabilistic Group Mask Guided Discrete Optimization for Incremental Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Shaping Parameter Contribution Patterns for Out-of-Distribution DetectionHaonan Xu, Yang YangAAAI 2026
  2. Strengthen Out-of-Distribution Detection Capability with Progressive Self-Knowledge DistillationYang Yang, Haonan XuICML 2025
  3. Probabilistic Group Mask Guided Discrete Optimization for Incremental LearningFengqiang Wan, Yang YangICML 2025
  4. GR-LoRA: Gradient-Recycling Low-Rank Adaptation for Class-Incremental LearningYipeng Lin, Fengqiang Wan, Yang YangICML 2026

Builds on16

  1. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  2. Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 citations
  3. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  4. Scaling Out-of-Distribution Detection for Real-World SettingsDan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou et al.ICML 2022 · 653 citations
  5. On the Importance of Gradients for Detecting Distributional Shifts in the WildRui Huang, Andrew Geng, Yixuan LiNeurIPS 2021 · 515 citations

Related papers

  1. Optimal Parameter and Neuron Pruning for Out-of-Distribution DetectionChao Chen, Zhihang Fu, Kai Liu, Ze Chen et al.NeurIPS 2023 · 8 citations
  2. LINe: Out-of-Distribution Detection by Leveraging Important NeuronsYong Hyun Ahn, Gyeong-Moon Park, Seong Tae KimCVPR 2023
  3. Scaling for Training Time and Post-hoc Out-of-distribution Detection EnhancementKai Xu, Rongyu Chen, Gianni Franchi, Angela YaoICLR 2024 · 81 citations
  4. Simplification Is All You Need against Out-of-Distribution OverconfidenceKeke Tang, Chao Hou, Weilong Peng, Xiang Fang et al.CVPR 2025
  5. Leveraging Perturbation Robustness to Enhance Out-of-Distribution DetectionWenxi Chen, Raymond A. Yeh, Shaoshuai Mou, Yan GuCVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines