[Paper Review] Adapting Self-Supervised Vision Transformers by Probing Attention-Conditioned Masking Consistency
This paper proposes PACMAC, a two-stage domain adaptation method for Vision Transformers pre-trained via self-supervised learning (SSL). It first performs in-domain SSL on source and target data, then identifies reliable target samples via predictive consistency across attention-conditioned masks—resulting in consistent accuracy gains over prior methods on OfficeHome, DomainNet, and VisDA benchmarks.
Visual domain adaptation (DA) seeks to transfer trained models to unseen, unlabeled domains across distribution shift, but approaches typically focus on adapting convolutional neural network architectures initialized with supervised ImageNet representations. In this work, we shift focus to adapting modern architectures for object recognition -- the increasingly popular Vision Transformer (ViT) -- and modern pretraining based on self-supervised learning (SSL). Inspired by the design of recent SSL approaches based on learning from partial image inputs generated via masking or cropping -- either by learning to predict the missing pixels, or learning representational invariances to such augmentations -- we propose PACMAC, a simple two-stage adaptation algorithm for self-supervised ViTs. PACMAC first performs in-domain SSL on pooled source and target data to learn task-discriminative features, and then probes the model's predictive consistency across a set of partial target inputs generated via a novel attention-conditioned masking strategy, to identify reliable candidates for self-training. Our simple approach leads to consistent performance gains over competing methods that use ViTs and self-supervised initializations on standard object recognition benchmarks. Code available at https://github.com/virajprabhu/PACMAC
Motivation & Objective
- To address the gap in adapting Vision Transformers (ViTs) initialized with self-supervised representations for unsupervised domain adaptation (UDA).
- To develop a reliable, self-supervised method for identifying high-quality target samples suitable for selective self-training in the absence of labels.
- To improve transfer performance on standard object recognition benchmarks by leveraging the inductive biases of SSL pretraining and ViT attention mechanisms.
- To demonstrate that predictive consistency across attention-conditioned masked inputs serves as an effective reliability signal for self-training in ViTs.
- To show that domain-adversarial methods fail on SSL-initialized ViTs, necessitating architecture-specific adaptation strategies.
Proposed method
- Performs in-domain self-supervised learning (SSL) on pooled source and target data to learn task-discriminative features before adaptation.
- Applies attention-conditioned masking to generate disjoint, highly attended regions of the target image for data augmentation.
- Measures predictive consistency of the model across the original image and multiple attention-conditioned masked versions to assess reliability.
- Combines consistency scores with prediction confidence to identify reliable target samples for selective self-training.
- Uses a two-stage pipeline: first in-domain pretraining, then selective self-training on high-confidence, consistent predictions.
- Leverages the ViT's self-attention mechanism to guide masking, ensuring masks focus on semantically salient regions rather than random patches.
Experimental results
Research questions
- RQ1Can predictive consistency across attention-conditioned masked inputs serve as a reliable signal for identifying high-quality target samples in self-supervised ViTs?
- RQ2Why do standard domain-adversarial UDA methods fail when applied to ViTs pre-trained with self-supervised learning?
- RQ3Does in-domain SSL pretraining on pooled source and target data improve feature discriminability and adaptation performance in ViTs?
- RQ4How does attention-conditioned masking compare to random masking in identifying reliable samples for self-training?
- RQ5Can a simple, modular adaptation strategy outperform complex domain adaptation methods on standard benchmarks when using self-supervised ViTs?
Key findings
- PACMAC achieves consistent performance gains over competing methods on OfficeHome, DomainNet, and VisDA benchmarks when adapting self-supervised ViTs.
- The proposed reliability estimation via attention-conditioned masking consistency achieves 70–80% precision across both MAE and DINO pretraining setups.
- In-domain pretraining improves per-class kNN accuracy on OfficeHome, particularly for MAE initialization, indicating better feature discriminability.
- Self-supervised ViTs exhibit low domain alignment scores (DA score), explaining the failure of domain-adversarial methods like CDAN on such models.
- The percentage of target instances selected for self-training increases over training epochs, especially with DINO pretraining.
- Failure cases in reliability estimation include false positives and false negatives, indicating category-dependent variability in performance.
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.