SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
Theory	of	Domain	
Adaptation
Mark	Chang
2019/09/09
Outlines
• Generalization	Bound	of	Learning	from	Single	Domain
• Problem	of	Domain	Adaptation
• Generalization	Bound	of	Domain	Adaptation
• Domain	Adaptation	Example
Generalization	Bound	of	
Learning	from	Single	Domain
data
training	data
testing	data
sampling
sampling
hypothesis
h
hypothesis
h
training	algorithm:
minimize	
training	
error
change	the	hypothesis	h
✏(h)
testing	
Error
Generalization	Bound	of	
Learning	from	Single	Domain
• Learning is feasible when is small -> is small
• With 1-ẟ probability, the following inequality is satisfied
✏(h)
numbef of
training instances
VC-Dimension
(model complexity)
✏(h)  ˆ✏(h) +
r
8
n
log(
4(2n)d
)
Problem	of	Domain	Adaptation
https://www.semanticscholar.org/paper/Attribute-Based-
Synthetic-Network-(ABS-Net)%3A-more-Lu-
Li/2c3138782317a97526a83a7ce264c0c772ddf7e3
training	data:	MNIST testing	data	:	MNIST	with	gray-scale	
words	and	background
Problem	of	Domain	Adaptation
data
(source domain)
data
(target domain)
training	data testing	data testing	data
✏S(h)  ˆ✏S(h) +
r
8
n
log(
4(2n)d
)
ˆ✏S(h) ✏S(h) ✏T (h)
Generalization	Bound	of	Domain	Adaptation
Problem	of	Domain	Adaptation
• Distance	between	source	feature	and	target	feature
source	domain target	domain	1 target	domain	2
small	distance
large	distance
Problem	of	Domain	Adaptation
• Distance	between	source	labeling	function	and	target	labeling	function
source	domain target	domain	1 target	domain	2
feature:
label: 1						0						1						0						1
feature:
label: 1						0						1 1 0
feature:
label: 1						1						0 1						0		
small	distance
large	distance
Generalization	Bound	of	Domain	Adaptation
Generalization	Bound	of	Domain	Adaptation
source domain	data
DS	,	fs
target domain	data
DT,	fT
✏S(h) ✏T (h)
the	distance	between
source	feature	DS	and	
target	feature	DT
the	distance	between
source	labeling	function	fS and
target	labeling	function	fT
✏T (h)  ✏s(h)+d1(DS, DT )+min
⇣
EDS
[|fS(x) fT (x)|], EDT
[|fS(x) fT (x)|]
⌘
The	Distance	between	
Source	Feature	DS	and	Target	Feature	DT
d1(DS, DT ) = 2 sup
B2B
PrDS
[B] PrDT
[B]
B
DS
DT
B1 B2
B = B1 [ B2
PrDS
[B] PrDT
[B]
The	Distance	between	
Source	Feature	DS	and	Target	Feature	DT
d1(DS, DT ) = 2 sup
B2B
PrDS
[B] PrDT
[B]
B
DS
DT
=									+
+									=1
+									=1
=
B
DS
DT
B1
B = B1 [ B2
The	Distance	between	
Source	Feature	DS	and	Target	Feature	DT
• Searching for the supremum :d1(DS, DT ) = 2 sup
B2B
PrDS
[B] PrDT
[B]
B
DS
DT
B1
B = B1 [ B2
B
DS
DT
B1 B2
B = B1 [ B2
B
DS
DT
B1 B2
B = B1 [ B2
supremum
The	Distance	between	
Source	Labeling	Function	fS and Target	Labeling	Function	fT
feature
label 1						0						1 0 1
feature
label 1						0						1 1 0
feature
label 1						0						1 0 1
feature
label 1						1 0 1						0		
Source:
Target:
Source:
Target:
EDS
[|fS(x) fT (x)|] = 0.4 EDS
[|fS(x) fT (x)|] = 0.8
min
⇣
EDS
[|fS(x) fT (x)|], EDT
[|fS(x) fT (x)|]
⌘
Problem	of	d1(DS,DT)
• Hard	to	Estimate	by	Finite	Samples
• Can	be	Over	Estimate	
DS
DT
B1 B2 …
d1(DS, DT ) = 2 sup
B2B
PrDS
[B] PrDT
[B]
B
B = B1 [ B2 [ · · ·
The HΔH-Distance
dH H(DS, DT )
= 2 sup
h0,h”2H
Prx⇠DS
[h0
(x) 6= h”(x)] Prx⇠DT
[h0
(x) 6= h”(x)]
h0
(x) = 0 h0
(x) = 1h0
(x) = 1
h”(x) = 0 h”(x) = 1h”(x) = 0
h0
(x) = h”(x) h0
(x) 6= h”(x) h0
(x) = h”(x)
DS
DT
h0
h”
The HΔH-Distance
• Searching for the supremum (Training) :
= 2 sup
h0,h”2H
Prx⇠DS
[h0
(x) 6= h”(x)] Prx⇠DT
[h0
(x) 6= h”(x)]
B
DS
DT
h0
h”
B
DS
DT
h0
h”
B
DS
DT
h0
h”
B
DS
DT
h0
h” supremum
m	training	
samples
The HΔH-Distance
• can	be	estimated	from	finite	samplesdH H(DS, DT )
dH H(DS, DT )  ˆdH H(US, UT ) + 4
r
1
m
log(
2(2m)2d
)
Source	Domain	Data
DS	
Target	Domain	Data
DT
US UT
m	training	
samples
dH H(DS, DT )
ˆdH H(US, UT )
distance	between	DS and	DT
distance	between	US and	UT
The HΔH-Distance
• can	alleviate the problem of over-estimationdH H(DS, DT )
DS
DT
B
h0
h”
The	Distance	between	
Source	Labeling	Function	fS and Target	Labeling	Function	fT
feature
label 1						0						1						0 1
feature
label 1						0						1						1						0		
feature
label 1						0						1						0						1		
feature
label 1						1						0						1						0		
h⇤
(x) 1						0						1						0 0		 h⇤
(x) 1						0						0 0 0		
Source:
Target:
Source:
Target:
= 0.2 + 0.2 = 0.4 = 0.4 + 0.4 = 0.8
= ✏S(h⇤
) + ✏T (h⇤
), such that h⇤
= arg min
h2H
✏S(h) + ✏T (h)
Generalization	Bound	of	Domain	Adaptation
the	distance	between
source	feature	DS	and	
target	feature	DT
the	distance	between
source	labeling	function	fS and
target	labeling	function	fT
✏T (h)  ✏S(h) +
1
2
dH H(DS, DT ) +
✏T (h)  ✏s(h)+d1(DS, DT )+min
⇣
EDS
[|fS(x) fT (x)|], EDT
[|fS(x) fT (x)|]
⌘
to	be
estimated	by	hypothesis
Domain	Adaptation	Example
reduce
reduce dH H(DS, DT )
✏T (h)  ✏S(h) +
1
2
dH H(DS, DT ) +
About	the	Speaker
Mark	Chang
• Email:	ckmarkoh at gmail dot com
• Facebook:	
https://www.facebook.com/ckmarkoh.chang

Weitere ähnliche Inhalte

Was ist angesagt?

PAC Learning and The VC Dimension
PAC Learning and The VC DimensionPAC Learning and The VC Dimension
PAC Learning and The VC Dimension
butest
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
mandlapure
 

Was ist angesagt? (20)

Variational Autoencoder
Variational AutoencoderVariational Autoencoder
Variational Autoencoder
 
Transformer in Vision
Transformer in VisionTransformer in Vision
Transformer in Vision
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
Overview on Optimization algorithms in Deep Learning
Overview on Optimization algorithms in Deep LearningOverview on Optimization algorithms in Deep Learning
Overview on Optimization algorithms in Deep Learning
 
Computer Vision with Deep Learning
Computer Vision with Deep LearningComputer Vision with Deep Learning
Computer Vision with Deep Learning
 
PAC Learning and The VC Dimension
PAC Learning and The VC DimensionPAC Learning and The VC Dimension
PAC Learning and The VC Dimension
 
bag-of-words models
bag-of-words models bag-of-words models
bag-of-words models
 
Introduction to Convolutional Neural Networks
Introduction to Convolutional Neural NetworksIntroduction to Convolutional Neural Networks
Introduction to Convolutional Neural Networks
 
ADABoost classifier
ADABoost classifierADABoost classifier
ADABoost classifier
 
Hyperparameter Tuning
Hyperparameter TuningHyperparameter Tuning
Hyperparameter Tuning
 
Autoencoders
AutoencodersAutoencoders
Autoencoders
 
CNN Algorithm
CNN AlgorithmCNN Algorithm
CNN Algorithm
 
MLIP - Chapter 5 - Detection, Segmentation, Captioning
MLIP - Chapter 5 - Detection, Segmentation, CaptioningMLIP - Chapter 5 - Detection, Segmentation, Captioning
MLIP - Chapter 5 - Detection, Segmentation, Captioning
 
[기초개념] Recurrent Neural Network (RNN) 소개
[기초개념] Recurrent Neural Network (RNN) 소개[기초개념] Recurrent Neural Network (RNN) 소개
[기초개념] Recurrent Neural Network (RNN) 소개
 
Deep Learning - Overview of my work II
Deep Learning - Overview of my work IIDeep Learning - Overview of my work II
Deep Learning - Overview of my work II
 
01 knapsack using backtracking
01 knapsack using backtracking01 knapsack using backtracking
01 knapsack using backtracking
 
Imitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCSImitation Learning for Autonomous Driving in TORCS
Imitation Learning for Autonomous Driving in TORCS
 
Faster R-CNN - PR012
Faster R-CNN - PR012Faster R-CNN - PR012
Faster R-CNN - PR012
 
Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)
 
Graph Convolutional Neural Networks
Graph Convolutional Neural Networks Graph Convolutional Neural Networks
Graph Convolutional Neural Networks
 

Ähnlich wie Domain Adaptation

lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.ppt
butest
 
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
Huang Po Chun
 
original
originaloriginal
original
butest
 

Ähnlich wie Domain Adaptation (20)

Sketching and locality sensitive hashing for alignment
Sketching and locality sensitive hashing for alignmentSketching and locality sensitive hashing for alignment
Sketching and locality sensitive hashing for alignment
 
PAC Learning
PAC LearningPAC Learning
PAC Learning
 
L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learning
 
Comparison Study of Decision Tree Ensembles for Regression
Comparison Study of Decision Tree Ensembles for RegressionComparison Study of Decision Tree Ensembles for Regression
Comparison Study of Decision Tree Ensembles for Regression
 
lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.ppt
 
Model Selection and Validation
Model Selection and ValidationModel Selection and Validation
Model Selection and Validation
 
Finding similar items in high dimensional spaces locality sensitive hashing
Finding similar items in high dimensional spaces  locality sensitive hashingFinding similar items in high dimensional spaces  locality sensitive hashing
Finding similar items in high dimensional spaces locality sensitive hashing
 
Дмитрий Селиванов, OK.RU. Finding Similar Items in high-dimensional spaces: L...
Дмитрий Селиванов, OK.RU. Finding Similar Items in high-dimensional spaces: L...Дмитрий Селиванов, OK.RU. Finding Similar Items in high-dimensional spaces: L...
Дмитрий Селиванов, OK.RU. Finding Similar Items in high-dimensional spaces: L...
 
ML02.ppt
ML02.pptML02.ppt
ML02.ppt
 
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
Divide_and_Contrast__Source_free_Domain_Adaptation_via_Adaptive_Contrastive_L...
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdf
 
original
originaloriginal
original
 
Bayesian phylogenetic inference_big4_ws_2016-10-10
Bayesian phylogenetic inference_big4_ws_2016-10-10Bayesian phylogenetic inference_big4_ws_2016-10-10
Bayesian phylogenetic inference_big4_ws_2016-10-10
 
Web-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrievalWeb-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrieval
 
Information in the Weights
Information in the WeightsInformation in the Weights
Information in the Weights
 
Information in the Weights
Information in the WeightsInformation in the Weights
Information in the Weights
 
Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...Research internship on optimal stochastic theory with financial application u...
Research internship on optimal stochastic theory with financial application u...
 
Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...Presentation on stochastic control problem with financial applications (Merto...
Presentation on stochastic control problem with financial applications (Merto...
 
Normalizing flow
Normalizing flowNormalizing flow
Normalizing flow
 
Unit-2 Bayes Decision Theory.pptx
Unit-2 Bayes Decision Theory.pptxUnit-2 Bayes Decision Theory.pptx
Unit-2 Bayes Decision Theory.pptx
 

Mehr von Mark Chang

Mehr von Mark Chang (20)

Modeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential EquationModeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential Equation
 
Modeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential EquationModeling the Dynamics of SGD by Stochastic Differential Equation
Modeling the Dynamics of SGD by Stochastic Differential Equation
 
PAC Bayesian for Deep Learning
PAC Bayesian for Deep LearningPAC Bayesian for Deep Learning
PAC Bayesian for Deep Learning
 
PAC-Bayesian Bound for Deep Learning
PAC-Bayesian Bound for Deep LearningPAC-Bayesian Bound for Deep Learning
PAC-Bayesian Bound for Deep Learning
 
NTU ML TENSORFLOW
NTU ML TENSORFLOWNTU ML TENSORFLOW
NTU ML TENSORFLOW
 
NTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANsNTHU AI Reading Group: Improved Training of Wasserstein GANs
NTHU AI Reading Group: Improved Training of Wasserstein GANs
 
Generative Adversarial Networks
Generative Adversarial NetworksGenerative Adversarial Networks
Generative Adversarial Networks
 
Applied Deep Learning 11/03 Convolutional Neural Networks
Applied Deep Learning 11/03 Convolutional Neural NetworksApplied Deep Learning 11/03 Convolutional Neural Networks
Applied Deep Learning 11/03 Convolutional Neural Networks
 
The Genome Assembly Problem
The Genome Assembly ProblemThe Genome Assembly Problem
The Genome Assembly Problem
 
DRAW: Deep Recurrent Attentive Writer
DRAW: Deep Recurrent Attentive WriterDRAW: Deep Recurrent Attentive Writer
DRAW: Deep Recurrent Attentive Writer
 
淺談深度學習
淺談深度學習淺談深度學習
淺談深度學習
 
TensorFlow 深度學習快速上手班--深度學習
 TensorFlow 深度學習快速上手班--深度學習 TensorFlow 深度學習快速上手班--深度學習
TensorFlow 深度學習快速上手班--深度學習
 
TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用TensorFlow 深度學習快速上手班--電腦視覺應用
TensorFlow 深度學習快速上手班--電腦視覺應用
 
TensorFlow 深度學習快速上手班--自然語言處理應用
TensorFlow 深度學習快速上手班--自然語言處理應用TensorFlow 深度學習快速上手班--自然語言處理應用
TensorFlow 深度學習快速上手班--自然語言處理應用
 
TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習TensorFlow 深度學習快速上手班--機器學習
TensorFlow 深度學習快速上手班--機器學習
 
Computational Linguistics week 10
 Computational Linguistics week 10 Computational Linguistics week 10
Computational Linguistics week 10
 
Neural Doodle
Neural DoodleNeural Doodle
Neural Doodle
 
TensorFlow 深度學習講座
TensorFlow 深度學習講座TensorFlow 深度學習講座
TensorFlow 深度學習講座
 
Computational Linguistics week 5
Computational Linguistics  week 5Computational Linguistics  week 5
Computational Linguistics week 5
 
Neural Art (English Version)
Neural Art (English Version)Neural Art (English Version)
Neural Art (English Version)
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Domain Adaptation