On the Importance of Attention and Augmentations for Hypothesis Transfer in Domain Adaptation and Generalization
Open Access
Abstract
Unsupervised domain adaptation (UDA) aims to mitigate the performance drop due to the distribution shift between the training and testing datasets. UDA methods have achieved performance gains for models trained on a source domain with labeled data to a target domain with only unlabeled data. The standard feature extraction method in domain adaptation has been convolutional neural networks (CNNs). Recently, attention-based transformer models have emerged as effective alternatives for computer vision tasks. In this paper, we benchmark three attention-based architectures, specifically vision transformer (ViT), shifted window transformer (SWIN), and dual attention vision transformer (DAViT), against convolutional architectures ResNet, HRNet and attention-based ConvNext, to assess the performance of different backbones for domain generalization and adaptation. We incorporate these backbone architectures as feature extractors in the source hypothesis transfer (SHOT) framework for UDA. SHOT leverages the knowledge learned in the source domain to align the image features of unlabeled target data in the absence of source domain data, using self-supervised deep feature clustering and self-training. We analyze the generalization and adaptation performance of these models on standard UDA datasets and aerial UDA datasets. In addition, we modernize the training procedure commonly seen in UDA tasks by adding image augmentation techniques to help models generate richer features. Our results show that ConvNext and SWIN offer the best performance, indicating that the attention mechanism is very beneficial for domain generalization and adaptation with both transformer and convolutional architectures. Our ablation study shows that our modernized training recipe, within the SHOT framework, significantly boosts performance on aerial datasets.Keywords
Funding Information
- Empire State Development’s Division of Science, Technology and Innovation (FA9550-20-1-0039, FA9550-22-P-0009)
- Air Force Office of Scientific Research (FA9550-20-1-0039, FA9550-22-P-0009)
This publication has 30 references indexed in Scilit:
- DeepJDOT: Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptation2018
- DOTA: A Large-Scale Dataset for Object Detection in Aerial Images2018
- Maximum Classifier Discrepancy for Unsupervised Domain Adaptation2018
- Domain-Adversarial Training of Neural Networks2017
- Aggregated Residual Transformations for Deep Neural Networks2017
- Deep Hashing Network for Unsupervised Domain Adaptation2017
- AID: A Benchmark Data Set for Performance Evaluation of Aerial Scene ClassificationIEEE Transactions on Geoscience and Remote Sensing, 2017
- Bag-of-visual-words and spatial extensions for land-use classification2010
- Adapting Visual Category Models to New Domains2010
- A Survey on Transfer LearningIEEE Transactions on Knowledge and Data Engineering, 2009