通过分层剪枝提升模型对分布外数据的检测可靠性
ITP: Instance-Aware Test Pruning for Out-of-Distribution Detection
- 基于类别参数贡献分布进行粗粒度剪枝,去除冗余参数
- 采用右尾Z检验实现细粒度实例级过自信参数剔除
- 适用于需要高可靠性的真实场景部署,尤其适合工业级模型
分布外(OOD)检测对深度模型在真实场景中的可靠部署至关重要。近期研究从过参数化角度出发,利用权重稀疏化技术取得良好效果,这些方法通常聚焦于为分布内(ID)数据选择重要参数,以减少冗余参数对OOD检测的负面影响。然而我们发现,这些被选中的参数在面对分布外数据时可能表现过度自信,反而损害检测性能。为此,本文提出一种简单但有效的后处理方法——实例感知测试剪枝(ITP),通过同时考虑粗粒度和细粒度的参数剪枝来实现更可靠的OOD检测。具体而言,ITP首先通过对ID数据探索,估计类别相关的参数贡献分布;随后利用该分布执行粗粒度剪枝以消除冗余参数;更重要的是,ITP进一步采用基于右尾Z-score检验的细粒度测试剪枝,可自适应地移除实例级别的过自信参数。最终,ITP从剪枝后的模型中提取OOD分数,实现更稳健的预测。大量在主流基准上的实验验证了ITP的有效性,展现出具有竞争力的性能。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。