domain adaptation

**Domain adaptation (DA)** addresses the challenge of training models on a **source domain** (where labeled data is available) and deploying them on a **target domain** (where the data distribution differs). The goal is to bridge the **domain gap** so that source domain knowledge transfers effectively. **Types of Domain Shift** - **Visual Appearance**: Synthetic vs. real images (sim-to-real transfer for robotics), different lighting conditions, camera characteristics. - **Geographic**: Different cities for autonomous driving — road styles, signage, lane markings differ. - **Temporal**: Data drift over time — a model trained on 2020 data may underperform on 2025 data. - **Sensor/Equipment**: Different medical scanners, microscopes, or cameras produce visually different outputs of the same subjects. - **Style**: Photorealistic vs. cartoon vs. sketch representations of the same objects. **Domain Adaptation Categories** | Category | Target Labels | Difficulty | |----------|--------------|------------| | Supervised DA | Labeled target data available | Easiest | | Semi-Supervised DA | Mix of labeled + unlabeled target | Moderate | | Unsupervised DA (UDA) | Only unlabeled target data | Most studied | | Source-Free DA | No access to source data during adaptation | Hardest | **Core Techniques** - **Feature Alignment**: Learn domain-invariant representations where source and target features are indistinguishable. - **Adversarial Training (DANN)**: Train a **domain discriminator** to distinguish source vs. target features. The feature extractor is trained adversarially to **fool** the discriminator — producing features that contain no domain information. - **MMD (Maximum Mean Discrepancy)**: Minimize the statistical distance between source and target feature distributions in reproducing kernel Hilbert space. - **CORAL (Correlation Alignment)**: Align second-order statistics (covariance matrices) of source and target feature distributions. - **Self-Training / Pseudo-Labeling**: Use the source-trained model to generate **pseudo-labels** for unlabeled target data. Retrain on the combination of labeled source and pseudo-labeled target. Iteratively refine pseudo-labels as the model improves. - **Image-Level Adaptation**: Transform source images to **look like** target domain images while preserving labels. - **CycleGAN**: Unpaired image-to-image translation between domains. - **Style Transfer**: Apply target domain visual style to source images. - **FDA (Fourier Domain Adaptation)**: Swap low-frequency spectral components between domains. **Theoretical Foundation** - **Ben-David et al. Bound**: Target domain error ≤ Source domain error + Domain divergence + Ideal joint error. - **Implications**: Adaptation is feasible only when domains are "close enough" — if the ideal joint error is high, no amount of alignment will help. - **Practical Guidance**: Minimize domain divergence (feature alignment) while maintaining low source error (discriminative features). **Applications** - **Sim-to-Real Robotics**: Train in simulation (cheap, unlimited data), deploy on real robots. - **Medical Imaging**: Adapt models across different hospitals, scanners, and patient populations. - **Autonomous Driving**: Transfer models to new cities, countries, and driving conditions. - **NLP Cross-Lingual**: Adapt models from high-resource to low-resource languages. Domain adaptation is one of the most **practically important transfer learning problems** — it directly addresses the reality that training and deployment conditions rarely match perfectly.

Go deeper with CFSGPT

Get AI-powered deep-dives, save terms, and run advanced simulations — free account.

Create Free Account