Topic Models: Latent Dirichlet Allocation
Documents as points in a polytope of topics: when the topics can be recovered, the two classical ways to infer them, and what a topic model finds in filings whose generator plants seven vocabularies but only six identifiable topics.
Overview & Motivation
The distributional semantics topic ended on a matrix. It took the finance corpus’s frequent content nouns, counted which ones share a document, and found that the ratio matrix drops to the level of noise after its fifth singular value, as a mixture of six sector vocabularies predicts. It closed by observing that a topic model would find this structure more easily than an embedding would. This page takes that up.
A topic model treats a document as a bag of words drawn from a few distributions over the vocabulary, its topics, mixed in proportions of its own. Picture the set of all distributions over words, a simplex with one corner per word. Each topic is a point in it, and so is each document’s word distribution, which is a weighted average of the topic points and so lies inside their convex hull. Fitting a topic model means finding a few corners that hold the documents’ points, and reading each document’s proportions off its position.
That picture organizes the page.
- The generative model. Latent Dirichlet allocation, the polytope its documents live in, and fitting a document’s proportions as a projection.
- Identifiability and anchor words. When the corners are determined by the documents, and how the corners can be found by convex geometry alone.
- Collapsed Gibbs sampling and mean-field variational inference, the two classical ways to fit the model.
- Evaluation. Why held-out likelihood is hard to estimate, and how to compare models anyway.
Then the finance case study. The corpus’s generator plants seven vocabularies, one per sector and one shared, and every filing draws about half its content nouns from its sector’s vocabulary and half from the shared one. We will see that only six of the seven can be recovered, and that the obstacles to recovering those six are optimizers rather than the model.
The generative model
Fix a vocabulary of words and write for the simplex of distributions over it. A topic is a point , and we stack of them as the rows of a matrix .
Definition 1 (Latent Dirichlet allocation).
Given and , draw each topic . For each document , draw its topic proportions , and for each position draw a topic and then a word . The probabilistic latent semantic indexing model (pLSI) is the same model with and treated as free parameters, with no priors.
The Dirichlet distribution and its moments are covered on formalStatistics (Multivariate Distributions, Theorems 5 and 6). A small puts most of its mass near the corners of , so documents concentrate on few topics; a large one puts it near the center.
Definition 2 (Topic polytope).
The topic polytope of is the convex hull .
Proposition 1 (Documents live in the polytope).
Given and , the words of document are independent and identically distributed with distribution
so its count vector satisfies . Stacking documents, the matrix of their word distributions is , a product of nonnegative matrices with inner dimension .
Proof.
Summing out the topic of one position, . Given the pairs are independent across positions, so the words are too. Since is a probability vector, is a convex combination of the rows of .
∎Only the expected distribution lies in the polytope. The observed frequencies scatter around it, often outside. In the lab’s Topic simplex tab the vocabulary has three words, so the word simplex is a triangle, and three topics span a smaller triangle inside it. With and documents of words, of the documents’ observed frequencies fall outside the topic triangle; at words, do. At the documents crowd the corners, where a little noise carries them out: are still outside at words.
How do we place an observed document back in the polytope? By maximum likelihood, and the answer is a projection.
Proposition 2 (Fitting a document's proportions is a KL projection).
Fix and a document with counts , length , and frequencies . For every ,
where is the entropy. So the maximum-likelihood places at a point of nearest to in KL divergence. If some point of gives every word of the document positive probability, a nearest point exists, and its probabilities on the document’s words are unique.
Proof.
With , , which is the identity. Maximizing the left side over therefore minimizes over , which is nonnegative by Gibbs’ inequality (formalML, KL Divergence, Proposition 2). The function is continuous where it is finite and tends to as any with tends to ; on the compact set , where it is finite somewhere, it attains its minimum. It is strictly convex in the coordinates , so two minimizers agree on them.
∎The projection is computed by an EM iteration in which each step raises the likelihood. pLSI fits too, minimizing the total jointly. Hofmann (1999) described the aspect model’s sub-simplex and its KL reading for the joint table of documents and words, and Gaussier and Goutte (2005) showed that pLSI solves non-negative matrix factorization under the generalized KL divergence.
Remark.
LSA’s projection is Euclidean and signed. The distributional semantics topic’s truncated SVD (its Definition 3) projects the rows of a document–word matrix onto a -dimensional subspace in Euclidean norm. A subspace of dimension has room for the polytope, but its coordinates take both signs. On the finance documents’ word frequencies, LSA’s rank- reconstruction has of its entries negative, which no mixture of distributions can produce. LDA keeps the simplex: a document’s coordinates are proportions.
Identifiability and anchor words
A factorization is useful only if the documents determine it. They do not, in three ways.
Proposition 3 (The factorization is not unique).
(a) For every permutation matrix , the topics with proportions give the same documents, and under a symmetric prior the same posterior density. The posterior therefore has symmetric modes. (b) The polytope itself need not be determined. With , , , , and , the stretched topics
lie in the simplex, and every document of has proportions under them, with the same , where .
Proof.
(a) Relabeling topics is a bijection of the assignments that preserves the joint density of every quantity in Definition 1 when is symmetric. (b) Solving the two definitions for and gives , so . The rows of are nonnegative and sum to one because is nonnegative with rows summing to one, and for by direct computation: .
∎Part (a) means that topics are compared only after matching them, which the harness does by the assignment of least total distance. Part (b) means that some condition on is needed. A third failure is the one the finance corpus has.
Proposition 4 (A topic every document shares at one weight is unidentifiable).
Suppose every document’s proportions put weight on a shared topic and on one topic of its own, . Then each document’s words are i.i.d. from
the same distribution as a single-membership model, a mixture of unigrams with topics. For every , the shared topic with weight and the own topics give the same documents, and the topic–topic matrix , of size , has rank at most .
Proof.
By Proposition 1 a document’s words are i.i.d. from , which depends on the topics only through the . For , is a probability vector and . Every is one of the vectors , so is a sum of rank-one matrices.
∎The cure for (b) is a condition borrowed from non-negative matrix factorization (Donoho and Stodden 2003).
Definition 3 (Separability and anchor words).
is separable if every topic has an anchor word with and for .
An anchor word is evidence of its topic and of nothing else. Anchors are found in a matrix the distributional semantics topic already built, the document-level co-occurrence matrix, provided it is estimated without counting a word with itself.
Proposition 5 (The co-occurrence estimator is unbiased).
For a document with , let
Then , and averaged over documents, with .
Proof.
counts the ordered pairs of distinct positions. Given the words at two distinct positions are independent with distribution (Proposition 1), so each pair has expectation . Averaging over gives .
∎So is the joint distribution of the words at two distinct positions of a random document. Let be its word marginal and , whose row is the distribution of the second word given that the first is .
Theorem 1 (Anchor rows are the vertices).
Let be separable with anchors , and let be the topics’ marginal probabilities. For every word with ,
so every row of lies in . If is nonsingular, the anchor rows are affinely independent, they are the vertices of the convex hull of all rows, a word’s row is a vertex only if the word is an anchor, and is recovered from and :
Proof.
Let be the topic of the first position. Given , the first word is independent of , so and the second word is independent of the first given . Hence
and Bayes’ rule gives . For an anchor, , so . This proves the first claim, since each row is a probability vector.
Now , that is, with . If is nonsingular then and is nonsingular. Separability makes the rows of linearly independent, since its anchor columns form a diagonal matrix with positive diagonal. If , then , so and . The are therefore linearly, hence affinely, independent, and their hull is a simplex with vertices . Barycentric coordinates in a simplex are unique, so forces , which means for : is an anchor of . Finally , so the last display is .
∎Arora, Ge, and Moitra (2012) introduced anchor words and proved polynomial-time recovery from finitely many documents (their Theorem 1.4) under a lower bound on the condition number of , which implies nonsingularity. Arora et al. (2013, Section 3) gave the convex-combination form above. Theorem 1 is the exact, population-level core of those results, and nonsingularity is not a technicality. In Proposition 4’s world, the shared topic’s anchor row lies in the hull of the others: in the harness’s four-topic example its linear-programming distance to that hull is , and the anchor search below picks a non-anchor in its place.
Algorithm 1 (Anchor finding and recovery).
- Estimate by Proposition 5 and normalize its rows to .
- FastAnchorWords. Among candidate words that appear in at least of the documents, take the row of farthest from the origin; then, times, take the row farthest from the affine span of the rows chosen so far (Gram–Schmidt on differences).
- RecoverL2. For every word, find the probability vector minimizing , where holds the anchor rows.
- Set , as in Theorem 1.
FastAnchorWords is Arora et al.’s Algorithm 4, and RecoverL2 is defined in their Section 3. The candidate threshold matters: with a fixed minimum count, rare words, whose sampled rows are mostly noise, win the farthest-point search. The lab’s Anchors tab draws the rows of a three-topic world in the anchors’ triangle, where Theorem 1 puts the population rows exactly, and the sampled rows scatter and tighten as the corpus grows. In a separable world of words and topics, the mean error per topic falls from at documents to at , and the planted anchors are found from documents on. Without anchors the error stops at , above the population floor of that no amount of data removes. (The topics there are dense, off the anchors. Sparse topics are already nearly separable: their frequent words carry almost all their mass in one topic, and the contrast disappears.)
Collapsed Gibbs sampling
The posterior has no closed form, but conjugacy lets us integrate out everything except the assignments.
Lemma 1 (The Dirichlet–multinomial marginal).
For and counts ,
Proof.
The integrand is times the density, which integrates to one. This is the normalizing-constant step of the conjugacy in formalStatistics, Multivariate Distributions, Theorem 6.
∎Write for the number of tokens of document assigned to topic , for the number of tokens of word assigned to , and . Applying Lemma 1 to every document and every topic,
Theorem 2 (The collapsed full conditional).
For token of document , with word , and with every count computed without token (marked ),
Proof.
Setting changes only two counts, each by one: the count of topic in document , and the count of word in topic . Every other factor of is the same for all , so is proportional to
For any , , by applied in the numerator and in the denominator. The first ratio is , whose denominator does not depend on ; the second is .
∎Griffiths and Steyvers (2004, Eq. 5) wrote the conditional with the document’s denominator , which we drop as a constant.
Algorithm 2 (Collapsed Gibbs sampling).
Assign every token a topic uniformly at random and tabulate the counts. Then sweep: for each token in turn, remove it from the counts, draw its new topic from Theorem 2’s conditional, and add it back. After the sweeps, estimate the topics and proportions by Proposition 6.
Corollary 1 (The posterior is the sampler's limit).
Each step of Algorithm 2 leaves invariant. If , one sweep can move from any assignment to any other with positive probability, so the chain is irreducible and aperiodic on its finite state space, and the distribution of after sweeps converges to .
Proof.
A step that redraws one coordinate from its exact conditional is a Metropolis–Hastings step that always accepts, so it leaves the target invariant (formalStatistics, Bayesian Computation and MCMC, Theorem 2), and so does a composition of such steps. Every factor of Theorem 2’s conditional is positive, so each step can set its token to any topic, and a sweep can reach any assignment in one pass. A finite chain whose transition matrix is entrywise positive converges to its unique invariant distribution (ibid., Theorem 5).
∎The harness checks Corollary 1 exactly on a corpus of two documents and seven tokens, small enough to enumerate all assignments. The product of the seven single-token kernels is entrywise positive, and its invariant vector equals the enumerated posterior to ; the sampler itself, run for sweeps, matches every token’s posterior marginal to .
Proposition 6 (Point estimates from one sample).
Given an assignment ,
Proof.
Given and , the topic is and is , by conjugacy; these are their means.
∎These are the Dirichlet-smoothed estimates of formalRAG’s query-likelihood topic (its Theorem 1). Averaging them over the sweeps of one run is safe; averaging across runs is not, because of Proposition 3(a).
Mean-field variational inference
The other classical engine replaces the posterior with the closest member of a factorized family and climbs a lower bound on , the ELBO (formalML, Variational Inference, Definition 1). Its updates need one expectation.
Lemma 2 (The Dirichlet log-moment).
If , then , where is the digamma function.
Proof.
. Differentiating under the integral in , which dominated convergence permits on a neighborhood of where , gives , so
This is the Dirichlet case, with sufficient statistic , of the identity formalStatistics proves for one-parameter families (Exponential Families, Theorem 1), and Blei, Ng, and Jordan (2003, Appendix A.1) derive it the same way.
∎Theorem 3 (Coordinate ascent for LDA).
Under the mean-field family in which the topics, each document’s proportions, and each token’s topic are independent,
the ELBO’s optimal coordinate updates are
with both expectations given by Lemma 2.
Proof.
formalML’s Theorem 2 says the optimal factor for one block is proportional to the exponential of the expected log of that block’s complete conditional. Given everything else, , which gives . The complete conditional of is and that of is , both conjugate, so by formalML’s Proposition 1 the optimal factors are Dirichlet with the expected natural parameters, which are and .
∎These are Blei, Ng, and Jordan’s Eqs. 6–8, derived in their Appendix A.3, with the Dirichlet prior on the topics of their smoothed model (Section 5.4).
Corollary 2 (The ELBO never decreases).
Each update of Theorem 3 maximizes the ELBO over its block, so alternating them never lowers it, and since the ELBO is bounded above by , its values converge.
Proof.
Each update is the exact maximizer in its block (formalML, Theorem 2), so the ELBO after it is at least the ELBO before it; a monotone sequence bounded above converges.
∎The harness records the ELBO after every update of every run and checks that it never falls, and checks our closed form for the bound against scikit-learn’s to relative. Corollary 2 promises convergence of the ELBO’s values, not to the best optimum, and the finance case study shows how far apart those can be.
Remark.
CVB0. Replacing Theorem 2’s counts with their expectations under turns the sampler’s conditional into a deterministic update, CVB0 (Asuncion et al. 2009, Eq. 13; Teh, Newman, and Welling 2006 for the collapsed bound). Asuncion et al. found that the main differences between inference algorithms are attributable to the amount of smoothing, and largely vanish once the hyperparameters are tuned.
The lab’s Gibbs vs. VI tab shows their point on one world. With the topic prior the world was drawn from, , collapsed Gibbs recovers the topics best, at mean error against for coordinate ascent and for the anchors. With a sparse, misspecified the order reverses: for Gibbs and for coordinate ascent.
Evaluating a topic model
The natural score is the probability of held-out documents, but sums over assignments.
Definition 4 (Held-out likelihood and document completion).
The held-out log-likelihood per token of documents is , where is their number of tokens. Plug-in document completion splits each held-out document into its even and odd positions, estimates from the even positions with fixed, and scores the odd positions by their mean of .
Completion needs no marginal likelihood, and it scores a single-membership model by the same rule, with its posterior over clusters. Estimating itself is a trap.
Theorem 4 (The harmonic-mean estimator).
Let be draws from and .
(a) , so is consistent.
(b) : it overestimates in expectation.
(c) With fixed and the proportions continuous, the variance of under is finite if and only if . If is separable and the document holds tokens of anchor words of topic , the integral diverges and the variance is infinite.
Proof.
(a) , and the average of the converges to it. (b) is convex, so by Jensen’s inequality . (c) The second moment is
Every factor of is at most one, and an anchor token of topic contributes . So for a constant , and the integral is at least , where with . That expectation is , which diverges at when .
∎With the common choice , a single anchor token makes the variance infinite. Newton and Raftery (1994) proposed the estimator, Neal (2008) called it the worst Monte Carlo method ever because its infinite variance can hide behind a small sample variance, and Wallach et al. (2009, Section 6.2) found that it wildly overestimated topic models’ held-out likelihood. The harness checks (a) exactly on the seven-token corpus (), (b) by replicates of exact posterior draws, and (c) on a one-anchor document, whose tail integral over grows tenfold each time shrinks a hundredfold, like .
Proposition 7 (Importance sampling from the prior is unbiased).
For draws , the average is an unbiased estimator of with finite variance, and its logarithm underestimates in expectation.
Proof.
, and bounds the variance. Jensen’s inequality for the concave logarithm gives the last claim.
∎Unbiased is not the same as useful. On one-document corpora of , , and tokens, a prior draw’s relative variance is , , and , growing quickly with length (measured, not proved), while the harmonic mean’s is , , and . On a finite collapsed state space the harmonic mean’s variance is finite, and smaller; its defects are the bias of (b) and, with continuous proportions, the infinite variance of (c). Wallach et al. recommend Chib-style and left-to-right estimators (their Algorithms 2 and 3); we compare models by document completion instead.
Definition 5 (Topic coherence).
For a topic’s top words and document frequencies , the UMass coherence is
and the NPMI coherence is the mean over pairs of , with document-level probabilities.
UMass coherence is Mimno et al.’s (2011) Eq. 1, and the PMI form is Newman et al.’s (2010), here normalized to ; unnormalized, it is the distributional semantics topic’s PMI (its Definition 2) between words. Coherence asks whether a topic’s words occur together, which held-out likelihood does not: Chang et al. (2009) found models with better held-out likelihood whose topics people found less meaningful.
Finance case study
80 documents per setting; the same θ_d at every length, so only the sampling noise changes. Small α piles documents at the topics; short documents scatter their observed frequencies outside, and Proposition 2 maps each back to the nearest point in KL divergence.
Where this sits
The distributional semantics topic found the corpus’s sectors in the spectrum of a co-occurrence matrix. This page found them as the corners of a polytope. Documents live in the polytope of their topics (Proposition 1), and fitting a document’s proportions is a KL projection onto it (Proposition 2). The corners are determined only up to relabeling, not at all in general, and not for a topic every document shares at one weight (Propositions 3 and 4). Under separability, and with a nonsingular topic–topic matrix, the anchor words are the corners of the co-occurrence rows and give the topics by convex geometry (Theorem 1). Conjugacy collapses the posterior to one conditional in three counts (Theorem 2), and the digamma identity gives the mean-field updates (Theorem 3). The harmonic-mean estimator is the wrong way to compare the results (Theorem 4).
The capstone imports topic_mixtures as its topic stage, beside the Loughran–McDonald lexicon for tone and the knowledge-graph embeddings for the facts. Its topics are sectors, which every filing already declares; on real filings, without a planted answer, the structure a topic model finds is harder to name.
Honest caveats
Implementation
The companion notebook (notebookPath) imports the topic’s Python module, which owns every number on this page. It imports the distributional semantics topic’s module for the corpus’s generator and the linear text classifiers’ module for its rounding, and through them the finance corpus. The collapsed sampler is pure Python, a few hundredths of a second per sweep over the corpus’s tokens; coordinate ascent is NumPy, with every document’s E-step done at once on scikit-learn’s schedule. Its harness checks:
- Theorem 2 and Corollary 1 by enumerating every assignment of a seven-token corpus, and the sampler against that posterior;
- Theorem 1 at the population level, with and without a singular topic–topic matrix, and Algorithm 1 on sampled corpora;
- Lemma 2, Theorem 3, and Corollary 2 against quadrature, scikit-learn, and every update of a run;
- Theorem 4 and Proposition 7 exactly and by simulation, and every comparison this page states.
The laboratory reads its data from a JSON file that one of the harness’s tests requires to equal the module’s viz_payload() exactly, so the figure cannot drift from the code.
Connections
- Document completion scores held-out tokens by their mean log-probability, the negative of that topic's cross-entropy, so −5.794 nats per token is a perplexity of about 328 over the content-noun vocabulary. perplexity-cross-entropy
- The mixture of unigrams is that topic's multinomial naive Bayes with the class unobserved; started at the gold sectors, its EM keeps the supervised solution, and from random starts it stalls far below it. linear-text-classifiers
- The finance corpus seats its content nouns in Pitman–Yor restaurants, the process that topic connects to Kneser–Ney; Proposition 6's point estimates are the same add-beta Dirichlet posterior means as its additive smoothing. n-gram-models-smoothing
References & Further Reading
- paper Latent Dirichlet Allocation — David M. Blei, Andrew Y. Ng, and Michael I. Jordan (2003) Journal of Machine Learning Research 3: 993–1022. Section 4.3: pLSI; Section 4.4 and Figure 4: the topic simplex embedded in the word simplex; Section 5.2, Eqs. 6–8: the variational updates, derived in Appendix A.3; Appendix A.1: E[log θ_i] = Ψ(α_i) − Ψ(Σα_j) (an unnumbered display); Section 5.4 and Figure 7: smoothed LDA, with a Dirichlet prior on the topics
- paper Finding Scientific Topics — Thomas L. Griffiths and Mark Steyvers (2004) Proceedings of the National Academy of Sciences 101, suppl. 1: 5228–35. Eq. 5: the collapsed full conditional, written with the document-length denominator that Theorem 2 drops as a constant
- paper Probabilistic Latent Semantic Analysis — Thomas Hofmann (1999) Proceedings of UAI 1999, 289–96. Section 3.3 and Figure 2: the aspect model's sub-simplex, and maximum likelihood as minimizing the KL divergence from the empirical distribution
- paper Probabilistic Latent Semantic Indexing — Thomas Hofmann (1999) Proceedings of SIGIR 1999, 50–57 (cited from its metadata)
- paper Learning Topic Models—Going beyond SVD — Sanjeev Arora, Rong Ge, and Ankur Moitra (2012) Proceedings of FOCS 2012, 1–10 (full version arXiv 1204.1956). Definition 1.1: p-separable topic matrices (anchor words are introduced in Section 1's prose); Definition 1.3: the topic–topic matrix R; Theorem 1.4: polynomial-time recovery under a lower bound on R's ℓ1 condition number (Definition 2.1)
- paper A Practical Algorithm for Topic Modeling with Provable Guarantees — Sanjeev Arora, Rong Ge, Yoni Halpern, David Mimno, Ankur Moitra, David Sontag, Yichen Wu, and Michael Zhu (2013) Proceedings of ICML 2013, PMLR 28 (2): 280–88. Section 3, Eqs. 1–2 and the text after them: the rows of the normalized co-occurrence matrix as convex combinations of the anchor rows with coefficients p(z = k | w); Algorithm 4: FastAnchorWords; RecoverL2 is defined in Section 3's prose; Appendix D.1 of the full version (arXiv 1212.4777): the unbiased per-document co-occurrence estimator
- paper When Does Non-Negative Matrix Factorization Give a Correct Decomposition into Parts? — David Donoho and Victoria Stodden (2003) Advances in Neural Information Processing Systems 16. Section 5: the separability condition [R2] (Eq. 5) and Theorem 1, uniqueness of the factorization
- paper Relation between PLSA and NMF and Implications — Eric Gaussier and Cyril Goutte (2005) Proceedings of SIGIR 2005, 601–2. PLSA solves non-negative matrix factorization under the generalized KL divergence (cited from its metadata; the publisher's page refused our request)
- paper Evaluation Methods for Topic Models — Hanna M. Wallach, Iain Murray, Ruslan Salakhutdinov, and David Mimno (2009) Proceedings of ICML 2009, 1105–12. Section 4.2, Eq. 14: the harmonic mean method; Section 6.2: it wildly overestimated held-out likelihood; Algorithm 2: the Chib-style estimator; Algorithm 3: left-to-right evaluation
- paper Approximate Bayesian Inference with the Weighted Likelihood Bootstrap — Michael A. Newton and Adrian E. Raftery (1994) Journal of the Royal Statistical Society, Series B 56 (1): 3–26. The harmonic-mean estimator of the marginal likelihood (Section 7, by Neal's discussion; the article itself is behind a paywall)
- blog The Harmonic Mean of the Likelihood: Worst Monte Carlo Method Ever — Radford M. Neal (2008) The estimator's infinite variance, which may go undetected because the sample variance stays small
- paper Reading Tea Leaves: How Humans Interpret Topic Models — Jonathan Chang, Jordan Boyd-Graber, Sean Gerrish, Chong Wang, and David M. Blei (2009) Advances in Neural Information Processing Systems 22. Models that score better on held-out likelihood can infer less semantically meaningful topics (word and topic intrusion)
- paper Optimizing Semantic Coherence in Topic Models — David Mimno, Hanna M. Wallach, Edmund Talley, Miriam Leenders, and Andrew McCallum (2011) Proceedings of EMNLP 2011, 262–72. Section 4.2, Eq. 1: the coherence score from document co-occurrence counts
- paper Automatic Evaluation of Topic Coherence — David Newman, Jey Han Lau, Karl Grieser, and Timothy Baldwin (2010) Proceedings of NAACL-HLT 2010, 100–108. PMI between a topic's top words, from co-occurrence in an external corpus
- paper Rethinking LDA: Why Priors Matter — Hanna M. Wallach, David Mimno, and Andrew McCallum (2009) Advances in Neural Information Processing Systems 22. An asymmetric prior on the documents' proportions helps; an asymmetric prior on the topics does not
- paper A Collapsed Variational Bayesian Inference Algorithm for Latent Dirichlet Allocation — Yee Whye Teh, David Newman, and Max Welling (2006) Advances in Neural Information Processing Systems 19 (MIT Press, 2007)
- paper On Smoothing and Inference for Topic Models — Arthur Asuncion, Max Welling, Padhraic Smyth, and Yee Whye Teh (2009) Proceedings of UAI 2009, 27–34. Eq. 13: the CVB0 update, the collapsed sampler's conditional applied to expected counts; the main differences between inference algorithms are attributable to the amount of smoothing
- paper The Structure of Economic News — Leland Bybee, Bryan Kelly, Asaf Manela, and Dacheng Xiu (2020) NBER Working Paper 26648. LDA fitted to the Wall Street Journal; published as 'Business News and Business Cycles,' Journal of Finance 79 (5): 3105–47 (2024), doi 10.1111/jofi.13377