What is the generative story of latent Dirichlet allocation (LDA), and what do and represent?
Probabilistic models, Topic models (LDA)
Level L3 Intermediate. Length Short. Nature Th Theoretical.
What's being asked
Whether you can narrate the LDA generative process in order and identify what each distribution means.
Key idea
Each document has its own topic mixture . Each topic is a distribution over the vocabulary. To write a word, pick a topic from , then pick a word from that topic's .
Steps
- Fix topics. For each topic , draw a word distribution . This is a vector over the vocabulary that sums to 1.
- For each document , draw topic proportions . This says what fraction of the document belongs to each topic.
- For each word position in document , draw a topic .
- Then draw the word .
- Only is observed. Learning means inferring , and , using variational inference or collapsed Gibbs sampling. The two are different: is per document, is per topic.
Common mistakes
- Saying a document has one topic. LDA is a mixture of topics per document, unlike a simple mixture of unigrams.
- Mixing up and . The symbol is a fixed hyperparameter, whereas is a random vector.
- Forgetting the bag-of-words assumption: word order is ignored.
How long your answer should be
5–6 sentences, in the order of the generative steps.
Read this
Previous in Probabilistic models: What does a Gaussian process define, and how does the length-scale of the RBF kernel change the functions it prefers?
Next in Probabilistic models: An HMM has two states, initial probabilities , transition matrix , and emissions , , , . For the observations , what are the backward variables, and the posterior ?