Neural networks are known to produce over-confident predictions on input images, even when these images are out-of-distribution (OOD) samples. This limits the applications of neural network models in real-world scenarios, where OOD samples exist. Many existing approaches identify the OOD instances via exploiting various cues, such as finding irregular patterns in the feature space, logits space, gradient space or the raw space of images. In contrast, this paper proposes a simple Test-time Linear Training (ETLT) method for OOD detection. Empirically, we find that the probabilities of input images being out-of-distribution are surprisingly linearly correlated to the features extracted by neural networks. To be specific, many state-of-the-art OOD algorithms, although designed to measure reliability in different ways, actually lead to OOD scores mostly linearly related to their image features. Thus, by simply learning a linear regression model trained from the paired image features and inferred OOD scores at test-time, we can make a more precise OOD prediction for the test instances. We further propose an online variant of the proposed method, which achieves promising performance and is more practical in real-world applications. Remarkably, we improve FPR95 from $51.37\%$ to $12.30\%$ on CIFAR-10 datasets with maximum softmax probability as the base OOD detector. Extensive experiments on several benchmark datasets show the efficacy of ETLT for OOD detection task.
OODD: Test-time Out-of-Distribution Detection with Dynamic Dictionary
Shanghai Jiao Tong University(上海交通大学);Tianjin University(天津大学);The Chinese University of Hong Kong(香港中文大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
SimpleNet: A Simple Network for Image Anomaly Detection and Localization
University of Science Technology of China(中国科学技术大学);Meka Technology Co Ltd(美卡科技有限公司)
我们提出了一个简单的和应用程序友好的网络(称为SimpleNet)检测和定位异常。SimpleNet由四个组件组成:(1)一个预训练的特征提取器,用于生成局部特征;(2)一个浅层特征适配器,用于将局部特征转移到目标域;(3)一个简单的异常特征生成器,通过向正常特征添加高斯噪声来伪造异常特征;以及(4)一个二进制异常鉴别器,用于区分异常特征和正常特征。在推理过程中,异常特征生成器将被丢弃。我们的方法基于三个直觉。首先,将预先训练的特征转换为面向目标的特征有助于避免领域偏见。其次,在特征空间中生成合成异常更有效,因为缺陷在图像空间中可能没有太多的共性。第三,一个简单的系统是非常有效和实用的。尽管简单,SimpleNet在定量和定性上优于以前的方法。在MVTec AD基准测试中,SimpleNet实现了99.6%的异常检测AUROC,与下一个表现最好的模型相比,误差减少了55.5%。此外,SimpleNet比现有方法更快,在3080 ti GPU上具有77 FPS的高帧速率。此外,SimpleNet在单类新奇检测任务的性能上有了显着的改进。代码:https://github.com/DonaldRR/SimpleNet.
Test-Time Backdoor Detection for Object Detection Models
Huazhong University of Science and Technology(华中科技大学);Harbin Institute of Technology(哈尔滨工业大学);University of Technology Sydney(悉尼科技大学);Griffith University(格里菲斯大学)
TinaFace: Strong but Simple Baseline for Face Detection
Media Intelligence Technology Co.,Ltd(媒体智能科技有限公司)
人脸检测技术近年来受到了广泛的关注。许多研究从模型结构、数据增强、标签分配等不同角度提出了许多特殊的人脸检测方法,这使得整个算法和系统变得越来越复杂。本文指出,\textbf{there is no gap between face detection and generic object detection} .然后,我们提供了一个强大的,但简单的基线方法来处理人脸检测名为TinaFace。我们使用ResNet-50 \cite{he2016deep}作为骨干,TinaFace中的所有模块和技术都是在现有模块上构建的,易于实现,并且基于通用目标检测。在最受欢迎和最具挑战性的人脸检测基准WIDER FACE \cite{yang2016wider}的硬测试集上,在单模型和单尺度下,我们的TinaFace达到了92.1\%的平均精度(AP),这超过了最近大多数具有较大骨干的人脸检测器。在使用测试时间增强(TTA)后,我们的TinaFace优于当前最先进的方法,达到92.4\%AP。代码将在\url{https://github.com/Media-Smart/vedadet}上提供。
Object Detection Made Simpler by Eliminating Heuristic NMS
Alibaba Group(阿里巴巴集团);Monash University(莫纳什大学);The University of Adelaide(阿德莱德大学)
我们展示了一个简单的无NMS、端到端目标检测框架,其中的网络是对FCOS检测模型等一级对象检测器的最小修改[Tian et al. 2019]。与原单级检测器相比,我们获得了相同甚至更高的检测精度。它以几乎相同的推理速度执行检测,同时更简单,因为现在在推理过程中消除了后处理NMS(非最大抑制)。如果网络只能为图像中的每个地面实况对象实例识别一个正样本进行预测,那么NMS将变得不必要。这是通过连接一个紧凑的PSS头来实现的,用于为每个实例自动选择单个阳性样品(见图1)。由于学习目标同时涉及一对多和一对一的标签分配,一些训练样本的标签存在冲突,使得学习具有挑战性。我们表明,通过采用停止梯度操作,我们可以成功地解决这个问题,并训练检测器。在COCO数据集上,与具有NMS后处理的FCOS基线检测器和最近的端到端无NMS检测器相比,我们的简单设计实现了卓越的性能。我们广泛的消融研究证明了设计选择的合理性。