arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.18635cs.LG
收藏

何时以及如何使分布内标签有助于分布外检测?

When and How Does In-Distribution Label Help Out-of-Distribution Detection?

UW-Madison(威斯康星大学麦迪逊分校)

Xuefeng Du, Yiyou Sun, Yixuan Li

AI总结:

本文从图论与谱分解角度理论分析了分布内标签对分布外检测的影响,推导出比较有无标签性能的可证明误差界限,并通过模拟与真实数据实验验证了理论保证。

摘要:

检测偏离训练分布的数据点对于确保可靠的机器学习至关重要。针对这一挑战已有广泛研究,涵盖从经典异常检测技术到当代的分布外(OOD)检测方法。OOD检测通常依赖于从有标签的分布内(ID)数据集中进行监督学习,而异常检测可能将整个ID数据视为单一类别并忽略ID标签。这一根本区别引出了一个尚未得到严格探索的重要问题:ID标签何时以及如何有助于OOD检测?本文通过提供形式化理解来填补这一空白,从理论上界定ID标签对OOD检测的影响。我们采用图论方法,以闭式方式严格分析了ID数据与OOD数据的可分性。我们方法的关键在于通过对图进行谱分解来刻画数据表示。利用这些表示,我们建立了一个可证明的误差界限,比较了有无ID标签时的OOD检测性能,揭示了实现增强OOD检测的条件。最后,我们在模拟和真实数据集上展示了实证结果,验证了理论保证并强化了我们的见解。代码公开于https://github.com/deeplearning-wisc/id_label。

英文摘要:

Detecting data points deviating from the training distribution is pivotal for ensuring reliable machine learning. Extensive research has been dedicated to the challenge, spanning classical anomaly detection techniques to contemporary out-of-distribution (OOD) detection approaches. While OOD detection commonly relies on supervised learning from a labeled in-distribution (ID) dataset, anomaly detection may treat the entire ID data as a single class and disregard ID labels. This fundamental distinction raises a significant question that has yet to be rigorously explored: when and how does ID label help OOD detection? This paper bridges this gap by offering a formal understanding to theoretically delineate the impact of ID labels on OOD detection. We employ a graph-theoretic approach, rigorously analyzing the separability of ID data from OOD data in a closed-form manner. Key to our approach is the characterization of data representations through spectral decomposition on the graph. Leveraging these representations, we establish a provable error bound that compares the OOD detection performance with and without ID labels, unveiling conditions for achieving enhanced OOD detection. Lastly, we present empirical results on both simulated and real datasets, validating theoretical guarantees and reinforcing our insights. Code is publicly available at https://github.com/deeplearning-wisc/id_label.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑