SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
A Note on ZINB-VAE[1]
Tomonari MASADA @ Nagasaki University
September 8, 2017
p(xn,g, hn,g, yn,g, wn,g, zn; W h, W w)
= p(xn,g|hn,g, yn,g)p(hn,g|zn; W h)p(yn,g|wn,g)p(wn,g|zn; W w)p(zn)
= δ0(xn,g)hn,g
δyn,g (xn,g)1−hn,g
× fh(zn)hn,g
(1 − fh(zn))1−hn,g
×
w
yn,g
n,g e−wn,g
yn,g!
×
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
wfw,1(zn)−1
n,g e−fw,2(zn)wn,g
×
K
k=1
1
√
2π
exp
z2
n,k
2
(1)
p(xn,g, yn,g, wn,g, zn; W h, W w)
= p(xn,g, hn,g = 0, yn,g, wn,g, zn; W h, W w) + p(xn,g, hn,g = 1, yn,g, wn,g, zn; W h, W w)
= {δyn,g (xn,g)(1 − fh(zn)) + δ0(xn,g)fh(zn)} ×
w
yn,g
n,g e−wn,g
yn,g!
×
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
wfw,1(zn)−1
n,g e−fw,2(zn)wn,g
×
K
k=1
1
√
2π
exp −
z2
n,k
2
(2)
p(xn,g, wn,g, zn; W h, W w) = p(xn,g|wn,g, zn; W h)p(wn,g|zn; W w)p(zn)
= p(xn,g, yn,g, wn,g, zn; W h, W w)dyn,g
= (1 − fh(zn)) ×
w
xn,g
n,g e−wn,g
xn,g!
+ δ0(xn,g)fh(zn)
×
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
wfw,1(zn)−1
n,g e−fw,2(zn)wn,g
×
K
k=1
1
√
2π
exp −
z2
n,k
2
= (1 − fh(zn)) ×
w
xn,g
n,g e−wn,g
xn,g!
+ δ0(xn,g)fh(zn)
×
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
wfw,1(zn)−1
n,g e−fw,2(zn)wn,g
×
K
k=1
1
√
2π
exp −
z2
n,k
2
(3)
p(xn,g|zn; W h, W w) = p(xn,g|wn,g, zn; W h)p(wn,g|zn; W w)dwn,g
= (1 − fh(zn)) ×
w
xn,g
n,g e−wn,g
xn,g!
+ δ0(xn,g)fh(zn)
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
wfw,1(zn)−1
n,g e−fw,2(zn)wn,g
dwn,g
= (1 − fh(zn))
1
xn,g!
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
w{xn,g+fw,1(zn)}−1
n,g e−{1+fw,2(zn)}wn,g
dwn,g
+ δ0(xn,g)fh(zn)
= (1 − fh(zn))
1
xn,g!
fw,2(zn)
fw,1(zn)
Γ(fw,1(zn))
Γ(xn,g + fw,1(zn))
{1 + fw,2(zn)}xn,g+fw,1(zn)
+ δ0(xn,g)fh(zn) (4)
1
The ELBO is obtained as follows.
log p(xn,g; W h, W w) = log p(xn,g|zn; W h, W w)p(zn)dzn
≥ q(zn|xn) log
p(xn,g|zn; W h, W w)p(zn)
q(zn|xn)
dzn (5)
We can perform a Monte Carlo approximation as below.
q(zn|xn) log
p(xn,g|zn; W h, W w)p(zn)
q(zn|xn)
dzn
≈
1
S
S
s=1
log p(xn,g|z(s)
n ; W h, W w) + q(zn|xn) log p(zn)dzn − q(zn|xn) log q(zn|xn)dzn (6)
where z
(s)
n ≡ (s)
σn(xn) + µn(xn), and (s)
∼ N(0, I).
References
[1] R. Lopez, J. Regier, M. Jordan, and N. Yosef. A deep generative model for gene expression profiles
from single-cell RNA sequencing. ArXiv e-prints, September 2017.
2

Weitere ähnliche Inhalte

Mehr von Tomonari Masada

Mehr von Tomonari Masada (20)

Learning Latent Space Energy Based Prior Modelの解説
Learning Latent Space Energy Based Prior Modelの解説Learning Latent Space Energy Based Prior Modelの解説
Learning Latent Space Energy Based Prior Modelの解説
 
Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説
 
Context-dependent Token-wise Variational Autoencoder for Topic Modeling
Context-dependent Token-wise Variational Autoencoder for Topic ModelingContext-dependent Token-wise Variational Autoencoder for Topic Modeling
Context-dependent Token-wise Variational Autoencoder for Topic Modeling
 
A note on the density of Gumbel-softmax
A note on the density of Gumbel-softmaxA note on the density of Gumbel-softmax
A note on the density of Gumbel-softmax
 
トピックモデルの基礎と応用
トピックモデルの基礎と応用トピックモデルの基礎と応用
トピックモデルの基礎と応用
 
Expectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocationExpectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocation
 
Mini-batch Variational Inference for Time-Aware Topic Modeling
Mini-batch Variational Inference for Time-Aware Topic ModelingMini-batch Variational Inference for Time-Aware Topic Modeling
Mini-batch Variational Inference for Time-Aware Topic Modeling
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
 
Document Modeling with Implicit Approximate Posterior Distributions
Document Modeling with Implicit Approximate Posterior DistributionsDocument Modeling with Implicit Approximate Posterior Distributions
Document Modeling with Implicit Approximate Posterior Distributions
 
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka CompositionLDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
 
Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)
 
Word count in Husserliana Volumes 1 to 28
Word count in Husserliana Volumes 1 to 28Word count in Husserliana Volumes 1 to 28
Word count in Husserliana Volumes 1 to 28
 
A Simple Stochastic Gradient Variational Bayes for Latent Dirichlet Allocation
A Simple Stochastic Gradient Variational Bayes for Latent Dirichlet AllocationA Simple Stochastic Gradient Variational Bayes for Latent Dirichlet Allocation
A Simple Stochastic Gradient Variational Bayes for Latent Dirichlet Allocation
 
FDSE2015
FDSE2015FDSE2015
FDSE2015
 
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
 
A Note on BPTT for LSTM LM
A Note on BPTT for LSTM LMA Note on BPTT for LSTM LM
A Note on BPTT for LSTM LM
 
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
 
A Note on PCVB0 for HDP-LDA
A Note on PCVB0 for HDP-LDAA Note on PCVB0 for HDP-LDA
A Note on PCVB0 for HDP-LDA
 
ChronoSAGE: Diversifying Topic Modeling Chronologically
ChronoSAGE: Diversifying Topic Modeling ChronologicallyChronoSAGE: Diversifying Topic Modeling Chronologically
ChronoSAGE: Diversifying Topic Modeling Chronologically
 
A Topic Model for Traffic Speed Data Analysis
A Topic Model for Traffic Speed Data AnalysisA Topic Model for Traffic Speed Data Analysis
A Topic Model for Traffic Speed Data Analysis
 

Kürzlich hochgeladen

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Kürzlich hochgeladen (20)

Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

A Note on ZINB-VAE

  • 1. A Note on ZINB-VAE[1] Tomonari MASADA @ Nagasaki University September 8, 2017 p(xn,g, hn,g, yn,g, wn,g, zn; W h, W w) = p(xn,g|hn,g, yn,g)p(hn,g|zn; W h)p(yn,g|wn,g)p(wn,g|zn; W w)p(zn) = δ0(xn,g)hn,g δyn,g (xn,g)1−hn,g × fh(zn)hn,g (1 − fh(zn))1−hn,g × w yn,g n,g e−wn,g yn,g! × fw,2(zn) fw,1(zn) Γ(fw,1(zn)) wfw,1(zn)−1 n,g e−fw,2(zn)wn,g × K k=1 1 √ 2π exp z2 n,k 2 (1) p(xn,g, yn,g, wn,g, zn; W h, W w) = p(xn,g, hn,g = 0, yn,g, wn,g, zn; W h, W w) + p(xn,g, hn,g = 1, yn,g, wn,g, zn; W h, W w) = {δyn,g (xn,g)(1 − fh(zn)) + δ0(xn,g)fh(zn)} × w yn,g n,g e−wn,g yn,g! × fw,2(zn) fw,1(zn) Γ(fw,1(zn)) wfw,1(zn)−1 n,g e−fw,2(zn)wn,g × K k=1 1 √ 2π exp − z2 n,k 2 (2) p(xn,g, wn,g, zn; W h, W w) = p(xn,g|wn,g, zn; W h)p(wn,g|zn; W w)p(zn) = p(xn,g, yn,g, wn,g, zn; W h, W w)dyn,g = (1 − fh(zn)) × w xn,g n,g e−wn,g xn,g! + δ0(xn,g)fh(zn) × fw,2(zn) fw,1(zn) Γ(fw,1(zn)) wfw,1(zn)−1 n,g e−fw,2(zn)wn,g × K k=1 1 √ 2π exp − z2 n,k 2 = (1 − fh(zn)) × w xn,g n,g e−wn,g xn,g! + δ0(xn,g)fh(zn) × fw,2(zn) fw,1(zn) Γ(fw,1(zn)) wfw,1(zn)−1 n,g e−fw,2(zn)wn,g × K k=1 1 √ 2π exp − z2 n,k 2 (3) p(xn,g|zn; W h, W w) = p(xn,g|wn,g, zn; W h)p(wn,g|zn; W w)dwn,g = (1 − fh(zn)) × w xn,g n,g e−wn,g xn,g! + δ0(xn,g)fh(zn) fw,2(zn) fw,1(zn) Γ(fw,1(zn)) wfw,1(zn)−1 n,g e−fw,2(zn)wn,g dwn,g = (1 − fh(zn)) 1 xn,g! fw,2(zn) fw,1(zn) Γ(fw,1(zn)) w{xn,g+fw,1(zn)}−1 n,g e−{1+fw,2(zn)}wn,g dwn,g + δ0(xn,g)fh(zn) = (1 − fh(zn)) 1 xn,g! fw,2(zn) fw,1(zn) Γ(fw,1(zn)) Γ(xn,g + fw,1(zn)) {1 + fw,2(zn)}xn,g+fw,1(zn) + δ0(xn,g)fh(zn) (4) 1
  • 2. The ELBO is obtained as follows. log p(xn,g; W h, W w) = log p(xn,g|zn; W h, W w)p(zn)dzn ≥ q(zn|xn) log p(xn,g|zn; W h, W w)p(zn) q(zn|xn) dzn (5) We can perform a Monte Carlo approximation as below. q(zn|xn) log p(xn,g|zn; W h, W w)p(zn) q(zn|xn) dzn ≈ 1 S S s=1 log p(xn,g|z(s) n ; W h, W w) + q(zn|xn) log p(zn)dzn − q(zn|xn) log q(zn|xn)dzn (6) where z (s) n ≡ (s) σn(xn) + µn(xn), and (s) ∼ N(0, I). References [1] R. Lopez, J. Regier, M. Jordan, and N. Yosef. A deep generative model for gene expression profiles from single-cell RNA sequencing. ArXiv e-prints, September 2017. 2