12 / 15 · Nonparametric and Topic Models
Latent Dirichlet allocation
Topic models: each document a mixture of topics shared by the corpus, fitted by collapsed Gibbs sampling or mean-field variational inference, with the role of the Dirichlet priors and how topics are evaluated.
Dirichlet processes · Gibbs sampling · Variational inference
On this page 8
An article about the transfer market of a football club uses the vocabulary of sports and of money in the same paragraph. A thousand other articles use the same two vocabularies in other proportions, and a few more besides: politics, medicine, weather. Given only the words, can we recover the vocabularies, and say for each article how much of each it uses?
The Dirichlet process mixture gave every data point exactly one cluster, and so cannot answer. Latent Dirichlet allocation (LDA) of Blei, Ng and Jordan (2003) can. It has a set of topics, each a distribution over words, shared by the whole collection, and for every document its own mixture of them. The number of topics is fixed in advance, so LDA is a parametric model; it sits beside the Dirichlet process because it is built from the same Dirichlet–categorical blocks, is fitted by the same kind of collapsed sampler, and becomes nonparametric when its topics are drawn from a hierarchical Dirichlet process (Teh et al., 2006).
One topic per document is not enough#
Treat each document as a bag of words, its word order ignored. The simplest probabilistic model of such bags is a mixture of unigrams (Nigam et al., 2000): pick one topic for the whole document with probability , then draw all its words from that topic’s distribution over the vocabulary,
where is the -th of the words of document . It is the finite mixture of the Dirichlet process note with documents as the points, and the 4F13 course fits it by EM before moving to LDA.
It fails on documents that mix subjects. Take the two topics of the figure below, sports and economics, and the three-word document “team goal market”. Sports gives these words the probabilities , and ; economics gives them , and . The best single topic, sports, must produce “market”, to which it gives 2%. A document-specific mixture with proportions and gives each word the probability , for “team” :
The mixture explains the document three times better. (This toy comparison fixes the proportions; LDA puts a prior on them.)
The probabilistic latent semantic analysis of Hofmann (1999) gives each training document its own proportions, but as parameters. Their number grows with the corpus and they overfit, and a new document has no proportions at all. LDA makes the proportions random, with a Dirichlet prior, which fixes both problems (Blei, Ng and Jordan, 2003, Section 4.3).
The generative story#
LDA describes how a corpus could have been produced. With topics over a vocabulary of words, and symmetric Dirichlet priors with parameters and :
- For each topic , draw its word distribution .
- For each document , draw its topic proportions .
- For each position of document , draw a topic ,
- and then the word .
How LDA generates a document
| Symbol | Meaning |
|---|---|
| probability of word in topic | |
| share of topic in document | |
| topic of the -th word of document | |
| words of document assigned to topic | |
| occurrences of word assigned to topic , over the corpus | |
| all words assigned to topic , |
The joint distribution of everything is the product of the four steps:
Summing out the topic of one word gives the probability of the word in its document,
so the matrix of word probabilities per document is the product of a matrix of proportions and a matrix of topics. LDA is a probabilistic, non-negative low-rank factorization of the document–word matrix, an admixture or mixed-membership model in which a document belongs partly to several clusters (Murphy, 2023, Section 28.5.1). In the figure, .
Geometrically, every distribution over the vocabulary is a point of the word simplex, and the topics span a smaller topic simplex inside it. The mixture of unigrams puts each document at a corner of the topic simplex; pLSA puts each training document at a fixed point inside it; LDA places a smooth Dirichlet-shaped density over it, so a new document can land anywhere (Blei, Ng and Jordan, 2003, Section 4.4).
The form is not arbitrary. Suppose the order of words carries no information, in the strong sense of infinite exchangeability: for every length, the joint probability of a sequence is unchanged by any permutation of it. Then de Finetti’s theorem says that the joint distribution is a mixture of independent draws given some latent parameter: draw hidden word frequencies once, then sample the words independently from them (Teh, 2010, section “Predictive Distribution and the Blackwell-MacQueen Urn Scheme”, states it as an integral over a random distribution). For a finite document the representation holds only approximately; the theorem itself needs measure theory beyond the course.
LDA takes that parameter to be and gives it a Dirichlet distribution (Blei, Ng and Jordan, 2003, Section 3.1). The Dirichlet process mixture had one level of sharing: points share clusters. LDA has two: words share topics within a document through , and documents share topics through the common .
Inference: the posterior over topic assignments#
The quantity of interest is the posterior : which topic each word belongs to, what the topics are, and what each document is about. Its normalizer sums over assignments and has no closed form. The two standard approximations are the collapsed Gibbs sampler of Griffiths and Steyvers (2004) and the variational method of the original paper.
Collapsed Gibbs sampling#
Both and can be integrated out, because each appears only in a Dirichlet prior and in categorical terms: the Dirichlet–categorical conjugacy of the conjugate priors note. Write for the normalizer of a Dirichlet, so that . Collecting the factors that contain each and each , we integrate them one at a time. For one document, by the definition of ,
and each topic gives the same with and the word counts . The product over documents and topics is
a function of the counts alone, with and . The sampler monitors this quantity.
The sampler resamples one token’s topic at a time. Let token be word in document , and let a superscript mean “counted without token ”. Bayes’ rule splits the conditional into a prior for given the other topics and a likelihood for its word. The topic of token depends on the other topics only through , and its word depends on the other tokens only through , so each factor averages one parameter over its posterior:
Each factor is the posterior mean of a Dirichlet: given the other topics of document is , and given the other words assigned to topic is . By the predictive formula of the conjugate priors note, the posterior mean of a component is . The denominator of the first, , does not depend on , so
(Griffiths and Steyvers, 2004, Eq. 5; the 4F13 course derives it this way). The same result follows from the ratio of at and at its removal, since only three counts change by one.
The two factors read naturally: how much document already uses topic , and how often topic already produces word , each smoothed by its prior. A sweep visits every token, removes it from the counts, draws a new topic and adds it back: work per token, with nothing but integer counts in memory. After the chain has mixed, a sample of estimates the integrated-out quantities by the same posterior means:
This is the twin of the restaurant sampler of the previous note. There a point was reseated in proportion to the cluster’s size times its predictive density; here a token is reassigned in proportion to the document’s use of a topic times the topic’s predictive probability of the word.
Take a token of the word “goal” in a document whose other words are 4 in topic 1 and 2 in topic 2. Over the corpus, topic 1 has 500 tokens, 30 of them “goal”; topic 2 has 400 tokens, 2 of them “goal”. With , and , the unnormalized weights are
and the token goes to topic 1 with probability .
Topics are interchangeable, so the posterior has relabelled copies of every mode. A single chain stays in one of them and gives consistent labels, but averaging over several chains is meaningless without matching the topics first.
The variational alternative#
The original paper took the other route of this course, mean-field variational inference. With a Dirichlet prior on the topics, as in its Section 5.4, the factorized family is
Each factor’s update is the exponentiated expected log joint under the others. The expectations needed are those of logarithms of Dirichlet variables, a property of the exponential family:
with the digamma function, and the same for . The reason: is an exponential family with sufficient statistics , natural parameters and log-partition function . The expected sufficient statistic is the gradient of (conjugate priors note), and . The updates are
Derivation of the three updates
In the log joint, appears only in , so averaging over the other factors gives . The factor appears in its prior and in one term per word, which contributes with probability :
the log density of with . The same steps for , where word contributes with probability , give .
They are the Gibbs update with counts replaced by expected counts and probabilities by exponentials of expected logarithms. Coordinate ascent alternates a local step, which iterates and for every document with the topics fixed, and a global step, which recomputes from all the expected counts. Without the prior on the topics, the global step becomes the M-step of a variational EM that estimates as a parameter, the form in Vetrov and Kropotov’s lecture notes. Blei et al. write the topics as , their prior parameter as and the assignment probabilities as , and the next note follows them; and are the same in both.
The updates are deterministic, vectorize over the document–word count matrix, and come with an objective, the ELBO, to monitor convergence. In exchange they are biased: mean field underestimates the posterior variance and, like the sampler, can stop in a local optimum. With hyperparameters tuned for each method, the two give similar topics and similar held-out perplexity (Asuncion et al., 2009).
The hyperparameters and #
The two Dirichlet parameters set what kind of documents and topics the model expects. The density of is proportional to . With the exponent is negative, and the density grows without bound as any approaches 0: the mass sits near the corners and edges of the simplex, and each document uses few topics. With the density is constant, uniform. With it vanishes on the boundary and peaks at the centre, , so every document mixes all topics evenly. plays the same role for topics: a small gives topics concentrated on few words.
What the parameter α does
In the posterior, is a pseudo-count added to every topic of every document. A document whose ten tokens are assigned , and to three topics has the estimate :
The larger prior spreads the document over a topic it never used. For short documents, such as tweets or search queries, dominates the counts.
Common defaults are and (Griffiths and Steyvers, 2004), or (scikit-learn). The hyperparameters can also be learned, by maximizing the evidence with a fixed-point iteration or by sampling them. Wallach, Mimno and McCallum (2009) found that an asymmetric, learned prior on , which lets some topics be common in every document, improves held-out likelihood and topic quality markedly, while an asymmetric prior on the topics brings little.
Evaluation: perplexity and coherence#
A topic model is a model of text, so it can be scored like a language model, by the perplexity of held-out documents:
the exponentiated average negative log-likelihood per word. A perplexity of 17 means the model is as uncertain about each word as a uniform choice among 17 words: if every word has probability , the average negative log-likelihood is and its exponential is 17.
Two complications are specific to topic models. First, integrates over the document’s proportions and is itself intractable. It is estimated by sampling or, as in the experiment below, by document completion: estimate from the first half of a test document and score the second half (Wallach et al., 2009). Different estimators give different numbers, so perplexities are comparable only under one protocol. Second, likelihood is not what people want from topics. In a study with human judges, models with better held-out likelihood often had less interpretable topics (Chang et al., 2009).
Coherence measures interpretability directly from co-occurrence: the top words of a good topic appear in the same documents. The UMass coherence of a topic with top words (Mimno et al., 2011) is
where counts the documents containing and those containing both; the avoids the logarithm of zero. Each term is a smoothed log conditional probability that a document with also contains . For three top words in 40, 30 and 20 documents, co-occurring pairwise in 25 (words 1 and 2), 15 (1 and 3) and 12 (2 and 3) documents,
Values closer to zero mean a more coherent topic. Variants based on pointwise mutual information over a large reference corpus, such as Wikipedia, agree better with human judgements (Newman et al., 2010).
An experiment: recovering known topics#
The Code section uses the “bars” corpus of Griffiths and Steyvers (2004): a vocabulary of 25 words laid out on a grid, and 10 true topics, the five rows and the five columns, each uniform over its five words. 200 training documents of 50 words each are generated with , so that most documents use a few bars, and 50 more are held out. Because the true topics are known, recovery can be measured directly: each learned topic is paired with a true bar by the Hungarian algorithm, and the distance is the total variation between their distributions.
The collapsed sampler runs 200 sweeps with and from random assignments. Its log joint climbs from after the first sweep to after 10, after 50 and after 200. Mean-field variational inference, by hand with 100 rounds of local and global steps and in scikit-learn’s batch LatentDirichletAllocation, does as well:
| worst topic, total variation | held-out perplexity | |
|---|---|---|
| collapsed Gibbs | ||
| mean field, by hand | ||
| mean field, scikit-learn | ||
| the true topics | ||
| one unigram distribution | — |
Every method recovers all ten bars, and its perplexity is within of the true topics’. The unigram model is essentially the uniform distribution over 25 words. The UMass coherence of the top five words averages for the Gibbs topics, for the true bars and for random topics: coherence measures co-occurrence in this corpus, so a learned topic can score slightly above the true one.
The concentration matters when it is wrong by a factor of ten. Variational inference from five random starts for each value, counting a bar as recovered when some topic is within total variation of it:
| bars recovered, of 10 | held-out perplexity | |
|---|---|---|
| 0.03 | 0, 0, 0, 0, 0 | 18.5 – 19.5 |
| 0.3 (true) | 8, 8, 10, 10, 10 | 17.1 – 17.7 |
| 3 | 6, 2, 10, 10, 9 | 19.6 – 20.5 |
With too small, every document is forced toward a single topic, and the topics become typical combinations of bars. With too large, documents spread over all topics, perplexity suffers, and recovery depends on the start.
The number of topics has a softer effect. With , and , the average held-out perplexity over five starts is , and , and the average coherence , and . Too few topics cost perplexity; too many cost little perplexity and split bars into less coherent pieces.
Where it breaks#
Look at the two starts that found only eight bars with the true . In the first, one topic puts most of its mass on row 0 and the rest on column 2: two bars share a topic. To keep the count at ten, two other topics both describe column 0. The second start fails the same way, with column 3 covered twice. Each run has stopped at a local optimum of the bound: moving the duplicate topic over to the missing bar would pass through states that explain the data worse. The held-out perplexity, against , is the only sign of trouble without the true topics to compare with. Restarts help, and so does keeping the run with the best bound or held-out score; on real corpora, where the truth is unknown, topics that change between runs should be reported with caution.
The model’s other limits follow from its assumptions. It is a bag of words, so “not good” and “good” are the same evidence. must be chosen, usually by held-out likelihood or coherence, which often disagree; the hierarchical Dirichlet process makes the number of topics a posterior quantity at the price of a more complex sampler (Teh et al., 2006). Without a stop-word list or a learned asymmetric prior, frequent words such as “the” and “of” appear at the top of every topic. And both methods need many passes over every token: coordinate ascent changes the global topics only after a full pass, and collapsed Gibbs, which updates its counts after every token, still needs many sweeps to mix.
What you should remember#
- LDA: topics , proportions , then a topic and a word for each position; .
- It is a non-negative low-rank factorization of the document–word matrix, with the number of topics fixed in advance.
- Collapsed Gibbs: , a product of two Dirichlet predictive probabilities.
- Mean field replaces counts by expected counts and probabilities by , alternating local and global steps.
- means few topics per document; a tenfold wrong can hide the true topics.
- Check topics across restarts, and evaluate by held-out perplexity under a stated protocol and by coherence.
Code#
A collapsed Gibbs sampler and mean-field variational inference for LDA on the bars corpus, with topic recovery, held-out perplexity, UMass coherence, the effect of and , and a look inside a local optimum. It runs in about 40 seconds; exact numbers can vary across platforms and library versions.
import numpy as np
from scipy.special import digamma, gammaln
from scipy.optimize import linear_sum_assignment
from sklearn.decomposition import LatentDirichletAllocation
rng = np.random.default_rng(0)
# the collapsed Gibbs update for one token: two topics, alpha = 0.1, beta = 0.01, V = 1000
p = np.array([(4 + 0.1) * (30 + 0.01) / (500 + 1000 * 0.01), (2 + 0.1) * (2 + 0.01) / (400 + 1000 * 0.01)])
print(p.round(4), (p / p.sum()).round(3)) # [0.2413 0.0103] [0.959 0.041]
# the "bars" corpus: 25 words on a 5 x 5 grid, 10 topics (5 rows, 5 columns), each uniform over its 5 words
V, K = 25, 10
grid = np.arange(V).reshape(5, 5)
phi_true = np.zeros((K, V))
for r in range(5):
phi_true[r, grid[r]] = 0.2 # a horizontal bar
phi_true[5 + r, grid[:, r]] = 0.2 # a vertical bar
D, N, alpha, beta = 200, 50, 0.3, 0.1
theta_true = rng.dirichlet(np.full(K, alpha), size=D)
docs = [rng.choice(V, size=N, p=theta_true[d] @ phi_true) for d in range(D)] # w ~ sum_k theta_dk phi_kw
test = [rng.choice(V, size=N, p=t @ phi_true) for t in rng.dirichlet(np.full(K, alpha), size=50)]
counts = np.stack([np.bincount(w, minlength=V) for w in docs]) # D x V document-word counts
def log_joint(ndk, nkw): # log p(w, z) with theta and phi integrated out
topics = (gammaln(nkw + beta).sum(axis=1) - gammaln(nkw.sum(axis=1) + V * beta)).sum() + K * (gammaln(V * beta) - V * gammaln(beta))
docs_ = (gammaln(ndk + alpha).sum(axis=1) - gammaln(ndk.sum(axis=1) + K * alpha)).sum() + len(ndk) * (gammaln(K * alpha) - K * gammaln(alpha))
return topics + docs_
# collapsed Gibbs sampling (Griffiths and Steyvers, 2004)
def lda_gibbs(docs, K, alpha, beta, sweeps, rng):
z = [rng.integers(K, size=len(w)) for w in docs] # random initial topics
ndk, nkw, nk = np.zeros((len(docs), K)), np.zeros((K, V)), np.zeros(K)
for d, w in enumerate(docs):
np.add.at(ndk[d], z[d], 1); np.add.at(nkw, (z[d], w), 1); np.add.at(nk, z[d], 1)
trace = []
for sweep in range(sweeps):
for d, w in enumerate(docs):
u = rng.random(len(w))
for i, (v, k) in enumerate(zip(w, z[d])):
ndk[d, k] -= 1; nkw[k, v] -= 1; nk[k] -= 1 # take token i out
p = (ndk[d] + alpha) * (nkw[:, v] + beta) / (nk + V * beta)
c = np.cumsum(p)
k = int(np.searchsorted(c, u[i] * c[-1])) # draw its new topic
z[d][i] = k; ndk[d, k] += 1; nkw[k, v] += 1; nk[k] += 1
trace.append(log_joint(ndk, nkw))
return ndk, nkw, np.array(trace)
def match(phi): # pair learned topics with true bars; total variation distances
cost = 0.5 * np.abs(phi[:, None, :] - phi_true[None]).sum(axis=2)
r, c = linear_sum_assignment(cost)
return cost[r, c]
def heldout_perplexity(docs, phi, alpha, iters=100): # document completion: theta from the first half, score the second
ll, n = 0.0, 0
for w in docs:
a, b = w[: len(w) // 2], w[len(w) // 2:]
th = np.full(len(phi), 1 / len(phi))
for _ in range(iters):
r = th[:, None] * phi[:, a]; r /= r.sum(axis=0)
th = (r.sum(axis=1) + alpha) / (len(a) + len(phi) * alpha)
ll += np.log(th @ phi[:, b]).sum(); n += len(b)
return np.exp(-ll / n)
def umass(phi, top=5): # UMass coherence of the top words, averaged over topics
df = (counts > 0).astype(float)
co = df.T @ df # co[v, u]: documents containing both v and u
score = []
for k in range(len(phi)):
t = np.argsort(-phi[k])[:top]
score.append(sum(np.log((co[t[m], t[l]] + 1) / co[t[l], t[l]]) for m in range(1, top) for l in range(m)))
return np.mean(score)
ndk, nkw, trace = lda_gibbs(docs, K, alpha, beta, 200, rng)
print(trace[[0, 9, 49, 199]].round(0)) # [-54604. -39588. -33406. -33376.]: log p(w, z) climbs, then levels off
phi_gibbs = (nkw + beta) / (nkw.sum(axis=1, keepdims=True) + V * beta)
print(match(phi_gibbs).max().round(3)) # 0.07: every bar recovered within 7% total variation
uni = (counts.sum(axis=0) + 1.0) / (counts.sum() + V)
print(round(heldout_perplexity(test, phi_gibbs, alpha), 2), round(heldout_perplexity(test, phi_true, alpha), 2),
round(np.exp(-np.mean([np.log(uni[w]).mean() for w in test])), 2)) # Gibbs topics, true topics, unigram
# 17.11 17.09 25.1
rand = np.array([umass(rng.dirichlet(np.ones(V), size=K)) for _ in range(20)])
print(round(umass(phi_gibbs), 2), round(umass(phi_true), 2), round(rand.mean(), 2)) # -3.52 -3.59 -4.51: learned, true, random
# mean-field variational inference (Blei, Ng and Jordan, 2003, with a Dirichlet prior on the topics)
def lda_cavi(counts, K, alpha, beta, iters, rng, inner=20):
lam = beta + rng.gamma(100.0, 0.01, size=(K, V)) # q(phi_k) = Dir(lam_k)
gam = np.ones((len(counts), K)) # q(theta_d) = Dir(gam_d)
for _ in range(iters):
Elog_phi = digamma(lam) - digamma(lam.sum(axis=1, keepdims=True))
for _ in range(inner): # local step: every document, topics fixed
Elog_theta = digamma(gam) - digamma(gam.sum(axis=1, keepdims=True))
r = np.exp(Elog_theta[:, None, :] + Elog_phi.T[None]) # D x V x K, unnormalized q(z = k) per word type
r /= r.sum(axis=2, keepdims=True)
gam = alpha + (counts[:, :, None] * r).sum(axis=1)
lam = beta + (counts[:, :, None] * r).sum(axis=0).T # global step: the topics
return lam / lam.sum(axis=1, keepdims=True), gam
phi_vi, gam = lda_cavi(counts, K, alpha, beta, 100, rng)
print(match(phi_vi).max().round(3), round(heldout_perplexity(test, phi_vi, alpha), 2)) # 0.054 17.16
skl = LatentDirichletAllocation(n_components=K, doc_topic_prior=alpha, topic_word_prior=beta, learning_method='batch', max_iter=100, random_state=0).fit(counts)
phi_skl = skl.components_ / skl.components_.sum(axis=1, keepdims=True)
print(match(phi_skl).max().round(3), round(heldout_perplexity(test, phi_skl, alpha), 2)) # 0.051 17.12
# the hyperparameters and the number of topics: variational inference from five random starts each
for a in (0.03, 0.3, 3.0):
fits = [lda_cavi(counts, K, a, beta, 100, np.random.default_rng(s))[0] for s in range(5)]
print('alpha', a, [int((match(f) < 0.2).sum()) for f in fits], [float(round(heldout_perplexity(test, f, a), 1)) for f in fits])
# alpha 0.03 [0, 0, 0, 0, 0] [18.5, 19.0, 18.9, 19.5, 19.3]
# alpha 0.3 [8, 8, 10, 10, 10] [17.7, 17.7, 17.1, 17.1, 17.1]
# alpha 3.0 [6, 2, 10, 10, 9] [20.2, 20.5, 19.6, 19.6, 19.8]
for k in (5, 10, 20):
fits = [lda_cavi(counts, k, alpha, beta, 100, np.random.default_rng(s))[0] for s in range(5)]
print('K', k, round(np.mean([heldout_perplexity(test, f, alpha) for f in fits]), 2), round(np.mean([umass(f) for f in fits]), 2))
# K 5 21.33 -3.51 | K 10 17.34 -3.5 | K 20 17.51 -3.64
# inside a local optimum: the first start with the true alpha (bars 0-4 are the rows, 5-9 the columns)
phi0 = lda_cavi(counts, K, alpha, beta, 100, np.random.default_rng(0))[0]
cost = 0.5 * np.abs(phi0[:, None, :] - phi_true[None]).sum(axis=2)
print(cost.argmin(axis=1), cost.min(axis=0).round(2)) # the nearest bar of each topic; each bar's distance to its nearest topic
# [4 2 5 1 8 6 3 0 5 9] [0.31 0.11 0.04 0.06 0.05 0.05 0.04 0.53 0.06 0.05]: two topics on column 0, none close to column 2
print(phi0[cost[:, 0].argmin()].reshape(5, 5).round(2)) # the topic nearest to row 0 also covers column 2
# [[0.11 0.13 0.24 0.13 0.12]
# [0. 0. 0.07 0. 0. ]
# [0. 0. 0.06 0. 0. ]
# [0. 0. 0.07 0. 0. ]
# [0. 0. 0.08 0. 0. ]]
Next#
Both inference methods read the whole corpus many times: the sampler in every sweep, coordinate ascent before every change of the global topics. With a few hundred documents that takes seconds; with millions of news articles, days. The next note keeps the variational family and the updates above and changes only the order of work: it updates the topics after each small random batch of documents, as a step along a noisy natural gradient, and so fits topic models to corpora that do not fit in memory.
References#
- D. M. Blei, A. Y. Ng, M. I. Jordan. Latent Dirichlet Allocation. Journal of Machine Learning Research, 3, 993–1022, 2003. Section 3 (the model; 3.1, exchangeability), Section 4 (unigrams, mixture of unigrams, pLSI, the geometric interpretation), Section 5 (variational inference and parameter estimation; 5.4, smoothing with a Dirichlet prior on the topics).
- T. L. Griffiths, M. Steyvers. Finding Scientific Topics. Proceedings of the National Academy of Sciences, 101(suppl. 1), 5228–5235, 2004. The collapsed Gibbs update (Eq. 5) and the bars example.
- T. Hofmann. Probabilistic Latent Semantic Indexing. SIGIR, 1999.
- K. Nigam, A. K. McCallum, S. Thrun, T. Mitchell. Text Classification from Labeled and Unlabeled Documents using EM. Machine Learning, 39, 103–134, 2000.
- A. Asuncion, M. Welling, P. Smyth, Y. W. Teh. On Smoothing and Inference for Topic Models. UAI, 2009.
- H. M. Wallach, D. Mimno, A. McCallum. Rethinking LDA: Why Priors Matter. NeurIPS, 2009.
- H. M. Wallach, I. Murray, R. Salakhutdinov, D. Mimno. Evaluation Methods for Topic Models. ICML, 2009.
- J. Chang, J. Boyd-Graber, S. Gerrish, C. Wang, D. M. Blei. Reading Tea Leaves: How Humans Interpret Topic Models. NeurIPS, 2009.
- D. Mimno, H. M. Wallach, E. Talley, M. Leenders, A. McCallum. Optimizing Semantic Coherence in Topic Models. EMNLP, 2011.
- D. Newman, J. H. Lau, K. Grieser, T. Baldwin. Automatic Evaluation of Topic Coherence. NAACL, 2010.
- Y. W. Teh. Dirichlet Process. In Encyclopedia of Machine Learning, Springer, 2010. Section “Predictive Distribution and the Blackwell-MacQueen Urn Scheme” (de Finetti’s theorem).
- Y. W. Teh, M. I. Jordan, M. J. Beal, D. M. Blei. Hierarchical Dirichlet Processes. Journal of the American Statistical Association, 101(476), 1566–1581, 2006.
- K. P. Murphy. Probabilistic Machine Learning: Advanced Topics. MIT Press, 2023. Section 28.5.1 (latent Dirichlet allocation as an admixture model).
- Cambridge University Engineering Department, 4F13 Probabilistic Machine Learning, 2025/26. Course page; lectures on document models, Gibbs sampling for the Bayesian mixture, and latent Dirichlet allocation.
- D. P. Vetrov, D. A. Kropotov. Байесовские методы машинного обучения, lecture notes on topic models (MSU, 2011), lecture 11 of the 2015 course.