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

用于在线测试时适应中域偏移校正的双路径对抗提升

Dual-Path Adversarial Lifting for Domain Shift Correction in Online Test-time Adaptation

Southern University of Science and Technology(南方科技大学);National University of Singapore(新加坡国立大学);Pengcheng Laboratory(鹏城实验室)

Yushun Tang, Shuoshuo Chen, Zhihe Lu, Xinchao Wang, Zhihai He

AI总结:

本文提出双路径token提升方法,通过在Transformer各层引入域偏移token并以对抗方式交替进行预测与更新,有效校正测试时适应中的域偏移,显著提升了在线完全测试时域适应性能。

摘要:

基于Transformer的方法在各种机器学习任务中取得了显著成功。如何为Transformer模型设计高效的测试时适应方法成为了一项重要的研究任务。在本研究中,受多尺度信号处理中开发的双子带小波提升方案的启发,该方案能够将输入信号高效地分离为主成分和噪声成分,我们引入了一种双路径token提升方法,用于测试时适应中的域偏移校正。具体而言,我们在Transformer网络的每一层引入一个额外的token,称为域偏移token。然后,我们在所有网络层的域偏移token路径和类token路径之间,执行具有交错token预测和更新的双路径提升。预测和更新网络以对抗方式学习。具体而言,预测网络的任务是学习域偏移的残差噪声,该噪声在目标域的所有类别和所有样本中应基本保持不变。换言之,预测的域偏移噪声在所有样本类别之间应无法区分。另一方面,更新网络的任务是通过从输入图像样本中去除域偏移来更新类token,使得输入样本在特征空间中不同类别之间变得更具判别性。为了在理论和实践上有效学习具有两个对抗任务的预测和更新网络,我们证明对更新网络使用平滑优化,而对预测网络使用非平滑优化是必要的。在基准数据集上的实验结果表明,我们提出的方法显著提升了在线完全测试时域适应的性能。代码可在https://github.com/yushuntang/DPAL获取。

英文摘要:

Transformer-based methods have achieved remarkable success in various machine learning tasks. How to design efficient test-time adaptation methods for transformer models becomes an important research task. In this work, motivated by the dual-subband wavelet lifting scheme developed in multi-scale signal processing which is able to efficiently separate the input signals into principal components and noise components, we introduce a dual-path token lifting for domain shift correction in test time adaptation. Specifically, we introduce an extra token, referred to as \textit{domain shift token}, at each layer of the transformer network. We then perform dual-path lifting with interleaved token prediction and update between the path of domain shift tokens and the path of class tokens at all network layers. The prediction and update networks are learned in an adversarial manner. Specifically, the task of the prediction network is to learn the residual noise of domain shift which should be largely invariant across all classes and all samples in the target domain. In other words, the predicted domain shift noise should be indistinguishable between all sample classes. On the other hand, the task of the update network is to update the class tokens by removing the domain shift from the input image samples so that input samples become more discriminative between different classes in the feature space. To effectively learn the prediction and update networks with two adversarial tasks, both theoretically and practically, we demonstrate that it is necessary to use smooth optimization for the update network but non-smooth optimization for the prediction network. Experimental results on the benchmark datasets demonstrate that our proposed method significantly improves the online fully test-time domain adaptation performance. Code is available at \url{https://github.com/yushuntang/DPAL}.

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

↑