Domain-Conditioned Transformer for Fully Test-time Adaptation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tang, Yushun, Chen, Shuoshuo, Jia, Jiyuan, Zhang, Yi, He, Zhihai
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913544964931584
author Tang, Yushun
Chen, Shuoshuo
Jia, Jiyuan
Zhang, Yi
He, Zhihai
author_facet Tang, Yushun
Chen, Shuoshuo
Jia, Jiyuan
Zhang, Yi
He, Zhihai
contents Fully test-time adaptation aims to adapt a network model online based on sequential analysis of input samples during the inference stage. We observe that, when applying a transformer network model into a new domain, the self-attention profiles of image samples in the target domain deviate significantly from those in the source domain, which results in large performance degradation during domain changes. To address this important issue, we propose a new structure for the self-attention modules in the transformer. Specifically, we incorporate three domain-conditioning vectors, called domain conditioners, into the query, key, and value components of the self-attention module. We learn a network to generate these three domain conditioners from the class token at each transformer network layer. We find that, during fully online test-time adaptation, these domain conditioners at each transform network layer are able to gradually remove the impact of domain shift and largely recover the original self-attention profile. Our extensive experimental results demonstrate that the proposed domain-conditioned transformer significantly improves the online fully test-time domain adaptation performance and outperforms existing state-of-the-art methods by large margins.
format Preprint
id arxiv_https___arxiv_org_abs_2410_10442
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Domain-Conditioned Transformer for Fully Test-time Adaptation
Tang, Yushun
Chen, Shuoshuo
Jia, Jiyuan
Zhang, Yi
He, Zhihai
Computer Vision and Pattern Recognition
Fully test-time adaptation aims to adapt a network model online based on sequential analysis of input samples during the inference stage. We observe that, when applying a transformer network model into a new domain, the self-attention profiles of image samples in the target domain deviate significantly from those in the source domain, which results in large performance degradation during domain changes. To address this important issue, we propose a new structure for the self-attention modules in the transformer. Specifically, we incorporate three domain-conditioning vectors, called domain conditioners, into the query, key, and value components of the self-attention module. We learn a network to generate these three domain conditioners from the class token at each transformer network layer. We find that, during fully online test-time adaptation, these domain conditioners at each transform network layer are able to gradually remove the impact of domain shift and largely recover the original self-attention profile. Our extensive experimental results demonstrate that the proposed domain-conditioned transformer significantly improves the online fully test-time domain adaptation performance and outperforms existing state-of-the-art methods by large margins.
title Domain-Conditioned Transformer for Fully Test-time Adaptation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.10442