[Paper Review] Visual Prompt Tuning for Test-time Domain Adaptation
This paper introduces Data-efficient Prompt Tuning (DePT) for test-time domain adaptation, freezing the ViT backbone and fine-tuning visual prompts plus a classifier, aided by memory-bank pseudo-labeling and hierarchical self-supervised regularization to achieve state-of-the-art results with very few tunable parameters.
Models should be able to adapt to unseen data during test-time to avoid performance drops caused by inevitable distribution shifts in real-world deployment scenarios. In this work, we tackle the practical yet challenging test-time adaptation (TTA) problem, where a model adapts to the target domain without accessing the source data. We propose a simple recipe called extit{Data-efficient Prompt Tuning} (DePT) with two key ingredients. First, DePT plugs visual prompts into the vision Transformer and only tunes these source-initialized prompts during adaptation. We find such parameter-efficient finetuning can efficiently adapt the model representation to the target domain without overfitting to the noise in the learning objective. Second, DePT bootstraps the source representation to the target domain by memory bank-based online pseudo-labeling. A hierarchical self-supervised regularization specially designed for prompts is jointly optimized to alleviate error accumulation during self-training. With much fewer tunable parameters, DePT demonstrates not only state-of-the-art performance on major adaptation benchmarks VisDA-C, ImageNet-C, and DomainNet-126, but also superior data efficiency, i.e., adaptation with only 1\% or 10\% data without much performance degradation compared to 100\% data. In addition, DePT is also versatile to be extended to online or multi-source TTA settings.
Motivation & Objective
- Address how to adapt a source-trained model to unseen target domains without source data during test time.
- Develop a parameter-efficient tuning strategy by introducing visual prompts into a Vision Transformer and only updating prompts and the classifier.
- Propose a learning objective combining memory-bank pseudo-labeling with hierarchical self-supervised regularization for prompts.
- Show that prompt-tuning enables strong performance with limited target data and across online and multi-source TTA settings.
Proposed method
- Insert learnable visual prompts at multiple Transformer stages of a ViT, and only finetune prompts and the classification head while freezing the backbone.
- Use online memory-bank refinement with a teacher-student EMA setup to generate pseudo labels for target data.
- Employ a hierarchical self-supervised regularization on CLS tokens and aggregated prompts inspired by DINO to improve target representations and reduce self-training error accumulation.
- Combine pseudo-label loss with hierarchical self-supervised losses and a diversity term to encourage prompts to attend to diverse features.
- Provide ground-truth source-to-target adaptation by initializing target model from source weights and optimizing prompts for target domain.
Experimental results
Research questions
- RQ1Can visual prompt tuning on a frozen ViT provide effective test-time adaptation without access to source data?
- RQ2How can memory-bank based pseudo-labeling and hierarchical self-supervised regularization improve prompt-based TTA?
- RQ3What is the data efficiency and parameter efficiency of DePT across offline, online, and multi-source TTA settings?
- RQ4How does DePT perform on major benchmarks (VisDA-C, ImageNet-C, DomainNet-126) compared to existing TTA methods?
Key findings
- DePT with very few tunable parameters surpasses state-of-the-art AdaContrast on VisDA-C with 0.19% tunable parameters.
- DePT achieves strong data efficiency, e.g., 88.0% accuracy with only 1% unlabeled target data on VisDA-C, outperforming prior methods.
- In online TTA, DePT attains 85.9% average accuracy on VisDA-C, beating baselines by 4.6 percentage points.
- DePT consistently reduces top-1 error across ImageNet-C level-5 corruptions and shows robust performance in DomainNet-126 with ViT-B backbone.
- Ablations show the contribution of pseudo-labeling, memory bank, CLS/prompts self-supervision, and prompt diversity to final gains.
- DePT enables flexible extension to multi-source TTA and maintains competitive performance with substantially fewer tunable parameters.
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.