Dynamic Transfer for Multi-Source Domain Adaptation

Yunsheng Li, Lu Yuan, Yinpeng Chen, Pei Wang, Nuno Vasconcelos

Introduction

Multi-Source Domain Adaptation (MSDA) aims to leverage knowledge from multiple source domains to improve performance on a target domain. Traditional approaches typically rely on a static model—a single set of weights designed to be domain-agnostic. However, this often leads to a "domain conflict" where the model must find a compromise between disparate distributions, resulting in sub-optimal performance across all domains.

Conceptual comparison between static transfer (a), which uses a fixed model for all domains, and dynamic transfer (b), which adapts model parameters to each input sample.

Dynamic Residual Transfer (DRT)

To address the limitations of static models, this paper introduces Dynamic Residual Transfer (DRT). Instead of a fixed mapping, the model parameters $\theta$ become a function of the input $x$, denoted as $f_{\theta(x)}$. To maintain computational efficiency, the authors propose a residual formulation:

$$W(x) = W_0 + \Delta W(x)$$

Here, $W_0$ represents the standard static weights, while $\Delta W(x)$ is a sample-dependent residual matrix. This allows the model to maintain a shared backbone while providing the "elasticity" needed to adapt to specific visual styles or domain shifts on-the-fly.

Subspace Routing and Architecture

The core mechanism for generating $\Delta W(x)$ is Subspace Routing. The model maintains a set of $K$ static basis matrices (subspaces). For each input, a lightweight attention branch predicts coefficients $\pi$ to linearly combine these bases into a custom residual. This approach is highly efficient, adding less than 0.1% to the total computational cost (FLOPs).

The DRT architecture featuring an Attention Branch that predicts routing coefficients to combine basis matrices into a dynamic residual weight matrix.

Experimental Results

The researchers evaluated DRT on challenging benchmarks including Digit-five and DomainNet (a massive dataset with 0.6 million images across 6 domains).

  • State-of-the-Art Performance: On DomainNet, DRT outperformed previous leading methods by over 3%, reaching 51.3% accuracy when combined with self-training. On Digit-five, it achieved a record average accuracy of 91.86%.
  • Implicit Domain Discovery: Visualizations of the dynamic coefficients revealed that the model naturally clusters images by domain, even without explicit domain labels during training. This suggests the network autonomously "discovers" domain concepts to optimize processing.
  • Robustness to Shift: DRT proved effective even in single-source scenarios, as its inherent flexibility allows it to adapt more readily to the target distribution than specialized static methods.

Conclusion

Dynamic Residual Transfer represents a paradigm shift in domain adaptation by moving away from rigid, domain-agnostic models toward flexible, sample-adaptive architectures. By breaking the "domain barrier" through efficient subspace routing, DRT achieves superior accuracy with negligible computational overhead, making it a practical solution for complex, real-world multi-source data.

Summary updated

BibTeX
@inproceedings{li2021dynamic,
  author = {Yunsheng Li and Lu Yuan and Yinpeng Chen and Pei Wang and Nuno Vasconcelos},
  title = {{Dynamic Transfer for Multi-Source Domain Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01085},
}
Figure