[Paper Review] Domain Adaptation with Adversarial Training on Penultimate Activations
This paper proposes adversarial training on penultimate activations—features feeding into the final classification layer—for unsupervised domain adaptation (UDA), demonstrating that this approach enhances model confidence on target data more effectively than adversarial training on input images or intermediate features. The method achieves state-of-the-art performance on standard and source-data-free UDA benchmarks, with ablation studies showing improved robustness and efficiency through activation normalization and top-k label-based perturbation approximation.
Enhancing model prediction confidence on target data is an important objective in Unsupervised Domain Adaptation (UDA). In this paper, we explore adversarial training on penultimate activations, i.e., input features of the final linear classification layer. We show that this strategy is more efficient and better correlated with the objective of boosting prediction confidence than adversarial training on input images or intermediate features, as used in previous works. Furthermore, with activation normalization commonly used in domain adaptation to reduce domain gap, we derive two variants and systematically analyze the effects of normalization on our adversarial training. This is illustrated both in theory and through empirical analysis on real adaptation tasks. Extensive experiments are conducted on popular UDA benchmarks under both standard setting and source-data free setting. The results validate that our method achieves the best scores against previous arts. Code is available at https://github.com/tsun/APA.
Motivation & Objective
- To improve model prediction confidence on unlabeled target domain data in unsupervised domain adaptation (UDA).
- To address the inefficiency and limited correlation of prior adversarial training methods on input images or intermediate features with the goal of confidence enhancement.
- To explore adversarial training on penultimate activations as a more direct and effective strategy for confidence boosting in UDA.
- To analyze the impact of activation normalization on adversarial training performance and derive two normalized variants of the method.
- To validate the method’s superiority in both standard and source-data-free UDA settings through extensive experiments.
Proposed method
- Adversarial training is applied directly to penultimate activations (i.e., features before the final linear classifier), rather than to input images or intermediate features.
- The method formulates an adversarial loss that maximizes the divergence between model predictions on original and perturbed penultimate activations, using cross-entropy-based divergence.
- Two variants are derived: APA (adversarial perturbation on unnormalized activations) and APA^n (adversarial perturbation on normalized activations), with normalization applied via ℓ₂ norm.
- Perturbations are optimized via projected gradient ascent on the penultimate features, with gradients computed only through the linear classifier, reducing computational cost.
- The method incorporates top-k pseudo-label-based approximation, where only the top-k most confident classes are used to compute the perturbation, improving efficiency and alignment with model confidence.
- Theoretical and empirical analysis shows that perturbations on penultimate features maintain adversarial loss while yielding higher accuracy, due to simpler optimization and better alignment with the confidence objective.
Experimental results
Research questions
- RQ1Is adversarial training on penultimate activations more effective than on input images or intermediate features for boosting prediction confidence in UDA?
- RQ2How does activation normalization affect the performance and gradient dynamics of adversarial training on penultimate features?
- RQ3Can top-k pseudo-label-based perturbation approximation achieve comparable performance to full adversarial training while reducing computational cost?
- RQ4What is the relationship between adversarial perturbations, activation gradients, and actual activation changes after model updates in real UDA tasks?
- RQ5Does the proposed method outperform existing SOTA approaches in both standard and source-data-free UDA settings?
Key findings
- The proposed APA method achieves state-of-the-art accuracy on standard UDA benchmarks, outperforming prior methods including FixMatch and SENTRY.
- On the Office-Home dataset, APA achieved 83.88% top-1 accuracy in the source-data-free setting, surpassing the next best method by 0.34 percentage points.
- The normalized variant APA^n achieved 83.88% accuracy on Office-Home, demonstrating that normalization improves performance and stability.
- Top-k label-based perturbation approximation achieved comparable results to full APA, with k=5 yielding 83.54% accuracy on Office-Home, indicating that focusing on high-confidence classes is sufficient.
- Ablation studies confirmed that adversarial training on penultimate features leads to higher accuracy and better correlation with confidence objectives than input- or feature-level adversarial training.
- The cosine similarity between full and top-k approximated perturbations was consistently high (over 0.8 for k≥3), validating the approximation's effectiveness.
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.