HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Patch-Mix Transformer for Unsupervised Domain Adaptation: A Game Perspective

Jinjing Zhu Haotian Bai Lin Wang

Patch-Mix Transformer for Unsupervised Domain Adaptation: A Game Perspective

Abstract

Endeavors have been recently made to leverage the vision transformer (ViT) for the challenging unsupervised domain adaptation (UDA) task. They typically adopt the cross-attention in ViT for direct domain alignment. However, as the performance of cross-attention highly relies on the quality of pseudo labels for targeted samples, it becomes less effective when the domain gap becomes large. We solve this problem from a game theory's perspective with the proposed model dubbed as PMTrans, which bridges source and target domains with an intermediate domain. Specifically, we propose a novel ViT-based module called PatchMix that effectively builds up the intermediate domain, i.e., probability distribution, by learning to sample patches from both domains based on the game-theoretical models. This way, it learns to mix the patches from the source and target domains to maximize the cross entropy (CE), while exploiting two semi-supervised mixup losses in the feature and label spaces to minimize it. As such, we interpret the process of UDA as a min-max CE game with three players, including the feature extractor, classifier, and PatchMix, to find the Nash Equilibria. Moreover, we leverage attention maps from ViT to re-weight the label of each patch by its importance, making it possible to obtain more domain-discriminative feature representations. We conduct extensive experiments on four benchmark datasets, and the results show that PMTrans significantly surpasses the ViT-based and CNN-based SoTA methods by +3.6% on Office-Home, +1.4% on Office-31, and +17.7% on DomainNet, respectively.

Benchmarks

BenchmarkMethodologyMetrics
domain-adaptation-on-domainnet-1PMTrans
Accuracy: 52.4
domain-adaptation-on-office-31PMTrans
Average Accuracy: 95.3
domain-adaptation-on-office-homePMTrans
Accuracy: 89.0
domain-adaptation-on-visda2017PMtrans
Accuracy: 88.8
unsupervised-domain-adaptation-on-domainnet-1PMTrans
Accuracy: 52.4
unsupervised-domain-adaptation-on-office-31PMTrans
Accuracy: 95.3
unsupervised-domain-adaptation-on-office-homePMTrans
Accuracy: 89.0
unsupervised-domain-adaptation-on-visda2017PMTrans
Accuracy: 88.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Patch-Mix Transformer for Unsupervised Domain Adaptation: A Game Perspective | Papers | HyperAI