Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Latent Dirichlet Allocation

Latent Dirichlet Allocation gives documents a probabilistic topic model that handles unseen text

  • Problem pLSI cannot assign probability to a new document. Its topic proportions are free parameters for each training document, with no generative model behind them, so overfitting grows with the corpus.
  • Method LDA draws each document's topic mix from a Dirichlet distribution, then picks a topic for each word. Unlike pLSI, the topic is resampled per word, and a variational EM procedure estimates the model.
  • Results On perplexity, LDA beat pLSI and the mixture of unigrams at every topic count tested. The mixture of unigrams reached 3.51 × 10264 at 200 topics.

Where pLSI gets stuck

pLSI models each word as a sample from a mixture of topics, so each document ends up as a list of mixing proportions. Those proportions are free parameters for each training document, and no generative model sits behind them. Because the document index is a dummy over the training set, pLSI can't assign probability to a previously unseen document.

Hofmann's model is a useful step, but it stops short of a probabilistic model at the document level.

That linear growth in M makes overfitting a serious problem for pLSI. A tempering heuristic is used to smooth pLSI's parameters, but overfitting can still occur even with tempering. Earlier IR methods such as tf-idf and LSI reduce documents to vectors and reveal little document-level structure.

Because LDA is a well-defined generative model, it generalizes easily to new documents. Under the unigram, mixture of unigrams, pLSI and LDA models, all four work in the space of distributions over words.

A generative story for each document

The core idea is that each document gets its own random mix of topics, and each topic is a distribution over words. The mix is drawn from a Dirichlet distribution, which is what lets the model assign probability to documents it hasn't seen. Generation runs in order: draw the word count N from a Poisson with parameter ξ, draw θ from Dir(α), then for each word draw a topic from θ and a word from that topic.

Two simplifications are made: k is fixed, and β, a k by V matrix of word probabilities, is treated as a fixed quantity to be estimated. N is treated as ancillary because it is independent of θ and z, so its randomness is ignored. The joint distribution of θ, z and w is \\( p(\\theta,\\mathbf{z},\\mathbf{w}\\mid\\alpha,\\beta)=p(\\theta\\mid\\alpha)\\prod_{n=1}^{N}p(z_n\\mid\\theta)\\,p(w_n\\mid z_n,\\beta) \\), which is the Dirichlet density times a topic probability and a word probability for each word.

Integrating θ out and summing over each z_n gives the document marginal \\( p(\\mathbf{w}\\mid\\alpha,\\beta)=\\int p(\\theta\\mid\\alpha)\\prod_{n=1}^{N}\\sum_{z_n}p(z_n\\mid\\theta)\\,p(w_n\\mid z_n,\\beta)\\,d\\theta \\).

A Dirichlet-multinomial clustering model would assign a single topic per document, and that restriction is what LDA removes. In LDA the topic is sampled again for each word, so one document can draw on several topics.

Why exchangeability leads to topic mixtures

Bag-of-words methods ignore word order, so the words of a document are treated as exchangeable. The same reasoning treats documents as exchangeable, so the order of documents in a corpus can be dropped as well. De Finetti's theorem says such a sequence behaves as if a random parameter were drawn first and the items were then independent and identically distributed given it.

Exchangeability doesn't mean the variables are independent and identically distributed, which is a point the authors stress. Conditionally on the latent parameter the joint distribution is simple and factored, while marginally it can be quite complex.

The authors call exchangeability a major simplifying assumption for text, justified mainly because it leads to computationally efficient methods. Taking the de Finetti theorem seriously, the authors aim to capture intra-document statistical structure through the mixing distribution. Because the theorem gives a mixture for exchangeable sequences, the authors argue that mixture models must capture exchangeability of both words and documents.

LDA draws a Dirichlet-distributed θ for each document, then samples a topic for each word given θ. Integrating θ out and marginalizing over the topic variables gives the LDA distribution on documents. Marginalizing over the hidden topic z turns LDA into a continuous mixture of unigrams.

Approximating the intractable posterior with variational inference

Exact inference over θ and z is intractable, because θ and β couple through the sum over latent topics. Dickey showed that this coupling term is an expectation under an extension of the Dirichlet distribution, and it has been used for censored discrete data. Laplace approximation, variational approximation, and Markov chain Monte Carlo are all candidate approximate methods for LDA.

The authors pick a simple convexity-based variational algorithm and leave the alternatives for the discussion.

It starts from a simplified version of the LDA graphical model, with some edges and nodes removed. Dropping the edges between θ, z and w, and the w nodes, leaves the family q(θ,z | γ, φ) = q(θ | γ) ∏ q(z_n | φ_n). Here γ is a Dirichlet parameter and each φ_n is a multinomial parameter for word n. The optimal γ and φ minimize the KL divergence between this family and the true posterior p(θ,z | w, α, β).

Setting the derivatives of the KL divergence to zero gives a fixed-point method with two update equations. The φ update is proportional to β_{i w_n} exp{E_q[log θ_i | γ]}, and the γ update is α_i plus the sum of φ_ni over words. The expectation in the φ update equals Ψ(γ_i) minus Ψ of the sum of the γ_j, with Ψ the first derivative of the log Gamma function.

The γ update acts like a Dirichlet posterior over expected topic counts, and the φ update acts like Bayes' theorem with the prior replaced by an exponentiated expected log. Because the optimization is run for a fixed w, the variational distribution becomes a function of the document. The resulting γ* then serves as a document-specific representation in the topic simplex.

Figure 6 lists the loop: initialize φ and γ, then update φ and normalize, then update γ until convergence. Each iteration of this loop costs O((N + 1)k) operations. The authors found the number of iterations per document is on the order of its number of words. That gives a total cost of roughly N^2 k operations per document. This variational E-step feeds the M-step of the variational EM procedure for estimating α and β.

Fitting α and β by variational EM

Empirical Bayes chooses α and β to maximize the marginal log likelihood of the corpus, which can't be computed directly. A variational lower bound stands in for that likelihood, so the authors alternate between two steps. In the E-step, each document gets its optimizing variational parameters γ and φ. In the M-step, the bound is maximized in α and β, which corresponds to maximum likelihood estimates using expected sufficient statistics from the E-step.

The β update has a closed form, since the M-step sums the expected counts φ* over all documents and words. Here β_ij is proportional to the sum over documents d and word positions n of φ*_dni times w^j_dn. The α update has no closed form, so the authors use a Newton-Raphson method. In that method the Hessian is inverted in linear time.

Maximum likelihood estimates of the multinomial parameters give zero probability to words unseen in training, and so to new documents. The authors smooth β by treating each row as an exchangeable Dirichlet with scalar parameter η, so β becomes a random matrix. Variational inference over β, θ and z gives the same φ and γ updates, plus an update for λ.

The λ update is λ_ij = η plus the sum over documents and words of φ*_dni w^j_dn. The hyperparameters η and α are then set by variational EM, which is again an approximate empirical Bayes procedure.

Perplexity on AP and nematode

The authors trained the hidden-variable models with EM under one shared stopping rule. They stopped when the average change in expected log likelihood fell below 0.001%. They compared LDA with the unigram model, the mixture of unigrams, and pLSI, all described in Section 4.

On the AP corpus, the mixture of unigrams reached 22,266 at k = 2, while pLSI reached 7,052. Both perplexities grew sharply as k rose, and the mixture of unigrams hit 3.51 × 10264 at 200 topics. The authors read this as overfitting, and they report similar behaviour on the nematode corpus without a table.

A new document often contains a word missing from its best-fitting cluster, so that word gets a very small probability. That tiny probability makes the perplexity of the new document explode. pLSI overfits for a different reason, because its topic weights for training documents include components near zero. The folding-in heuristic gives pLSI an unfair advantage, because it refits k − 1 parameters to the test data.

LDA doesn't need such heuristics, because each new document gets its own topic proportions from the Dirichlet prior. The smoothed mixture of unigrams avoids zero probabilities by giving every word some probability under each component. Figure 9 shows LDA giving the best perplexity at every number of topics, as the paper reports.

Reuters-21578 classification with LDA features

The question is how much discriminatory information is lost when a document is cut down to its posterior Dirichlet parameters. The authors ran two binary classification experiments on the Reuters-21578 dataset, which holds 8000 documents and 15,818 words. They estimated an LDA model on all the documents without using the true class labels.

A 50-topic LDA model reduces the feature space by 99.6 percent.

An SVM trained with SVMLight on the 50-topic LDA features is compared with an SVM trained on all word features. Figure 10 plots accuracy against the proportion of data used for training, from 0 to 0.2, for both feature sets. On EARN versus NOT EARN, the LDA features stay close to the word features. On GRAIN versus NOT GRAIN, the pattern is similar, and in almost all cases the LDA features score higher.

So the 50 LDA features keep most of the class information, and they don't seem to lose much.

The authors say these results need further substantiation. They suggest that LDA topic representations may work as a fast filtering step for feature selection in text classification. The next experiment, on EachMovie collaborative filtering, moves to predictive perplexity.

Predicting held-out movies on EachMovie

On EachMovie, LDA treats a user as a document and the movies the user liked as its words. The authors kept users who positively rated at least 100 movies, giving 3300 training users and 390 testing users. The vocabulary contains 1600 movies. A positive rating counts as at least four out of five stars.

For each unobserved test user, the model sees all but one liked movie and must predict the held-out one. The authors score each model by the likelihood it assigns to the held-out movie, using predictive perplexity. The mixture of unigrams model takes a topic posterior given the observed movies, p(z|wobs), to predict the held-out movie. pLSI computes the same quantity by folding in the previously seen movies to get p(z|wobs).

LDA integrates over the posterior Dirichlet, p(θ|wobs), which comes from the variational inference in Section 5.2. The authors note that this integral is efficient to compute, because it reduces to a linear combination of k Dirichlet expectations.

Figure 11 plots predictive perplexity against the number of topics for LDA, fold-in pLSI and smoothed mixture of unigrams. The mixture of unigrams model and pLSI are corrected for overfitting in this experiment. The paper's text says the best predictive performance is reached at a point the excerpt cuts off, so the figure alone gives the ranking.

No LDA margin over the other models is quoted for this experiment.

The collaborative filtering result supports LDA's use beyond text, since the same model handles user-movie data. The authors list collaborative filtering among the domains where the LDA model applies, next to text and image retrieval. Section 8 summarizes the approach as a fast variational method for inference.

Limits and open questions

The posterior distribution of LDA is intractable for exact inference, because of the coupling between θ and β in the latent-topic summation. The authors use a convexity-based variational approximation, but Laplace approximation and Markov chain Monte Carlo are also possible. The variational bound is an approximation, and the authors name higher-order variational methods, Monte Carlo methods and Laplace approximation as alternatives.

Expectation propagation and a Markov chain Monte Carlo sampler are cited from prior work, but this paper doesn't compare them.

The classification gains rest on two binary Reuters problems, EARN versus NOT EARN and GRAIN versus NOT GRAIN. The Reuters-21578 dataset contains 8000 documents and 15,818 words, and the LDA features reduce the feature space by 99.6 percent. The authors call these results in need of further substantiation, so they suggest the LDA features as a fast filtering step for feature selection.

The collaborative filtering test uses one EachMovie split with 3300 training users and 390 testing users. The vocabulary is 1600 movies, and the best predictive perplexity result is reported only partly on the page.

The authors list continuous-data variants, mixtures of Dirichlet distributions and partially exchangeable extensions as possible next steps. A continuous variant would use Gaussian observables in place of multinomials. Mixtures of Dirichlet distributions would give a richer latent topic space and a different form of document clustering. None of these extensions is tested in the paper.

Paper info

Authors
Blei, David M., Ng, Andrew Y., Jordan, Michael I.
Venue
Journal of Machine Learning Research · Published
Added
2026-11-11
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Blei, David M., Ng, Andrew Y., Jordan, Michael I. (2003). Latent Dirichlet Allocation. Journal of Machine Learning Research. https://www.jmlr.org/papers/v3/blei03a.html

BibTeX
@article{m2003latent,
  title = {{Latent Dirichlet Allocation}},
  author = {Blei, David M. and Ng, Andrew Y. and Jordan, Michael I.},
  year = {2003},
  journal = {Journal of Machine Learning Research},
  url = {https://www.jmlr.org/papers/v3/blei03a.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up