Topic-Word Distribution
A topic in a topic model is not a label or a list — it is a probability distribution over the entire vocabulary. The topic-word distribution is that object: for one topic, a number for every word, saying how likely that word is when this topic is the one doing the writing.
What the numbers hold
In LDA it is written φ (phi): one row per topic, one column per vocabulary word, every row summing to one, estimated from the documents alone. Read a row by sorting it — the top entries are what people quote as the topic, match, goal, season, player, league for one row and court, judge, ruling, appeal for another, while the vast majority of words sit at tiny but non-zero probabilities. A Dirichlet prior controls how peaked each row is: low concentration pushes a topic onto a few dominant words, high spreads it out.
Why it is the useful half
The topic-word distribution is the half of a fitted model that gets used:
- sorting a row gives the top-N word list that labels a topic, and the input that topic coherence scores;
- it turns a word into evidence for a topic, which is how a new document acquires its document-topic distribution at inference time;
- near-identical rows are a signal that the model was fitted with too many topics.
Read it carefully
Probabilities are relative to the corpus the model saw, so a frequent word can dominate several rows at once unless preprocessing removed it. And a high probability is not a definition: the distribution records which words accompany one another under a latent theme, and nothing about what that theme means. The name is yours to supply.
The topic-word distribution is a topic's probability distribution over the whole vocabulary — in LDA, the matrix row φ giving each word's likelihood under that topic, summing to one. Sorting it produces the top-weighted words that people read as the topic and that coherence measures score, and it is the quantity that lets an unseen document be assigned topic proportions. A Dirichlet prior sets how concentrated each row is.
Think of a theme — sport, say — as having its own vocabulary. If you were writing about sport, some words would come to hand constantly: match, goal, season. Others would almost never appear: mortgage, casserole. The theme is really just those leanings.
A topic-word distribution is exactly that leaning written down as numbers. When software sifts a large pile of documents and finds the themes running through them, each theme is stored as a score for every word in the language — high for the words that belong to it, almost nothing for the rest. Look at the top-scoring words and you can usually name the theme yourself, even though the software never knew what to call it.