SlideShare uma empresa Scribd logo
1 de 34
Baixar para ler offline
Generative Adversarial
Networks
Dai-­‐Hai	
  Nguyen
Bioinformatics	
  Center
Kyoto	
  University
28/04/2018 1
Outline
• Overview	
  of	
  generative	
  models
• Variational AutoEncoder (VAE)
• Generative	
  Adversarial	
  Networks	
  (GAN)
• GAN:	
  applications
• Conclusion
28/04/2018 2
Generative Models
28/04/2018 3
Supervised vs. Unsupervised Learning
• Supervised Learning
Data : (x, y)
x: data, y: label
Goal: Learn a function f to map x-> y
Tasks: Classification, Regression, Detection, etc
http://cs231n.stanford.edu/slides/2017/cs231n_2017_lecture13.pdf
28/04/2018 4
Supervised vs. Unsupervised Learning
• Unsupervised Learning
Data : only data x, no label y
Goal: Learn some underlying hidden structures of data
Tasks: clustering, dim reduction, density estimation, etc.
28/04/2018 5
Unsupervised Learning
• Taxonomy tree of unsupervised leanring
Source:	
  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/
28/04/2018 6
Generative models
• Goal:
Given training samples, generate new samples from the
same distribution
Training data ~ 𝑝"#$#(𝑥) Generated samples ~ 𝑝()"*+(𝑥)
In other words, try to learn a model 𝑝()"*+(𝑥) similar to 𝑝"#$#(𝑥)
28/04/2018 7
Generative models
• Maximum Likelihood Estimation (MLE):
Given training samples 𝑥,, 𝑥.,…, 𝑥/, how to learn 𝑝()"*+ 𝑥; 𝜃 from
which training samples are likely to be generated
𝜃∗
= 𝑎𝑟𝑔𝑚𝑎𝑥8 9 log	
   𝑝()"*+(𝑥>; 𝜃)
/
>?,
28/04/2018 8
Unsupervised Learning
• RECAP
Source:	
  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/
28/04/2018 9
Variational Auto-Encoder (VAE)
28/04/2018 10
Variational Autoencoder
• (probabilistic) generative model to generate samples from latent
variable.
• Assumption: training data {𝑥,, 𝑥.,…, 𝑥/} is generated from latent
variable 𝑧
Sample 𝑥~𝑝8(𝑥|𝑧)
Sample z~𝑝(𝑧)
Vary	
  z1
Vary	
  z2
Example:	
  
Samples	
  x	
  are	
  face	
  images
Latent	
  z	
  is	
  2d	
  vector:
Z1:	
  head	
  orientation
Z2	
  :	
  degree	
  of	
  smile
28/04/2018 11
Variational Autoencoder
• How to learn the model?
MLE again !
𝜃∗
= 𝑎𝑟𝑔𝑚𝑎𝑥8 9 log 𝑝8(𝑥>)
/
>?,
Where 𝑝8 𝑥 = ∫ 𝑝8 𝑥 𝑧 𝑝 𝑧 𝑑𝑧E
-> intractable to compute
• Solution: Variational Approximation
28/04/2018 12
Variational Autoencoder
• Variational approximation
log 𝑝8(𝑥) can be written as the following formulation:
Likelihood	
   term	
  to	
  quantifyhow
good	
  	
  the	
  sample	
  is	
  
reconstructed	
  from	
  z.	
  This	
  can	
  
be	
  estimated	
  by	
  a	
  network.
KL	
  divergence	
  term	
  to	
  estimate	
  the	
  
difference	
  between	
  two	
  distribution
This	
  has	
  good	
  form	
  if	
  both	
  of	
  
distributions	
   are	
  Gaussian-­‐>	
  easy	
  to	
  
estimate
This	
  KL	
  divergence	
  term	
  is	
  intractable	
  
because	
  p(z|x)	
  cannot	
  computed.
But	
  it	
  is	
  aways >=	
  0
28/04/2018 13
Variational Autoencoder
• Variational approximation
log 𝑝8(𝑥) can be written as the following formulation:
Tractable	
  lower	
  bound	
  (ELBO)
28/04/2018 14
Variational Autoencoder
• Variational approximation
log 𝑝8(𝑥) can be written as the following formulation:
Tractable	
  lower	
  bound	
  (ELBO) Strategy:
• Maxmizing ELBO instead of intractable logp(x)
• What to be modeled:
1. 𝑝8(𝑥|𝑧) by a network (decoder)
2. 𝑞J 𝑥 𝑥 by another network (encoder)
28/04/2018 15
Variational Autoencoder: model
q training
Make q(z|x)
close to p(z)Minimize
reconstruction
error
28/04/2018 16
Variational Autoencoder: model
q Sampling: use decoder network only and sample z from prior
Sample	
  z	
  from	
  N(0,	
  I)
28/04/2018 17
Variational Autoencoder: generated
samples
28/04/2018 18
Reminder
• Taxonomy tree of unsupervised leanring
Source:	
  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/
28/04/2018 19
Generative Adversarial Network (GAN)
28/04/2018 20
Generative Adversarial Network: Idea
Key	
  points:
q Belongs	
  to	
  “Implicit	
  density”	
  group	
  and
“hot”	
  method	
  in	
  ML	
  by	
  Goodfellow
q Motivated	
  by	
  game	
  theory
q Two	
  players:
1. Generator	
  tries	
  to	
  generate	
  “fake”	
  
samples	
  from	
  its	
  model
2. Discriminator	
  tries	
  to	
  distinguish	
  
“fake”	
  and	
  “real”	
  samples
28/04/2018 21
GAN: Two player game
Model:
q Generator	
  network:	
  try	
  to	
  fool	
  the	
  discriminator	
  by	
  generating	
  “like-­‐‑real”	
  
images
qDiscriminator	
  network:	
  try	
  to	
  distinguish	
  real	
  and	
  fake	
  samples
28/04/2018 22
GAN: Two player game
Objective	
  fucntion:
Loss	
  for	
  real	
  data	
  x Loss	
  for	
  fake	
  data	
  x
How	
  this	
  work
-­‐‑ D	
  tries	
  to	
  maximize	
  the	
  cost	
  such	
  that	
  D(x)	
  close	
  to	
  1	
  (for	
  real	
  x)	
  and	
  D(G(z))	
  
close	
  to	
  0	
  (fake)
-­‐‑ G	
  tries	
  to	
  minimize	
  the	
  cost	
  such	
  that	
  D(G(z))	
  is	
  close	
  to	
  1
(try	
  to	
  make	
  generated	
  samples	
  real-­‐‑looking	
  as	
  much	
  as	
  possible,	
  to	
  fool	
  D)
28/04/2018 23
GAN: Two player game
Objective	
  fucntion:
Loss	
  for	
  real	
  data	
  x Loss	
  for	
  fake	
  data	
  x
How	
  to	
  train:	
  alternative	
  approach
-­‐‑ Fix	
  G,	
  D	
  maximize	
  the	
  cost
-­‐‑ Fix	
  D,	
  G	
  minimize	
  the	
  cost
28/04/2018 24
GAN: density ratio estimation
Density	
  estimation	
  via	
  density	
  ratio	
  estimation:
28/04/2018 25
Generative Adversarial Network: Result
Some	
  generated	
  samples
28/04/2018 26
GAN: Applications
28/04/2018 27
GAN: applications
Image-­‐‑to-­‐‑Image	
  translation
Goal:	
  learn	
  a	
  mapping	
  from	
  
input	
  image-­‐‑>output	
  image
Ref:	
  	
  Image-­‐to-­‐Image	
  Translation	
  with	
  Conditional	
  Adversarial	
  Networks,	
  CVPR201628/04/2018 28
GAN: applications
Image-­‐‑to-­‐‑Image	
  translation
Generator:	
  
• In:	
  noise	
  +	
  input	
  image;	
  Out:	
  sample
Discriminator:	
  
§ In:	
  pairs	
  of	
  in/out	
  images;	
  Out:	
  fake/real
Optimization:
Where
Encourage	
  less	
  blurring
Similar	
  to	
  original	
  GAN
28/04/2018 29
GAN: applications
Image-­‐‑to-­‐‑Image	
  translation
Result:
Ref:	
  	
  Image-­‐to-­‐Image	
  Translation	
  with	
  Conditional	
  Adversarial	
  Networks,	
  CVPR201628/04/2018 30
GAN: applications
Text-­‐‑to-­‐‑Image	
  translation
Goal:	
  learn	
  a	
  mapping	
  from	
  
input	
  text>output	
  image
Ref:	
  	
  Generative	
  Adversarial	
  Text	
  to	
  Image	
  Synthesis,	
  ICML201628/04/2018 31
GAN: applications
Text-­‐‑to-­‐‑Image	
  translation
Generator:	
  
• In:	
  noise	
  +	
  text	
  ;	
  Out:	
  image
Discriminator:	
  
§ In:	
  pairs	
  of	
  text/	
  images;	
  Out:	
  fake/real
Model:
28/04/2018 32
GAN: applications
Text-­‐‑to-­‐‑Image	
  translation
Result:
Ref:	
  	
  Generative	
  Adversarial	
  Text	
  to	
  Image	
  Synthesis,	
  ICML201628/04/2018 33
Conclusion
• Taxonomy tree of unsupervised leanring, AGAIN!
Source:	
  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/
28/04/2018 34

Mais conteúdo relacionado

Mais procurados

Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAI
Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAIGenerative Adversarial Networks (GANs) - Ian Goodfellow, OpenAI
Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAIWithTheBest
 
Image to image translation with Pix2Pix GAN
Image to image translation with Pix2Pix GANImage to image translation with Pix2Pix GAN
Image to image translation with Pix2Pix GANS.Shayan Daneshvar
 
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018Universitat Politècnica de Catalunya
 
Generative Adversarial Network (+Laplacian Pyramid GAN)
Generative Adversarial Network (+Laplacian Pyramid GAN)Generative Adversarial Network (+Laplacian Pyramid GAN)
Generative Adversarial Network (+Laplacian Pyramid GAN)NamHyuk Ahn
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNNShuai Zhang
 
Machine Learning - Object Detection and Classification
Machine Learning - Object Detection and ClassificationMachine Learning - Object Detection and Classification
Machine Learning - Object Detection and ClassificationVikas Jain
 
GAN - Theory and Applications
GAN - Theory and ApplicationsGAN - Theory and Applications
GAN - Theory and ApplicationsEmanuele Ghelfi
 
Generative Adversarial Network (GAN)
Generative Adversarial Network (GAN)Generative Adversarial Network (GAN)
Generative Adversarial Network (GAN)Prakhar Rastogi
 
[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection
[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection
[PR12] You Only Look Once (YOLO): Unified Real-Time Object DetectionTaegyun Jeon
 
Feature Engineering
Feature EngineeringFeature Engineering
Feature EngineeringHJ van Veen
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural networkSopheaktra YONG
 
Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learningKien Le
 
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs) A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)Thomas da Silva Paula
 
Generative Adversarial Networks (GANs)
Generative Adversarial Networks (GANs)Generative Adversarial Networks (GANs)
Generative Adversarial Networks (GANs)Amol Patil
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnnKuppusamy P
 
Stable Diffusion path
Stable Diffusion pathStable Diffusion path
Stable Diffusion pathVitaly Bondar
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You NeedDaiki Tanaka
 
An introduction to Deep Learning
An introduction to Deep LearningAn introduction to Deep Learning
An introduction to Deep LearningJulien SIMON
 

Mais procurados (20)

Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAI
Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAIGenerative Adversarial Networks (GANs) - Ian Goodfellow, OpenAI
Generative Adversarial Networks (GANs) - Ian Goodfellow, OpenAI
 
Image to image translation with Pix2Pix GAN
Image to image translation with Pix2Pix GANImage to image translation with Pix2Pix GAN
Image to image translation with Pix2Pix GAN
 
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018
Variational Autoencoders VAE - Santiago Pascual - UPC Barcelona 2018
 
Deep learning
Deep learningDeep learning
Deep learning
 
Generative Adversarial Network (+Laplacian Pyramid GAN)
Generative Adversarial Network (+Laplacian Pyramid GAN)Generative Adversarial Network (+Laplacian Pyramid GAN)
Generative Adversarial Network (+Laplacian Pyramid GAN)
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNN
 
Machine Learning - Object Detection and Classification
Machine Learning - Object Detection and ClassificationMachine Learning - Object Detection and Classification
Machine Learning - Object Detection and Classification
 
GAN - Theory and Applications
GAN - Theory and ApplicationsGAN - Theory and Applications
GAN - Theory and Applications
 
Generative Adversarial Network (GAN)
Generative Adversarial Network (GAN)Generative Adversarial Network (GAN)
Generative Adversarial Network (GAN)
 
[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection
[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection
[PR12] You Only Look Once (YOLO): Unified Real-Time Object Detection
 
Feature Engineering
Feature EngineeringFeature Engineering
Feature Engineering
 
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
 
Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learning
 
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs) A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
A (Very) Gentle Introduction to Generative Adversarial Networks (a.k.a GANs)
 
Generative Adversarial Networks (GANs)
Generative Adversarial Networks (GANs)Generative Adversarial Networks (GANs)
Generative Adversarial Networks (GANs)
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
 
Stable Diffusion path
Stable Diffusion pathStable Diffusion path
Stable Diffusion path
 
[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need[Paper Reading] Attention is All You Need
[Paper Reading] Attention is All You Need
 
Foundation of A.I
Foundation of A.IFoundation of A.I
Foundation of A.I
 
An introduction to Deep Learning
An introduction to Deep LearningAn introduction to Deep Learning
An introduction to Deep Learning
 

Semelhante a GANs for Image Translation

Scaling Multinomial Logistic Regression via Hybrid Parallelism
Scaling Multinomial Logistic Regression via Hybrid ParallelismScaling Multinomial Logistic Regression via Hybrid Parallelism
Scaling Multinomial Logistic Regression via Hybrid ParallelismParameswaran Raman
 
AlgorithmsModelsNov13.pptx
AlgorithmsModelsNov13.pptxAlgorithmsModelsNov13.pptx
AlgorithmsModelsNov13.pptxPerumalPitchandi
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality ReductionSaad Elbeleidy
 
IRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET Journal
 
IRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET Journal
 
IRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET Journal
 
IRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET Journal
 
Model-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS InternationalModel-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS InternationalBob Fourer
 
DC02. Interpretation of predictions
DC02. Interpretation of predictionsDC02. Interpretation of predictions
DC02. Interpretation of predictionsAnton Kulesh
 
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5TigerGraph
 
Using Graph Algorithms for Advanced Analytics - Part 5 Classification
Using Graph Algorithms for Advanced Analytics - Part 5 ClassificationUsing Graph Algorithms for Advanced Analytics - Part 5 Classification
Using Graph Algorithms for Advanced Analytics - Part 5 ClassificationTigerGraph
 
Neo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpNeo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpAdrian Ziegler
 
Neural Learning to Rank
Neural Learning to RankNeural Learning to Rank
Neural Learning to RankBhaskar Mitra
 
DWDM-AG-day-1-2023-SEC A plus Half B--.pdf
DWDM-AG-day-1-2023-SEC A plus Half B--.pdfDWDM-AG-day-1-2023-SEC A plus Half B--.pdf
DWDM-AG-day-1-2023-SEC A plus Half B--.pdfChristinaGayenMondal
 
Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsbutest
 
Learning when to give up: theory, practice and perspectives
Learning when to give up: theory, practice and perspectivesLearning when to give up: theory, practice and perspectives
Learning when to give up: theory, practice and perspectivesGiuseppe (Pino) Di Fabbrizio
 
20MEMECH Part 3- Classification.pdf
20MEMECH Part 3- Classification.pdf20MEMECH Part 3- Classification.pdf
20MEMECH Part 3- Classification.pdfMariaKhan905189
 
Active Learning for Multi-relational Data Construction
Active Learning for Multi-relational Data ConstructionActive Learning for Multi-relational Data Construction
Active Learning for Multi-relational Data ConstructionHiroshi Kajino
 

Semelhante a GANs for Image Translation (20)

Scaling Multinomial Logistic Regression via Hybrid Parallelism
Scaling Multinomial Logistic Regression via Hybrid ParallelismScaling Multinomial Logistic Regression via Hybrid Parallelism
Scaling Multinomial Logistic Regression via Hybrid Parallelism
 
AlgorithmsModelsNov13.pptx
AlgorithmsModelsNov13.pptxAlgorithmsModelsNov13.pptx
AlgorithmsModelsNov13.pptx
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality Reduction
 
presentationIDC - 14MAY2015
presentationIDC - 14MAY2015presentationIDC - 14MAY2015
presentationIDC - 14MAY2015
 
IRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification Algorithms
 
IRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification AlgorithmsIRJET- Performance Evaluation of Various Classification Algorithms
IRJET- Performance Evaluation of Various Classification Algorithms
 
IRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms Comparison
 
IRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms ComparisonIRJET- Supervised Learning Classification Algorithms Comparison
IRJET- Supervised Learning Classification Algorithms Comparison
 
Model-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS InternationalModel-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS International
 
DC02. Interpretation of predictions
DC02. Interpretation of predictionsDC02. Interpretation of predictions
DC02. Interpretation of predictions
 
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5
Graph Gurus Episode 32: Using Graph Algorithms for Advanced Analytics Part 5
 
Using Graph Algorithms for Advanced Analytics - Part 5 Classification
Using Graph Algorithms for Advanced Analytics - Part 5 ClassificationUsing Graph Algorithms for Advanced Analytics - Part 5 Classification
Using Graph Algorithms for Advanced Analytics - Part 5 Classification
 
Neo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExpNeo4j MeetUp - Graph Exploration with MetaExp
Neo4j MeetUp - Graph Exploration with MetaExp
 
Neural Learning to Rank
Neural Learning to RankNeural Learning to Rank
Neural Learning to Rank
 
DWDM-AG-day-1-2023-SEC A plus Half B--.pdf
DWDM-AG-day-1-2023-SEC A plus Half B--.pdfDWDM-AG-day-1-2023-SEC A plus Half B--.pdf
DWDM-AG-day-1-2023-SEC A plus Half B--.pdf
 
A detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning AlgorithmsA detailed analysis of the supervised machine Learning Algorithms
A detailed analysis of the supervised machine Learning Algorithms
 
Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical models
 
Learning when to give up: theory, practice and perspectives
Learning when to give up: theory, practice and perspectivesLearning when to give up: theory, practice and perspectives
Learning when to give up: theory, practice and perspectives
 
20MEMECH Part 3- Classification.pdf
20MEMECH Part 3- Classification.pdf20MEMECH Part 3- Classification.pdf
20MEMECH Part 3- Classification.pdf
 
Active Learning for Multi-relational Data Construction
Active Learning for Multi-relational Data ConstructionActive Learning for Multi-relational Data Construction
Active Learning for Multi-relational Data Construction
 

Mais de Dai-Hai Nguyen

Advanced machine learning for metabolite identification
Advanced machine learning for metabolite identificationAdvanced machine learning for metabolite identification
Advanced machine learning for metabolite identificationDai-Hai Nguyen
 
Metrics for generativemodels
Metrics for generativemodelsMetrics for generativemodels
Metrics for generativemodelsDai-Hai Nguyen
 
Hierarchical selection
Hierarchical selectionHierarchical selection
Hierarchical selectionDai-Hai Nguyen
 
Semi-supervised learning model for molecular property prediction
Semi-supervised learning model for molecular property predictionSemi-supervised learning model for molecular property prediction
Semi-supervised learning model for molecular property predictionDai-Hai Nguyen
 

Mais de Dai-Hai Nguyen (8)

Advanced machine learning for metabolite identification
Advanced machine learning for metabolite identificationAdvanced machine learning for metabolite identification
Advanced machine learning for metabolite identification
 
Metrics for generativemodels
Metrics for generativemodelsMetrics for generativemodels
Metrics for generativemodels
 
IBSB tutorial
IBSB tutorialIBSB tutorial
IBSB tutorial
 
Hierarchical selection
Hierarchical selectionHierarchical selection
Hierarchical selection
 
Semi-supervised learning model for molecular property prediction
Semi-supervised learning model for molecular property predictionSemi-supervised learning model for molecular property prediction
Semi-supervised learning model for molecular property prediction
 
DL for molecules
DL for moleculesDL for molecules
DL for molecules
 
Seminar
SeminarSeminar
Seminar
 
Collaborative DL
Collaborative DLCollaborative DL
Collaborative DL
 

Último

Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Seán Kennedy
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Seán Kennedy
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxellehsormae
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...ssuserf63bd7
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
detection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxdetection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxAleenaJamil4
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...Amil Baba Dawood bangali
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 

Último (20)

Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...Student profile product demonstration on grades, ability, well-being and mind...
Student profile product demonstration on grades, ability, well-being and mind...
 
Vision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptxVision, Mission, Goals and Objectives ppt..pptx
Vision, Mission, Goals and Objectives ppt..pptx
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
detection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptxdetection and classification of knee osteoarthritis.pptx
detection and classification of knee osteoarthritis.pptx
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 

GANs for Image Translation

  • 2. Outline • Overview  of  generative  models • Variational AutoEncoder (VAE) • Generative  Adversarial  Networks  (GAN) • GAN:  applications • Conclusion 28/04/2018 2
  • 4. Supervised vs. Unsupervised Learning • Supervised Learning Data : (x, y) x: data, y: label Goal: Learn a function f to map x-> y Tasks: Classification, Regression, Detection, etc http://cs231n.stanford.edu/slides/2017/cs231n_2017_lecture13.pdf 28/04/2018 4
  • 5. Supervised vs. Unsupervised Learning • Unsupervised Learning Data : only data x, no label y Goal: Learn some underlying hidden structures of data Tasks: clustering, dim reduction, density estimation, etc. 28/04/2018 5
  • 6. Unsupervised Learning • Taxonomy tree of unsupervised leanring Source:  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/ 28/04/2018 6
  • 7. Generative models • Goal: Given training samples, generate new samples from the same distribution Training data ~ 𝑝"#$#(𝑥) Generated samples ~ 𝑝()"*+(𝑥) In other words, try to learn a model 𝑝()"*+(𝑥) similar to 𝑝"#$#(𝑥) 28/04/2018 7
  • 8. Generative models • Maximum Likelihood Estimation (MLE): Given training samples 𝑥,, 𝑥.,…, 𝑥/, how to learn 𝑝()"*+ 𝑥; 𝜃 from which training samples are likely to be generated 𝜃∗ = 𝑎𝑟𝑔𝑚𝑎𝑥8 9 log   𝑝()"*+(𝑥>; 𝜃) / >?, 28/04/2018 8
  • 9. Unsupervised Learning • RECAP Source:  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/ 28/04/2018 9
  • 11. Variational Autoencoder • (probabilistic) generative model to generate samples from latent variable. • Assumption: training data {𝑥,, 𝑥.,…, 𝑥/} is generated from latent variable 𝑧 Sample 𝑥~𝑝8(𝑥|𝑧) Sample z~𝑝(𝑧) Vary  z1 Vary  z2 Example:   Samples  x  are  face  images Latent  z  is  2d  vector: Z1:  head  orientation Z2  :  degree  of  smile 28/04/2018 11
  • 12. Variational Autoencoder • How to learn the model? MLE again ! 𝜃∗ = 𝑎𝑟𝑔𝑚𝑎𝑥8 9 log 𝑝8(𝑥>) / >?, Where 𝑝8 𝑥 = ∫ 𝑝8 𝑥 𝑧 𝑝 𝑧 𝑑𝑧E -> intractable to compute • Solution: Variational Approximation 28/04/2018 12
  • 13. Variational Autoencoder • Variational approximation log 𝑝8(𝑥) can be written as the following formulation: Likelihood   term  to  quantifyhow good    the  sample  is   reconstructed  from  z.  This  can   be  estimated  by  a  network. KL  divergence  term  to  estimate  the   difference  between  two  distribution This  has  good  form  if  both  of   distributions   are  Gaussian-­‐>  easy  to   estimate This  KL  divergence  term  is  intractable   because  p(z|x)  cannot  computed. But  it  is  aways >=  0 28/04/2018 13
  • 14. Variational Autoencoder • Variational approximation log 𝑝8(𝑥) can be written as the following formulation: Tractable  lower  bound  (ELBO) 28/04/2018 14
  • 15. Variational Autoencoder • Variational approximation log 𝑝8(𝑥) can be written as the following formulation: Tractable  lower  bound  (ELBO) Strategy: • Maxmizing ELBO instead of intractable logp(x) • What to be modeled: 1. 𝑝8(𝑥|𝑧) by a network (decoder) 2. 𝑞J 𝑥 𝑥 by another network (encoder) 28/04/2018 15
  • 16. Variational Autoencoder: model q training Make q(z|x) close to p(z)Minimize reconstruction error 28/04/2018 16
  • 17. Variational Autoencoder: model q Sampling: use decoder network only and sample z from prior Sample  z  from  N(0,  I) 28/04/2018 17
  • 19. Reminder • Taxonomy tree of unsupervised leanring Source:  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/ 28/04/2018 19
  • 20. Generative Adversarial Network (GAN) 28/04/2018 20
  • 21. Generative Adversarial Network: Idea Key  points: q Belongs  to  “Implicit  density”  group  and “hot”  method  in  ML  by  Goodfellow q Motivated  by  game  theory q Two  players: 1. Generator  tries  to  generate  “fake”   samples  from  its  model 2. Discriminator  tries  to  distinguish   “fake”  and  “real”  samples 28/04/2018 21
  • 22. GAN: Two player game Model: q Generator  network:  try  to  fool  the  discriminator  by  generating  “like-­‐‑real”   images qDiscriminator  network:  try  to  distinguish  real  and  fake  samples 28/04/2018 22
  • 23. GAN: Two player game Objective  fucntion: Loss  for  real  data  x Loss  for  fake  data  x How  this  work -­‐‑ D  tries  to  maximize  the  cost  such  that  D(x)  close  to  1  (for  real  x)  and  D(G(z))   close  to  0  (fake) -­‐‑ G  tries  to  minimize  the  cost  such  that  D(G(z))  is  close  to  1 (try  to  make  generated  samples  real-­‐‑looking  as  much  as  possible,  to  fool  D) 28/04/2018 23
  • 24. GAN: Two player game Objective  fucntion: Loss  for  real  data  x Loss  for  fake  data  x How  to  train:  alternative  approach -­‐‑ Fix  G,  D  maximize  the  cost -­‐‑ Fix  D,  G  minimize  the  cost 28/04/2018 24
  • 25. GAN: density ratio estimation Density  estimation  via  density  ratio  estimation: 28/04/2018 25
  • 26. Generative Adversarial Network: Result Some  generated  samples 28/04/2018 26
  • 28. GAN: applications Image-­‐‑to-­‐‑Image  translation Goal:  learn  a  mapping  from   input  image-­‐‑>output  image Ref:    Image-­‐to-­‐Image  Translation  with  Conditional  Adversarial  Networks,  CVPR201628/04/2018 28
  • 29. GAN: applications Image-­‐‑to-­‐‑Image  translation Generator:   • In:  noise  +  input  image;  Out:  sample Discriminator:   § In:  pairs  of  in/out  images;  Out:  fake/real Optimization: Where Encourage  less  blurring Similar  to  original  GAN 28/04/2018 29
  • 30. GAN: applications Image-­‐‑to-­‐‑Image  translation Result: Ref:    Image-­‐to-­‐Image  Translation  with  Conditional  Adversarial  Networks,  CVPR201628/04/2018 30
  • 31. GAN: applications Text-­‐‑to-­‐‑Image  translation Goal:  learn  a  mapping  from   input  text>output  image Ref:    Generative  Adversarial  Text  to  Image  Synthesis,  ICML201628/04/2018 31
  • 32. GAN: applications Text-­‐‑to-­‐‑Image  translation Generator:   • In:  noise  +  text  ;  Out:  image Discriminator:   § In:  pairs  of  text/  images;  Out:  fake/real Model: 28/04/2018 32
  • 33. GAN: applications Text-­‐‑to-­‐‑Image  translation Result: Ref:    Generative  Adversarial  Text  to  Image  Synthesis,  ICML201628/04/2018 33
  • 34. Conclusion • Taxonomy tree of unsupervised leanring, AGAIN! Source:  https://allenlu2007.wordpress.com/2018/01/10/variational-autoencoder-的原理/ 28/04/2018 34