Beyond Sharing Weights for Deep Domain Adaptation

Artem Rozantsev, Mathieu Salzmann, Pascal Fua · DOI

Abstract: The performance of a classifier trained on data coming from a specific domain typically degrades when applied to a related but different one. While annotating many samples from the new domain would address this issue, it is often too expensive or impractical. Domain Adaptation has therefore emerged as a solution to this problem; It leverages annotated data from a source domain, in which it is abundant, to train a classifier to operate in a target domain, in which it is either sparse or even lacking altogether. In this context, the recent trend consists of learning deep architectures whose weights are shared for both domains, which essentially amounts to learning domain invariant features. Here, we show that it is more effective to explicitly model the shift from one domain to the other. To this end, we introduce a two-stream architecture, where one operates in the source domain and the other in the target domain. In contrast to other approaches, the weights in corresponding layers are related but not shared. We demonstrate that this both yields higher accuracy than state-of-the-art methods on several object recognition and detection tasks and consistently outperforms networks with shared weights in both supervised and unsupervised settings.

Introduction

Machine learning models are notoriously brittle: a classifier trained on synthetic CAD drawings of drones often fails when deployed on real-world video footage. This "domain shift" occurs because the statistical distributions of the training (source) and deployment (target) data differ due to lighting, backgrounds, or sensor noise.

The standard deep learning fix is Domain Adaptation (DA). Until recently, the prevailing trend was to use "Siamese" networks—two identical streams with shared weights—to force the model to find features that look the same in both domains. However, forcing a model to ignore the differences between domains (invariance) often strips away the very details the model needs to be accurate (discriminative power). This paper argues that instead of forcing invariance, it is more effective to explicitly model the shift between domains.

Proposed Two-Stream Architecture

The authors introduce a two-stream architecture where one stream processes source data and the other processes target data. Crucially, they move "beyond sharing weights" by allowing corresponding layers to have related but distinct parameters.

The proposed two-stream architecture with separate weights for source and target domains, linked by regularization and domain discrepancy losses.

The architecture incorporates three key components:

  1. Weight Regularizer ($L_w$): Instead of forcing weights ($\theta$) to be identical, they allow them to differ but penalize the distance between them. Specifically, they propose that the target weights should be a linear transformation of the source weights ($a_j\theta_s + b_j$). This allows the model to explicitly account for simple shifts, like global illumination changes, within the weights themselves.
  2. Unsupervised Regularizer ($L_{MMD}$): They use Maximum Mean Discrepancy (MMD) to ensure that the final feature representations remain distributionally similar, even if the internal weights differ.
  3. Automated Architecture Selection: Not every layer needs to be domain-specific. The authors use the MMD value as a diagnostic tool to determine which layers should have separate weights and which should be shared. For example, in synthetic-to-real tasks, they found that making the early convolutional layers domain-specific yielded the best results.

Experimental Evaluation

The approach was evaluated across several diverse tasks, including drone detection (UAV-200), the classic Office benchmark, digit recognition (MNIST + USPS), and facial pose estimation.

Key Results

The proposed method consistently outperformed state-of-the-art weight-sharing methods like Deep Domain Confusion (DDC).

Comparison of the proposed method against DDC and a baseline trained only on real data, showing superior performance across different amounts of target training data.
  • Drone Detection: On the UAV-200 "small" dataset, the model achieved 92% accuracy, significantly higher than the 89% achieved by weight-sharing baselines.
  • Office Benchmark: The method achieved an average accuracy of 90.8% across all domain pairs, outperforming the then-standard Domain Adversarial Neural Network (GRL) at 89.5%.
  • Regression: In facial pose estimation, the two-stream approach improved the Percentage of Correctly estimated Points (PCP) from 60.3% to 62.8%, proving the method's versatility beyond classification.

Discussion and Conclusion

The core insight of this work is that specialization beats invariance. A model performs better when allowed to specialize its internal filters to the specific quirks of a domain, rather than being forced into a "one-size-fits-all" middle ground. By modeling the relationship between weights as a linear transformation, the authors provide a flexible middle ground between "totally shared" and "totally independent" weights.

While linear transformations of weights work well, they are relatively simple. Future work could explore more complex transformations or more efficient, end-to-end methods for automatically deciding which layers to share during a single training run, rather than relying on MMD-based architecture search across multiple configurations.

Summary updated

BibTeX
@article{rozantsev2016beyond,
  author = {Artem Rozantsev and Mathieu Salzmann and Pascal Fua},
  title = {{Beyond Sharing Weights for Deep Domain Adaptation}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2016},
  doi = {10.1109/tpami.2018.2814042},
}
Figure