Domain Adaptation
1
Domain Adaptation
2
Basic Assumption of AI Model
3
Train
Test
Lack of Generalization
4
Train
Test
Mismatch Between Training and Deployment Environment
5
Accuracy
Train
Deploy
Training env.
Deployment env.
Source Domain / Target Domain
6
Source Domain
Target Domain
Domain Shift
7
Source
Target
Covariate shift
Covariate Shift Example: Time-Varying Operating Condition
8
Data for Domain Adaptation: MNIST to USPS
9
MNIST
USPS
Data for Domain Adaptation: MNIST to USPS
10
Performance of Baseline Classifier
11
Performance Degradation due to Domain Shift
12
MNIST
(source)
USPS
(target)
Domain Adaptation
13
Generative Domain Adaptation
14
Source
Target
Domain Adaptation
Target-like Source
Target
Generative Domain Adaptation: CycleGAN
15
Result
16
Use for training
Domain Adaptation
17
Adversarial Domain Adaptation
18
DANN: Domain-Adversarial Neural Network
19
Source
Target
Source data
Target data
Feature
Extractor
Source
Feature
Target
Feature
Domain
Classifier
Domain-specific feature
Correct
Fail
Domain-invariant feature
DANN: Domain-Adversarial Neural Network
20
Component | Role |
Feature Extractor | Map source and target data into a shared feature space |
Domain Classifier | Predict whether features come from source or target |
Label Classifier | Learn the task using source labels |
Gradient Reversal Layer | Reverse domain gradients to make features domain-invariant |
Source
Target
DANN Example
21
MNIST
USPS
DANN Example
22
DANN Example
23
DANN Result
24
Domain Adaptation
25
Discrepancy-based DA: CORAL (Correlation Alignment)
26
Discrepancy-based DA: CORAL (Correlation Alignment)
27
Source
Target
Source
Target
DeepCORAL
28
Source data
Target data
Feature
Extractor
Source
Feature
Target
Feature
Classifier
DeepCORAL
29
Source Feature
Target Feature
DeepCORAL Example
30
DeepCORAL Example
31
DeepCORAL Result
32