使用大型语言模型生成的同类进行分布外检测
Out-of-Distribution Detection Using Peer-Class Generated by Large Language Model
AI总结:
本文提出ODPC方法,利用大型语言模型生成OOD同类作为辅助模态,并设计对比损失学习紧凑表示,在五个基准数据集上实现最先进的分布外检测性能。
摘要:
分布外(OOD)检测是确保部署在实际应用中的机器学习模型可靠性和安全性的关键任务。依赖单模态信息的传统OOD检测方法通常难以捕捉OOD实例的丰富多样性。OOD检测的主要困难在于,当输入图像与分布内(ID)数据集中的某个类别存在大量相似之处时(例如狼与狗),会导致模型将其误分类。然而,在语义域中可能很容易区分这些类别。为此,本文提出了一种名为ODPC的新方法,其中由大型语言模型设计特定提示,以生成ID语义的OOD同类作为辅助模态来促进检测。此外,设计了基于OOD同类的对比损失,以学习ID类别的紧凑表示,并提高不同类别间边界的清晰度。在五个基准数据集上的广泛实验表明,我们提出的方法能产生最先进的结果。
英文摘要:
Out-of-distribution (OOD) detection is a critical task to ensure the reliability and security of machine learning models deployed in real-world applications. Conventional methods for OOD detection that rely on single-modal information, often struggle to capture the rich variety of OOD instances. The primary difficulty in OOD detection arises when an input image has numerous similarities to a particular class in the in-distribution (ID) dataset, e.g., wolf to dog, causing the model to misclassify it. Nevertheless, it may be easy to distinguish these classes in the semantic domain. To this end, in this paper, a novel method called ODPC is proposed, in which specific prompts to generate OOD peer classes of ID semantics are designed by a large language model as an auxiliary modality to facilitate detection. Moreover, a contrastive loss based on OOD peer classes is devised to learn compact representations of ID classes and improve the clarity of boundaries between different classes. The extensive experiments on five benchmark datasets show that the method we propose can yield state-of-the-art results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。