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

ViM:虚拟logit匹配的分发外

ViM: Out-Of-Distribution with Virtual-logit Matching

SenseTime Research(商汤科技研究院);Qing Yuan Research Institute, Shanghai Jiao Tong University(上海交通大学清源研究院)

Haoqi Wang, Zhizhong Li, Litong Feng, Wayne Zhang

摘要:

大多数现有的OOD检测算法依赖于单个输入源:特征、logit或softmax概率。然而,OOD实例的巨大多样性使得这种方法很脆弱。存在OOD样本,其在特征空间中容易识别,而在logit空间中难以区分,反之亦然。出于这一观察,我们提出了一种新的OOD评分方法命名为虚拟logit匹配(ViM),它结合了来自特征空间的类不可知分数和分布(ID)类相关的logits。具体地,表示虚拟OOD类的附加logit从针对主空间的特征的残差生成,然后通过恒定缩放与原始logit匹配。在softmax之后的这个虚拟logit的概率是OOD性的指标。为了便于评估学术界的大规模OOD检测,我们为ImageNet-1 K创建了一个新的OOD数据集,该数据集是人工注释的,是现有数据集的8.8倍。我们进行了广泛的实验,包括CNN和视觉Transformer,以证明所提出的ViM评分的有效性。特别是,使用BiT-S模型,我们的方法在四个困难的OOD基准上获得了平均AUROC 90.91%,比最佳基线提前了4%。代码和数据集可在https://github.com/haoqiwang/vim上获得。

英文摘要:

Most of the existing Out-Of-Distribution (OOD) detection algorithms depend on single input source: the feature, the logit, or the softmax probability. However, the immense diversity of the OOD examples makes such methods fragile. There are OOD samples that are easy to identify in the feature space while hard to distinguish in the logit space and vice versa. Motivated by this observation, we propose a novel OOD scoring method named Virtual-logit Matching (ViM), which combines the class-agnostic score from feature space and the In-Distribution (ID) class-dependent logits. Specifically, an additional logit representing the virtual OOD class is generated from the residual of the feature against the principal space, and then matched with the original logits by a constant scaling. The probability of this virtual logit after softmax is the indicator of OOD-ness. To facilitate the evaluation of large-scale OOD detection in academia, we create a new OOD dataset for ImageNet-1K, which is human-annotated and is 8.8x the size of existing datasets. We conducted extensive experiments, including CNNs and vision transformers, to demonstrate the effectiveness of the proposed ViM score. In particular, using the BiT-S model, our method gets an average AUROC 90.91% on four difficult OOD benchmarks, which is 4% ahead of the best baseline. Code and dataset are available at https://github.com/haoqiwang/vim.

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

↑