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

MEMO:通过自适应和增强的测试时间鲁棒性

MEMO: Test Time Robustness via Adaptation and Augmentation

UC Berkeley(加州大学伯克利分校);Stanford University(斯坦福大学)

Marvin Zhang, Sergey Levine, Chelsea Finn

摘要:

虽然深度神经网络可以在分布内测试点上获得良好的准确性,但许多应用需要鲁棒性,即使面对输入中的意外扰动、域中的变化或分布偏移的其他来源。我们研究了测试时间鲁棒性问题,即,使用测试输入来提高模型鲁棒性。最近的先前工作已经提出了用于测试时自适应的方法,然而,它们各自引入了额外的假设,例如访问多个测试点,这阻止了广泛采用。在这项工作中,我们的目标是研究和设计方法,使模型训练过程中没有假设,并在测试时广泛适用。我们提出了一种简单的方法,可以在任何测试设置中使用的模型是概率和适应性:当提出一个测试的例子,执行不同的数据增强的数据点,然后通过最小化的熵模型的平均值,或边际,输出分布在增强(所有)的模型参数。直观地说,这个目标鼓励模型在不同的增强中做出相同的预测,从而加强这些增强中编码的不变性,同时也保持对其预测的信心。在我们的实验中,我们评估了两个基线ResNet模型,两个鲁棒的ResNet-50模型和一个鲁棒的视觉Transformer模型,我们证明了这种方法比标准模型评估的准确率提高了1 - 8%,并且通常优于先前的增强和自适应策略。对于只有一个测试点可用的设置,我们在ImageNet-C、ImageNet-R以及ResNet-50模型中的ImageNet-A分布偏移基准测试中获得了最先进的结果。

英文摘要:

While deep neural networks can attain good accuracy on in-distribution test points, many applications require robustness even in the face of unexpected perturbations in the input, changes in the domain, or other sources of distribution shift. We study the problem of test time robustification, i.e., using the test input to improve model robustness. Recent prior works have proposed methods for test time adaptation, however, they each introduce additional assumptions, such as access to multiple test points, that prevent widespread adoption. In this work, we aim to study and devise methods that make no assumptions about the model training process and are broadly applicable at test time. We propose a simple approach that can be used in any test setting where the model is probabilistic and adaptable: when presented with a test example, perform different data augmentations on the data point, and then adapt (all of) the model parameters by minimizing the entropy of the model's average, or marginal, output distribution across the augmentations. Intuitively, this objective encourages the model to make the same prediction across different augmentations, thus enforcing the invariances encoded in these augmentations, while also maintaining confidence in its predictions. In our experiments, we evaluate two baseline ResNet models, two robust ResNet-50 models, and a robust vision transformer model, and we demonstrate that this approach achieves accuracy gains of 1-8\% over standard model evaluation and also generally outperforms prior augmentation and adaptation strategies. For the setting in which only one test point is available, we achieve state-of-the-art results on the ImageNet-C, ImageNet-R, and, among ResNet-50 models, ImageNet-A distribution shift benchmarks.

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

↑