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

April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 

Kürzlich hochgeladen (20)

April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 

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