arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.13951cs.CVcs.AIcs.LG
收藏

基于测试时类条件特征对齐的无需重新训练的视觉Transformer鲁棒化

Robustifying Vision Transformer without Retraining from Scratch by Test-Time Class-Conditional Feature Alignment

The University of Tokyo(东京大学)

Takeshi Kojima, Yutaka Matsuo, Yusuke Iwasawa

摘要:

视觉Transformer(ViT)在图像处理中变得越来越流行。具体来说,我们调查的有效性,测试时自适应(TTA)的ViT,一种技术,已经出现,以纠正其预测在测试时间本身。首先,我们在ViT-B16和ViT-L16上对各种测试时自适应方法进行基准测试。结果表明,TTA是有效的ViT和先验约定(明智地选择调制参数)是不必要的,当使用适当的损失函数。在此基础上,提出了一种新的测试时自适应方法--类条件特征对齐(CFA)方法,该方法以在线方式同时最小化源和目标之间隐藏表征的类条件分布差异和整体分布差异。在常见损坏(CIFAR-10-C,CIFAR-100-C和ImageNet-C)和领域自适应(数字数据集和ImageNet-Sketch)上的图像分类任务的实验表明,CFA在各种数据集上稳定地优于现有基线。我们还通过在ResNet、MLP-Mixer和几个ViT变体(ViT-AugReg、DeiT和BeiT)上进行实验,验证了CFA是模型不可知的。使用BeiT主干,CFA在ImageNet-C上实现了19.8%的top-1出错率,优于现有的测试时自适应基线44.0%。这是TTA方法中最先进的结果,不需要改变训练阶段。

英文摘要:

Vision Transformer (ViT) is becoming more popular in image processing. Specifically, we investigate the effectiveness of test-time adaptation (TTA) on ViT, a technique that has emerged to correct its prediction during test-time by itself. First, we benchmark various test-time adaptation approaches on ViT-B16 and ViT-L16. It is shown that the TTA is effective on ViT and the prior-convention (sensibly selecting modulation parameters) is not necessary when using proper loss function. Based on the observation, we propose a new test-time adaptation method called class-conditional feature alignment (CFA), which minimizes both the class-conditional distribution differences and the whole distribution differences of the hidden representation between the source and target in an online manner. Experiments of image classification tasks on common corruption (CIFAR-10-C, CIFAR-100-C, and ImageNet-C) and domain adaptation (digits datasets and ImageNet-Sketch) show that CFA stably outperforms the existing baselines on various datasets. We also verify that CFA is model agnostic by experimenting on ResNet, MLP-Mixer, and several ViT variants (ViT-AugReg, DeiT, and BeiT). Using BeiT backbone, CFA achieves 19.8% top-1 error rate on ImageNet-C, outperforming the existing test-time adaptation baseline 44.0%. This is a state-of-the-art result among TTA methods that do not need to alter training phase.

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

↑