通过量化测试样本的难度来了解分布外精度
Understanding out-of-distribution accuracies through quantifying difficulty of test samples
摘要:
现有的研究表明,虽然现代神经网络在分布内(ID)数据集上具有显著的泛化性能,但在分布外(OOD)数据集\cite{recht2018cifar, recht2019imagenet}上的泛化精度却显著下降。为了理解为什么各种模型在OOD数据集中总是犯更多的错误,我们提出了一个新的度量标准来量化测试图像(ID或OOD)的难度,这取决于训练数据集和模型的相互作用。特别是,我们引入了\textit{confusion score}作为图像难度的无标签测量,其基于由训练模型的集合估计的类条件概率来量化给定测试图像上的不一致量。使用混淆评分,我们调查CIFAR-10和它的OOD衍生物。接下来,通过划分测试和OOD数据集,通过他们的混淆分数,我们预测ID和OOD精度之间的关系,为各种架构。这允许我们仅使用ID测试标签来获得给定模型的OOD精度的估计。我们的观察表明,准确性下降的最大贡献来自具有高混淆分数的图像。在进一步检查后,我们报告了按混淆分数分组的错误分类图像的性质:具有高混淆分数的\textit{(i)}图像包含在训练数据中出现在多个类别中的\textit{weak spurious correlations},并且缺乏明确的\textit{class-specific features},而具有低混淆分数的\textit{(ii)}图像表现出属于另一类的虚假相关性,即\textit{class-specific spurious correlations}。
英文摘要:
Existing works show that although modern neural networks achieve remarkable generalization performance on the in-distribution (ID) dataset, the accuracy drops significantly on the out-of-distribution (OOD) datasets \cite{recht2018cifar, recht2019imagenet}. To understand why a variety of models consistently make more mistakes in the OOD datasets, we propose a new metric to quantify the difficulty of the test images (either ID or OOD) that depends on the interaction of the training dataset and the model. In particular, we introduce \textit{confusion score} as a label-free measure of image difficulty which quantifies the amount of disagreement on a given test image based on the class conditional probabilities estimated by an ensemble of trained models. Using the confusion score, we investigate CIFAR-10 and its OOD derivatives. Next, by partitioning test and OOD datasets via their confusion scores, we predict the relationship between ID and OOD accuracies for various architectures. This allows us to obtain an estimator of the OOD accuracy of a given model only using ID test labels. Our observations indicate that the biggest contribution to the accuracy drop comes from images with high confusion scores. Upon further inspection, we report on the nature of the misclassified images grouped by their confusion scores: \textit{(i)} images with high confusion scores contain \textit{weak spurious correlations} that appear in multiple classes in the training data and lack clear \textit{class-specific features}, and \textit{(ii)} images with low confusion scores exhibit spurious correlations that belong to another class, namely \textit{class-specific spurious correlations}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。