SELFOOD:基于排序学习的自监督分布外检测
SELFOOD: Self-Supervised Out-Of-Distribution Detection via Learning to Rank
AI总结:
本文提出SELFOOD,一种仅需分布内样本的自监督OOD检测方法,通过将OOD检测转化为文档间标签内排序问题并使用成对排序损失训练分类器,有效解决了标注瓶颈并提升了检测性能。
摘要:
使用交叉熵损失(CE loss)训练的深度神经分类器通常存在校准不良的问题,这促使了分布外(OOD)检测任务的需求。传统的有监督OOD检测方法需要对分布内和OOD样本进行昂贵的人工标注。为了解决标注瓶颈,我们提出了SELFOOD,一种仅需分布内样本作为监督的自监督OOD检测方法。我们将OOD检测转化为文档间标签内(IDIL)排序问题,并使用我们的成对排序损失(称为IDIL loss)训练分类器。具体而言,给定一组分布内文档及其标签,对于每个标签,我们训练分类器将属于该标签的文档的softmax分数排序得高于属于其他标签的文档分数。与CE loss不同,当达到所需的置信度排序时,我们的IDIL loss函数达到零,并且梯度会反向传播以降低与错误标签相关的概率,而不是持续增加正确标签的概率。在多个分类数据集上使用几种分类器进行的大量实验证明了我们的方法在粗粒度和细粒度设置下的有效性。
英文摘要:
Deep neural classifiers trained with cross-entropy loss (CE loss) often suffer from poor calibration, necessitating the task of out-of-distribution (OOD) detection. Traditional supervised OOD detection methods require expensive manual annotation of in-distribution and OOD samples. To address the annotation bottleneck, we introduce SELFOOD, a self-supervised OOD detection method that requires only in-distribution samples as supervision. We cast OOD detection as an inter-document intra-label (IDIL) ranking problem and train the classifier with our pairwise ranking loss, referred to as IDIL loss. Specifically, given a set of in-distribution documents and their labels, for each label, we train the classifier to rank the softmax scores of documents belonging to that label to be higher than the scores of documents that belong to other labels. Unlike CE loss, our IDIL loss function reaches zero when the desired confidence ranking is achieved and gradients are backpropagated to decrease probabilities associated with incorrect labels rather than continuously increasing the probability of the correct label. Extensive experiments with several classifiers on multiple classification datasets demonstrate the effectiveness of our method in both coarse- and fine-grained settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。