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

渐进式条件缩放-位移重校准的自注意力机制用于在线测试时适应

Progressive Conditioned Scale-Shift Recalibration of Self-Attention for Online Test-time Adaptation

Department of Electrical and Electronic Engineering, Southern University of Science and Technology(电子工程系,南方科技大学);Pengcheng Lab(鹏城实验室)

Yushun Tang, Ziqiong Liu, Jiyuan Jia, Yi Zhang, Zhihai He

AI总结:

本文提出渐进式条件缩放-位移重校准方法,通过在线适应提升自注意力机制在跨领域任务中的性能。

摘要:

在线测试时适应旨在根据推理阶段的连续输入样本动态调整网络模型。在本工作中,我们发现当将变压器网络模型应用于新目标领域时,其自注意力模块的查询、键和值特征往往从源领域发生显著变化,导致变压器模型性能大幅下降。为了解决这一重要问题,我们提出了一种新的方法,通过局部线性变换参数化于条件缩放和位移因子,在每一层逐步重新校准自注意力。我们将在线模型适应从源领域到目标领域视为一个渐进的领域移位分离过程。在每个变压器网络层中,我们学习一个领域分离网络来提取领域移位特征,该特征用于通过因子生成网络预测自注意力重校准的缩放和位移参数。这两个轻量级网络在推理过程中进行在线适应。在基准数据集上的实验结果表明,所提出的渐进式条件缩放-位移重校准(PCSR)方法能够通过高达3.9%的分类准确率提升,在ImageNet-C数据集上显著提高在线测试时领域适应性能。

英文摘要:

Online test-time adaptation aims to dynamically adjust a network model in real-time based on sequential input samples during the inference stage. In this work, we find that, when applying a transformer network model to a new target domain, the Query, Key, and Value features of its self-attention module often change significantly from those in the source domain, leading to substantial performance degradation of the transformer model. To address this important issue, we propose to develop a new approach to progressively recalibrate the self-attention at each layer using a local linear transform parameterized by conditioned scale and shift factors. We consider the online model adaptation from the source domain to the target domain as a progressive domain shift separation process. At each transformer network layer, we learn a Domain Separation Network to extract the domain shift feature, which is used to predict the scale and shift parameters for self-attention recalibration using a Factor Generator Network. These two lightweight networks are adapted online during inference. Experimental results on benchmark datasets demonstrate that the proposed progressive conditioned scale-shift recalibration (PCSR) method is able to significantly improve the online test-time domain adaptation performance by a large margin of up to 3.9\% in classification accuracy on the ImageNet-C dataset.

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

↑