SlideShare ist ein Scribd-Unternehmen logo
1 von 3
Downloaden Sie, um offline zu lesen
A derivation of the sampling formulas for
An Entity-Topic Model for Entity Linking [Han+ EMNLP-CoNLL12]
and
A Context-Aware Topic Model for Statistical Machine Translation [Su+ ACL15]
Tomonari MASADA @ Nagasaki University
September 17, 2015
The full joint distribution is obtained as follows.
p(m, w, z, e, a, θ, ϕ, ψ, ξ|α, β, γ, ι)
=
D∏
d=1
[
p(md|ed, ψ)p(ed|zd, ϕ)p(zd|θd)p(wd|ad, ξ)p(ad|ed)
]
·
D∏
d=1
p(θd|α) ·
K∏
k=1
p(ϕk|β) ·
T∏
t=1
p(ψ|γ) ·
T∏
t=1
p(ξ|ι)
=
D∏
d=1
[{ Md∏
i=1
p(mdi|ψedi
)p(edi|ϕzdi
)p(zdi|θd)
}{ Nd∏
n=1
p(wdn|ξadn
)p(adn|ed)
}]
·
D∏
d=1
p(θd|α) ·
K∏
k=1
p(ϕk|β) ·
T∏
t=1
p(ψt|γ) ·
T∏
t=1
p(ξt|ι)
=
D∏
d=1
[{ Md∏
i=1
K∏
k=1
T∏
t=1
(
ψt,mdi
ϕk,tθd,k
)∆(zdi=k∧edi=t)}{ Nd∏
n=1
T∏
t=1
(
ξt,wdn
∑Md
i=1 ∆(edi = t)
Md
)∆(adn=t)}]
·
D∏
d=1
p(θd|α) ·
K∏
k=1
p(ϕk|β) ·
T∏
t=1
p(ψt|γ) ·
T∏
t=1
p(ξt|ι)
=
D∏
d=1
[{ Md∏
i=1
T∏
t=1
ψ
∆(edi=t)
t,mdi
}{ Md∏
i=1
K∏
k=1
T∏
t=1
ϕ
∆(zdi=k∧edi=t)
k,t
}{ Md∏
i=1
K∏
k=1
θ
∆(zdi=k)
d,k
}{ Nd∏
n=1
T∏
t=1
ξ
∆(adn=t)
t,wdn
}]
·
D∏
d=1
[{ Nd∏
n=1
T∏
t=1
(∑Md
i=1 ∆(edi = t)
Md
)∆(adn=t)}]
·
D∏
d=1
p(θd|α) ·
K∏
k=1
p(ϕk|β) ·
T∏
t=1
p(ψt|γ) ·
T∏
t=1
p(ξt|ι)
=
U∏
u=1
T∏
t=1
ψ
Ct,u
t,u ·
K∏
k=1
T∏
t=1
ϕ
Ck,t
k,t ·
D∏
d=1
K∏
k=1
θ
Cd,k
d,k ·
T∏
t=1
V∏
v=1
ξ
Ct,v
t,v ·
D∏
d=1
T∏
t=1
(
Md,t
Md
)Nd,t
·
D∏
d=1
p(θd|α) ·
K∏
k=1
p(ϕk|β) ·
T∏
t=1
p(ψt|γ) ·
T∏
t=1
p(ξt|ι) , (1)
where ∆(·) is 1 if the proposition in the parentheses is true and is 0 otherwise.
Nd,t and Md,t are defined as follows: Nd,t ≡
∑Nd
n=1 ∆(adn = t); Md,t ≡
∑Md
i=1 ∆(edi = t).
The Cs are defined as follows: Ct,u ≡
∑D
d=1
∑Md
i=1 ∆(edi = t ∧ mdi = u); Ck,t ≡
∑D
d=1
∑Md
i=1 ∆(zdi =
k ∧ edi = t); Cd,k ≡
∑Md
i=1 ∆(zdi = k); Ct,v ≡
∑D
d=1
∑Nd
n=1 ∆(adn = t ∧ wdn = v).
1
We marginalize the multinomial parameters out.
p(m, w, z, e, a|α, β, γ, ι) =
∫
p(m, w, z, e, a, θ, ϕ, ψ, ξ|α, β, γ, ι)dθdϕdψdξ
=
T∏
t=1
∏
u Γ(Ct,u + γu)
Γ(Ct +
∑
u γu)
Γ(
∑
u γu)
∏
u Γ(γu)
·
K∏
k=1
T∏
t=1
∏
t Γ(Ck,t + βt)
Γ(Ck +
∑
t βt)
Γ(
∑
t βt)
∏
t Γ(βt)
·
D∏
d=1
K∏
k=1
∏
k Γ(Cd,k + αk)
Γ(Md +
∑
k αk)
Γ(
∑
k αk)
∏
k Γ(αk)
·
T∏
t=1
V∏
v=1
∏
v Γ(Ct,v + ιv)
Γ(Ct +
∑
v ιv)
Γ(
∑
v ιv)
∏
v Γ(ιv)
·
D∏
d=1
T∏
t=1
(
Md,t
Md
)Nd,t
(2)
We remove the ith mention in the dth document.
p(m−di
, w, z−di
, e−di
, a|α, β, γ, ι)
=
T∏
t=1
∏
u Γ(C−di
t,u + γu)
Γ(C−di
t +
∑
u γu)
Γ(
∑
u γu)
∏
u Γ(γu)
·
K∏
k=1
T∏
t=1
∏
t Γ(C−di
k,t + βt)
Γ(C−di
k +
∑
t βt)
Γ(
∑
t βt)
∏
t Γ(βt)
·
D∏
d=1
K∏
k=1
∏
k Γ(C−di
d,k + αk)
Γ(Md − 1 +
∑
k αk)
Γ(
∑
k αk)
∏
k Γ(αk)
·
T∏
t=1
V∏
v=1
∏
v Γ(Ct,v + ιv)
Γ(Ct +
∑
v ιv)
Γ(
∑
v ιv)
∏
v Γ(ιv)
·
D∏
d=1
T∏
t=1
(
M−di
d,t
Md − 1
)Nd,t
(3)
And add the mention of the same type with different latent variable values.
p(mdi, zdi = k, edi = t|m−di
, w, z−di
, e−di
, a, α, β, γ, ι)
=
p(mdi, zdi = k, edi = t, m−di
, w, z−di
, e−di
, a|α, β, γ, ι)
p(m−di, w, z−di, e−di, a|α, β, γ, ι)
=
Γ(C−di
t,mdi
+ 1 + γmdi
)
Γ(C−di
t + 1 +
∑
u γu)
Γ(C−di
t +
∑
u γu)
Γ(C−di
t,mdi
+ γmdi
)
·
Γ(C−di
k,t + 1 + βt)
Γ(C−di
k + 1 +
∑
t βt)
Γ(C−di
k +
∑
t βt)
Γ(C−di
k,t + βt)
·
Γ(C−di
d,k + 1 + αk)
Γ(Md +
∑
k αk)
Γ(Md − 1 +
∑
k αk)
Γ(C−di
d,k + αk)
·
(
M−di
d,t + 1
Md
Md − 1
M−di
d,t
)Nd,t
=
C−di
t,mdi
+ γmdi
C−di
t +
∑
u γu
·
C−di
k,t + βt
C−di
k +
∑
t βt
·
C−di
d,k + αk
Md +
∑
k αk
·
(
M−di
d,t + 1
Md
Md − 1
M−di
d,t
)Nd,t
(4)
Therefore, zdi can be updated based on the following probabilities:
p(zdi = k|m, w, z−di
, e, a, α, β, γ, ι)
=
p(mdi, zdi = k, edi = t|m−di
, w, z−di
, e−di
, a, α, β, γ, ι)
∑K
k=1 p(mdi, zdi = k, edi = t|m−di, w, z−di, e−di, a, α, β, γ, ι)
=
[
C−di
t,mdi
+γmdi
C−di
t +
∑
u γu
·
C−di
k,t +βt
C−di
k +
∑
t βt
·
C−di
d,k +αk
Md+
∑
k αk
·
(
M−di
d,t +1
Md
Md−1
M−di
d,t
)Nd,t
]
∑K
k=1
[
C−di
t,mdi
+γmdi
C−di
t +
∑
u γu
·
C−di
k,t +βt
C−di
k +
∑
t βt
·
C−di
d,k +αk
Md+
∑
k αk
·
(
M−di
d,t +1
Md
Md−1
M−di
d,t
)Nd,t
]
∝
C−di
k,t + βt
C−di
k +
∑
t βt
·
C−di
d,k + αk
Md +
∑
k αk
(5)
Further, edi can be updated based on the following probabilities:
p(edi = t|m, w, z, e−di
, a, α, β, γ, ι)
=
p(mdi, zdi = k, edi = t|m−di
, w, z−di
, e−di
, a, α, β, γ, ι)
∑T
t=1 p(mdi, zdi = k, edi = t|m−di, w, z−di, e−di, a, α, β, γ, ι)
∝
C−di
t,mdi
+ γmdi
C−di
t +
∑
u γu
·
C−di
k,t + βt
C−di
k +
∑
t βt
·
(
M−di
d,t + 1
M−di
d,t
)Nd,t
(6)
2
We remove the nth word token in the dth document.
p(m, w−dn
, z, e, a−dn
|α, β, γ, ι)
=
T∏
t=1
∏
u Γ(Ct,u + γu)
Γ(Ct +
∑
u γu)
Γ(
∑
u γu)
∏
u Γ(γu)
·
K∏
k=1
T∏
t=1
∏
t Γ(Ck,t + βt)
Γ(Ck +
∑
t βt)
Γ(
∑
t βt)
∏
t Γ(βt)
·
D∏
d=1
K∏
k=1
∏
k Γ(Cd,k + αk)
Γ(Md +
∑
k αk)
Γ(
∑
k αk)
∏
k Γ(αk)
·
T∏
t=1
V∏
v=1
∏
v Γ(C−dn
t,v + ιv)
Γ(C−dn
t +
∑
v ιv)
Γ(
∑
v ιv)
∏
v Γ(ιv)
·
D∏
d=1
T∏
t=1
(
Md,t
Md
)N−dn
d,t
(7)
And add the word token of the same word type with a different latent variable value.
p(wdn, adn = t|m, w−dn
, z, e, a−dn
, α, β, γ, ι)
=
p(wdn, adn = t, m, w−dn
, z, e, a−dn
|α, β, γ, ι)
p(m, w−dn, z, e, a−dn|α, β, γ, ι)
=
Γ(C−dn
t,wdn
+ 1 + ιwdn
)
Γ(C−dn
t + 1 +
∑
v ιv)
Γ(C−dn
t +
∑
v ιv)
Γ(C−dn
t,wdn
+ ιwdn
)
·
(
Md,t
Md
)N−dn
d,t +1(
Md
Md,t
)N−dn
d,t
=
C−dn
t,wdn
+ ιwdn
C−dn
t +
∑
v ιv
·
(
Md,t
Md
)
(8)
Therefore, adn can be updated based on the following probabilities:
p(adn = t|m, w, z, e, a−dn
, α, β, γ, ι)
p(wdn, adn = t|m, w−dn
, z, e, a−dn
, α, β, γ, ι)
∑T
t=1 p(wdn, adn = t|m, w−dn, z, e, a−dn, α, β, γ, ι)
∝
C−dn
t,wdn
+ ιwdn
C−dn
t +
∑
v ιv
·
(
Md,t
Md
)
(9)
3

Weitere ähnliche Inhalte

Was ist angesagt?

Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringpaksukur
 
1 ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.
1  ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.1  ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.
1 ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.Gogely The Great
 
Combined Functions
Combined FunctionsCombined Functions
Combined FunctionsJoviBerbz
 
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile Locale
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile LocaleEtude Des Proprietes Physicochimiques Et Caracterisation Dune Argile Locale
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile LocaleRaouf Alsaytara
 
Worksheet 3 addition & subtraction
Worksheet 3 addition & subtractionWorksheet 3 addition & subtraction
Worksheet 3 addition & subtractionkrunamthip
 
[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning
[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning
[DL輪読会]Recent Advances in Autoencoder-Based Representation LearningDeep Learning JP
 
Numerical Computing
Numerical ComputingNumerical Computing
Numerical ComputingAusaf Sajjad
 
[DL輪読会] off-policyなメタ強化学習
[DL輪読会] off-policyなメタ強化学習[DL輪読会] off-policyなメタ強化学習
[DL輪読会] off-policyなメタ強化学習Deep Learning JP
 
Even Harmonious Labeling of the Graph H (2n, 2t+1)
Even Harmonious Labeling of the Graph H (2n, 2t+1)Even Harmonious Labeling of the Graph H (2n, 2t+1)
Even Harmonious Labeling of the Graph H (2n, 2t+1)inventionjournals
 
Differentiation mcq
Differentiation mcqDifferentiation mcq
Differentiation mcq123iitjee
 
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...inventionjournals
 

Was ist angesagt? (17)

Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoring
 
1 ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.
1  ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.1  ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.
1 ESO - Unit 04 - Exercises 1.4.3. - Integer Multiplication and Division.
 
Combined Functions
Combined FunctionsCombined Functions
Combined Functions
 
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile Locale
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile LocaleEtude Des Proprietes Physicochimiques Et Caracterisation Dune Argile Locale
Etude Des Proprietes Physicochimiques Et Caracterisation Dune Argile Locale
 
Worksheet 3 addition & subtraction
Worksheet 3 addition & subtractionWorksheet 3 addition & subtraction
Worksheet 3 addition & subtraction
 
Combined operation
Combined operationCombined operation
Combined operation
 
[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning
[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning
[DL輪読会]Recent Advances in Autoencoder-Based Representation Learning
 
Numerical Computing
Numerical ComputingNumerical Computing
Numerical Computing
 
[DL輪読会] off-policyなメタ強化学習
[DL輪読会] off-policyなメタ強化学習[DL輪読会] off-policyなメタ強化学習
[DL輪読会] off-policyなメタ強化学習
 
Even Harmonious Labeling of the Graph H (2n, 2t+1)
Even Harmonious Labeling of the Graph H (2n, 2t+1)Even Harmonious Labeling of the Graph H (2n, 2t+1)
Even Harmonious Labeling of the Graph H (2n, 2t+1)
 
Formulas
FormulasFormulas
Formulas
 
Aaex2 group2
Aaex2 group2Aaex2 group2
Aaex2 group2
 
Differentiation mcq
Differentiation mcqDifferentiation mcq
Differentiation mcq
 
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...
On Triplet of Positive Integers Such That the Sum of Any Two of Them is a Per...
 
Al.ex2
Al.ex2Al.ex2
Al.ex2
 
Al.ex1
Al.ex1Al.ex1
Al.ex1
 
Form1hhhh
Form1hhhhForm1hhhh
Form1hhhh
 

Andere mochten auch

JP Nicols Speaking Topics - 2017
JP Nicols Speaking Topics - 2017JP Nicols Speaking Topics - 2017
JP Nicols Speaking Topics - 2017JP Nicols
 
Hidup orang percaya
Hidup orang percayaHidup orang percaya
Hidup orang percayaelisa joe
 
04 личность святого духа
04 личность святого духа04 личность святого духа
04 личность святого духаchucho1943
 
05 крещение и исполнение духом святым
05 крещение и исполнение духом святым05 крещение и исполнение духом святым
05 крещение и исполнение духом святымchucho1943
 
PPT on Indus Valley Civilization
PPT on Indus Valley CivilizationPPT on Indus Valley Civilization
PPT on Indus Valley CivilizationAkshat Agnihotri
 
μέρα αγκαλιάς Β1 , Β2
μέρα αγκαλιάς Β1 , Β2μέρα αγκαλιάς Β1 , Β2
μέρα αγκαλιάς Β1 , Β2Kiki Lianou
 

Andere mochten auch (8)

JP Nicols Speaking Topics - 2017
JP Nicols Speaking Topics - 2017JP Nicols Speaking Topics - 2017
JP Nicols Speaking Topics - 2017
 
Hidup orang percaya
Hidup orang percayaHidup orang percaya
Hidup orang percaya
 
04 личность святого духа
04 личность святого духа04 личность святого духа
04 личность святого духа
 
05 крещение и исполнение духом святым
05 крещение и исполнение духом святым05 крещение и исполнение духом святым
05 крещение и исполнение духом святым
 
PPT on Indus Valley Civilization
PPT on Indus Valley CivilizationPPT on Indus Valley Civilization
PPT on Indus Valley Civilization
 
μέρα αγκαλιάς Β1 , Β2
μέρα αγκαλιάς Β1 , Β2μέρα αγκαλιάς Β1 , Β2
μέρα αγκαλιάς Β1 , Β2
 
Poisson factorization
Poisson factorizationPoisson factorization
Poisson factorization
 
Durf je
Durf jeDurf je
Durf je
 

Ähnlich wie A derivation of the sampling formulas for An Entity-Topic Model for Entity Linking [Han+ EMNLP-CoNLL12] and A Context-Aware Topic Model for Statistical Machine Translation [Su+ ACL15]

A new Perron-Frobenius theorem for nonnegative tensors
A new Perron-Frobenius theorem for nonnegative tensorsA new Perron-Frobenius theorem for nonnegative tensors
A new Perron-Frobenius theorem for nonnegative tensorsFrancesco Tudisco
 
Notes.on.popularity.versus.similarity.model
Notes.on.popularity.versus.similarity.modelNotes.on.popularity.versus.similarity.model
Notes.on.popularity.versus.similarity.modelsun peiyuan
 
3 grechnikov
3 grechnikov3 grechnikov
3 grechnikovYandex
 
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...asahiushio1
 
A Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNA Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNTomonari Masada
 
A Note on Correlated Topic Models
A Note on Correlated Topic ModelsA Note on Correlated Topic Models
A Note on Correlated Topic ModelsTomonari Masada
 
Accelerating Pseudo-Marginal MCMC using Gaussian Processes
Accelerating Pseudo-Marginal MCMC using Gaussian ProcessesAccelerating Pseudo-Marginal MCMC using Gaussian Processes
Accelerating Pseudo-Marginal MCMC using Gaussian ProcessesMatt Moores
 
On Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsOn Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsVjekoslavKovac1
 
Complex analysis notes
Complex analysis notesComplex analysis notes
Complex analysis notesPrakash Dabhi
 
Recurrence Relation for Achromatic Number of Line Graph of Graph
Recurrence Relation for Achromatic Number of Line Graph of GraphRecurrence Relation for Achromatic Number of Line Graph of Graph
Recurrence Relation for Achromatic Number of Line Graph of GraphIRJET Journal
 
Simplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsSimplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsPK Lehre
 
Simplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsSimplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsPer Kristian Lehre
 
統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半Ken'ichi Matsui
 
Existence of positive solutions for fractional q-difference equations involvi...
Existence of positive solutions for fractional q-difference equations involvi...Existence of positive solutions for fractional q-difference equations involvi...
Existence of positive solutions for fractional q-difference equations involvi...IJRTEMJOURNAL
 
Compiler Construction | Lecture 9 | Constraint Resolution
Compiler Construction | Lecture 9 | Constraint ResolutionCompiler Construction | Lecture 9 | Constraint Resolution
Compiler Construction | Lecture 9 | Constraint ResolutionEelco Visser
 

Ähnlich wie A derivation of the sampling formulas for An Entity-Topic Model for Entity Linking [Han+ EMNLP-CoNLL12] and A Context-Aware Topic Model for Statistical Machine Translation [Su+ ACL15] (20)

A new Perron-Frobenius theorem for nonnegative tensors
A new Perron-Frobenius theorem for nonnegative tensorsA new Perron-Frobenius theorem for nonnegative tensors
A new Perron-Frobenius theorem for nonnegative tensors
 
Notes.on.popularity.versus.similarity.model
Notes.on.popularity.versus.similarity.modelNotes.on.popularity.versus.similarity.model
Notes.on.popularity.versus.similarity.model
 
Statistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient DescentStatistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient Descent
 
Statistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient DescentStatistical Inference Using Stochastic Gradient Descent
Statistical Inference Using Stochastic Gradient Descent
 
3 grechnikov
3 grechnikov3 grechnikov
3 grechnikov
 
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
2017-07, Research Seminar at Keio University, Metric Perspective of Stochasti...
 
A Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILNA Note on the Derivation of the Variational Inference Updates for DILN
A Note on the Derivation of the Variational Inference Updates for DILN
 
A Note on Correlated Topic Models
A Note on Correlated Topic ModelsA Note on Correlated Topic Models
A Note on Correlated Topic Models
 
Accelerating Pseudo-Marginal MCMC using Gaussian Processes
Accelerating Pseudo-Marginal MCMC using Gaussian ProcessesAccelerating Pseudo-Marginal MCMC using Gaussian Processes
Accelerating Pseudo-Marginal MCMC using Gaussian Processes
 
MUMS Undergraduate Workshop - A Biased Introduction to Global Sensitivity Ana...
MUMS Undergraduate Workshop - A Biased Introduction to Global Sensitivity Ana...MUMS Undergraduate Workshop - A Biased Introduction to Global Sensitivity Ana...
MUMS Undergraduate Workshop - A Biased Introduction to Global Sensitivity Ana...
 
Ijmet 10 01_046
Ijmet 10 01_046Ijmet 10 01_046
Ijmet 10 01_046
 
On Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular IntegralsOn Twisted Paraproducts and some other Multilinear Singular Integrals
On Twisted Paraproducts and some other Multilinear Singular Integrals
 
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
PMED Transition Workshop - A Bayesian Model for Joint Longitudinal and Surviv...
 
Complex analysis notes
Complex analysis notesComplex analysis notes
Complex analysis notes
 
Recurrence Relation for Achromatic Number of Line Graph of Graph
Recurrence Relation for Achromatic Number of Line Graph of GraphRecurrence Relation for Achromatic Number of Line Graph of Graph
Recurrence Relation for Achromatic Number of Line Graph of Graph
 
Simplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsSimplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution Algorithms
 
Simplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution AlgorithmsSimplified Runtime Analysis of Estimation of Distribution Algorithms
Simplified Runtime Analysis of Estimation of Distribution Algorithms
 
統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半
 
Existence of positive solutions for fractional q-difference equations involvi...
Existence of positive solutions for fractional q-difference equations involvi...Existence of positive solutions for fractional q-difference equations involvi...
Existence of positive solutions for fractional q-difference equations involvi...
 
Compiler Construction | Lecture 9 | Constraint Resolution
Compiler Construction | Lecture 9 | Constraint ResolutionCompiler Construction | Lecture 9 | Constraint Resolution
Compiler Construction | Lecture 9 | Constraint Resolution
 

Mehr von Tomonari Masada

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の解説Tomonari Masada
 
Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説Tomonari Masada
 
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 ModelingTomonari Masada
 
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-softmaxTomonari Masada
 
トピックモデルの基礎と応用
トピックモデルの基礎と応用トピックモデルの基礎と応用
トピックモデルの基礎と応用Tomonari Masada
 
Expectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocationExpectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocationTomonari Masada
 
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 ModelingTomonari Masada
 
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 GaussianTomonari Masada
 
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 DistributionsTomonari Masada
 
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 CompositionTomonari Masada
 
A Note on Latent LSTM Allocation
A Note on Latent LSTM AllocationA Note on Latent LSTM Allocation
A Note on Latent LSTM AllocationTomonari Masada
 
Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Tomonari Masada
 
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic Model
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic ModelA Simple Stochastic Gradient Variational Bayes for the Correlated Topic Model
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic ModelTomonari Masada
 
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 AllocationTomonari Masada
 
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 28Tomonari Masada
 
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 AllocationTomonari Masada
 
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 LMTomonari 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
 
A Note on ZINB-VAE
A Note on ZINB-VAEA Note on ZINB-VAE
A Note on ZINB-VAE
 
A Note on Latent LSTM Allocation
A Note on Latent LSTM AllocationA Note on Latent LSTM Allocation
A Note on Latent LSTM Allocation
 
A Note on TopicRNN
A Note on TopicRNNA Note on TopicRNN
A Note on TopicRNN
 
Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)
 
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic Model
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic ModelA Simple Stochastic Gradient Variational Bayes for the Correlated Topic Model
A Simple Stochastic Gradient Variational Bayes for the Correlated Topic Model
 
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
 
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 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
 

Kürzlich hochgeladen

From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
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
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
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
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...GQ Research
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
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
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
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
 

Kürzlich hochgeladen (20)

From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
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...
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
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...
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
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...
 

A derivation of the sampling formulas for An Entity-Topic Model for Entity Linking [Han+ EMNLP-CoNLL12] and A Context-Aware Topic Model for Statistical Machine Translation [Su+ ACL15]

  • 1. A derivation of the sampling formulas for An Entity-Topic Model for Entity Linking [Han+ EMNLP-CoNLL12] and A Context-Aware Topic Model for Statistical Machine Translation [Su+ ACL15] Tomonari MASADA @ Nagasaki University September 17, 2015 The full joint distribution is obtained as follows. p(m, w, z, e, a, θ, ϕ, ψ, ξ|α, β, γ, ι) = D∏ d=1 [ p(md|ed, ψ)p(ed|zd, ϕ)p(zd|θd)p(wd|ad, ξ)p(ad|ed) ] · D∏ d=1 p(θd|α) · K∏ k=1 p(ϕk|β) · T∏ t=1 p(ψ|γ) · T∏ t=1 p(ξ|ι) = D∏ d=1 [{ Md∏ i=1 p(mdi|ψedi )p(edi|ϕzdi )p(zdi|θd) }{ Nd∏ n=1 p(wdn|ξadn )p(adn|ed) }] · D∏ d=1 p(θd|α) · K∏ k=1 p(ϕk|β) · T∏ t=1 p(ψt|γ) · T∏ t=1 p(ξt|ι) = D∏ d=1 [{ Md∏ i=1 K∏ k=1 T∏ t=1 ( ψt,mdi ϕk,tθd,k )∆(zdi=k∧edi=t)}{ Nd∏ n=1 T∏ t=1 ( ξt,wdn ∑Md i=1 ∆(edi = t) Md )∆(adn=t)}] · D∏ d=1 p(θd|α) · K∏ k=1 p(ϕk|β) · T∏ t=1 p(ψt|γ) · T∏ t=1 p(ξt|ι) = D∏ d=1 [{ Md∏ i=1 T∏ t=1 ψ ∆(edi=t) t,mdi }{ Md∏ i=1 K∏ k=1 T∏ t=1 ϕ ∆(zdi=k∧edi=t) k,t }{ Md∏ i=1 K∏ k=1 θ ∆(zdi=k) d,k }{ Nd∏ n=1 T∏ t=1 ξ ∆(adn=t) t,wdn }] · D∏ d=1 [{ Nd∏ n=1 T∏ t=1 (∑Md i=1 ∆(edi = t) Md )∆(adn=t)}] · D∏ d=1 p(θd|α) · K∏ k=1 p(ϕk|β) · T∏ t=1 p(ψt|γ) · T∏ t=1 p(ξt|ι) = U∏ u=1 T∏ t=1 ψ Ct,u t,u · K∏ k=1 T∏ t=1 ϕ Ck,t k,t · D∏ d=1 K∏ k=1 θ Cd,k d,k · T∏ t=1 V∏ v=1 ξ Ct,v t,v · D∏ d=1 T∏ t=1 ( Md,t Md )Nd,t · D∏ d=1 p(θd|α) · K∏ k=1 p(ϕk|β) · T∏ t=1 p(ψt|γ) · T∏ t=1 p(ξt|ι) , (1) where ∆(·) is 1 if the proposition in the parentheses is true and is 0 otherwise. Nd,t and Md,t are defined as follows: Nd,t ≡ ∑Nd n=1 ∆(adn = t); Md,t ≡ ∑Md i=1 ∆(edi = t). The Cs are defined as follows: Ct,u ≡ ∑D d=1 ∑Md i=1 ∆(edi = t ∧ mdi = u); Ck,t ≡ ∑D d=1 ∑Md i=1 ∆(zdi = k ∧ edi = t); Cd,k ≡ ∑Md i=1 ∆(zdi = k); Ct,v ≡ ∑D d=1 ∑Nd n=1 ∆(adn = t ∧ wdn = v). 1
  • 2. We marginalize the multinomial parameters out. p(m, w, z, e, a|α, β, γ, ι) = ∫ p(m, w, z, e, a, θ, ϕ, ψ, ξ|α, β, γ, ι)dθdϕdψdξ = T∏ t=1 ∏ u Γ(Ct,u + γu) Γ(Ct + ∑ u γu) Γ( ∑ u γu) ∏ u Γ(γu) · K∏ k=1 T∏ t=1 ∏ t Γ(Ck,t + βt) Γ(Ck + ∑ t βt) Γ( ∑ t βt) ∏ t Γ(βt) · D∏ d=1 K∏ k=1 ∏ k Γ(Cd,k + αk) Γ(Md + ∑ k αk) Γ( ∑ k αk) ∏ k Γ(αk) · T∏ t=1 V∏ v=1 ∏ v Γ(Ct,v + ιv) Γ(Ct + ∑ v ιv) Γ( ∑ v ιv) ∏ v Γ(ιv) · D∏ d=1 T∏ t=1 ( Md,t Md )Nd,t (2) We remove the ith mention in the dth document. p(m−di , w, z−di , e−di , a|α, β, γ, ι) = T∏ t=1 ∏ u Γ(C−di t,u + γu) Γ(C−di t + ∑ u γu) Γ( ∑ u γu) ∏ u Γ(γu) · K∏ k=1 T∏ t=1 ∏ t Γ(C−di k,t + βt) Γ(C−di k + ∑ t βt) Γ( ∑ t βt) ∏ t Γ(βt) · D∏ d=1 K∏ k=1 ∏ k Γ(C−di d,k + αk) Γ(Md − 1 + ∑ k αk) Γ( ∑ k αk) ∏ k Γ(αk) · T∏ t=1 V∏ v=1 ∏ v Γ(Ct,v + ιv) Γ(Ct + ∑ v ιv) Γ( ∑ v ιv) ∏ v Γ(ιv) · D∏ d=1 T∏ t=1 ( M−di d,t Md − 1 )Nd,t (3) And add the mention of the same type with different latent variable values. p(mdi, zdi = k, edi = t|m−di , w, z−di , e−di , a, α, β, γ, ι) = p(mdi, zdi = k, edi = t, m−di , w, z−di , e−di , a|α, β, γ, ι) p(m−di, w, z−di, e−di, a|α, β, γ, ι) = Γ(C−di t,mdi + 1 + γmdi ) Γ(C−di t + 1 + ∑ u γu) Γ(C−di t + ∑ u γu) Γ(C−di t,mdi + γmdi ) · Γ(C−di k,t + 1 + βt) Γ(C−di k + 1 + ∑ t βt) Γ(C−di k + ∑ t βt) Γ(C−di k,t + βt) · Γ(C−di d,k + 1 + αk) Γ(Md + ∑ k αk) Γ(Md − 1 + ∑ k αk) Γ(C−di d,k + αk) · ( M−di d,t + 1 Md Md − 1 M−di d,t )Nd,t = C−di t,mdi + γmdi C−di t + ∑ u γu · C−di k,t + βt C−di k + ∑ t βt · C−di d,k + αk Md + ∑ k αk · ( M−di d,t + 1 Md Md − 1 M−di d,t )Nd,t (4) Therefore, zdi can be updated based on the following probabilities: p(zdi = k|m, w, z−di , e, a, α, β, γ, ι) = p(mdi, zdi = k, edi = t|m−di , w, z−di , e−di , a, α, β, γ, ι) ∑K k=1 p(mdi, zdi = k, edi = t|m−di, w, z−di, e−di, a, α, β, γ, ι) = [ C−di t,mdi +γmdi C−di t + ∑ u γu · C−di k,t +βt C−di k + ∑ t βt · C−di d,k +αk Md+ ∑ k αk · ( M−di d,t +1 Md Md−1 M−di d,t )Nd,t ] ∑K k=1 [ C−di t,mdi +γmdi C−di t + ∑ u γu · C−di k,t +βt C−di k + ∑ t βt · C−di d,k +αk Md+ ∑ k αk · ( M−di d,t +1 Md Md−1 M−di d,t )Nd,t ] ∝ C−di k,t + βt C−di k + ∑ t βt · C−di d,k + αk Md + ∑ k αk (5) Further, edi can be updated based on the following probabilities: p(edi = t|m, w, z, e−di , a, α, β, γ, ι) = p(mdi, zdi = k, edi = t|m−di , w, z−di , e−di , a, α, β, γ, ι) ∑T t=1 p(mdi, zdi = k, edi = t|m−di, w, z−di, e−di, a, α, β, γ, ι) ∝ C−di t,mdi + γmdi C−di t + ∑ u γu · C−di k,t + βt C−di k + ∑ t βt · ( M−di d,t + 1 M−di d,t )Nd,t (6) 2
  • 3. We remove the nth word token in the dth document. p(m, w−dn , z, e, a−dn |α, β, γ, ι) = T∏ t=1 ∏ u Γ(Ct,u + γu) Γ(Ct + ∑ u γu) Γ( ∑ u γu) ∏ u Γ(γu) · K∏ k=1 T∏ t=1 ∏ t Γ(Ck,t + βt) Γ(Ck + ∑ t βt) Γ( ∑ t βt) ∏ t Γ(βt) · D∏ d=1 K∏ k=1 ∏ k Γ(Cd,k + αk) Γ(Md + ∑ k αk) Γ( ∑ k αk) ∏ k Γ(αk) · T∏ t=1 V∏ v=1 ∏ v Γ(C−dn t,v + ιv) Γ(C−dn t + ∑ v ιv) Γ( ∑ v ιv) ∏ v Γ(ιv) · D∏ d=1 T∏ t=1 ( Md,t Md )N−dn d,t (7) And add the word token of the same word type with a different latent variable value. p(wdn, adn = t|m, w−dn , z, e, a−dn , α, β, γ, ι) = p(wdn, adn = t, m, w−dn , z, e, a−dn |α, β, γ, ι) p(m, w−dn, z, e, a−dn|α, β, γ, ι) = Γ(C−dn t,wdn + 1 + ιwdn ) Γ(C−dn t + 1 + ∑ v ιv) Γ(C−dn t + ∑ v ιv) Γ(C−dn t,wdn + ιwdn ) · ( Md,t Md )N−dn d,t +1( Md Md,t )N−dn d,t = C−dn t,wdn + ιwdn C−dn t + ∑ v ιv · ( Md,t Md ) (8) Therefore, adn can be updated based on the following probabilities: p(adn = t|m, w, z, e, a−dn , α, β, γ, ι) p(wdn, adn = t|m, w−dn , z, e, a−dn , α, β, γ, ι) ∑T t=1 p(wdn, adn = t|m, w−dn, z, e, a−dn, α, β, γ, ι) ∝ C−dn t,wdn + ιwdn C−dn t + ∑ v ιv · ( Md,t Md ) (9) 3