Abstract
Unsupervised domain adaptation often gives impressive solutions to handle domain shift of data. Most of current approaches assume that unlabeled target data to train is abundant. This assumption is not always true in practices. To tackle this issue, we propose a general solution to solve the domain gap minimization problem without any target data. Our method consists of two regularization steps. The first step is a pixel regularization by arbitrary style transfer. Recently, some methods bring style transfer algorithms to domain adaptation and domain generalization process. They use style transfer algorithms to remove texture bias in source domain data. We also use style transfer algorithms for removing texture bias, but our method depends on neither domain adaptation nor domain generalization paradigm. The second regularization step is a feature regularization by feature alignment. Adding a feature alignment loss term to the model loss, the model learns domain invariant representation more efficiently. We evaluate our regularization methods from several experiments both on small dataset and large dataset. From the experiments, we show that our model can learn domain invariant representation as much as unsupervised domain adaptation methods.
Introduction
Deep neural networks are notoriously sensitive to "domain shift"—the performance drop that occurs when a model trained on one dataset (the source) is tested on a different one (the target). Existing solutions usually fall into two categories: Unsupervised Domain Adaptation (UDA), which requires a large amount of unlabeled data from the target domain, and Domain Generalization (DG), which often requires data from multiple domains to learn invariant features.
In many real-world scenarios, target data is unavailable during training. This paper introduces a "self-regularization" framework that enables deep learning models to learn domain-invariant features using only source domain data. By forcing the model to ignore domain-specific textures and focus on universal shapes, the proposed method achieves performance comparable to traditional UDA methods without requiring target domain access.
Methodology
The proposed approach consists of a two-step self-regularization process designed to distill domain-invariant characteristics from source data.
Pixel Regularization: Unpooled AdaIN
To prevent the model from over-fitting to specific textures, the authors employ Arbitrary Style Transfer (AST). Standard AST methods like AdaIN often lose spatial details during transformation. To address this, the authors developed Unpooled AdaIN. By utilizing max-pooling masks from the encoder during the unpooling process, the model preserves precise spatial structures (edges and shapes) while completely swapping the image's texture with a random style from the WikiArt dataset.
Feature Regularization: Feature Alignment
Simply training on stylized images is insufficient for robust domain invariance. The authors introduce a Feature Regularization Loss ($L_{reg}$) to explicitly align representations. As shown in the training pipeline, the model processes both the original source image and its stylized counterpart. The $L_{reg}$ (Mean Squared Error) penalizes differences between the feature vectors of these two images, forcing the feature extractor to produce identical representations regardless of visual style.
Experimental Results
The method was evaluated on several benchmarks, ranging from digit classification to large-scale synthetic-to-real challenges.
Quantitative Performance
- MNIST $\rightarrow$ MNIST-M: The model achieved 80.9% accuracy, significantly outperforming the Source-only baseline (54.6%) and surpassing DANN (77.4%), which utilizes target data.
- MNIST $\rightarrow$ SVHN: In this challenging shift, the model reached 52.2% accuracy, nearly doubling the baseline (28.3%).
- VisDA-2017-C: On this large-scale synthetic-to-real benchmark, the proposed method achieved 59.1% accuracy, outperforming DANN (55.0%) and RTN (53.6%).
Qualitative Analysis
The effectiveness of the pixel regularization step is evident in the generated stylized images. By preserving the geometric integrity of the source objects while introducing radical texture shifts, the model is forced to learn shape-biased features.
Furthermore, t-SNE visualizations confirm that the self-regularized model clusters different domains (MNIST, MNIST-M, SVHN) much more closely in the feature space compared to standard models, indicating successful learning of domain-invariant representations.
Conclusion
This work demonstrates that "self-regularizing" on the source domain can be as effective as—and sometimes superior to—unsupervised domain adaptation methods that require target data. By combining spatial-preserving style transfer with feature alignment, the model effectively mitigates texture bias. Future work may explore more targeted style selection to further bridge specific domain gaps.
Summary updated