arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16525stat.MLcs.LG
收藏

利用潜在扩散增强分布外检测

Enhancing OOD Detection Using Latent Diffusion

Institute for Clarity in Documentation(清晰文档研究所);Inria Paris-Rocquencourt(巴黎-罗克Quantin研究院);Rajiv Gandhi University(拉贾·甘地大学);Tsinghua University(清华大学);Palmer Research Laboratories(帕勒尔研究实验室);Fudan University(复旦大学)

Heng Gao, Jun Li

AI总结:

提出异常感知学习(OAL)框架,在潜在空间利用稳定扩散合成OOD训练数据,结合互信息对比学习和知识蒸馏,提升OOD检测性能并降低计算成本。

摘要:

分布外(OOD)检测对于机器学习模型在现实场景中的可靠部署至关重要,它能够识别未知样本或物体。提升OOD检测性能的一个显著方法是利用辅助数据集进行训练。最近的研究探索了使用生成模型(如稳定扩散(SD))在像素空间中合成异常数据。然而,在像素空间中合成OOD数据可能因过度生成而导致鲁棒性降低。为解决这一挑战,我们提出了异常感知学习(OAL),一种新颖的框架,在潜在空间内生成合成的OOD训练数据,进一步研究如何利用稳定扩散开发基于潜在空间的异常合成方法。这一改进使得网络训练所需的异常样本更少,计算成本更低。此外,为了规范模型的决策边界,我们开发了一个基于互信息的对比学习模块(MICL),以放大分布内(ID)数据与收集的OOD数据之间的区别。同时,我们开发了一个知识蒸馏模块,以防止在使用OOD数据训练时ID分类准确率的下降。我们的方法在多个基准数据集上的优越性能证明了其效率和有效性。源代码可在 https://github.com/HengGao12/OAL 获取。

英文摘要:

Out-of-distribution (OOD) detection is crucial for the reliable deployment of machine learning models in real-world scenarios, enabling the identification of unknown samples or objects. A prominent approach to enhance OOD detection performance involves leveraging auxiliary datasets for training. Recent efforts have explored using generative models, such as Stable Diffusion (SD), to synthesize outlier data in the pixel space. However, synthesizing OOD data in the pixel space can lead to reduced robustness due to over-generation. To address this challenge, we propose Outlier-Aware Learning (OAL), a novel framework that generates synthetic OOD training data within the latent space, taking a further step to study how to utilize Stable Diffusion for developing a latent-based outlier synthesis approach. This improvement facilitates network training with fewer outliers and less computational cost. Besides, to regularize the model's decision boundary, we develop a mutual information-based contrastive learning module (MICL) that amplifies the distinction between In-Distribution (ID) and collected OOD data. Moreover, we develop a knowledge distillation module to prevent the degradation of ID classification accuracy when training with OOD data. The superior performance of our method on several benchmark datasets demonstrates its efficiency and effectiveness. Source code is available in https://github.com/HengGao12/OAL.

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

↑