Skip to main content
QUICK REVIEW

[Paper Review] A Closer Look at Smoothness in Domain Adversarial Training

Harsh Rangwani, Sumukh K Aithal|arXiv (Cornell University)|Jun 16, 2022
Domain Adaptation and Few-Shot LearningComputer Science27 citations
TL;DR

The paper analyzes how smoothing the task loss (but not the adversarial loss) stabilizes domain adversarial training (DAT) and proposes Smooth Domain Adversarial Training (SDAT), which improves target-domain generalization for classification and object detection across multiple datasets and backbones.

ABSTRACT

Domain adversarial training has been ubiquitous for achieving invariant representations and is used widely for various domain adaptation tasks. In recent times, methods converging to smooth optima have shown improved generalization for supervised learning tasks like classification. In this work, we analyze the effect of smoothness enhancing formulations on domain adversarial training, the objective of which is a combination of task loss (eg. classification, regression, etc.) and adversarial terms. We find that converging to a smooth minima with respect to (w.r.t.) task loss stabilizes the adversarial training leading to better performance on target domain. In contrast to task loss, our analysis shows that converging to smooth minima w.r.t. adversarial loss leads to sub-optimal generalization on the target domain. Based on the analysis, we introduce the Smooth Domain Adversarial Training (SDAT) procedure, which effectively enhances the performance of existing domain adversarial methods for both classification and object detection tasks. Our analysis also provides insight into the extensive usage of SGD over Adam in the community for domain adversarial training.

Motivation & Objective

  • Investigate how loss landscape smoothness affects domain adversarial training performance.
  • Characterize when smoothing helps or hurts in DAT, focusing on task loss versus adversarial loss.
  • Propose a theoretically motivated method to achieve smoothness in the task loss within DAT.
  • Demonstrate empirical gains of the proposed method across multiple datasets and tasks.

Proposed method

  • Analyze Hessian-based curvature (trace and max eigenvalue) of the task loss to assess smoothness.
  • Show that SGD yields smoother task-loss minima than Adam in DAT, correlating with better target generalization.
  • Demonstrate that smoothing the adversarial loss worsens target generalization and that smoothing only the task loss (not the adversarial term) is beneficial.
  • Introduce Smooth Domain Adversarial Training (SDAT) that applies sharpness-aware minimization (SAM) to the task loss while keeping the adversarial discrepancy term unchanged.
  • Provide a theoretical generalization bound showing SDAT’s consistency and target-risk reduction (Eq. 12).
  • Empirically validate SDAT on classification (Office-Home, VisDA-2017, DomainNet) with ResNet and ViT backbones, and on object detection with DA-Faster variants.

Experimental results

Research questions

  • RQ1Does smoothness of the task loss correlate with improved target-domain generalization in domain adversarial training?
  • RQ2Does smoothing the adversarial loss help or hinder DAT performance on target domain?
  • RQ3Can we design a training objective that smooths only the task loss to achieve better generalization in DAT?
  • RQ4Do SDAT gains hold across different datasets and backbone architectures (ResNet and ViT) and in object detection tasks?

Key findings

  • Converging to smooth minima with respect to the task loss stabilizes DAT and improves target-domain generalization.
  • Smoothness of the adversarial loss does not help and can degrade target-domain performance, making smoothness on all losses sub-optimal.
  • SDAT, which smooths only the task loss via a SAM-style approach, yields stable training and significant gains over baselines across datasets and backbones.
  • With ViT backbone, SDAT achieves an average gain of about 3.1% over the baseline in unsupervised domain adaptation tasks.
  • SDAT combined with CDAN or CDAN+MCC attains state-of-the-art performance on Office-Home and VisDA-2017, and improves DomainNet results.
  • SDAT also demonstrates benefits for object detection, with SDAT-Classification providing notable mAP gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.