Latent Dirichlet Allocation
Paper · 2003 · David M. Blei, Andrew Y. Ng and Michael I. Jordan
Summary
A newspaper article about funding for an opera company shares some vocabulary with other arts coverage and some with stories about money. A short description of the article should preserve both connections. Latent Dirichlet Allocation, or LDA, gives each document a set of proportions over recurring patterns of word use. The authors call these patterns topics. Each topic is a probability distribution over the vocabulary. An article can draw on several topics because the procedure selects a topic separately for each word occurrence. The proportions that govern those selections provide a compact description of the article and link it to other documents in the collection. Topic modeling
Earlier methods used weighted term counts or projected those counts into a smaller space. A closer predecessor, probabilistic latent semantic indexing, already let different words in one article come from different topics. It fitted a blend of topics for every training document, leaving a new article with no blend assigned to it. LDA learns a Dirichlet distribution from which each document draws its proportions. That gives an unfamiliar document access to the same range of mixtures as a training document. With a fixed vocabulary and topic count, the quantities shared across the corpus occupy the same space however many documents contributed to estimating them.
The authors motivate the hierarchy through exchangeability. Reordering the words leaves their joint probability unchanged, while the words still inform one another through the mixture they share. De Finetti’s theorem explains how independent draws conditional on a common random quantity can have this property. Inference goes from the observed words back to the unknown proportions and assignments. Exact computation is generally intractable, so the authors optimize a simpler distribution as an approximation to the posterior. Their training procedure alternates between fitting these local approximations and revising the common parameters. They also develop a smoothed version that gives topic vocabularies prior support where counts are sparse.
LDA gives the lowest held-out perplexity in the reported comparisons on scientific abstracts and news articles. On the evaluated Reuters tasks, classifiers using inferred topic features usually perform better than those given the full word representation, despite a substantial reduction in feature dimension. The hierarchy also gives the best predictive perplexity for a liked movie omitted from each test user’s record. These experiments examine probability, classification, and prediction from a partially observed group. The construction can be used beyond text because the common mixture and the distribution that produces an observation have separate roles. The paper illustrates that flexibility with movie choices and describes how the same arrangement can become part of a larger probabilistic system.
Deep dive: Latent Dirichlet Allocation
Latent Dirichlet Allocation explains how documents mix hidden topics and tests whether those mixtures help classify articles and predict unseen observations. · about 85 minutes to read
The problem and its context
A description short enough to reuse
A document collection presents a practical problem before any probability is calculated. One member might be a brief scientific abstract and another a lengthy article. Any description meant for routine comparison has to represent both in a common form. Keeping a coordinate for every vocabulary entry is one way to do that. It still leaves a procedure working with a potentially large space, and the relationship between coordinates is implicit in the collection. The authors want a shorter description that preserves statistical relationships useful for identifying similar documents, finding relevant ones, spotting unusual material, or assigning a category. The paper traces much of this problem to information retrieval.
The desired compression has to work at the level of evidence. A term can be unusual in the collection and informative about the article that contains it. A group of terms can also reappear together in many articles. Their joint appearance may tell a reader something that any term alone would leave uncertain. One way to use the recurrence is to describe a group of words once, then give each document a way of registering how much it uses that pattern. The patterns can supply common coordinates even to documents whose vocabulary overlaps only in part.
Two forms of variation are involved. Vocabulary patterns recur across documents, while their relative importance changes from one document to another. A description of the collection needs some way to collect evidence for each pattern from many documents. A description of a particular article needs some way to record the combination evident there. These requirements are related but make different demands on the representation. Learning a useful financial vocabulary, for example, leaves open how frequently financial material appears by itself, alongside politics, or alongside reporting about the arts.
A probability distribution gives these demands a sharper form. The documents already in the collection provide evidence for estimating the distribution. A document that arrives afterward should also be something that the same distribution could produce. The paper therefore asks how to represent individual documents and how to assign probability to them. The former can be accomplished by computing a coordinate vector for a document. The latter needs a rule specifying how observations and the quantities behind those coordinates arise.
From term weights to a smaller statistical space
The first approach in the paper’s account starts with a vocabulary and counts occurrences within each document. The counts are then weighted using information about how common the terms are across the collection. If a term appears throughout a corpus, frequent use of it in one particular article gives limited evidence about what sets that article apart. A word characteristic of a small group of documents can be more discriminative. This is the motivation for TF-IDF.
The resulting matrix uses terms as rows and documents as columns. Each column has the same set of coordinates even though the source documents vary in length. This is already a useful abstraction. The authors recognize its ability to highlight distinguishing terms. They also point out that the space remains tied to vocabulary size, and that a column of weights supplies little explicit description of how evidence is shared between documents or how words are associated within them. The pattern may be present in the matrix even when the representation gives it no coordinate of its own.
The next step in their account is latent semantic indexing. It uses singular value decomposition to identify a lower-dimensional linear space that captures much of the variation in the weighted term matrix. The new coordinates combine original vocabulary coordinates. The paper cites the proposal that such combinations can reflect aspects of synonymy, where different words can express similar meanings, and polysemy, where a word may have several meanings. The claim is about what a compressed description could preserve beyond exact vocabulary matches.
Earlier research discussed in the paper used a hypothetical process for generating text to see what a matrix method would recover. This prompted a further question. If a process can be stated in probability terms, why restrict it to explaining the results of a decomposition? Its parameters could be fitted using the observations. The generative approach makes a document’s coordinates part of a probability calculation that also involves its words. Their use in that calculation gives a precise meaning to the otherwise abstract idea that a coordinate explains some of the document.
What changes when a topic is selected for each word
The simplest probability construction considered in the paper uses a unigram distribution. A unigram is an individual word category, and a unigram distribution gives the probabilities of those categories. Applying a single such distribution to a corpus means using the same word probabilities for every position of every article. It estimates a useful background frequency. Its estimate of how likely a term is stays the same when the document provides evidence of a particular subject.
A mixture of unigrams introduces a set of separate word distributions. To generate a document, choose a component and use its distribution for every position in that document. There is now room for articles from several recurring groups. An unknown article can have some probability of belonging to each group, but any one explanation of its generation uses one distribution throughout. The paper associates this construction with Text Classification from Labeled and Unlabeled Documents using EM.
The restriction becomes clear when words from several recurring patterns appear together. One component could learn enough vocabulary to explain both an article’s financial language and its references to music. That component would also have to give suitable probabilities to their combination whenever it was used. If the corpus contains many combinations of recurring patterns, a component for each combination would be a different kind of representation from one that reuses a financial component alongside several others. The choice of a component for all the words governs what kind of reuse is possible.
Hofmann’s probabilistic latent semantic indexing, known as pLSI, moves the topic choice inside the document. Each training document has fitted proportions over shared topics, and a topic can be chosen separately for each occurrence of a word. A financial pattern can contribute in one article alongside arts vocabulary and in another alongside political vocabulary. In both cases the same component supplies probabilities for the financial words. The mixture proportions are what express the difference between the articles.
In this formulation, the identity of the training document and the identity of the observed word are two variables. A hidden topic connects them. Given the topic, the word probabilities stay the same across training documents. The document identity determines the proportions used when drawing that topic. Fitting the construction thus produces topic vocabularies as well as a list of topic-weight vectors indexed by the documents present during estimation.
A new document has no corresponding fitted vector. One might devise a procedure to obtain one after reading the document, or average over the vectors already fitted. The authors’ point is that the initial construction gives no population distribution from which a new vector can come. It also needs more free entries as the training collection gets larger. Their count for pLSI is kV + kM, where k is the topic count, V is the vocabulary size, and M is the number of documents used for fitting. The topic vocabulary entries contribute the first term and the fitted document weights contribute the second. The count follows the paper’s convention of tallying entries in the probability arrays.
LDA keeps shared topics and assigns a probability distribution to the document mixtures. The corresponding count is k + kV. The first contribution describes how the proportions vary across documents, and the second contains the entries of the shared topic vocabularies. An individual article still requires its own calculation. It becomes possible to carry out that calculation for any article in the observation space, using the prior and word distributions learned from the training collection. The parameter saving concerns what must be estimated as part of the shared probability distribution.
What can be learned after word order is set aside
The paper discusses these approaches as versions of the bag-of-words assumption. A bag preserves the identity and multiplicity of the observations in a document. For this purpose, two occurrences of a term provide two pieces of evidence even if they occur far apart. Moving either occurrence elsewhere in the same article leaves the input counts unchanged. At corpus level the order in which documents are listed is also treated as immaterial.
Exchangeability describes this invariance in probability terms. A joint distribution is exchangeable if permuting the variables preserves the probability of their joint outcomes. It can have this property even when seeing one outcome changes what should be expected of the others. Suppose a document receives its own set of word probabilities before any words are seen. Conditional on those probabilities, each word draw can proceed independently. An observer who has yet to discover the probabilities can use the first words they see as evidence about them. This evidence then affects predictions for the remaining words.
For example, suppose part of an unfamiliar article is visible and includes words associated with orchestras. In a corpus where such words are frequently found in coverage of the performing arts, the visible evidence can favor a mixture that devotes more probability to an arts topic. That changes the prediction for other words in the article. The effect would be the same whichever of the visible words happened to be read first under the bag-of-words calculation. The common mixture lets the evidence have this influence without a dependency between neighboring positions.
The precise result invoked in the paper is de Finetti’s representation theorem for infinitely exchangeable sequences. Infinite exchangeability requires every finite subsequence to be exchangeable. Under the theorem, the joint distribution can be represented by first drawing a random parameter and then making independent draws from the same conditional distribution. The authors suppose that the topic assignments within a document are compatible with such a sequence. They then use a common random parameter for the topic choices and fixed conditional distributions for the words the topics produce.
The theorem supplies a reason for introducing a distribution over shared quantities. The specification of that distribution comes from the authors. Their choice is the Dirichlet, whose domain is the space of probability vectors over the topics. The resulting hypothesis is that a document’s retained statistical structure can be described through variation in those probabilities. The paper credits exchangeability with computational advantages and points to richer versions that could preserve distinctions involving groups of words, paragraphs, or order.
Seeing the difference in a simplex
A word probability vector can be drawn as a point in a simplex, the shape formed by all non-negative coordinates that sum to one. With three vocabulary entries this is a triangle. A corner represents a distribution giving all its probability to one word. On an edge, probability is divided between its two corresponding words. Inside the triangle, each word has some probability. Each fitted topic also defines a probability vector and therefore corresponds to a point in the same triangle.
The paper draws a smaller triangle whose corners are topic distributions. A point in this region can be reached by blending the topics. It admits two descriptions. Its location in the vocabulary triangle gives probabilities of words, and the mixture used to reach it gives proportions of topics. These are different coordinates with different roles. The topics determine the region of vocabulary distributions that can be reached. The proportions determine how a document gets to a point in that region.
The unigram procedure places every document at a common point. The mixture of unigrams chooses among the topic corners of the smaller region. In pLSI, fitted training documents can occupy points throughout the region, giving an empirical collection of locations. LDA gives the topic proportions a density and thereby induces a distribution over the word probabilities a document can use. The geometry captures what is added by the prior. The procedure can describe which blends are plausible, including blends that differ from the proportions fitted to every individual training article.
The method, step by step
Draw proportions for a document and a topic for each position
Imagine generating an article with the shared quantities already supplied. Each topic has a list of probabilities indexed by the vocabulary. The collection also has a distribution describing plausible ways to combine the topics. Start the article by drawing one such combination. When producing a word, use the combination to select a topic and then use the topic to select the word. On moving to the next position, choose another topic using the same proportions. On moving to another document, draw another vector of proportions.
This is a hierarchy with a corpus level, a document level, and a position level. The topic vocabularies and the parameter of the distribution over mixtures are shared across the corpus. A particular document’s mixture belongs to that document. Its position-level quantities are the identity of the selected topic and of the resulting word. Only the latter is observed in the text. The distinction between the document mixture and the selected topics makes mixed membership possible. The proportions can favor one topic strongly while leaving other topics available to explain particular words.
The inference and training calculations proceed in the other direction. A document arrives as observed word identities. Possible sources of the words have to be inferred from the shared quantities. When those common quantities themselves are being estimated, the fitted explanations of many documents are combined to revise them. Once the shared quantities have been estimated, the local calculation can be used by itself on a previously unseen article.
How LDA learns topics and represents a document
The steps in order.
The paper represents each vocabulary item by a vector of length V with exactly one active coordinate. The active coordinate specifies the category and has value one. The others have value zero. A sequence of these vectors supplies the observations for a document. The position index n names an occurrence, so identical vectors can appear at many different positions. The index d distinguishes documents. An analogous indicator can give the identity of one selected topic. Its number of available coordinates is k, which is chosen before fitting.
βᵢⱼ = p(wʲ = 1 | zⁱ = 1)
The matrix entry βᵢⱼ is the probability of generating vocabulary item j from topic i. The vector w indicates the observed word, with wʲ equal to one when its j coordinate is active. The vector z indicates the topic, with zⁱ equal to one for topic i. The function p is probability and the vertical bar marks conditioning. The k rows each give a distribution across the V vocabulary entries, so the entries in a row sum to one.
This encoding defines what the probability has access to. The coordinates identify categories instead of expressing relationships between their written forms. A repeated word creates another observation of an existing category. It leaves the number of categories unchanged. A film title can play the same role in a user history. The index is then the identity of a movie, and the group of observations is the history. Defining the observation units is separate from specifying how groups draw on shared components.
The paper begins the generative process with a length draw.
N ∼ Poisson(ξ)
The variable N is the number of word positions, ξ is the parameter of the Poisson distribution, and ∼ means “is drawn from.” The authors use a length independent of the other generating variables and typically proceed with N given. The choice of a Poisson is dispensable. The substantive part of the construction concerns which observations occur once the number of positions is available.
The document’s mixture is generated using the same prior for every article.
θ ∼ Dir(α)
The vector θ gives the probabilities of the k topics for this document. Dir denotes the Dirichlet distribution and α is its vector of positive parameters, with an entry for each topic. Each document has its own draw of θ. Its entries are non-negative and sum to one, so it is a point in the topic simplex. The distribution determined by α assigns density across that simplex.
p(θ | α) = [Γ(∑ᵢ αᵢ) / ∏ᵢ Γ(αᵢ)] ∏ᵢ θᵢ^(αᵢ − 1)
The left side is the density of the document mixture θ given the shared parameter α. The entries θᵢ and αᵢ are the components for topic i. The sum and products indexed by i run over all k topics. The function Γ is the Gamma function, and the bracketed fraction normalizes the density on the simplex. The powers, indicated by ^, govern the variation of density with the mixture coordinates.
The Dirichlet is convenient for more than its domain. It belongs to the exponential family and has finitely many sufficient statistics, quantities through which the observations influence the relevant probability calculation. It also has a conjugacy relationship with multinomial sampling. If the selected topics were observed, the posterior for the mixture would again be a Dirichlet obtained by adding their counts to the prior parameters. The variational method will be able to use a similar update with expected counts in place of observed ones. The observed words alone leave the assignments uncertain, so this convenient relationship supplies part of the solution.
zₙ ∼ Multinomial(θ)
Here zₙ indicates the topic selected at position n. Multinomial is the paper’s term for the selection using the probabilities in θ. Since there is one selection at the position, its outcome is a single category. If that category is topic i, the probability of the draw conditional on θ is θᵢ.
wₙ ∼ p(· | zₙ, β)
The observation at position n is wₙ. The dot denotes a possible vocabulary category, and p is the conditional distribution specified by the row of β for topic zₙ. The mixture θ influences this draw through the identity of the selected topic. At generation time the identity is given to the word draw. At inference time several rows of β may supply substantial probabilities for the same observed word.
Conditional on the document mixture, the topic selection at a later position uses the same probabilities as at an earlier one. Arranging the words into sentences gives no further instruction to either draw. The word emitted at a position can still offer strong evidence about its topic. If a term prominent in art coverage also occurs in writing about education, its probability under each topic matters. Evidence from the rest of the document can then help distinguish which existing topic is a more plausible source for the occurrence.
Give a probability to the observed words
The full probability calculation begins with a choice of mixture and then accounts for all the selected topics and words. Those quantities give a factor for every draw in the generative story.
p(θ, z, w | α, β) = p(θ | α) ∏ₙ [p(zₙ | θ) p(wₙ | zₙ, β)]
Here p is the joint density and probability for the continuous vector θ, the assignments z, and the document w, with α and β supplied. The vector z lists the assignments zₙ and w lists the words wₙ. The product over n runs through the N positions. Its first factor gives the probability of the assigned topic under the mixture, and its second gives the probability of the word conditional on that assignment and the vocabulary matrix. The expression takes the length as given.
The calculation for an observed article has to allow for all the choices the reader did not see. A discrete topic can be summed over at each position. A vector of proportions can vary throughout the simplex, so its contribution is integrated. The per-position topic sums take place at a given mixture. The integral ranges over all possible mixtures after the probabilities of the words have been combined for each candidate mixture.
p(w | α, β) = ∫ p(θ | α) ∏ₙ [∑_{zₙ} p(zₙ | θ) p(wₙ | zₙ, β)] dθ
The left side is the marginal probability of the words w for shared α and β. The sum marked ∑_{zₙ} visits the possible topic selections at position n. The product multiplies the resulting probabilities across the document. The density p(θ | α) supplies the weighting for integration, and dθ means the integral ranges over the simplex for θ. Marginalization is the operation of removing variables through these sums and integrals.
One useful detail is the position of the integral. The likelihood at a given θ is a product over the whole article, and the distribution over θ weights that entire product. This is how evidence can accrue for a topic mixture from multiple observations. Giving each word a separate integral over its own proportions would average out the shared mixture before the observations could jointly support it. The order of operations preserves the dependence that made exchangeability useful for the problem.
For a fixed θ, the sum at a position gives the word probability under a blend of the topic vocabularies.
p(wₙ | θ, β) = ∑ᵢ θᵢ βᵢᵥ
Here v denotes the vocabulary index of the observed word wₙ. The term βᵢᵥ is the probability of that word under topic i, θᵢ is the mixture’s weight for that topic, and the sum covers the k topics. The function p gives the single-position probability conditional on θ and β. There is a corresponding mixture probability for every entry in the vocabulary.
After summing out all topic assignments, LDA can be read as a continuous mixture of unigram distributions. Each possible θ induces one set of unigram probabilities for a document; the Dirichlet mixes over this continuous set of possibilities. This is distinct from the finite mixture of unigrams used for comparison, whose possible document-wide vocabularies are precisely its individual components. In the continuous interpretation, the finite set of topics determines the possible blends, and θ determines which blend produces the words.
The paper illustrates the resulting flexibility with three vocabulary entries and four topics. The vocabulary simplex is again a triangle. Each of the four topics can be marked at a location in it, and a blend can yield other locations within the region spanned by those points. Its illustration shows several regions of high density in the induced distribution of word probabilities. The example makes a point about parameter economy. Learning a small set of topic vocabularies and one prior over proportions can yield a distribution over word probabilities with considerably more structure than a fixed unigram.
At the corpus level there is a separate set of proportions to average over for every document. Shared quantities appear in each calculation.
p(D | α, β) = ∏d p(w_d | α, β)
The symbol D denotes the corpus, and w_d is the observed document at index d. The product over d runs across all M documents. Each factor is the marginal probability at the document’s own length, using the common α and β. Conditional on those shared parameters, every document contributes its own factor. Estimating the parameters from the corpus lets observations from many documents shape all future factors.
A permutation of positions in a document rearranges its product without changing its value. A permutation of documents does the same for the corpus product. The assumption about assignments that motivates the within-document expression can also be written directly.
p(z₁, …, z_N) = p(z_{π(1)}, …, z_{π(N)})
The assignments z₁ through z_N correspond to the N positions. The function p gives their joint probability and π is a permutation of the position indices. The ellipses stand for the intervening terms. The right side visits all of the same assignments in the permuted order. The condition says that assignments have equal probability when they differ only in this rearrangement. Using a common draw of θ and the same word distribution for a given topic at every position yields the analogous invariance for words and topics together.
Why the posterior requires an approximation
To interpret an observed article, the aim is a distribution on the hidden quantities conditional on its words. A particular assignment of a word can be plausible because its topic gives the word high probability, because that topic is supported by the rest of the article, or through a combination of the two. An exact account considers all such interactions. It is obtained in principle by normalizing the full probability for the observed article and any candidate hidden configuration.
posterior(θ, z) = joint(θ, z, w) ÷ evidence(w)
In this form of Bayes’ rule, α and β are fixed throughout. The function posterior gives the density and mass for a candidate mixture θ and assignment sequence z after observing the words w. The function joint evaluates that candidate together with w in the generative distribution. The evidence is the marginal probability of w, obtained by allowing all candidate mixtures and assignments to contribute. Division by this probability gives a normalized distribution over the hidden quantities.
The terms needed for that normalization reveal the difficulty. Write a word probability at a given mixture as a sum of topic-specific probabilities weighted by the respective mixture coordinates. The probability of the whole document at that mixture multiplies these sums. The integral then has to account for the ways in which the same coordinates can occur in the factors for many positions. The fact that the prior is conjugate to a multinomial over known topic choices does not give a direct calculation for this integral with the choices hidden.
Another way to see the problem is to consider an ambiguous word with support from arts and education. Its inferred assignment changes how much evidence the document supplies for each of those proportions. At the same time, deciding how much evidence the document supplies changes the probabilities of its possible assignments. The true posterior is a joint account of these dependencies. The authors connect the marginal integral to a generalization of the Dirichlet involving special hypergeometric functions and treat exact computation as generally intractable.
The paper considers this a problem of calculation, with the posterior already defined by the generative distribution. A number of approximation strategies could operate on that target. The authors develop a variational strategy that searches a family of computable distributions for one suited to the document. The restrictions on the family are chosen so that useful expectations and adjustments remain available in an iterative algorithm.
Fit an approximation with separate factors
The approximation retains a Dirichlet factor for the mixture. It also gives every position its own distribution over topics. Within this family the approximate mixture and assignment distributions factor, and each position gets a separate factor. They can all be optimized using the same observations even though the final joint approximation expresses their probabilities as a product.
q(θ, z | γ, φ) = q(θ | γ) ∏ₙ q(zₙ | φₙ)
The symbol q denotes the approximating distribution. Its factor for θ is Dirichlet with parameter γ. Its factor for the assignment zₙ is categorical with vector of probabilities φₙ, and φ collects these vectors. The product indexed by n covers the N word positions. The variables θ and z are the latent mixture and assignments from the original construction. The parameters γ and φ determine their approximate distribution for this document.
The generative parameters and the variational ones serve different purposes. The topic matrix β tells the procedure what probability each topic gives a word across the corpus. The Dirichlet parameter α supplies the prior for every new mixture. The variational parameters depend on the words in the current document. If two articles share the same fitted α and β, each can still have its own γ and position distributions. The common quantities are what make their local descriptions comparable.
The authors choose the approximate distribution by maximizing a lower bound on the marginal log probability of the document. To obtain it, they write that probability as an integral and sum involving q, then apply Jensen’s inequality to move the logarithm inside the expectation. The expression that results has one term scoring plausible hidden configurations and another involving the entropy, or uncertainty, of the approximate distribution.
L = E_q[log joint(θ, z, w)] − E_q[log q(θ, z | γ, φ)]
The quantity L is the variational lower bound. The operator E_q averages over candidate mixtures θ and assignments z using q, and log is the natural logarithm. The joint function is the complete generative probability or density for those latent quantities and the observed words w at the given α and β. The parameters γ and φ define q. The negative expectation of log q is its entropy. The bound can be evaluated from these expectations even when the marginal probability needed for the exact posterior is hard to calculate.
log evidence(w) = L + D_KL(q ∥ posterior)
Here evidence(w) is the marginal probability of the observed words, and L is the bound at the current parameters. The symbol D_KL denotes Kullback–Leibler divergence. The double bar ∥ separates its ordered arguments, with the approximating q first and the exact posterior second. The divergence is non-negative and gives the gap between the bound and the log evidence. For fixed shared parameters, increasing the bound makes this gap smaller. The calculation selects an approximation through that objective without having to evaluate the gap itself.
The prior, topic selection, and word emission each contribute one expected log factor to L. The terms for the approximation are the entropies of the mixture factor and of the position factors. This division of the objective gives a way to see what each update can affect. Changing a position responsibility changes the importance of possible word-emission probabilities at that position. Changing the Dirichlet factor changes expectations about the mixture on which all the positions rely.
Compute the expected log proportions and refine the assignments
The Dirichlet expectation needed for topic assignment concerns the logarithm of a mixture proportion. The appendix obtains it by expressing the Dirichlet as a member of the exponential family. The sufficient statistics are the logarithms of the coordinates. Differentiating the logarithm of the normalization factor with respect to its natural parameter gives the expectation of the corresponding statistic.
aᵢ = Ψ(γᵢ) − Ψ(∑ⱼ γⱼ)
The quantity aᵢ stands for the expectation of log θᵢ under the variational Dirichlet, with θᵢ the mixture weight for topic i. The function Ψ is digamma, the derivative of log Γ. The parameter γᵢ belongs to topic i in the approximation, and the sum over j includes all k components of γ. The operation averages a logarithm under a distribution. The logarithm of an average topic weight would be a different quantity.
With this notation the appendix’s expanded bound can be arranged so that each line comes from a specific part of the probability or approximation.
L = log Γ(∑ᵢ αᵢ) − ∑ᵢ log Γ(αᵢ) + ∑ᵢ (αᵢ − 1)aᵢ
+ ∑ₙ ∑ᵢ φₙᵢ aᵢ
+ ∑ₙ ∑ᵢ ∑ⱼ φₙᵢ wₙʲ log βᵢⱼ
− log Γ(∑ᵢ γᵢ) + ∑ᵢ log Γ(γᵢ) − ∑ᵢ (γᵢ − 1)aᵢ
− ∑ₙ ∑ᵢ φₙᵢ log φₙᵢ
The quantity L is the bound for the document. The index i covers topics, n covers the word positions, and j in the word term covers vocabulary entries. The parameters αᵢ and γᵢ belong to the prior and variational Dirichlet distributions. The function Γ is Gamma, log is the natural logarithm, and aᵢ is the expected log topic weight. The value φₙᵢ is the approximate topic probability for position n, and wₙʲ indicates whether word j occurs at that position. The entry βᵢⱼ supplies the probability of word j under topic i. The lines contain the expected log prior, assignment probabilities, word probabilities, and then the mixture and assignment entropy terms.
For the categorical update, the appendix holds γ fixed. The probabilities at each position must sum to one, so the optimization differentiates with a constraint enforcing that total. Solving the resulting equation gives an unnormalized weight made from the word likelihood and the current expected log mixture weight.
φₙᵢ ∝ βᵢᵥ exp(aᵢ)
The responsibility φₙᵢ is the approximate probability that topic i generated the word at n. The index v identifies the vocabulary entry at this position, and βᵢᵥ is its probability under i. The term aᵢ is the expectation just calculated and exp is the exponential function. The proportionality sign ∝ means the resulting values are normalized over the topics for this position. Each position thus gives a distribution over assignments.
Consider what happens when a word is characteristic of several topics. Its vocabulary probability alone will support more than one explanation. The expected log weights incorporate the current document mixture, which in turn reflects the other observations. If that evidence strongly favors one of the plausible topics, the assignment can become concentrated. Where the evidence is more evenly divided, the position can pass a fractional contribution to several topics. The update uses one observed word directly and the document as a whole through γ.
The coordinate update for γ holds those responsibilities in place. Each entry receives its prior contribution along with the expected topic count in the document.
γᵢ = αᵢ + ∑ₙ φₙᵢ
The left side is the updated Dirichlet parameter for topic i. The parameter αᵢ gives the corresponding prior contribution. The sum over n runs across the observed positions and adds the responsibility φₙᵢ for i at each one. It is the expectation under the approximation of the number of positions attributed to that topic. This equation gives the same form of update as Dirichlet conjugacy with known counts, using expected allocations instead.
Each update takes information from the other. The word responsibilities need γ to assess topic proportions. The new γ needs the responsibilities to estimate topic counts. Iteration allows an early responsibility for an ambiguous word to change as a clearer picture of the article emerges. At convergence the fit consists of a Dirichlet factor and a collection of categorical factors for this article. Though the approximation factors, the fitted parameters have responded to evidence from throughout the document.
The authors use the resulting γ as the document’s feature vector. Its entries are parameters of a probability distribution over mixtures. Their scale includes the contribution from the prior and the quantity of evidence allocated from that article. Subtracting the prior coordinate reveals the expected count attributable to the document for that component. This interpretation is used in the paper’s news example. The same parameter vector can be given to a classifier without requiring the words to be partitioned into exclusive groups.
The paper reports a local computational cost of O((N + 1)k) for a variational iteration, where N is the number of observations and k counts the topics. The notation O refers to how operation counts grow. The work covers the assignment weights for the positions and the update of the document-level factor. The authors say that empirically the iteration count is on the order of document length, yielding a rough local cost of order N²k. A long and a short article end up with equally many coordinates in their feature vectors. The effort to obtain those coordinates depends on their lengths.
Alternate document inference with estimates shared by the corpus
Learning the topic vocabularies and the Dirichlet parameter begins with an objective for all the documents. The aim is to make their observed words likely after accounting for the latent variables. The product of marginal probabilities at corpus level becomes a sum of their logarithms.
ℓ(α, β) = ∑d log p(w_d | α, β)
The quantity ℓ is the log likelihood of the training corpus for shared parameters α and β. The sum ranges over its M documents indexed by d, with observations denoted w_d. The probability p(w_d | α, β) is the marginal document probability with the mixture and topics integrated or summed out. The operation log gives the contribution to the objective from that document.
The hard integral makes direct optimization of this objective impractical. The authors replace each document’s log likelihood with its lower bound and alternate updates on the resulting corpus objective. During the variational E-step they hold the common parameters fixed and fit a local approximation for each training article. Those approximations provide expected statistics. During the M-step they hold the approximations fixed and use their statistics to improve the bound by updating the shared parameters. This is the paper’s variational form of expectation–maximization, or EM. Estimating the prior parameter from the corpus is the empirical Bayes part of the procedure.
Under the current parameters, a liability of making hard topic decisions would be to give all of an ambiguous word’s evidence to one topic. The variational E-step distributes that evidence according to the fitted responsibilities. In the M-step, every topic accumulates just the part of an occurrence attributed to it. For a given vocabulary entry, the accumulated evidence determines the corresponding entry in the topic distribution after normalization.
βᵢⱼ ∝ ∑d ∑ₙ φ*_{dni} wʲ_{dn}
The quantity βᵢⱼ is the probability of vocabulary entry j in topic i. The outer sum runs over training documents d, and the inner sum runs over the N_d positions of each document. The indicator wʲ_{dn} identifies an occurrence of j at position n. The value φ*_{dni} is its approximate responsibility for topic i at the current E-step solution, with the star indicating the fitted value. The proportionality is resolved by normalizing the accumulated counts over the vocabulary for each topic.
The update links document inference to corpus-wide learning. An observation in one article can help revise a topic’s word probabilities, which then enter the local calculations for other articles. A topic can gather evidence for its vocabulary across documents whose mixtures are very different. The resulting word probabilities represent common patterns, while the mixture tells the procedure where those patterns are useful in the current article.
The parameter α requires an iterative update. Its entries affect the Dirichlet jointly through the normalization term. For the M-step the expectations from the document distributions can be held fixed, so the derivative of the prior contribution can be written directly.
gᵢ = M[Ψ(∑ⱼ αⱼ) − Ψ(αᵢ)] + ∑d [Ψ(γ_{di}) − Ψ(∑ⱼ γ_{dj})]
The component gᵢ is the derivative of the corpus bound with respect to αᵢ. The symbol M is the number of documents, and Ψ is digamma. The variational Dirichlet parameter for topic i in document d is γ_{di}, and γ_{dj} is the analogous component for topic j. The sums indexed by j span the topics, and the sum indexed by d spans the training documents. The first contribution comes from the prior’s normalizer and the second adds the fitted documents’ expected log proportions.
The paper uses Newton–Raphson optimization, which combines this gradient with the Hessian, the matrix of second derivatives. The Hessian takes a form that avoids a generic dense matrix inversion.
H = diag(h) + s 𝟙𝟙ᵀ
Here H is the Hessian with respect to α, diag(h) places the entries of the vector h on its diagonal, and s is a scalar. The vector 𝟙 has every entry equal to one, and 𝟙ᵀ is its transpose. In differentiating the gradient, hᵢ comes from the negative of M times the derivative of Ψ at αᵢ. The common term s comes from M times that derivative at the sum of the prior parameters. The second matrix therefore has a repeated entry in every position.
c = [∑ⱼ (gⱼ ÷ hⱼ)] ÷ [s⁻¹ + ∑ⱼ hⱼ⁻¹]
The symbol c is a correction shared by all gradient coordinates in applying the inverse Hessian. The values gⱼ and hⱼ are the corresponding gradient and diagonal entries, respectively. The notation ⁻¹ gives the reciprocal of the scalars s and hⱼ. Both sums run over the k topic coordinates. This correction collects the influence of the common Hessian term without needing a full matrix of inverse entries.
(H⁻¹g)ᵢ = (gᵢ − c) ÷ hᵢ
The left side selects coordinate i of the inverse Hessian H⁻¹ applied to the gradient vector g. The right side uses gradient component gᵢ, correction c, and diagonal contribution hᵢ. Computing c involves sums over parameter coordinates, after which each corresponding output can be found separately. The appendix derives this expression using the matrix inversion lemma.
α_new = α_old − H(α_old)⁻¹ g(α_old)
The symbols α_old and α_new denote the values before and after a Newton–Raphson step. The notation H(α_old) and g(α_old) indicates where the Hessian and gradient are evaluated. Applying the inverse to the gradient gives the quantity to subtract from the old parameter vector. The linear-time calculation concerns this structured operation in the Dirichlet update. Collecting the document statistics and repeating the local fits are additional parts of estimation.
As the E-step and M-step alternate, they improve a shared lower bound. Their convergence is a property of the optimization at the current fit. The paper notes that mixture estimation can encounter local maxima with coincident components. For each experimental topic, the authors build an initial vocabulary from five documents, scale the documents’ combined effective length down to two words, and smooth the starting distribution over that vocabulary. This supplies a starting point that differentiates components without giving the seeds the weight of their full documents.
Smooth a topic’s vocabulary by giving it a prior
The expected-count estimate of β can have very small entries where a topic receives little training evidence for a word. When there is no count, a maximum likelihood estimate can place zero probability on a category in the vocabulary. An article containing such a category can be assigned negligible probability if the other topics that have support in the article also assign it little weight. Large vocabularies make the scarcity of counts a practical issue even when a category is represented in the probability space.
For smoothing, the paper gives each topic vocabulary its own Dirichlet prior. The prior parameters are the same across the vocabulary within a row, giving symmetrical prior treatment to those entries. The observed words and their approximate assignments then determine which entries receive further support.
βᵢ ∼ Dir(η, …, η)
The row βᵢ is topic i’s probability vector over the V vocabulary items. The operation ∼ denotes a draw from the Dirichlet family Dir. The scalar η appears at every coordinate, as indicated by the ellipsis. The rows are drawn independently under the prior. Once evidence is supplied, the posterior vocabulary distributions can favor different words in different topics.
The authors relate this extension to smoothing a single multinomial. With one distribution, a uniform Dirichlet prior gives a posterior mean corresponding to Laplace smoothing. In a mixture the word assignments are themselves uncertain, making the joint posterior with random topic vocabularies intractable. Treating the rows as latent quantities requires a new approximation. The authors use the same factorization principle as in local inference and add a Dirichlet factor for each row.
q(β, θ, z | λ, γ, φ) = [∏ᵢ Dir(βᵢ | λᵢ)] [∏d q_d(θ_d, z_d | γ_d, φ_d)]
Here β collects the topic vocabularies, θ collects the document mixtures, and z collects the position assignments. The first product ranges over the topics i and assigns each βᵢ a Dirichlet factor parameterized by λᵢ. The second product ranges over documents d. Each q_d uses the local factors for the mixture θ_d and assignments z_d, with document parameters γ_d and φ_d. Without subscripts, λ, γ, and φ collect their respective variational parameters across the fit.
In the basic case the word term uses the logarithm of the fitted probability entry. When the row is random, the corresponding term is its expected log probability under that row’s variational Dirichlet. The word responsibilities can still combine this likelihood contribution with a term from the expected log mixture weights. Those responsibilities provide both the local evidence for a document’s proportions and the shared evidence used to update a topic’s vocabulary distribution.
λᵢⱼ = η + ∑d ∑ₙ φ*_{dni} wʲ_{dn}
The coordinate λᵢⱼ parameterizes the variational Dirichlet for topic i at vocabulary entry j. The quantity η is the shared prior parameter for that entry. The sum over d considers the training documents, and the sum over n considers the positions in each. The responsibility φ*{dni} is the fitted topic probability, and wʲ{dn} indicates that the word at the position is j. The double sum is the same expected count used by the basic topic-word update. Here it is added to a prior parameter to obtain a posterior factor.
The update shows the extent of the change. A vocabulary entry with no expected count in a topic can still receive prior support, because its coordinate is present in the row. The procedure can use an approximate distribution over that row instead of one fitted probability vector. The authors continue to estimate α and η by approximate empirical Bayes. In this version, the topic distributions and document proportions both have variational posterior factors, while the priors governing them are fitted using the corpus.
Experiments and results
Inspecting the topic mixture of a news story
The authors first make the fitted quantities visible in an example from newswire. The training material for this illustration consists of 16,000 TREC AP documents. The authors exclude common words using a standard list and fit a configuration with 100 topics. For selected topic vocabularies they display words that receive high probabilities. Those words suggest names such as arts, budgets, children, and education. The names describe how the authors read the fitted word distributions. They play no role in estimating the probabilities or computing the local assignments.
A story about grants from the William Randolph Hearst Foundation to performing arts institutions is set aside from parameter fitting. Its contents bring together institutions, funding, and education. From its words, the authors infer a distribution over its mixture and an approximate assignment distribution for each position. The topic vocabularies learned from the rest of the corpus supply a common vocabulary for describing what happens in the article. Its distinctive combination emerges through the local fit.
The analysis compares the fitted Dirichlet parameter with the prior. For four topics the variational entry is at least 1 greater than its corresponding prior entry. The difference measures the expected number of assignments to that topic in the example. The largest contributions can thus be traced to evidence in the article. At the position level the paper displays topic colors where the responsibility exceeds 0.9. The coloring rule identifies concentrated local evidence, while the document-level calculation also gives weight to positions that divide their responsibility among topics.
The two displays answer different questions about the same fit. A high document-level contribution tells how much support a topic collects from the article. The marked words show where that support is especially strong for individual positions. The display also reveals a problem with the unit of observation. Words that jointly form the foundation’s name can be assigned to several topics. The fit can use the document’s other words to alter what is plausible at those positions, but the grouping of the name itself never enters the likelihood.
Measuring likelihood on held-out documents
The aggregate document experiment evaluates probability on articles that were excluded from fitting. One collection consists of 5,225 C. Elegans abstracts with 28,414 unique terms. The other is a TREC AP newswire subset with 16,333 articles and 23,075 unique terms. This AP total describes the document comparison, whose setup is distinct from the illustrative fit. The authors train on 90% of each collection and reserve 10% for testing. They remove a list of 50 stop words from both corpora. For AP they also remove words that occur once.
The comparison is unsupervised. The objective is to assign probability to the retained observations in held-out documents. Four approaches appear in the comparison. The unigram uses a common distribution across the corpus. The mixture of unigrams makes a component choice for an entire article. pLSI and LDA can vary the topic across positions inside an article. This common bag-of-words setup lets the comparison focus on use of the grouping and on the treatment of variation across documents. For the latent-variable approaches the paper gives an EM stopping threshold of an average change in expected log likelihood smaller than 0.001%.
The metric is perplexity. It combines the log probabilities of the test documents and divides by the number of observed word positions. The normalization gives a common scale for test collections with different total amounts of text, and the negative sign makes lower values correspond to better probability.
perplexity(D_test) = exp(−[∑d log p(w_d)] ÷ [∑d N_d])
Here D_test denotes the testing collection, and the sums run over its M documents indexed by d. The symbol w_d refers to the observed words in document d and N_d to its length. The term p(w_d) is the probability assigned by the procedure being evaluated. The function log takes the logarithm, and exp applies the exponential to the negative average. The score is the reciprocal of the geometric mean likelihood per word.
The calculation assigns a contribution to every retained occurrence. Long articles can therefore supply more evidence to the aggregate than short ones. A poor probability on part of an article can be consequential even when other words in the same article are well supported. This is central to interpreting the baseline analysis. A fitted component can provide a good account of the distinctive terms in an article while giving very little probability to a word it rarely encountered in training. That weakness affects the document likelihood and hence the aggregate score. The authors use perplexity here to evaluate unordered observations. Each procedure is judged on the vocabulary evidence its probability actually uses.
Why the uncorrected baselines overfit
Before the main comparison, the paper reports test scores for versions of the mixture of unigrams and pLSI that exhibit severe overfitting. Both have a mechanism through which a fitted distribution gives too little probability to a new article. The authors locate these mechanisms in different quantities. For the mixture of unigrams, the difficulty is estimating a vocabulary distribution from the documents assigned to a component. For pLSI, the difficulty in this analysis is finding a sufficiently plausible combination among the mixtures available at prediction time.
With a mixture of unigrams, the posterior over the topic of a training document can become so peaked that most of its evidence is assigned to a single component. If a word is missing from the subset that supplies a component’s training evidence, the estimated probability of that word can be very small. An unfamiliar document can resemble the subset on most of its terms while also containing some that are poorly supported by the fitted vocabulary. Because the same component accounts for the whole article, every term affects the probability under that component. Increasing the topic count can intensify the problem by creating finer partitions of the corpus.
In the AP overfitting table the mixture of unigrams records held-out perplexity of 22,266 at 2 topics. At 5 topics the same uncorrected baseline gives 2.20 × 10⁸. Those values show the sensitivity of this prediction procedure to component-level support. The authors address the problem with the variational Bayesian smoothing scheme. Giving every vocabulary entry support under every component reduces the chance that a missing count in a component will make an otherwise plausible article exceedingly unlikely.
For pLSI, one way to score a new article is to evaluate it under every training document’s mixture. This is possible even when the new document itself had no mixture fitted during training. The calculation combines the marginal probability at each position under a given training mixture, then averages the resulting whole-document probabilities.
p(w) = ∑d p(d) ∏ₙ [∑z p(wₙ | z) p(z | d)]
The symbol w denotes the new article and wₙ its word at position n. The outer sum ranges over training identities d, with corresponding weight p(d). The inner sum ranges over the topics z. The factor p(wₙ | z) is the topic-specific probability of the observed word, and p(z | d) is the mixture weight from the training article. The product over n applies that same candidate mixture at every position before the document probability is averaged over d.
This way of predicting amounts to placing probability only on proportions seen during fitting. An observed document may need several topics in an unfamiliar balance. One fitted mixture might explain its arts words well, while another explains the educational vocabulary. To contribute much to the probability, a candidate mixture needs to support the document’s observations jointly. Having a good candidate for each part in isolation can still yield a poor probability if few available mixtures fit the combination.
Held-out AP perplexity for the uncorrected baselines at 2 topics
Averaging over the fitted pLSI mixtures gives lower perplexity than using the uncorrected mixture of unigrams.
The numbers
| System or setting | perplexity |
|---|---|
| Mixture of unigrams | 22,266 |
| pLSI (this paper) | 7,052 |
The star identifies the better setting in this particular comparison of raw baselines. The same AP table gives pLSI test perplexity of 17,588 at 5 topics and 63,800 at 10 topics when scoring through the fitted training mixtures. The authors also describe similar overfitting in the nematode corpus. The trends show that adding topics can make generalization worse under these prediction procedures, even when a larger inventory adds ways to describe the training set.
The authors discuss folding in as another way to use pLSI on unseen material. The fitted word distributions are retained and the new article’s words are used to find a fresh mixture of them. The candidate mixtures are then free to include combinations that were absent from the empirical list. The paper observes that fitting the proportions to the words being scored gives pLSI additional latitude in a document probability comparison. LDA already has a probability distribution across the possible mixtures. Its document probability averages over that distribution, and inference on the words gives a posterior for the proportions.
In the main comparison the authors adjust both latent baselines for overfitting. On the scientific abstracts and AP newswire, the latent approaches give better perplexity than the unigram reference, and LDA consistently has the strongest reported perplexity. The corrected comparisons are presented as curves over topic counts. The tabulated values describe the diagnostic comparison before the corrections. The headline result concerns the ordering of the corrected curves on the held-out documents.
Testing how much classification information survives compression
In the text classification experiment, the authors give a classifier an LDA representation and ask how it performs with that evidence. Text with a particular label may share broad vocabulary patterns. It might also contain a distinctive word that matters to the decision precisely because it carries a distinction that a broad topic would blur. The unsupervised likelihood objective gives the topics no direct information about what the labels distinguish. Testing the classifier lets the authors see whether those labels can still be predicted using only the compact features.
The paper describes its Reuters-21578 data as containing 8000 documents and 15,818 words. It makes separate binary comparisons for EARN versus NOT EARN and GRAIN versus NOT GRAIN. Shared topic parameters are estimated using all the documents with no reference to their labels. The fitted representation of a document is the variational Dirichlet parameter γ, whose coordinates summarize the prior and the expected evidence for topics in that particular document.
The authors use SVMLight to fit support vector machines. A support vector machine takes examples described by features and uses their labels to learn a rule for distinguishing the classes. One version receives all the word features; the other receives the topic representation from a fit with 50 topics. This directly changes the information available to the classification rule. The topic features can combine evidence from many words within a coordinate. The full feature representation gives the classifier separate access to those words.
The paper reports a reduction of 99.6 percent in the feature space. That figure measures the compression of the classifier’s input, and the performance comparison is made separately. The plotted tests vary the proportion of labeled training data. The authors describe little loss of classification performance with the topic representation and an improvement in nearly all displayed cases. This is evidence that the two Reuters distinctions can be made using the inferred features despite the much smaller input space. The authors regard the result as preliminary and suggest the representation as a possible filtering step for classification.
The access conditions are part of that finding. Learning the topics uses vocabulary evidence from the whole collection, including texts whose labels are reserved from the classifier’s training portion. The test measures what can be done when this unlabeled collection is available before classification. In the held-out document experiment, evaluation articles are also excluded from estimation of the shared representation. Those experiments therefore answer different questions about what an LDA fit can do. Reuters measures the usefulness of inferred features for the specified tasks, with the dimensions of those features measured directly and the work of computing them belonging to a separate part of the procedure.
Predicting a positive movie rating from the rest of a history
The EachMovie experiment tests the hierarchy on groups of observations whose categories are movies. A user plays the role of the document, and a positively rated movie plays the role of an observed word. Under LDA, a topic supplies a distribution over movies and a user’s history can provide evidence for several such patterns. The assigned probabilities summarize associations among the positive choices. They are learned across users, then used to make a prediction for a history absent from training.
Users qualify for inclusion if they gave positive ratings to 100 or more movies. A rating counts as positive if it is four or five stars on the five-star scale. The training split has 3300 users and the testing split 390 users, with a vocabulary of 1600 movies. All positive choices in the training histories are visible. For each test user one positive movie is omitted, and the others are supplied as evidence. The methods are scored on the probability they give to the omitted movie. The history used to infer a mixture therefore excludes the observation whose probability enters the test measure.
A mixture of unigrams updates its uncertainty about which component produced the history. Its prediction is an average of the component-specific movie probabilities with these posterior weights.
p(w | w_obs) = ∑z p(w | z) p(z | w_obs)
The symbol w identifies the candidate movie and w_obs is the set of supplied positive observations. The sum spans the components z. The term p(w | z) is the probability of the movie under a component, and p(z | w_obs) is the component’s weight after seeing the history. In the mixture of unigrams this is the posterior probability of the one component assigned to the user. The paper also uses this weighted sum for pLSI, computing its weights by folding in the observed movies with the topic vocabularies held fixed.
LDA instead has a posterior over user mixtures and computes the probability of the candidate under that distribution. The topics contribute through the same word-generation rule as for an article. Here the conditional likelihood for each candidate category is the probability of a movie under a topic.
p(w | w_obs) = ∫ [∑z p(w | z) p(z | θ)] p(θ | w_obs) dθ
Here θ is the mixture for the test user, and p(θ | w_obs) is its posterior given the visible history. The sum over z averages the movie probability p(w | z) using the chances p(z | θ) of choosing each topic under that mixture. The differential dθ indicates integration over possible mixtures. The variational Dirichlet supplies the paper’s approximation to the posterior in this calculation. The sum and integral can be exchanged, giving a combination of k Dirichlet expectations, one for each topic weight. The candidate probability is linear in those weights.
Predictive perplexity summarizes the resulting conditional probabilities. Unlike the sum over every word in the held-out document test, the sum here contains one withheld observation for every test user. Normalization by the number of users therefore measures the negative average log probability assigned to those observations, expressed on the perplexity scale.
predictive_perplexity(D_test) = exp(−[∑d log p(w_{d,N_d} | w_{d,1:N_d−1})] ÷ M)
The test set D_test consists of the M testing users. The index d identifies a user, and N_d counts that user’s positive observations before withholding an item. The notation w_{d,N_d} names the hidden movie in the indexed representation, and w_{d,1:N_d−1} gives the visible observations. The function p is the conditional probability of the hidden movie, log takes its logarithm, and exp transforms the negative mean log probability. Lower predictive perplexity means the procedure reserved more probability for the withheld positive choices in this test.
Once overfitting is accounted for in pLSI and the mixture of unigrams, the published EachMovie curves show that LDA achieves the lowest predictive perplexities. This result applies to users selected for having substantial positive histories and to a prediction of one already established positive preference. It shows that the shared topics and local mixture can be useful where the observed categories are films. The held-out text tests evaluate probability for complete documents, the Reuters tests evaluate labels from compressed features, and the preference experiment checks whether a partial history can support a prediction about the part the procedure has yet to see.
What the ablations show
The paper contains no component-removal ablations of LDA. Its closest evidence comes from the comparison with related distributions, a sweep over topic counts, an investigation of why baseline perplexities rise, and a close reading of the fitted quantities for an AP article. Each comparison makes a different part of the argument testable. The unigram baseline establishes what a collection-wide frequency estimate can do. The other baselines show how the placement of latent variables determines the ways a document can share evidence with the rest of the corpus. The AP example lets a reader see where a statistical explanation agrees with the structure of an actual story and where it misses a connection.
What document boundaries contribute
Consider two corpora with the same vocabulary totals. In one, the words associated with a particular subject tend to be concentrated in the same documents. In the other, those words are dispersed among documents with a wider variety of contents. Pooling the observations into a single unigram distribution would give the same fitted word probabilities in both cases. Grouping has been discarded at the point where the counts are combined. The latent alternatives retain the grouping and can give the two corpora different explanations even though their overall frequencies agree. This thought experiment locates the information that the unigram comparison puts at issue.
On both text collections, the corrected latent alternatives improve on the unigram reference. The result supports the decision to use document boundaries as statistical information. It also gives the simplest baseline a clear role in the comparison. The baseline already knows which words are frequent overall. A lower perplexity has to come from a more favorable allocation of probability to the combinations present in whole documents. A mixture does this by reserving more probability for articles that display recognizable patterns of co-occurrence. Its advantage is measured on articles left out of the fit, where remembering the observations that established those patterns would be insufficient.
Word abundance and diagnostic value can diverge within this setup. A term that appears throughout a scientific collection can be well predicted from the pooled frequencies. Another term may be uncommon at corpus scale but occur repeatedly in articles with a particular set of observations. The presence of those observations can make a distribution favorable to that term more plausible for the article. The latter effect is available even when all the methods ignore arrangement within a document. The comparison therefore identifies a source of useful dependence more specific than general textual structure. The observations provide information through the fact that they belong to the same document.
Several ways of expressing that dependence succeed against the common frequency estimate. A document-wide component already makes it possible for an article to give evidence for a particular vocabulary distribution. Fitted pLSI mixtures introduce an additional way to combine such distributions. LDA is the strongest of the approaches tested, but the common improvement over the unigram baseline cannot be credited to a Dirichlet prior that the other approaches lack. The closest comparisons are needed to understand why organizing the latent structure differently affects the result. Even there the experiments compare procedures with their own ways of learning and scoring, so the evidence identifies structural consequences more directly than the numerical contribution of any single ingredient.
How exclusive assignment and sparse estimates interact
A mixture of unigrams makes its choice at a point where every word in the article can bear on it. If a group of training documents is strongly associated with a component, the posterior can send nearly all of their vocabulary evidence to that component. During estimation it can come to represent those particular documents very well. The same concentration reduces the evidence it gets from elsewhere. The paper uses this mechanism to explain why predictive probability can deteriorate even as the fit discovers subdivisions that make sense on the training collection. The subdivision changes where observations can contribute to the estimated vocabulary.
Think of a component whose documents have taught it a good deal about grants to cultural organizations. A fresh article can supply enough of the familiar vocabulary to look like a strong candidate for the component. If it also has educational terms rarely seen by that component, its likelihood may still be poor. A competing component that knows the educational terms must also account for the first set of words before it can contribute substantial probability. Giving the document many candidate components helps only if a candidate can explain the observations jointly. A high posterior preference among the candidates can thus accompany a low probability for the article itself.
The smoothing correction intervenes on vocabulary probabilities. It lets a component give some support to a word even when the documents that chiefly inform it supply little or no evidence for that word. The component still has the same job at prediction time. It is a possible source of the entire document. Smoothing can moderate a severe probability penalty without giving educational and arts observations separate opportunities to choose different sources inside the article. The corrected comparison is consequently informative about a restriction that remains after sparse estimates are addressed. The restriction concerns what a component must explain whenever it is chosen.
LDA provides another way to pool evidence in this case. The arts vocabulary can be learned across articles that pair it with different subjects. The document mixtures can distinguish the combinations while allocations lead the arts observations to the same shared topic. An exclusive mixture could learn components for several of those combinations. This would give each component a different collection of articles from which to learn the relevant words, potentially duplicating some of the vocabulary evidence across components. The paper’s structural argument concerns the available patterns of sharing. Whether sharing in fact yields better predictions depends on the distributions learned from the data, as the corrected perplexity comparison examines.
The comparison is also economical in parameter terms. The document-wide mixture uses a vector of weights for deciding which component supplies an article. LDA uses a Dirichlet parameter to distribute weight over possible vectors of topic proportions. Most of the shared entries in either construction still describe the topic vocabularies. This makes it possible to change the range of document-level explanations without fitting a new collection of shared vocabulary distributions for each possible combination. The paper’s parameter comparison explains how the added flexibility is obtained. The experiment establishes that this version of the added flexibility pays off on the held-out corpora, with the vocabulary estimates and inference procedure used in the study.
The correction should be understood on the scale of the failure it addresses. A very low probability for a retained word can have a large effect on a document’s score because likelihood combines contributions from all of its positions. Preventing that particular penalty is worthwhile even in a procedure whose account of the document otherwise stays the same. Conversely, achieving positive support throughout a component’s vocabulary tells little about whether the probabilities are well allocated. The main comparison remains necessary after smoothing because the distribution still has to make useful distinctions among likely and unlikely words and among complete unfamiliar articles.
What changes as the topic inventory grows
The sweep over topic counts puts pressure on different parts of the competing descriptions. For a mixture of unigrams, dividing the training corpus into more sharply defined groups can leave the separate vocabularies reliant on fewer effective observations. For pLSI evaluated through fitted training mixtures, adding topics increases the variety of combinations that a document could call for. The available combinations at prediction time are still drawn from the same training-document index. The authors observe severe overfitting in both cases, with the mixture of unigrams deteriorating faster as the count rises in the diagnostic AP comparison.
The pLSI values also show why the direction of an entire sweep should be described with care. At 100 topics the raw AP test perplexity is 1.72 × 10⁷, and at 200 topics it is 1.31 × 10⁷. The last setting improves on the preceding one while remaining in the regime of severe overfitting that the authors are illustrating. The pattern is evidence of a substantial generalization problem at large topic counts under this scoring rule. It gives no reason to expect every increase in topic count to harm prediction by the same amount or even to move the score in the same direction.
The geometry gives a way to distinguish component quality from the availability of usable combinations. A word distribution for a topic may explain its characteristic terms sensibly. A set of fitted mixtures may still provide poor coverage of the part of the topic simplex needed for a new article. Consider an article that requires substantial probability for vocabulary from several regions of the corpus. A training mixture that gives very small weight to any region important to that article can contribute a weak likelihood even if it deals well with the other regions. Averaging scores across more poorly suited mixtures does little to improve the probability of the article.
Several comparatively large values in the raw results therefore carry a narrower interpretation than a verdict on the vocabulary components. The pLSI analysis tests those components when the new article must use combinations stored in the empirical distribution. It can reveal a deficiency in the support for the blend even if the ingredients remain valuable. In the exclusive mixture there is also no guarantee that a bad score means the component with the best fit is thematically inappropriate. Its estimate might give much too little probability to a comparatively ordinary word. These cases show why the authors examine the prediction rules alongside the scores.
The available topic count is also a choice about how to divide the evidence. A broader topic can offer reasonable probability to observations from several related groups. More finely distinguished topics let the fit express differences among those groups, provided their vocabulary distributions can be estimated and useful mixtures can be found. The experiments put that tradeoff under empirical pressure by changing the count and asking what happens to probability on unseen observations. They give no separate measure of how much detail each inventory would give readers trying to browse the corpus. Fine distinctions can be valuable for description even where their effect on likelihood is mixed.
What folding in changes about the comparison
Folding in is a particularly instructive modification because it leaves the learned pLSI word probabilities available while changing the source of the weights. A fresh article can call for a combination beyond the ones stored for the training articles. If a topic has useful vocabulary for the article, the fitted local vector can give the topic weight regardless of how any training mixture used it. This exposes a degree of freedom the averaging procedure lacks. It also shows that editing the way an unseen article receives proportions is a different intervention from editing the topics themselves.
The question is what evidence the local fit gets to see. When the pLSI proportions are selected using all the observations whose probability is subsequently reported, the procedure can adapt a set of weights to those very words. A high score then reflects some adjustment after the observations became known. LDA can also produce a document-specific description after seeing the words, but its marginal document probability has a separate definition. It weights the likelihoods of possible mixtures under the prior. The posterior describes what can be inferred from the words under that specification. This distinction explains the authors’ concern about making the fitted pLSI score comparable with a probability evaluated for an entire unseen article.
The EachMovie test makes local adaptation serve an explicitly predictive role. All approaches get a visible history, and folding in can use that history to find weights relevant to the individual user. The withheld item is outside the observations that determined those weights. Here the opportunity to adapt pLSI’s proportions does not mean fitting to the outcome that enters the score. The corrected comparison can ask whether the different ways of adapting to visible evidence produce useful predictions. LDA’s favorable result therefore has a different relationship to the folding-in procedure from an experiment that scores all the observations used to select a new mixture.
A further distinction follows from the prediction formula. With a fixed vocabulary distribution for each topic and a single observation to predict, the predictive probabilities are linear in the mixture weights. The entire average over mixture uncertainty can be represented in the final calculation by the inferred mean proportions. The movie result gives evidence for the whole procedure that supplies those proportions and topic vocabularies. From that comparison alone one cannot assign a gain to retaining the shape of a posterior distribution at the final scoring step. The prior and the inference procedure can affect the mean, and the training procedure also affects which movie probabilities are being combined.
The similarity of the competing predictive sums makes the test particularly useful. A mixture of unigrams and pLSI can both calculate a weighted average for an omitted movie. The weights refer to different explanations of the visible history. Under a mixture of unigrams they express uncertainty about a common component for all the observations. Under pLSI they describe the fitted proportions used to explain different positions. LDA supplies its own weights by applying the prior and updating with the observations. A similar last calculation can therefore embody substantial differences in the use of evidence. Inspecting those differences explains more of the comparison than the shared form of the weighted sum would suggest.
What the article inspection can establish
The example from AP provides a check on what a compact representation allows a reader to examine. A component can contribute substantially to the fitted description through several conspicuous word assignments. It can also collect tentatively allocated evidence across many positions. The document quantity measures the total contribution from all of those positions. The illustration marks only especially confident assignments. A component with appreciable document-level support may consequently have a smaller visual presence than expected. The illustration and the total describe different aspects of the allocation, which are accessible because the fitting procedure exposes both levels.
This distinction is useful for interpreting a name given to a topic from its vocabulary. A topic’s largest entries reflect evidence aggregated from the training corpus. In one article the words that best indicate it can be a different subset from the ones that first suggested its name. Conversely, seeing a term among the likely words for a topic gives only part of the reason to expect a local assignment to it. The article may supply substantial evidence for another topic that can also produce the word. The visualization makes it possible to ask what the rest of the article contributes to an explanation, while the list of probabilities shows the shared vocabulary on which that explanation relies.
The split within the foundation’s name offers a case in which the explanatory chain can be followed to its weak point. Nothing in the observed input tells the calculation that the words at those positions share a referent. Each position offers evidence through the probability of its vocabulary item and the mixture inferred from the article. The paper can therefore point to a concrete departure from a human reading without needing a separate account of how every topic in the corpus should be named. The failure identifies a missing kind of evidence. It leaves open whether supplying a larger unit or a dependency between positions would improve the overall estimates and how frequently such a change would matter.
One example is also enough to clarify the difference between examining an assignment and validating it. A reader can trace a contribution to the relevant factors and decide whether the explanation seems plausible in the passage. The exercise tells how an allocation was obtained for a particular fit. A comparative evaluation of semantic quality would need a criterion for what counts as an appropriate assignment and a way to gather evidence across other articles or topics. Neither the favorable average likelihood nor the apparently sensible part of one display supplies that criterion. The illustration shows how a later analysis could gain access to the behavior in question.
What the classification comparison controls
The Reuters comparison supplies a more direct check on what survives a change of representation. The label is an external target and does not enter the topic fit. The same type of classifier is given either the word features or the inferred Dirichlet coordinates. This helps locate the experimental change. A classifier presented with topic features can receive pooled evidence from terms with related patterns of usage, but it no longer receives their individual coordinates. Improvements on the chosen tasks show that a given classifier can benefit from the resulting representation even when it has access to fewer quantities for distinguishing examples.
A benefit can have several sources within that representation. Evidence from different words can reinforce the same feature, or compression can reduce the influence of idiosyncratic word occurrences. At the same time, a feature might blur distinctions that would help another class decision. The reported comparisons capture the net effect for the selected Reuters labels. Varying the labeled training proportion tests the two inputs under different amounts of evidence available to the classifier. The plots do not isolate what happens if the unsupervised corpus is changed, if the topic inventory is selected on the basis of a classification objective, or if another compression method supplies the same number of inputs.
This is a useful boundary for attributing the result. A comparison with full vocabulary features answers a practical question about retaining information with smaller inputs. It gives no fixed-dimensional control that can separate the contribution of drawing mixtures from a prior from the contribution of compressing the input at all. It also gives no component-removal test of the prior, emission smoothing, or the variational family. The paper’s analytical evidence is strongest where a restriction produces an observable failure with a specific mechanism. Its downstream comparisons show where the complete procedure is useful under different tasks and access conditions.
Limitations
The authors’ stated limits on order and document structure
The exchangeability assumption sets a precise boundary on the observations LDA can use. If rearranging a document preserves the counts of all vocabulary entries, the basic probability calculation gives the rearrangement the same likelihood. Topic contributions can reflect which words accompany each other somewhere in the article. They cannot reflect the fact that one mention precedes another or that a particular word provides immediate context for the next. This is a deliberate simplification that gives the authors an efficient way to work with some aspects of dependence within documents.
There is an analogous boundary at the scale of a collection. Given the shared parameters, every article supplies its own probability factor. An article can strongly favor themes different from those in another article, while the place of each in the corpus supplies no extra evidence. Chronological succession, for example, is unavailable to the basic likelihood even if it would help a reader understand how the corpus changed. The ability to represent differences in content across documents is already substantial. The authors’ discussion of time concerns how those differences might acquire relationships that the basic construction leaves outside the calculation.
A change in observational units and a change in latent dependence offer separate ways to loosen the assumptions. Making a recurring word sequence an observation can preserve information inside that unit. Connecting assignments across neighboring positions can give their relationship probabilistic importance even if the observations remain individual words. Conditioning on sentence or paragraph information, another possibility raised by the authors, gives parts of a document a role in deciding which topics have support locally. Each option alters the evidence retained by the likelihood. The reported comparisons use the basic bag-of-words treatment, so they supply no estimates of the costs or predictive gains of these alternatives.
The authors expressly limit what can be inferred from perplexity. Here it is a figure of merit for probability on unordered word observations. It gives no particular ordering an advantage over another ordering of the same words. A favorable score thus does not evaluate the ability to predict the next word using an ordered prefix or to distinguish an orderly sentence from a rearrangement. Higher-order units, including the paper’s suggestion of trigrams, would pose a different prediction problem. The authors set that exploration aside. Their reported gains apply to document density under the chosen observations. Language modeling
The authors’ stated limits on latent topics and length
A topic has a deliberately limited definition. The latent category indicates which distribution supplied an observation. Human descriptions of the resulting distributions can be helpful, as the authors show by naming some components after looking at their prominent words. Those names do not enter the likelihood, and the authors refrain from claiming an independent status for the categories they infer. A vocabulary distribution can be a useful recurring statistical pattern without establishing that a collection contains a uniquely identifiable subject of the same name. This is especially evident when the observation vocabulary consists of movies and any verbal description of a component has to be supplied by interpretation.
The number of such categories is specified for a fit. Fixing it determines both how many vocabulary distributions can be learned and how many proportions a document can use. The topic sweep evaluates several chosen resolutions, but the fitting procedure does not discover how many topics a corpus ought to have. Nor is the appropriate meaning of “ought” settled by the study. A setting suited to held-out likelihood can be assessed on that metric. Deciding whether that setting offers the distinctions wanted by a reader or a classifier asks an additional question about the purpose of the representation.
Length has a stated place in the generative description, then typically drops out of the calculations because its draw is independent of the other quantities. The Poisson specification can be replaced without changing the method of assigning topics to retained words at a given length. This convenience limits the relations the basic construction can express. If articles with some combinations of themes tend to have different lengths, the specified procedure does not use that association to inform its mixtures. A document’s length affects how much evidence it can give the posterior, because more positions supply more observations. The assumption concerns a different direction of dependence, namely whether the mixture explains how many observations are produced.
The authors’ stated limits on inference and estimation
The exact posterior can express uncertainty in the form of related explanations. An ambiguous set of words might plausibly have come largely from one topic under one region of the mixture distribution, or from another under a different region. An independent categorical factor for every position cannot express that coordinated uncertainty directly. It can give some weight to both explanations at individual positions, while the product treats those positions as independent. This loss in expressiveness is a consequence of the approximation chosen to make document inference tractable.
The joint influence of the words during fitting partly addresses a different problem. The position factors adjust to document-wide evidence through the inferred Dirichlet parameter. This is a way for the approximation to use the whole document. Once the factors have been fitted, their product still leaves out the posterior dependence that the exact distribution could carry. The lower bound gives the algorithm a way to choose among the possibilities expressible with those factors. Convergence of that bound supplies no direct measurement of how closely the result represents a posterior relationship the family cannot express.
The authors frame variational inference as one way to operate the hierarchy. In their discussion, Minka and Lafferty’s expectation propagation gives improved inferential accuracy for LDA, and Griffiths and Steyvers supply a Markov chain Monte Carlo procedure. The comparison made in the discussion is about the approximation to the inference target. It does not transfer the empirical rankings of the methods tested in this paper to another inference algorithm. These alternatives make clear that changing how the posterior is approximated can leave the generative assumptions in place. They also mark a boundary on the numerical evidence, which comes from the particular procedures used for the experiments.
A further concern acknowledged in the paper is the behavior of mixture optimization. Multiple components can come to coincide, and the authors choose an initialization meant to avoid such stationary configurations. Their stopping criterion specifies when a fit has progressed sufficiently little to stop. It answers a question about variation in the optimization objective within a run. It cannot certify that the same starting data and another initialization would yield the same topics, or that a better value of the objective could never be found. This distinction applies to the baseline estimators as well as to LDA where the paper uses iterative mixture fitting.
The authors’ qualification of the classification evidence
The authors say the Reuters results need further substantiation. The reduction in feature dimension shows that a relatively small collection of inferred coordinates can supply useful input to the classifier in the evaluated cases. It gives a plausible reason to investigate the representation for feature filtering. The tasks involve selected binary distinctions whose usefulness to the experiment comes from having an independent class label to test. Other distinctions might depend on words whose contribution is predominantly absorbed into an unrelated topic, or on order that never reaches the input in the first place.
Likewise, the measured feature dimension pertains to the input presented to the classifier. It cannot establish a comparable reduction in processing time. The shared distributions must be fitted, and any incoming document has to be subjected to a local inference procedure to obtain the compact coordinates. Classification with those coordinates may involve less work at its own stage. The paper does not time a complete classification workflow against the alternative using the vocabulary. The substantive empirical conclusion is about the amount of useful class information available in a substantially smaller representation under the reported setup.
Limits apparent from the way classification data are used
Reuters also raises a distinction about when texts become available. The unsupervised procedure estimates shared quantities from all the documents, including observations in texts later used to assess classification. Withholding labels keeps the category information out of the topic fit. The text of an article can still influence the vocabulary probabilities and the prior that determine its eventual features. This gives the test a specific interpretation. It evaluates whether a representation learned from an available unlabeled collection supports subsequent label decisions when some labels are supplied for classifier training.
A stricter separation would learn the topic representation before the evaluation texts are available. It would use the shared parameters to infer local features for those texts on arrival. LDA’s generative specification makes that use possible, and the paper demonstrates inference without revising the common quantities in its other experiments. The Reuters comparison does not supply the performance of that classification protocol. Whether seeing the broader vocabulary evidence makes a material difference for the selected labels is left open. The absence of a label from unsupervised fitting and the absence of a document from fitting are separate conditions with separate consequences for the evidence.
There is another access question in how the labeled training proportion is varied. The figures concern what happens as the classifier gets different amounts of labeled evidence for a feature representation estimated on the collection. They do not trace the effect of reducing the broader corpus from which the features were learned. The distinction matters to engineering use because collecting unlabeled text and obtaining category labels are different parts of the problem. A compact representation could suit a setting with ample texts and scarce labels yet behave differently when the words available for topic estimation are themselves scarce. The paper’s design tests the first of these dimensions.
Limits apparent from vocabulary construction and aggregation
Preprocessing determines which observations have a chance to shape the fit. Removing frequently occurring terms changes the evidence available from every text in which those terms occur. Dropping words that appear only once in AP restricts the fitted vocabulary further. A term with little evidence in a corpus can be difficult to estimate and also be informative about the one article in which it occurs. The paper reports performance for the retained observations. It gives no comparison of how the specified filtering changes the topics, their usefulness to a reader, or the relative perplexity with a different vocabulary.
The word indicator also encodes the category identity without relations among forms. If several related forms of a word appear as separate entries, the mathematical representation has no rule tying those entries together because of how they are formed. Their probabilities can reflect related usage through evidence in the corpus. The paper does not measure whether grouping related forms would improve that evidence or suppress distinctions the task needs. This is a question about what goes into a word category before the topic fit sees it. Morphology
The smoothed hierarchy addresses a more specific kind of missing evidence. A defined vocabulary entry with little support in a component can still have a posterior distribution informed by its prior. A form outside the vocabulary has no such coordinate. Calling both cases unseen words can hide the difference. In the first case the distribution already reserves a place for the observation. In the second the representation would need a rule for adding or encoding a category. The paper’s calculation supplies the former remedy and assumes the observation space on which it acts.
Aggregate perplexity also limits what is visible about the cases that matter most. A corpus score weights log probabilities by the number of observed positions. Two procedures can differ in which lengths of article they handle well, and aggregates can be more influenced by long documents because they contribute more observations. The reported comparison does not break the scores down by length, by vocabulary frequency, or by the concentration of the inferred mixtures. The results establish that the overall allocation of probability improves under the evaluated settings. They give less information about which kinds of documents or words account for that advantage.
Perplexity can be sensitive to unusually weak predictions, as the uncorrected comparisons illustrate. After correction, a favorable score could reflect putting much better probability on a comparatively small group of difficult observations, assigning moderately better probabilities to many ordinary observations, or some combination. Understanding that distribution of gains would help locate the effect of smoothing and the contribution of new mixtures. The paper offers mechanisms for the raw baseline failures and reports the corrected orderings. A breakdown of the resulting word probabilities across those cases would go beyond the evidence reported.
Limits apparent from the selection of movie histories
The EachMovie protocol measures generalization among users with extensive records of positive preferences. This selection provides enough visible evidence for a local inference procedure to estimate what is plausible for a user. A prediction based on a short history would give the prior and the particular movies observed a different role. If a history contained only a little evidence for each of several patterns, the estimated mixture could reflect the common distribution more strongly. How well that would work is an empirical question. The reported test holds out a positive item for each selected user, without a comparison across progressively smaller histories.
The encoding also makes a particular decision about ratings. Once a movie qualifies for inclusion, the observation is its identity. Degrees of approval among the included ratings supply no additional variable to the prediction. A movie the user dislikes does not enter as a negative observation. Unrated items likewise supply no separate evidence about whether the user would enjoy them. Within that representation, the experiment gives a clean test of whether visible positives inform the prediction of an omitted positive. It cannot establish performance on a different target such as the rating a user would give an unfamiliar movie.
The score is also about probabilities, evaluated on previously observed choices. It aggregates the likelihood of the withheld item for each user. It provides no measurement of how people would respond to a list selected using those probabilities, nor does it report the rank of each omitted title as a separate outcome. Rank and probability are distinct summaries. A procedure can change a probability assigned to the withheld title substantially without moving its position relative to other titles. The EachMovie results support the distribution’s ability to anticipate another observed preference under the experimental protocol. A claim about how well recommendation lists serve users would require evidence at that level.
As a reader’s inference from the formulation, preference grouping also has a scope similar to document grouping. The visible movies can inform expectations about each other through the mixture. The fact that a user liked some titles earlier than others supplies no evidence to the stated likelihood. Several visible observations may reflect a particular phase in a person’s interests, but the fitted mixture describes their contributions to one shared collection. Results on a deliberately omitted positive under that representation do not evaluate whether the same user’s next choice would follow those patterns or whether the probabilities would remain appropriate after preferences change.
Limits apparent from the kinds of interpretation tested
The ability to display an inferred quantity and the ability to judge what it means should be evaluated separately. The paper gives examples of high-probability words that suggest names and an article whose allocations can be inspected. This is evidence that useful readings of some components are available. It gives no estimate of how often other people would recognize the same subjects or how easily they would connect an ambiguous word to its fitted topic. The original claims of representation and prediction can stand whether or not readers agree on a label for every component.
Part of the issue follows from the use of topic indices. A topic index consistently identifies the same vocabulary distribution within a fit. Exchanging two such indices everywhere, including their roles in the mixture, leaves the distribution over words unchanged. The index has no observed name attached to it. More substantive differences between fits can involve which words share a component or how a topic is distinguished from its neighbors. The paper offers no study of the stability of the illustrated components across different fitting samples or initializations. An appealing name can help a reader navigate a particular fit while leaving the stability of that pattern open.
The possibility of several useful explanations also affects word allocations. A term can reasonably enter a budget description or an arts description in a story about financial support for cultural institutions. The authors can identify one case where the bag-of-words structure splits a proper name, because a reader can see exactly what grouping has been overlooked. A general assessment would need criteria for other cases where several assignments could be sensible. There are no human judgments collected for that purpose in the paper. Its interpretive evidence is best read as an illustration of what can be examined and of one dependency that the representation demonstrably leaves out.
Limits apparent from comparative design
The main comparisons report how the complete procedures behave. Variation in perplexity reflects the distributions being compared, their fitting procedures, their smoothing or other corrections, and how they score a new example. Common stopping criteria help put the fits on a consistent footing. They do not make the optimization problems identical. The diagnostic AP analysis explains particular ways baseline estimates can fail, and the corrected results show what happens when those problems are addressed. Neither supplies a numerical estimate of the gain attributable only to replacing a list of fitted mixtures with a Dirichlet prior while leaving every other calculation controlled.
Uncertainty in the reported ordering is also less characterized than the ordering itself. The paper does not give an analysis of variation over repeated splits or runs for the main comparisons. A reader can report that one procedure produces the better curve in the published experiment. The evidence is less specific about how much that result would vary under a different selection of documents or initialization. Exact baseline scores given for the AP overfitting investigation belong to its specified raw procedures. They cannot resolve the precision of differences between the corrected fits, whose results the paper displays graphically.
Finally, the modular architecture makes it possible to state where an extension would change the distribution. A Gaussian likelihood would change what a component generates and how observations bear on an allocation. A mixture of Dirichlet distributions would change the account of variation among document proportions. Dependencies on time or paragraph structure would change which evidence can affect a group of topic choices. The paper proposes these possibilities and describes work that pairs LDA components for images and captions. The experiments on text and movie histories establish portability across different discrete categories. Claims about the performance of richer dependencies or continuous observations belong to those particular extended constructions.
What came after
Making time part of the topic description
The original paper’s exchangeability assumption gives a document a distribution that is indifferent to the order in which the corpus is assembled. This leaves room for variation across documents, including articles from different periods. It also makes the common topic vocabulary the same for an early article and a late one. A later study makes changing topics its subject, taking up the possibility the authors raise of letting time play a role in the topic description. Its connection to LDA lies in putting a temporal question to quantities that the original construction shares or draws without reference to chronology. Dynamic Topic Models
The distinction is easiest to see by considering two questions a dated collection can raise. One is whether an established subject is represented in more or fewer articles as time passes. A common vocabulary distribution can provide a point of comparison for tracking its prominence. Another is whether what people say about that subject changes, so that words once typical of it carry less importance later. That question puts pressure on the common vocabulary distribution itself. The paper’s suggestion of introducing temporal structure opens the possibility of making such relationships part of the probability calculation instead of dating the fitted descriptions after the fact.
Time also adds a question about which sorts of sharing should survive an extension. LDA uses the entire corpus as evidence for a topic’s vocabulary probabilities. In a study of changing topics, different parts of the corpus may be informative to different degrees about the vocabulary appropriate for a given period. A useful temporal description has to make comparisons possible even where the observations indicate change. This is an architectural problem made visible by the original separation of topic vocabularies and local proportions. The later work’s focus on dynamics marks a continuation of that problem, while the original experiments establish the distinct result that a shared static description can predict unfamiliar documents.
Treating interpretation by people as evidence
The AP example demonstrates a practical way of examining a fit: look at the likely words for a topic, give the pattern a tentative name, and see where the article draws on it. A subsequent line of work takes the person examining those quantities as the subject of study. The inquiry turns on whether people can interpret the topics they are shown. That adds evidence of a different kind from recognition by the researchers who selected the illustration or from the probability assigned to the article. Reading Tea Leaves
The question has several layers because LDA supplies several objects a person could interpret. A vocabulary distribution gives a collection-wide description of a recurring pattern. A fitted article mixture indicates which patterns contribute to its words. The position distributions let a reader see how some occurrences support that mixture. Judging whether a list has a readily understandable theme, whether an article appears to use that theme, and whether a particular allocation fits a passage are different tasks. A satisfactory reading at one level can coexist with difficulty at another, as the allocation inside the AP proper name shows.
Human interpretation also sharpens what is at stake in calling a topic useful. An inferred vocabulary pattern can improve probability by allocating mass to terms that recur together. A person reading a short list may care especially about whether its prominent terms suggest a consistent subject. The paper’s example gives readers a way to inspect some of those terms, but favorable prediction supplies no direct measurement of that interpretive task. Putting the human reader at the center of later work turns a property suggested by an illustration into a question that can be investigated on its own.
For applications that present a topic as a description, the distinction can affect what information is needed from the fit. The complete list of probabilities can serve a statistical calculation even when a much shorter display is required for a person. The selection of terms shown, and whether a document is presented alongside them, changes the evidence available for interpretation. This observation follows from the two levels displayed in the original example. Later work centered on human interpretation brings such choices into view without generalizing from the particular topics the original authors were able to name.
Giving coherence a criterion of its own
A related direction asks how to evaluate coherence automatically. LDA’s evaluation begins with observations whose probability can be scored according to a precise rule. Topic coherence instead concerns whether a set of words presented as a topic hangs together as a description. The later inquiry takes the assessment of that property as a task in its own right. Its connection to LDA is through an output the paper already makes available for examination, the topic vocabulary, and a property its likelihood does not directly measure. Automatic Evaluation of Topic Coherence
The distinction reaches beyond topics that are obviously intelligible or unintelligible. A distribution can bring together words useful for predicting which other observations will appear, while a short list of its prominent terms can still admit several readings. Conversely, a list with a recognizable subject can come from a component whose less prominent entries or use across articles yields poor predictive probabilities. An evaluation of coherence adds a criterion suited to the descriptions people might use. The document perplexity test remains a criterion for an entire distribution over observations. Agreement between the criteria is an empirical matter.
A further paper puts optimization of semantic coherence at the center of the topic problem. This goes beyond asking whether existing topic displays can be judged automatically. The quality of the semantic description becomes a property to improve. In LDA, the training bound gives credit to a topic for how it helps account for documents. Asking explicitly for semantic coherence invites a different assessment of what has been achieved at the end of a fit. The topic vocabulary now matters both as a collection of probabilities and as a description whose organization can be studied. Optimizing Semantic Coherence
The difference can be understood through the AP illustration. Some terms that make sense together in a story about support for arts institutions can also occur together in other contexts. A statistical explanation uses topic distributions and mixtures to account for that recurrence across documents. A semantic judgment might emphasize what specific subject links the displayed words, or whether one group of terms would be clearer in a separate description. Improvements under such a judgment need their own evidence. The later objective makes that requirement explicit by taking meaning as a property of the output to examine. Semantics
Another later study puts automatic coherence assessment alongside the wider question of topic quality. The juxtaposition is consequential because even a clear assessment of an individual list leaves questions about the collection of topics. Several easy-to-read lists might cover overlapping themes, while a description with less uniformly readable components might serve a wider range of documents. LDA’s experiments already show several distinct uses for a representation, including assigning probability and supporting classification. The research on automatic assessment connects coherence with the question of how to judge a fit serving such different purposes. Machine Reading Tea Leaves
The family of possible measures then becomes a subject of study. Calling a topic coherent identifies a desirable property, but a measurement still has to decide what evidence counts and how pieces of evidence enter a judgment. A comparison of coherence measures treats that choice as consequential. It fits the trajectory from the original paper’s informal inspection of selected topics to later scrutiny of the instruments used to assess them. The concrete shared object is the description of a topic by words. What changes is how the quality of that description becomes observable and comparable. Exploring the Space of Topic Coherence Measures
Read together, these works place different demands on the evidence for a successful topic representation. Human interpretation concerns what people can infer from a display. Automatic coherence evaluation asks for a repeatable assessment of the description. Optimization makes coherence itself a property to improve. Comparing measures asks how different assessments express that property. These questions grow out of the availability of explicit topic vocabularies and the paper’s practice of inspecting them. They also preserve the distinction between evaluating a description for a user and evaluating probability on observations that served no role in fitting.
Connecting textual aspects with evaluations
A later study addresses sentiment summarization by treating text and aspect ratings jointly. The connection is to the modular role LDA gives recurring latent patterns, and to the problem of organizing different kinds of evidence around aspects of a text. The original paper establishes that a group of discrete observations can draw on several shared components. In a task involving aspects and ratings, some latent organization has to serve an additional distinction. It matters which part of the subject a rating concerns and how information about that part bears on a summary of sentiment. A Joint Model of Text and Aspect Ratings
EachMovie provides a useful comparison because ratings are present in the motivation of both tasks and play different roles. In the original evaluation they determine which observations are included as positives. Once included, those observations are movie categories. Assigning probability to the omitted positive requires no separate prediction of a rating for a particular aspect. The later joint treatment puts aspect ratings alongside text as evidence relevant to the output. This changes what a representation must preserve. An account of which aspects recur can be valuable, while an account of what is expressed or rated about those aspects asks for more than their prominence in a mixture.
This also changes the meaning of pooling evidence. In the original LDA fit, a component can receive words from many articles whose proportions differ. Shared evidence is useful because vocabulary patterns recur across combinations. Text and aspect ratings pose a question about sharing across forms of observation as well as across documents. A joint representation is useful to the extent that the relationship between those forms helps organize the target description. The citation connects the studies through the treatment of latent structure and the later paper’s named joint task. The original probability results provide no measurement of how well aspect-specific evaluations would be recovered. Sentiment analysis
Turning a topical indication into a short text
The original motivation includes making documents easier to summarize, while the learned representation is a vector rather than a written account. A later approach places topic information alongside convolutional processing in extreme summarization. This makes topic awareness part of a task whose output has to state what a reader should retain from a document. The relationship to LDA is direct at the level of the representational problem. Evidence pooled across a long article can indicate which subject matter deserves attention when space is highly constrained. Don’t Give Me the Details, Just the Summary!
This use also clarifies what a vector of topical evidence leaves to the rest of the procedure. In the grant story, evidence about funding and performing arts institutions helps identify the material that belongs in a compact account. A written account must also express who provided support and who was to receive it. Those roles are not supplied by the relative importance of the topics alone. Two differently ordered descriptions can mention the same entities and acts while expressing different relationships between them. A topic-aware approach can use information about subject matter while still having to address selection and linguistic expression through the rest of the summarization task.
The connection gives a concrete meaning to using a representation as part of a larger system. A topic feature can inform another calculation whose decisions depend on more than document likelihood. In the Reuters experiment, subject-related features serve a classification decision. In extreme summarization, the intended decision concerns what to communicate and how to communicate it briefly. Both put a burden on the topical evidence it was not directly fitted to meet in the original probability objective. Evaluating the written output raises a new question about what survives compression, beyond the reduction in the number of coordinates used to describe the words. Text summarization
Using term weighting to describe groups again
Later topic research also returns to vocabulary weighting through an approach that joins neural topic analysis with class-based TF-IDF. This connects two threads present in LDA’s own account. Weighted terms give an economical way to recognize characteristic vocabulary, while a topic description needs some way to associate words with groups of related observations. The class-based formulation names the group as part of the weighting problem. It brings frequency statistics to bear on describing a group, where the original discussion of conventional TF-IDF focuses on individual columns in a document matrix. BERTopic
The resulting connection is about the role of the reported words. LDA can display a topic by showing the entries with large probabilities in a shared vocabulary distribution. Those entries are part of the probability of producing observations, and they operate inside a hierarchy that gives a document its proportions. A procedure using class-based weighting can also bring characteristic words to the foreground, with the weights serving the descriptive purpose stated by that approach. A reader encountering prominent terms can therefore ask a concrete question of either system. What does the number attached to a term measure, and what aspect of the group does a large value help explain?
This continuation illustrates how a representational problem can outlast a particular solution. Identifying topics, characterizing their vocabularies, and deciding how a document relates to them are linked tasks. The original hierarchy fits those tasks into one probability account with a common prior over mixtures. The later procedure puts a class-based weighting scheme inside a neural approach to topic analysis. This adds another way to use the term-frequency evidence from which the original paper began. The citation supports that methodological connection without supplying a comparison of the quality of the resulting topics on the original experiments.
Moving from documents to representations of words
Several later works consider learned representations at the scale of individual words. A sentiment study centers on word vectors that serve a particular task. Its connection to the LDA experiments lies in asking whether learned coordinates preserve useful distinctions when passed to another procedure. In LDA the inferred coordinates describe a document using shared patterns of word occurrence. A word vector makes the vocabulary item itself the bearer of a reusable description. That shift gives the evidence a different destination. Recurring usage can help characterize a word for sentiment analysis, a task for which document-wide proportions are a different kind of input. Learning Word Vectors for Sentiment Analysis
Another citing work places word representations in semisupervised learning. Reuters supplies a point of comparison in the separation between unsupervised discovery and supervised use. The topics are estimated without class labels, then the inferred document descriptions become the evidence offered to a classifier. Semisupervised work centered on word representations poses the broader question of how learned description at a different unit can carry helpful information into a task involving supervision. Its relationship to LDA is through that division of labor. The type of representation and what receives it move from document-level mixtures to word-level descriptions. Word Representations
A broader treatment of the move from frequency to meaning locates these questions within vector-space approaches. LDA is one specific way to give statistical observations a numerical form in which relationships can be studied. Its paper gives a probabilistic interpretation to the coordinates and asks what performance follows on defined tasks. The later study’s subject is broader, encompassing vector-space descriptions of meaning. This is a connection through the problem of how statistical regularities inform semantic descriptions. It is distinct from the direct extensions concerned with temporal topics or with assessing the coherence of topic vocabularies. From Frequency to Meaning
Another comparison focuses on how semantic vectors are obtained, contrasting construction from context counts with construction through prediction. That comparison asks what information a change in learning strategy yields in the representation. Blei, Ng, and Jordan posed a related choice in moving from decomposition of a weighted term matrix to fitting a probability distribution, though their immediate object was a description of grouped observations. The later work takes construction and comparison of semantic vectors as its explicit subject. Its relevance is the continuing empirical question of which statistical operations preserve the information wanted from a representation. Don’t count, predict!
These word-level connections place LDA within a broader investigation of learned representations. The strongest direct lines from the paper concern the structure of topics and how to evaluate what they convey. The wider lines change the unit described or use topical information to help produce a result for a different task. The original paper gives those connections a precise starting point. Its topic probabilities have a role in generating observations, its local quantities have a role in describing a particular group, and its experiments ask separately whether the distribution predicts well and whether the compact description retains information useful to another procedure.
Institutions
Fields, topics and concepts
Shelves 6The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksSocial Sciences · 2,009 worksGeneral Social Sciences · 256 works
Concepts 4Key ideas and methods explained on our concept pages.Natural language processing · 131 worksTopic modeling · 47 worksTF-IDF · 26 worksLatent semantic indexing · 29 works
Appears in
Mentioned in articles aboutUnited States San Francisco Bay Area
Cite
Cite as David M. Blei, Andrew Y. Ng and Michael I. Jordan. 2003. Latent Dirichlet Allocation. JMLR 3.
@inproceedings{blei2003latent,
title = {{Latent Dirichlet Allocation}},
author = {David M. Blei, Andrew Y. Ng and Michael I. Jordan},
booktitle = {JMLR 3},
year = {2003},
doi = {10.5555/944919.944937},
url = {https://doi.org/10.5555/944919.944937}
}References
- URL M. Jordan, Z. Ghahramani, T. Jaakkola, and L. Saul. Introduction to variational methods for graphical models. Machine Learning, 37:183–233, 1999. OpenAlex ↗ · Scholar ↗
- R. Kass and D. Steffey. Approximate Bayesian inference in conditionally independent hierarchical models (parametric empirical Bayes models). Journal of the American Statistical Association, 84 (407):717–726, 1989. OpenAlex ↗ · Scholar ↗
- M. Leisink and H. Kappen. General lower bounds based on computer generated higher order expansions. In Uncertainty in Artificial Intelligence, Proceedings of the Eighteenth Conference, 2002. OpenAlex ↗ · Scholar ↗
- T. Minka. Estimating a Dirichlet distribution. Technical report, M.I.T., 2000. OpenAlex ↗ · Scholar ↗
- T. P. Minka and J. Lafferty. Expectation-propagation for the generative aspect model. In Uncertainty in Artificial Intelligence (UAI), 2002. OpenAlex ↗ · Scholar ↗
- C. Morris. Parametric empirical Bayes inference: Theory and applications. Journal of the American Statistical Association, 78(381):47–65, 1983. With discussion. OpenAlex ↗ · Scholar ↗
- K. Nigam, J. Lafferty, and A. McCallum. Using maximum entropy for text classification. IJCAI-99 Workshop on Machine Learning for Information Filtering, pages 61–67, 1999. OpenAlex ↗ · Scholar ↗
- K. Nigam, A. McCallum, S. Thrun, and T. Mitchell. Text classification from labeled and unlabeled documents using EM. Machine Learning, 39(2/3):103–134, 2000.
- C. Papadimitriou, H. Tamaki, P. Raghavan, and S. Vempala. Latent semantic indexing: A probabilistic analysis. pages 159–168, 1998. OpenAlex ↗ · Scholar ↗
- A. Popescul, L. Ungar, D. Pennock, and S. Lawrence. Probabilistic models for unified collaborative and content-based recommendation in sparse-data environments. In Uncertainty in Artificial Intelligence, Proceedings of the Seventeenth Conference, 2001. OpenAlex ↗ · Scholar ↗
- J. Rennie. Improving multi-class text classification with naive Bayes. Technical Report AITR-2001-004, M.I.T., 2001. OpenAlex ↗ · Scholar ↗
- G. Ronning. Maximum likelihood estimation of Dirichlet distributions. Journal of Statistcal Computation and Simulation, 34(4):215–221, 1989. OpenAlex ↗ · Scholar ↗
- G. Salton and M. McGill, editors. Introduction to Modern Information Retrieval. McGraw-Hill, 1983. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/blei-2003-latent-dirichlet-allocation/