arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.11536cs.LGeess.IV
收藏

基于快速决策边界的分布外检测器

Fast Decision Boundary based Out-of-Distribution Detector

MIT(麻省理工学院);UC Santa Barbara(加州大学圣巴巴拉分校)

Litian Liu, Yao Qin

AI总结:

本文提出一种无需辅助模型且计算高效的分布外检测器,通过闭式估计样本到决策边界的特征距离并结合特征偏差正则化,在匹配或超越现有方法有效性的同时显著降低了推理开销。

摘要:

高效且有效的分布外(OOD)检测对于AI系统的安全部署至关重要。现有的特征空间方法虽然有效,但由于依赖基于训练特征构建的辅助模型,通常会带来显著的计算开销。本文提出一种无需辅助模型且计算高效的OOD检测器,同时仍利用特征空间中蕴含的丰富信息。具体而言,我们根据OOD样本到决策边界的特征距离来检测它们。为最小化计算成本,我们引入了一种高效的闭式估计,并经解析证明其能紧密下界该距离。基于该估计,我们发现分布内(ID)特征往往比OOD特征距离决策边界更远。此外,当在距训练特征均值相同偏差水平下进行比较时,ID和OOD样本能被更好地分离。通过基于特征与均值的偏差来正则化到决策边界的距离,我们开发了一种无需超参数、无辅助模型的OOD检测器。在大量实验中,我们的方法匹配或超越了最先进方法的有效性,同时在推理延迟上带来可忽略的开销。总体而言,我们的方法显著改善了OOD检测的效率与有效性权衡。代码见:https://github.com/litianliu/fDBD-OOD。

英文摘要:

Efficient and effective Out-of-Distribution (OOD) detection is essential for the safe deployment of AI systems. Existing feature space methods, while effective, often incur significant computational overhead due to their reliance on auxiliary models built from training features. In this paper, we propose a computationally-efficient OOD detector without using auxiliary models while still leveraging the rich information embedded in the feature space. Specifically, we detect OOD samples based on their feature distances to decision boundaries. To minimize computational cost, we introduce an efficient closed-form estimation, analytically proven to tightly lower bound the distance. Based on our estimation, we discover that In-Distribution (ID) features tend to be further from decision boundaries than OOD features. Additionally, ID and OOD samples are better separated when compared at equal deviation levels from the mean of training features. By regularizing the distances to decision boundaries based on feature deviation from the mean, we develop a hyperparameter-free, auxiliary model-free OOD detector. Our method matches or surpasses the effectiveness of state-of-the-art methods in extensive experiments while incurring negligible overhead in inference latency. Overall, our approach significantly improves the efficiency-effectiveness trade-off in OOD detection. Code is available at: https://github.com/litianliu/fDBD-OOD.

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

↑