arXiv:2505.23448cs.LGcs.CV2025-05被引 2

用网络反演让模型自动识别异常输入并估计置信度。

Network Inversion for Uncertainty-Aware Out-of-Distribution Detection

  • 训练时引入'垃圾类',通过反演重建异常样本并重训练分类器。
  • 迭代后异常样本被归入垃圾类,置信度下降表明边界清晰化。
  • 无需外部数据或校准,适合高安全要求场景

出域(OOD)检测与不确定性估计是构建安全机器学习系统的关键,尤其在现实场景中意外输入不可避免。以往两者分别处理。本文提出新框架,将网络反演与分类器训练结合,同时解决两个问题。对n类分类任务,扩展为(n+1)类模型,新增一个初始由随机高斯噪声填充的‘垃圾’类,代表异常输入。每轮训练后,用网络反演重构所有输出类别中初始表现为噪声且不连贯的输入图像,将其排除至垃圾类以重新训练分类器。此训练、反演、排除循环持续进行,直至反演样本更接近分布内数据,不确定性显著下降,表明分类器已学会划出有意义的决策边界,并通过将异常内容推入垃圾类来净化类别流形。推理时,该方案能通过将样本分类至垃圾类有效检测并拒绝异常输入。此外,每个预测的置信度可用于估计分布内和分布外输入的不确定性。本方法可扩展、可解释,无需外部异常数据集或事后校准技术,提供统一解决方案。

原文摘要 · Abstract (English)

Out-of-distribution (OOD) detection and uncertainty estimation (UE) are critical components for building safe machine learning systems, especially in real-world scenarios where unexpected inputs are inevitable. However the two problems have, until recently, separately been addressed. In this work, we propose a novel framework that combines network inversion with classifier training to simultaneously address both OOD detection and uncertainty estimation. For a standard n-class classification task, we extend the classifier to an (n+1)-class model by introducing a "garbage" class, initially populated with random gaussian noise to represent outlier inputs. After each training epoch, we use network inversion to reconstruct input images corresponding to all output classes that initially appear as noisy and incoherent and are therefore excluded to the garbage class for retraining the classifier. This cycle of training, inversion, and exclusion continues iteratively till the inverted samples begin to resemble the in-distribution data more closely, with a significant drop in the uncertainty, suggesting that the classifier has learned to carve out meaningful decision boundaries while sanitising the class manifolds by pushing OOD content into the garbage class. During inference, this training scheme enables the model to effectively detect and reject OOD samples by classifying them into the garbage class. Furthermore, the confidence scores associated with each prediction can be used to estimate uncertainty for both in-distribution and OOD inputs. Our approach is scalable, interpretable, and does not require access to external OOD datasets or post-hoc calibration techniques while providing a unified solution to the dual challenges of OOD detection and uncertainty estimation.

OOD检测不确定性估计网络反演分类器训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。