Abstract
Deep learning models often suffer from significant performance degradation when deployed in environments that differ from their training data, a phenomenon known as domain shift. Traditional Unsupervised Domain Adaptation (UDA) methods address this by fine-tuning the entire model, which can lead to catastrophic forgetting of the source domain and is often incompatible with frozen, hardware-optimized deployments. We propose a light-weight, separable data calibrator—a small preprocessing module that transforms target domain inputs to align with the source model's existing internal representations. Our method achieves state-of-the-art performance on standard benchmarks while preserving original source accuracy and requiring as little as 0.24% additional parameters.
Introduction
Deep neural networks are notoriously brittle when transitioned from a labeled source domain (e.g., synthetic data) to an unlabeled target domain (e.g., real-world images). Current UDA strategies typically involve updating the weights of the classifier to bridge this gap. However, this approach has three primary drawbacks: it often causes the model to "forget" its original source domain performance, it is computationally expensive to retrain for every new environment, and it is impossible for models already "frozen" into specialized hardware (ASICs).
This paper introduces a paradigm shift: instead of changing the model to fit the data, we "nudge" the data to fit the model. By introducing a Separable Calibrator ($G_c$) in front of a frozen source classifier ($F_s$), we can recover the model's discriminative power in new environments without modifying its core weights.
Methodology: The Separable Calibrator
The core of our approach is a small ResNet-based generator that learns to apply a subtle perturbation to input images. The goal is to transform target images so they appear, to the frozen classifier, as if they originated from the source domain.
Adversarial Training Framework
We employ a "four-group" adversarial game to train the calibrator. Two discriminators—one operating on raw pixels and another on deep features—are tasked with distinguishing between four categories: original source images, original target images, calibrated source images, and calibrated target images.
The calibrator is optimized to fool these discriminators into classifying calibrated target images as source images. To ensure the module remains a "calibrator" rather than a complete image regenerator, we enforce an $L_\infty$ constraint on the perturbation magnitude, ensuring the transformed image remains semantically identical to the original.
Preserving Source Performance
Crucially, the calibrator is also trained to act as an identity mapping for source images. This ensures that the system's performance on the original training data remains untouched, solving the problem of catastrophic forgetting inherent in traditional fine-tuning methods.
Experimental Evaluation
We evaluated the light-weight calibrator across two distinct challenges:
- Digit Recognition: Cross-domain adaptation between MNIST, USPS, and SVHN datasets.
- Semantic Segmentation: Adapting from synthetic driving scenes (GTA5) to real-world urban environments (Cityscapes).
Key Results
Our method consistently outperformed established UDA frameworks such as CyCADA and MCD. On digit tasks, our approach reached an average accuracy of 97.6%. In the complex GTA5-to-Cityscapes segmentation task, we improved the frequency-weighted Intersection over Union (IoU) from 72.4% to 75.1%.
As shown in the figure above, while methods like CyCADA and ADDA often see a significant drop in source domain accuracy after adaptation, our method maintains near-perfect source performance. This stability is a direct result of keeping the base classifier frozen.
Efficiency and Insights
The proposed calibrator is remarkably efficient. For high-resolution driving scene tasks, the module added only 0.24% to the total parameter count of the DRN-26 backbone.
From a theoretical perspective, our work suggests that domain adaptation can be viewed as an "inverse" adversarial attack. Just as adversarial noise can break a model, a calibrator adds "helpful" noise to fix a domain shift. Fourier analysis further reveals that the calibrator effectively acts as a smart filter, suppressing high-frequency textures that are specific to the target domain and misaligned with the source model's expectations.
Conclusion
The light-weight calibrator offers a flexible, efficient, and non-destructive solution for unsupervised domain adaptation. By decoupling the adaptation process from the classifier's weights, we enable seamless deployment across diverse environments without sacrificing original performance or requiring massive computational resources.
Summary updated