arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.03183cs.LGcs.CV
收藏

了解分布外检测对比学习的特性和局限性

Understanding the properties and limitations of contrastive learning for Out-of-Distribution detection

University of Bristol(布里斯托大学)

Nawid Keshtmand, Raul Santos-Rodriguez, Jonathan Lawry

摘要:

最近流行的一种用于分布外(OOD)检测的方法是基于被称为对比学习的自监督学习技术。对比学习有两个主要的变体,即实例和类区分,前者可以区分不同实例的目标特征,后者可以区分不同的类。在本文中,我们的目的是了解现有的对比学习方法的有效性和局限性,面向对象的检测。我们从三个方面着手。首先,我们系统地研究了在不同的OOD检测设置下,实例判别和监督对比学习变体之间的性能差异。第二,我们研究的分布(ID)类OOD数据往往被分类。最后,我们研究了不同的对比学习方法的光谱衰减特性,并研究了它与OOD检测性能的关系。在ID和OOD数据集彼此足够不同的情况下,我们看到在没有微调的情况下,实例歧视与OOD检测中的监督方法具有竞争力。我们看到,OOD样本倾向于被分类到具有与整个数据集的分布类似的分布的类中。此外,我们表明,对比学习学习的特征空间,包含奇异向量,包含几个方向具有高方差,这可能是有害的或有益的OOD检测取决于所使用的推理方法。

英文摘要:

A recent popular approach to out-of-distribution (OOD) detection is based on a self-supervised learning technique referred to as contrastive learning. There are two main variants of contrastive learning, namely instance and class discrimination, targeting features that can discriminate between different instances for the former, and different classes for the latter. In this paper, we aim to understand the effectiveness and limitation of existing contrastive learning methods for OOD detection. We approach this in 3 ways. First, we systematically study the performance difference between the instance discrimination and supervised contrastive learning variants in different OOD detection settings. Second, we study which in-distribution (ID) classes OOD data tend to be classified into. Finally, we study the spectral decay property of the different contrastive learning approaches and examine how it correlates with OOD detection performance. In scenarios where the ID and OOD datasets are sufficiently different from one another, we see that instance discrimination, in the absence of fine-tuning, is competitive with supervised approaches in OOD detection. We see that OOD samples tend to be classified into classes that have a distribution similar to the distribution of the entire dataset. Furthermore, we show that contrastive learning learns a feature space that contains singular vectors containing several directions with a high variance which can be detrimental or beneficial to OOD detection depending on the inference approach used.

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

↑