Skip to main content
QUICK REVIEW

[Paper Review] Shaping Parameter Contribution Patterns for Out-of-Distribution Detection

Haonan Xu, Yang Yang|arXiv (Cornell University)|Mar 7, 2026
Anomaly Detection Techniques and ApplicationsComputer Science0 citations
TL;DR

SPCP training regularizes classifier parameter contributions to avoid overconfident OOD predictions by enforcing boundary-oriented dense patterns, improving OOD detection while preserving ID accuracy.

ABSTRACT

Out-of-distribution (OOD) detection is a well-known challenge due to deep models often producing overconfident. In this paper, we reveal a key insight that trained classifiers tend to rely on sparse parameter contribution patterns, meaning that only a few dominant parameters drive predictions. This brittleness can be exploited by OOD inputs that anomalously trigger these parameters, resulting in overconfident predictions. To address this issue, we propose a simple yet effective method called Shaping Parameter Contribution Patterns (SPCP), which enhances OOD detection robustness by encouraging the classifier to learn boundary-oriented dense contribution patterns. Specifically, SPCP operates during training by rectifying excessively high parameter contributions based on a dynamically estimated threshold. This mechanism promotes the classifier to rely on a broader set of parameters for decision-making, thereby reducing the risk of overconfident predictions caused by anomalously triggered parameters, while preserving in-distribution (ID) performance. Extensive experiments under various OOD detection setups verify the effectiveness of SPCP.

Motivation & Objective

  • Motivate OOD detection brittleness from sparse parameter contributions in trained classifiers.
  • Propose a training-time regularization (SPCP) that bounds dominant parameter contributions.
  • Show that SPCP leads to boundary-oriented dense contribution patterns without sacrificing in-distribution performance.
  • Demonstrate SPCP’s effectiveness across CIFAR and ImageNet benchmarks and its compatibility with various OOD methods.

Proposed method

  • Define parameter contribution c_k(x; θ_ij) as the change in class k output when parameter θ_ij is present versus zeroed (Eq. 4).
  • Focus on classifier weights W since they most influence high-level decision boundaries (Eq. 5).
  • Introduce SPCP by trimming contributions exceeding a dynamic threshold λ (Eq. 7); compute f^SPCP_k(x; λ) with truncated contributions (Eq. 8).
  • Estimate λ at each iteration via EMA of top-ρ percentile of contributions across mini-batches (Eq. 9).
  • Train with cross-entropy loss on f^SPCP and use Energy score for OOD detection (Eq. 11).
  • Empirically validate SPCP on OpenOOD benchmark with multiple backbones and OOD scenarios (Tables 1–4).

Experimental results

Research questions

  • RQ1Can constraining dominant classifier parameter contributions during training reduce OOD overconfidence without harming ID accuracy?
  • RQ2Do boundary-oriented dense contribution patterns improve ID-OOD separation across near- and far-OOD scenarios?
  • RQ3Is SPCP compatible with a range of existing OOD scoring methods and backbones?
  • RQ4How does dynamic, EMA-based thresholding compare to static thresholds for contribution truncation?
  • RQ5What is the impact of SPCP on robustness across CIFAR and ImageNet-scale benchmarks?

Key findings

  • SPCP improves OOD detection across various near- and far-OOD settings while preserving ID accuracy.
  • Shaping contributions reduces the overlap between ID and OOD score distributions, enhancing ID-OOD separation.
  • SPCP is compatible with post-hoc and training-time regularization methods and yields competitive results across backbones.
  • Ablation studies show training-time truncation is more effective than inference-only truncation, and dynamic λ estimation via EMA is beneficial.
  • SPCP generalizes to different backbones (ResNet-18, WideResNet-28-10, DenseNet-101) and remains effective when combined with other OOD methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.