[Paper Review] Domain Adaptation via Bidirectional Cross-Attention Transformer
This paper proposes a Bidirectional Cross-Attention Transformer (BCAT) for domain adaptation, leveraging a weight-sharing quadruple-branch transformer with bidirectional cross-attention to learn domain-invariant features by implicitly mixing source and target representations. BCAT achieves state-of-the-art performance on four benchmark datasets by effectively reducing domain discrepancy through joint self- and cross-attention mechanisms and MMD regularization.
Domain Adaptation (DA) aims to leverage the knowledge learned from a source domain with ample labeled data to a target domain with unlabeled data only. Most existing studies on DA contribute to learning domain-invariant feature representations for both domains by minimizing the domain gap based on convolution-based neural networks. Recently, vision transformers significantly improved performance in multiple vision tasks. Built on vision transformers, in this paper we propose a Bidirectional Cross-Attention Transformer (BCAT) for DA with the aim to improve the performance. In the proposed BCAT, the attention mechanism can extract implicit source and target mixup feature representations to narrow the domain discrepancy. Specifically, in BCAT, we design a weight-sharing quadruple-branch transformer with a bidirectional cross-attention mechanism to learn domain-invariant feature representations. Extensive experiments demonstrate that the proposed BCAT model achieves superior performance on four benchmark datasets over existing state-of-the-art DA methods that are based on convolutions or transformers.
Motivation & Objective
- To address the limitation of unidirectional attention in existing transformer-based domain adaptation models by enabling bidirectional feature interaction between source and target domains.
- To improve domain-invariant representation learning by combining self-attention and cross-attention in a shared architecture for better feature alignment.
- To reduce domain discrepancy without relying on strict pseudo-labeling constraints, enabling broader applicability in real-world domain adaptation scenarios.
- To achieve superior performance over both convolutional and transformer-based SOTA methods on standard benchmark datasets.
Proposed method
- Proposes a quadruple transformer block that integrates self-attention for each domain and bidirectional cross-attention between domains to generate augmented feature representations.
- Employs a weight-sharing architecture across all four branches (source self, target self, source-to-target, target-to-source) to ensure parameter efficiency and domain symmetry.
- Uses Maximum Mean Discrepancy (MMD) loss to minimize domain shift between the source and target feature representations.
- Introduces two efficient inference models—Knowledge Distillation (BCAT-KD) and Dynamic Token Fusion (BCAT-DTF)—to reduce memory and inference time while maintaining performance.
- Applies the model end-to-end in a self-supervised manner, avoiding the need for class-matched mini-batches during training.
- Leverages vision transformer backbones (ViT and Swin) as the feature extractor, enabling long-range context modeling and improved feature discrimination.
Experimental results
Research questions
- RQ1Can bidirectional cross-attention between source and target domains improve domain-invariant representation learning compared to unidirectional attention?
- RQ2How does the proposed quadruple transformer block with shared weights enhance feature alignment and transferability in domain adaptation?
- RQ3Does the integration of self-attention and bidirectional cross-attention lead to better performance than self-attention alone or unidirectional cross-attention?
- RQ4Can the proposed BCAT model outperform existing SOTA methods based on ResNets and vision transformers on standard domain adaptation benchmarks?
- RQ5How effective are the proposed inference-time optimizations (BCAT-KD and BCAT-DTF) in reducing memory and inference time without sacrificing accuracy?
Key findings
- BCAT achieves state-of-the-art performance on four benchmark datasets: Office-Home, VisDA-2017, and DomainNet, with an average accuracy of 86.5% on DomainNet and 85.5% on Office-Home.
- The proposed bidirectional cross-attention mechanism outperforms unidirectional cross-attention and self-attention-only baselines, demonstrating the effectiveness of implicit feature mixup.
- BCAT-KD and BCAT-DTF inference models reduce GPU memory usage by up to 50% and increase inference speed by over 3x compared to the full BCAT model, while maintaining comparable accuracy.
- The MMD loss and pseudo-labeling strategy jointly improve performance, with MMD showing consistent gains across all datasets and models.
- Visualization of attention maps confirms that BCAT focuses more accurately on relevant object regions and suppresses background noise compared to the source-only baseline.
- The ablation study shows that combining bidirectional cross-attention with self-attention yields the highest performance, validating the synergy between intra- and inter-domain attention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.