Incorporating Word Correlation Knowledge into Topic Modeling
Paper · 2015 · Pengtao Xie, Diyi Yang and Eric Xing
Summary
A list of a topic’s most probable words can make its subject obvious or leave a reader wondering what holds the list together. Topic modeling tries to discover such groups of words from a collection of documents. The authors ask whether groups become easier to interpret when the learning procedure has access to information about which words are related. The difficulty is that a relationship has a context. Apple and orange belong together when the subject is fruit, while apple can belong with Microsoft in a discussion of companies. A list that marks both pairs as related typically gives no indication of where each relationship applies.
The paper introduces MRF-LDA, an extension of Latent Dirichlet Allocation (LDA). A standard LDA analysis gives each document a mixture of topics and assigns a hidden topic to each word occurrence. Within a document, MRF-LDA connects the hidden assignments of occurrences whose words are related according to an external source. A Markov random field, which is a probability distribution defined using an undirected graph, gives a linked pair more weight when its assignments agree. Each pair can agree on whichever topic fits its document. An occurrence of apple in a document about fruit can therefore benefit from a link to orange, while an occurrence in a different document can benefit from a link to Microsoft. The shared vocabulary distribution for each topic changes through the assignments made across documents.
The links make the assignments dependent and introduce a normalization term that is expensive to calculate. The authors derive an approximate inference procedure that gives each occurrence a probability distribution over topics. In the update for an occurrence, evidence that a linked neighbor belongs to a topic raises the score of that topic. The authors also bound the normalization term to make it possible to alternate between estimating the hidden assignments and learning the shared parameters.
In experiments with 20-Newsgroups and NIPS, the authors obtain word relationships from similarities between Web Eigenwords vectors. Graduate-student annotators judge the relevance of the most probable words in a random sample of the learned topics. MRF-LDA achieves a mean coherence score of 60.8% on 20-Newsgroups and 85.8% on NIPS, the highest reported mean on each collection. It leads ordinary LDA and two alternatives that also use word relationships. The tests show that the resulting top-word lists are more coherent under this annotation procedure. Examples illustrate how a word can recur in distinct topics with different companions, while the experiment leaves open how much of the gain comes from each design choice.
Deep dive: Incorporating Word Correlation Knowledge into Topic Modeling
How MRF-LDA uses links between words to learn more coherent topics, and what human judgments on newsgroup posts and research papers show. · about 34 minutes to read
The problem and its context
What readers see when a topic is learned
A topic in the paper is a probability distribution over a collection’s vocabulary. Every word in that vocabulary can have some probability under the same topic. To make the distribution readable, an investigator can show the words with the largest probabilities. A reader can then look for a common subject among them. The name the reader gives that subject is an interpretation of the distribution. During learning, a topic is an index attached to a set of word probabilities.
A document has a different kind of distribution. Its topic proportions describe how much each of the collection’s topics contributes to that document. The vocabulary distribution for a topic is shared across the collection, while the proportions can vary across documents. This distinction lets a document draw its words from several subjects and lets evidence from many documents shape a common topic. An occurrence has its own hidden assignment, so different uses of the same vocabulary word can contribute to different topics.
The paper places LDA alongside probabilistic latent semantic indexing as an established way to describe document collections through hidden topics. In its account of LDA, a document’s topic proportions govern the assignment at every position. Given those proportions, the assignments are independent. Once a position has a topic, the word is drawn from that topic’s vocabulary distribution. Two words in the same document have a shared source of influence in the document mixture. The particular assignment of either word supplies no direct influence on the assignment of the other once that mixture is held fixed.
The independence assumption matters because it governs how evidence can enter the inference. In a document with several subjects, each occurrence makes its case for a topic through the mixture and the word’s compatibility with that topic. An external signal that two occurrences are likely to concern the same subject has no dedicated place in that calculation. Their membership in the same document can help through the document mixture. A mixture, however, applies across all of the document’s positions, including words that the outside source gives no reason to connect.
A coherent list matters when someone wants to read the output as a description of the collection. A frequent word can occupy a high position in the vocabulary distribution even when it gives a reader little help identifying a subject. A list can also contain recognizable groups whose connection is hard to explain. These are distinct problems for someone reading the result. A general word may add little to an otherwise clear list, while a cluster pointing to a different subject can make the list itself ambiguous. The paper treats outside information about word relationships as a way to influence how such lists form.
A relationship can travel farther than its context
The external knowledge of interest here is a list of pairs. The authors describe synonyms in WordNet, links between related concepts in Wikipedia, and shared categories supplied by named entity recognition as possible sources of relationships. These sources can express different kinds of connections. The common feature for this method is that each can yield a pair whose members are candidates for discussing the same subject. The pair itself does not identify a topic in the collection being analyzed.
The fruit and company example shows why that missing information is consequential. If apple and orange are similarly useful in describing fruit, that gives little reason to assign orange the same prominence as apple in a company topic. The authors make the same point with church and bible. Both can be useful in a topic about religion. In a topic about architecture, church can remain relevant while bible loses much of its relevance. The question for a topic-learning method is where to place the preference so that it helps in the contexts where it belongs.
Consider what happens if a procedure acts directly on a shared vocabulary distribution. For each topic, it can encourage the probability of apple to stay close to that of orange. If it also favors similar probabilities for apple and Microsoft, those preferences reach into the same distributions. When learning gives apple a prominent place, other words can be pulled along through connections supplied for different reasons. The authors argue that this is a poor use of a pair list that carries no information about the topic in which each link makes sense.
One can instead apply the knowledge at the level of an occurrence. A mention of apple in a fruit document is a different event from a mention in a company document. The model can favor agreement with a companion in each case and still give the mentions different assignments. This is an argument about the scope of a preference. Word identities determine where a preference is available, and the evidence from a particular document helps determine how that preference is used.
Where earlier methods put the knowledge
The closest earlier approaches in the paper’s account apply information about word relationships to topic vocabulary distributions. DF-LDA puts a Dirichlet Forest prior on those distributions. Its Must-Links favor similar probabilities for connected words within topics. Its Cannot-Links work in the other direction by preventing a pair from having large probabilities together in a topic. Thus DF-LDA represents both positive and negative information about pairs.
The paper also describes an approach by Petterson and colleagues that represents word information as features and uses it to construct a prior. Related words are encouraged to have similar distributions across topics. Newman and colleagues introduce regularizers for the topic vocabulary distributions, including a quadratic form used by the experimental comparison called Quad-LDA. These approaches differ in how they express the knowledge. For the authors’ argument, what they have in common is where the preference acts. A connection between vocabulary entries affects their probabilities across topics.
The paper discusses other ways to guide topic discovery that start with more detailed knowledge. One line of work uses WordNet’s organization into sets of synonymous words for word sense disambiguation. A topic is then defined through a process over those sets. Interactive topic modeling lets users review topics and add constraints as the analysis develops. The paper also describes a framework that expresses domain knowledge in first-order logic. It attributes difficult inference to the generality of that framework.
Other work, as the authors describe it, organizes prior knowledge across domains or starts with seed words that users think will represent a topic. Those approaches can tell the learning procedure more about how the knowledge should be interpreted. They also call for information that may be harder to obtain. MRF-LDA starts with a simpler input. Its word pairs can be assembled without deciding on the topics in advance, and their association with topics is resolved during inference.
Why an undirected graph fits the problem
The authors draw on earlier uses of Markov random fields to make nearby parts of an image agree in their hidden labels. In one example, image patches have topic labels and a field favors agreement between spatial neighbors. Another example works with superpixels, which are regions treated as units for image analysis. The common idea is that a unit’s label depends in part on a relationship to another unit. The type of relationship supplied in those image examples comes from spatial organization.
In earlier work on text, the authors describe a conditional topic random field that places dependencies along a linear chain. A chain can give nearby words a direct connection. The external word relationships in this paper can link occurrences anywhere within a document, including positions separated by intervening text. Each document’s connections come from its words and the pair list, so there is no prescribed arrangement of edges.
The distinction between the graph and the rule on its edges is important. The graph says which assignments can influence each other directly. The agreement rule says how a direct connection enters the probability calculation. The authors can use the same rule on all edges while giving different documents different graphs. This lets them retain LDA’s shared topics and its changing document mixtures, while allowing a further form of dependence to vary from document to document.
The method, step by step
Identify where a relationship can be used
The procedure starts with a vocabulary, a collection of documents and external information about related words. Each position in a document is associated with a hidden topic label. The authors examine pairs of positions in that document. When the words meet the external criterion for a relationship, the hidden labels at those positions receive an undirected edge. The words remain the observations, while the graph describes dependencies among the unknown labels.
A word type is a vocabulary entry. A word occurrence is one appearance of that entry at a particular position. The outside information is about types, whereas the graph is built over occurrences. If different documents contain the same pair of types, each document can have an edge of its own. The assignments supported by the edges can differ. An edge imposes no agreement between occurrences in separate documents. Across documents, what is shared is the learned probability of each vocabulary word under each topic.
The paper illustrates a graph in which some labels have several neighbors and others have fewer. An occurrence benefits from the evidence carried by its own neighbors. It can also be affected indirectly because those neighbors receive evidence from their neighbors. A pair can contribute to the same topic assignment even when its words occur far apart. Conversely, placing words next to each other in the text gives no direct preference for agreement unless they are linked by the outside knowledge.
Learning topics with external word relationships
The steps in order.
Give an assignment local and pairwise scores
There are two inputs to the score of a proposed set of assignments. The local input comes from a document’s topic proportions. When a topic has a large share of the document, assigning a position to that topic has a high probability under the local term. This is the part inherited from LDA. The pairwise input gives a linked pair greater weight when its labels agree. The paper calls the factors unary and binary potentials because they involve one and two graph nodes, respectively. A potential supplies a weight that becomes part of a probability distribution after normalization.
The pairwise rule treats every topic index alike. A pair can get the agreement reward from either of two possible topics if both assignments take the same value. Data about the words and the document help resolve which agreement is more plausible. Disagreement is allowed and simply forgoes the reward. This makes it possible for a document with mixed content to retain separate assignments even when outside knowledge proposes a connection across those subjects.
Write the assignment distribution for a document with its graph held fixed. The paper combines the two kinds of weights as follows.
p(z | θ, λ) = (1/A(θ, λ)) ∏ᵢ₌₁ᴺ p(zᵢ | θ) exp{λ ∑₍ₘ,ₙ₎∈P I(zₘ = zₙ)}
Here p denotes probability, and the vertical bar separates the outcome from what it is conditioned on. The vector z contains the topic labels zᵢ, where i indexes a position and N is the number of positions. The vector θ gives the document’s topic proportions. The product ∏ multiplies the local probabilities p(zᵢ | θ) across the document. The quantity λ is the non-negative strength of the edge preference. The sum ∑ runs over the set P of undirected edges, with m and n indexing the endpoints of an edge. The indicator I takes the value one when its equality holds and zero otherwise. The exponential exp converts the accumulated agreement score into a weight. The partition function A is the normalizer. Its dependence on P is implicit.
The document does not have a fixed number of permitted agreements under this distribution. A proposal receives weight according to how many edges agree, as well as how well its labels fit the mixture. In a part of the graph with several links, a label can be supported by several agreements at once. The local probabilities still matter there. When λ is zero, the exponential contributes the same factor for every assignment and the conditional assignment rule reduces to that of ordinary LDA.
The partition function is the total weight of all possible assignment vectors.
A(θ, λ) = ∑z [∏ᵢ₌₁ᴺ p(zᵢ | θ)] exp{λ ∑₍ₘ,ₙ₎∈P I(zₘ = zₙ)}
The sum indexed by z ranges over complete assignments of all N labels. The product contains the local probability for each position i under the topic proportions θ. The exponential uses λ and counts agreeing edges from P, with I marking agreement between the labels at positions m and n. As before, A names the total weight. Dividing by it gives a conditional distribution whose probabilities sum to one.
It is easy to score agreement when an assignment is already specified. A is difficult because it requires the total for all assignments, including alternatives that differ at many positions. Those alternatives can satisfy different sets of edges. Two assignments can even have the same counts by topic and differ in how many edges they satisfy. That is why a summary of how much each topic occurs cannot generally give the exact normalizer.
Keep the document mixture and word probabilities
The document mixture is drawn under a Dirichlet prior. A Dirichlet distribution is a distribution over vectors of probabilities that sum to one. Its parameters affect which mixtures the prior favors. After drawing a mixture, the procedure draws the complete vector of topic assignments using the graph-weighted distribution. Finally, it draws each word from the vocabulary distribution of the topic assigned to its position.
p(θ, z, w | α, β, λ) = p(θ | α) p(z | θ, λ) ∏ᵢ₌₁ᴺ p(wᵢ | zᵢ, β)
The probability p on the left is the joint distribution of the document mixture θ, the labels z and the observed word sequence w, with parameters α, β and λ. The vector α parameterizes the Dirichlet prior p(θ | α). The term p(z | θ, λ) is the graph-weighted assignment distribution, with the graph again understood. The parameter β holds one vocabulary probability distribution per topic. In the product over the N positions, wᵢ is the observed word at position i, zᵢ is its assigned topic, and p(wᵢ | zᵢ, β) is the probability of the word under that topic.
This structure explains how the graph can influence the words that eventually appear on a topic list. An outside relationship first influences a hidden assignment. That assignment supplies evidence about how probable the occurrence’s word should be in the corresponding topic. Across many documents, the contributions of all positions affect the shared distribution. A word can accumulate substantial support under different topics when its different occurrences are assigned differently.
The graph is available for an observed document because the authors construct it from the words. With that graph in place, the factorization describes how the mixture, assignments and words are scored. The paper gives its generative account at this level. There is no separate step in the account for drawing the outside knowledge or for generating the graph before the words are known. This distinction matters when reading the procedure as an analysis of observed documents.
Replace the hard posterior with a tractable distribution
In analysis, the words are given and the topic labels and mixtures are unknown. The desired posterior is the distribution of those unknowns conditional on the words. Computing it exactly is already difficult in standard LDA. With the graph, the posterior must also account for the interaction between linked labels and the way the partition function changes with a document’s mixture. The authors use variational inference. It selects a simpler distribution and adjusts its parameters so that it approximates the posterior.
The chosen family has a separate factor for the mixture and one for each word’s assignment.
q(θ, z) = q(θ | η) ∏ᵢ₌₁ᴺ q(zᵢ | φᵢ)
The letter q denotes the approximating distribution. Its argument θ is the document mixture and z contains all topic labels. The factor q(θ | η) is Dirichlet with variational parameter vector η. The factor q(zᵢ | φᵢ) is a categorical distribution over topic labels for position i, represented by the probability vector φᵢ. The product runs over all N positions.
Though q factors into independent distributions, that choice does not discard the graph from inference. It simplifies how the approximation represents uncertainty. The fitting objective still contains the graph, and that objective makes each position’s probability vector depend on those of neighboring positions. The resulting vectors can reflect one another’s evidence even though samples taken from the fitted q would be independent across positions.
The authors use Jensen’s inequality to write a lower bound on the log probability of the observed words. Grouped by the sources of evidence and the terms for the approximation, it has this form.
L = E_q[log p(θ | α)] + E_q[log p(z | θ, λ)] + E_q[log ∏ᵢ₌₁ᴺ p(wᵢ | zᵢ, β)] − E_q[log q(θ | η)] − E_q[log ∏ᵢ₌₁ᴺ q(zᵢ | φᵢ)]
Here L is the variational lower bound, log denotes the natural logarithm and E_q takes an expectation under q. The terms containing p are the expected log scores from the prior on θ, the joint assignments z, and the word probabilities at the N positions. The parameters α, λ and β are those of the prior, edge preference and vocabulary distributions, respectively. In the remaining terms, η and φᵢ parameterize the approximating factors for the mixture and the assignment at i. Subtracting the expected log probability under q adds the entropy of the approximation, a measure of how spread out it is.
The assignment contribution can be expanded by separating the local evidence, the reward from edges, and the cost of normalization.
E_q[log p(z | θ, λ)] = −E_q[log A(θ, λ)] + λ ∑₍ₘ,ₙ₎∈P ∑ₖ₌₁ᴷ φₘₖ φₙₖ + ∑ᵢ₌₁ᴺ ∑ₖ₌₁ᴷ φᵢₖ [Ψ(ηₖ) − Ψ(∑ⱼ₌₁ᴷ ηⱼ)]
The expectation E_q is again taken under the variational distribution. The probability p involves all assignments z conditional on θ and λ, and A is its partition function. The edge sum runs over pairs of positions m and n in P. The topic index k ranges over K topics, and φₘₖ and φₙₖ are the corresponding assignment probabilities at the endpoints. The final sum ranges over the N positions i and the K topics. The quantity φᵢₖ is the assignment probability at position i for topic k. The symbol Ψ denotes the digamma function, which enters the expected log of a topic proportion under a Dirichlet distribution. The parameter ηₖ belongs to topic k, and j indexes all components of η in the total.
For a particular topic, multiplying the two endpoint probabilities gives the chance under q that both labels take that topic. Adding those probabilities across topics gives the expected agreement on that edge. An edge can benefit from several plausible ways of agreeing. Evidence in favor of a stable common assignment emerges as the probability vectors concentrate on a shared topic. The expected agreement can be evaluated without enumerating complete assignments.
Bound the costly normalization term
The difficult part of the last expression is the expected log of A. It appears with a minus sign. An upper bound on it therefore yields a lower bound on the overall objective. The authors first use a tangent bound on the logarithm.
E_q[log A(θ, λ)] ≤ c⁻¹ E_q[A(θ, λ)] − 1 + log c
Here A is the partition function at mixture θ and edge strength λ, and E_q is expectation under the variational distribution. The inequality sign ≤ means that the expression on the left is at most the one on the right. The auxiliary parameter c is the positive point at which the logarithm is bounded by its tangent, and c⁻¹ is its reciprocal. The logarithm itself is log. This shifts the difficulty from the expected log partition function to the expected partition function.
For non-negative λ the edge contribution reaches its largest possible value when every edge agrees. The authors use that ceiling and collect terms by counts of topic labels. In this step, the ceiling makes the detailed pattern of agreements unnecessary for the bound.
E_q[A(θ, λ)] ≤ exp{∑₍ₘ,ₙ₎∈P λ} ∑ₙ₁,…,ₙₖ E_q[∏ₖ₌₁ᴷ θₖⁿᵏ]
The expectation, partition function, mixture, edge set and edge strength retain their previous meanings. The exponential contains one copy of λ for each edge with endpoints m and n in P. In the outer count sum, n₁ through nₖ denote the topic counts, with one count for each of the K topics and with the counts totaling N. Within the product, k runs across all topics, θₖ is the mixture component for topic k, and the superscript nᵏ denotes raising it to the power nₖ.
The paper evaluates the Dirichlet moment in the last sum using gamma functions. Written for a single count vector, the identity it uses is as follows.
E_q[∏ₖ₌₁ᴷ θₖⁿᵏ] = [Γ(∑ₖ₌₁ᴷ ηₖ) / ∏ₖ₌₁ᴷ Γ(ηₖ)] [∏ₖ₌₁ᴷ Γ(nₖ + ηₖ) / Γ(∑ₖ₌₁ᴷ (nₖ + ηₖ))]
The expectation takes the moment under the Dirichlet factor of q. The product uses K components θₖ of the mixture, with exponent nₖ for each component. The symbols ηₖ are the corresponding variational Dirichlet parameters. The function Γ is the gamma function. The first bracket normalizes the Dirichlet density with parameters η, and the second gives the integral of the product after the powers nₖ have been added to those parameters. The slashes express division.
The authors also write the resulting count sum in terms of rising products, called Pochhammer symbols. They bound it with a sum that has a multinomial counting factor in each term.
∑ₙ₁,…,ₙₖ [∏ₖ₌₁ᴷ (ηₖ)ₙₖ / (∑ₖ₌₁ᴷ ηₖ)ᴺ] ≤ ∑ₙ₁,…,ₙₖ [N! / ∏ₖ₌₁ᴷ nₖ!] [∏ₖ₌₁ᴷ (ηₖ)ₙₖ / (∑ₖ₌₁ᴷ ηₖ)ᴺ] = 1
Both sums range over count vectors with total N. The product runs over topic k from the first through the Kth topic. The notation (ηₖ)ₙₖ means a rising product of nₖ factors starting at ηₖ and increasing by one at each factor. The notation with total ∑ₖ₌₁ᴷ ηₖ in parentheses, followed by the raised N, denotes the same rising product with N factors in this identity. An exclamation mark denotes a factorial. The coefficient formed from these factorials counts the arrangements having the given counts. With the coefficient included, the sum groups the probabilities of all arrangements by their counts, yielding one.
This gives an upper bound whose dependence on the graph is through the number of edges. The actual graph still appears in the expected reward for agreement. Combining the bounds gives the following tractable term.
E_q[log A(θ, λ)] ≤ c⁻¹ exp{∑₍ₘ,ₙ₎∈P λ} − 1 + log c
The expectation is under q. The function A is the partition function conditional on the mixture θ and strength λ. The parameter c is the positive tangent point, exp is the exponential, and the sum takes λ once for each pair of endpoints m and n in the edge set P. The right-hand side can be evaluated with the edge count and the strength parameter. The bound does not require checking whether a proposed assignment really makes all those edges agree.
Alternate between document inference and shared updates
The authors maximize the tractable objective through variational expectation-maximization. In the expectation step the shared parameters are held fixed. The approximation is adjusted separately for each document. The Dirichlet parameter update adds expected topic counts to the prior, and the tangent parameter takes the value of the upper bound used for the expected partition function.
ηₖ = αₖ + ∑ᵢ₌₁ᴺ φᵢₖ
Here ηₖ is the variational Dirichlet parameter for topic k and αₖ is its prior parameter. The sum over positions i counts each of the N occurrences fractionally using the assignment probability φᵢₖ. This makes the inferred mixture sensitive to how much evidence the document supplies for each topic.
c = exp{∑₍ₘ,ₙ₎∈P λ}
The auxiliary parameter c is specific to the document. The exponential takes the sum of the current shared edge strength λ over all edges in its set P, indexed by endpoints m and n.
The update of an occurrence’s own probability vector is where the graph can be read most directly.
φᵢₖ ∝ exp{Ψ(ηₖ) − Ψ(∑ⱼ₌₁ᴷ ηⱼ) + λ ∑ⱼ∈N(i) φⱼₖ + ∑ᵥ₌₁ⱽ wᵢᵥ log βₖᵥ}
The symbol ∝ means that the scores on the right are normalized over topics k to form probabilities φᵢₖ for position i. The function exp exponentiates the combined score. The two digamma terms Ψ use the topic’s variational parameter ηₖ and the total across the K parameters ηⱼ, with j indexing topics inside that total. In the next sum, j instead indexes the neighbors in N(i), the set of positions linked to i. Each neighbor supplies its probability φⱼₖ for the candidate topic, scaled by λ. In the vocabulary sum, V is the vocabulary size, v indexes entries, and wᵢᵥ indicates whether entry v is the observed word at position i. The vocabulary probability βₖᵥ belongs to topic k and entry v, and log is the natural logarithm.
This update combines three distinct forms of evidence. The mixture supplies a preference based on the whole document. The word likelihood supplies a preference based on how well the topic currently explains the word itself. The edge term supplies a preference based on other occurrences chosen by the external knowledge. If a neighbor has a high assignment probability for a topic, the score for that topic increases. A neighbor with diffuse probabilities provides a less decisive preference. Positions without neighbors receive the mixture and word terms.
In the maximization step, the fitted document distributions are held fixed while the shared parameters are updated. The vocabulary update pools the fractional assignments across documents.
βₖᵥ ∝ ∑ᵈ₌₁ᴰ ∑ᵢ₌₁ᴺᵈ φ_d,i,k w_d,i,v
Here βₖᵥ is the vocabulary probability for entry v in topic k. The index d ranges over D documents and i ranges over the Nᵈ positions in document d, where Nᵈ denotes its length. The probability φ_d,i,k is the assignment weight on topic k at that position, and w_d,i,v marks whether the occurrence is vocabulary entry v. The proportionality is resolved by normalizing over vocabulary entries for each topic.
This update explains why word relationships can affect a shared topic list even though the edges stay within documents. If the graph adds support to several occurrences’ membership in a topic, their vocabulary entries gain expected counts there. Other occurrences can contribute to a different topic. Across successive inference and parameter updates, the changed vocabulary probabilities also alter the word evidence that each occurrence receives.
The paper gives a separate update for the shared agreement strength.
λ = log{[∑ᵈ₌₁ᴰ ∑₍ₘ,ₙ₎∈P_d ∑ₖ₌₁ᴷ φ_d,m,k φ_d,n,k] / [∑ᵈ₌₁ᴰ |P_d| / c_d]}
The parameter λ weights agreement, and log takes the natural logarithm. The numerator adds the expected agreement of all edges across the D documents. In each document d, the set P_d contains its edges, m and n index their endpoints, and k runs over the K topics. The factors φ_d,m,k and φ_d,n,k are the two endpoint probabilities for the same topic. In the denominator, |P_d| is the edge count of document d and c_d is the document’s current tangent parameter. The denominator pools the contributions that those document normalizers make to the strength update.
The two halves of learning depend on each other. The document updates use the current vocabulary distributions and edge strength to revise the hidden assignments. The shared updates then use the revised assignment probabilities to change the vocabulary distributions and the strength. The paper specifies this approximation and the associated updates. The experiment evaluates the topics produced by the whole procedure.
Experiments and results
Collections, word relationships and comparison systems
The experiments use two collections with different subject matter. For 20-Newsgroups, the paper lists 18,846 documents and 40,343 words in the dataset statistics. The examples the authors present include discussions about guns, sports and health insurance. For NIPS, the dataset statistics list 1500 documents and 12,419 words. The examples there include technical subjects such as vision and electronic circuits. These word counts describe the dataset table’s vocabulary sizes. The evaluation that follows operates on topic lists inferred from the collections.
The external input comes from Web Eigenwords. Its word vectors represent distributional semantics, meaning that information about the contexts in which words occur is used to characterize them. Cosine similarity compares the directions of the vectors. The MRF-LDA experiments call a pair correlated when the vectors’ similarity is higher than 0.99. The graph uses the resulting designation to decide whether an edge is present. The edge rule in the method then uses the shared strength, instead of assigning a distinct strength according to each admitted pair’s similarity.
The authors identify other sources of word embeddings that could supply pairs, including Word2Vec and GloVe. Their role in the paper is to illustrate a possible substitution at the input stage. The reported experiments use Web Eigenwords. The paper names 20-Newsgroups and the NIPS collection as its data sources and identifies Web Eigenwords as the source of the vectors.
All methods learn 100 topics on each collection. Ordinary LDA is the reference without external word relationships, and the authors say its settings follow the defaults in the work introducing DF-LDA. DF-LDA uses a prior over vocabulary distributions with both kinds of word link. For this baseline, the authors set α to 1, β to 0.01 and η to 100. In this description of DF-LDA, the notation refers to its own settings. The Must-Link threshold is higher than 0.99, as in the positive-pair selection for MRF-LDA. DF-LDA also gets Cannot-Links from similarities lower than 0.1.
Quad-LDA is the other comparison that incorporates word relationships into the vocabulary distributions. The authors report a β setting of 0.01 and define its α using the factor 0.05 together with the total number of word occurrences, the number of documents and the number of topics. These settings form part of the concrete comparison. A common topic count and a common source of relatedness help place the reported scores in context, while the comparison methods still have different priors, settings and uses for the input.
What the annotators measured
The coherence measure starts with a human decision about what can be understood from a list of high-probability words. For every sampled topic, an annotator sees its top 10 candidate words. The annotator first decides whether the list has an interpretable subject. If it does, the annotator marks the words that fit that subject. If the topic cannot be interpreted, every candidate word is treated as irrelevant.
CM = relevant candidate words / total candidate words
The abbreviation CM stands for coherence measure. The numerator counts candidates marked relevant under the protocol and the denominator counts candidates considered. The slash indicates division. The tables report this fraction as a percentage. The protocol can thus assign low coherence because a topic has no recognizable subject or because an otherwise interpretable subject has many candidates judged irrelevant.
Four graduate students carried out the labeling. For each method on each dataset, the authors randomly selected 10% of the topics. The resulting percentages concern this sampled subset and its highest-ranked words. They are not classification accuracy on documents, and the split is a sample for evaluation from the learned topics. The article’s comparisons should therefore be read as measurements of the quality of the visible word lists under this specific protocol.
The authors also report the intraclass correlation coefficient, a measure of agreement among the annotators. It is 0.925 on 20-Newsgroups and 0.725 on NIPS. The authors interpret both as good agreement. This statistic addresses whether the annotators’ judgments are consistent with one another. The coherence scores address how frequently those judgments favored the words displayed for a topic.
Coherence on 20-Newsgroups
Mean coherence measure for sampled 20-Newsgroups topics
MRF-LDA has the highest mean coherence among the compared methods.
The numbers
| System or setting | CM % |
|---|---|
| LDA | 28.5 |
| DF-LDA | 36.8 |
| Quad-LDA | 31.8 |
| MRF-LDA (this paper) | 60.8 |
MRF-LDA has a reported mean of 60.8% on the sampled 20-Newsgroups topics. DF-LDA is the strongest baseline at 36.8%. Quad-LDA has a mean of 31.8%, and standard LDA has a mean of 28.5%. Both comparison methods with a way to use word relationships score above LDA on this collection, while the method that applies them to hidden assignments scores higher than either. Every annotator’s reported MRF-LDA score on this collection is higher than that annotator’s score for any baseline.
The qualitative examples give a sense of what an annotator might see. The authors present topic lists for crime and guns, sex, sports, and health insurance. In the sports example from standard LDA, words such as team and hockey give a reader a recognizable subject, while words such as will and year offer little support for it. In a list from DF-LDA, words about sexuality appear alongside book, reference and read. Those words give a reader two possible subjects to account for within the same list.
The Quad-LDA example for health insurance includes relevant terms such as money and insurance but also includes columbia, year and write, which the authors regard as weaker fits. The MRF-LDA example includes insurance along with words about care, cost and companies. This makes the displayed list easier to read as a group about the financing and provision of care. Individual examples show how a list can change in character. The annotation results supply evidence across randomly chosen topics beyond those illustrations.
Coherence on NIPS
Mean coherence measure for sampled NIPS topics
MRF-LDA leads on NIPS, where ordinary LDA is the strongest baseline.
The numbers
| System or setting | CM % |
|---|---|
| LDA | 73 |
| DF-LDA | 66 |
| Quad-LDA | 35.8 |
| MRF-LDA (this paper) | 85.8 |
The reported NIPS mean for MRF-LDA is 85.8%. Standard LDA reaches 73%, DF-LDA 66%, and Quad-LDA 35.8%. Ordinary LDA is the best baseline on this collection. Both of the methods that incorporate word relationships into vocabulary priors score below it. This ordering makes the comparison informative about how the input is used. Having a mechanism for external knowledge by itself does not guarantee a higher coherence score. MRF-LDA again leads for each individual annotator as well as in the reported means.
The examples for NIPS cover vision, neural networks, speech and electronic circuits. The MRF-LDA vision list contains terms including disparity, stereo, camera and detector, which can be read alongside image and pixel as describing a technical subject. Its speech list includes acoustic, phonetic and speaker. The lists also illustrate that a baseline can yield a clear topic. For example, the Quad-LDA list selected for circuits includes terms such as circuit, voltage and transistor even though its aggregate coherence is lowest on NIPS.
The aggregate score and an illustrative list answer different questions. The examples show what a particular inferred vocabulary distribution looks like and where a reader might notice relevant or irrelevant candidates. The randomized annotation sample gives the reported comparison across a portion of each method’s output. On both collections, the examples and mean scores support the authors’ conclusion about MRF-LDA’s topic lists. The ordering of the alternatives changes across the collections, which gives a reason to retain the dataset names when stating the results.
What the ablations show
The paper reports no component ablation of MRF-LDA. Its evidence about the mechanism comes from the comparison with ordinary LDA and two knowledge-based alternatives, plus a qualitative examination of a word that appears in different topic lists.
What the comparisons isolate
The ordinary LDA baseline gives a reference for the combined effect of introducing an external pair list and acting on it through a graph, along with the attendant changes to inference. The theoretical connection between the methods is particularly clear because removing the pairwise reward makes the label distribution revert to the LDA form. The experiment, however, compares the full systems. It does not report a version of the same fitting procedure run with λ fixed at zero. The improvement over ordinary LDA therefore belongs to the tested package of choices rather than to an isolated intervention on a parameter.
The other baselines address the possibility that a supply of word relationships alone accounts for the result. DF-LDA and Quad-LDA already have ways to use such information. Their vocabulary priors are different mechanisms from the graph over hidden labels. On 20-Newsgroups both knowledge-based baselines improve on LDA in reported mean coherence. On NIPS both fall below it. MRF-LDA leads on both. Together, those comparisons support the claim that the way the authors incorporate the relationships is effective under the tested settings.
They do not separately identify the effect of putting the links at the occurrence level and the effect of using a soft agreement weight. Both change together in the proposed method. The baselines also have their own inference procedures and parameter settings, and DF-LDA includes negative links. The comparisons are informative as evaluations of complete choices for learning topics. Assigning a share of the observed improvement to any one of those differences would require a closer comparison within the same setup.
What the repeated word illustrates
The authors examine child in the 20-Newsgroups topics. Their external knowledge connects it to gun and also to men. In the lists reported for MRF-LDA, child occurs with gun in the crime topic and with men in the topic labeled sex. The authors relate the former to youth crime discussion and interpret the latter in the context of the separate topic. The observation at the level of the lists is that the same vocabulary word is prominent in both, in each case alongside a different externally linked word.
The example is consistent with the intended mechanism. Agreement with a neighbor is evaluated for occurrences in documents. Evidence from occurrences assigned with gun can raise the shared probability of child in the crime topic, and evidence from other occurrences can raise its probability in the other topic. A single vocabulary entry can therefore participate in two groups. The two links need not force the two companion words toward similar probabilities in the same distributions.
The displayed lists do not trace the individual occurrences, and they give no direct measure of how an edge changed the posterior of a particular mention of child. The example establishes that the final output can exhibit the pattern the authors wanted to make possible. It is stronger as an illustration of that flexibility than as an intervention showing that any particular edge caused the resulting topics.
What agreement across annotators adds
The paper’s inter-annotator analysis addresses the stability of the evaluation rather than the operation of the graph. The reported intraclass correlation coefficients indicate that annotators generally agreed under the procedure, with stronger agreement on 20-Newsgroups. The fact that each annotator gives MRF-LDA the leading result on each collection also keeps the comparison from depending on how a single reader used the relevance criterion.
Agreement does not explain why a topic list was judged coherent. A common response can reflect a recognizable subject, a large share of relevant candidates, or both. The annotation design combines those properties. A list that gives no clear subject loses credit for every candidate, while a list with a recognizable subject can lose credit only for some words. Together with the topic examples, the agreement analysis supports an interpretation of the results in terms of readable top-word lists.
Limitations
Limits the authors identify
The authors identify exact inference as a computational obstacle. The joint assignment distribution couples a document mixture to a graph, and its partition function covers complete configurations of the hidden labels. Their procedure solves an approximate optimization problem using a factorized variational distribution and a further bound on the normalization term. In particular, the approximation does not represent residual dependencies between individual labels in its final factorization, even though graph interactions enter the calculation used to fit it.
The authors also identify a limitation of the input. A word pair typically tells the procedure that two vocabulary entries are related somewhere, with no topic interpretation attached. The method lets data determine which topic the occurrences could share. That is a way to accommodate missing context. It gives no direct supervision about senses and adds no explicit sense label to the pair. A connection can still be unhelpful in a given document, and the procedure must balance it against the document and word evidence.
The paper makes the scope of the knowledge deliberately simple. It focuses on pairwise connections because the authors consider them easier to obtain than logical rules, manually supplied seeds or other detailed structures discussed in earlier work. In the proposed field, there is an edge reward for agreement on positive pairs. There is no corresponding edge penalty encoding negative pair information of the kind supplied to DF-LDA. The benefit being tested is what can be done with that specific kind of available input.
Limits visible in the design and evaluation
The graph-specific interaction and the approximation to the partition function use different amounts of information about the graph. The agreement term counts expected matches on individual edges. The normalizer bound uses a ceiling that would apply if all edges agreed. Graphs with the same edge count receive the same ceiling even if their arrangements of edges make their exact normalizers different. The paper does not measure the tightness of the bound on the experimental documents or the effect of graph shape on that tightness. The reported scores establish what the approximation produced, without establishing how closely its posterior matches exact inference.
The parameter updates also leave some implementation questions open. The method specifies λ as non-negative and gives a logarithmic update in terms of expected agreements and graph sizes. It does not spell out how the update handles a collection with no edges or how the nonnegativity restriction is enforced if the stationary expression falls outside it. These questions arise when applying the stated procedure beyond its reported experimental setup. The topic evaluation provides no evidence about those cases.
There is a further distinction between using the recipe for inference with observed documents and treating it as a complete generative account of text. The graph in an analyzed document is built using the words already observed. The assignment calculation then conditions on that graph. A fully specified process for generating a fresh document, including how a graph based on its as-yet unobserved words would arise, is not evaluated. This does not affect what the annotated topic lists show. It limits how far one can extend the generative interpretation of the recipe.
Only one external vector source is evaluated. GloVe and Word2Vec are mentioned as possible ways to obtain analogous input. The experiment does not substitute either source, vary the cutoff, or measure how coherence changes with the density of the graph. The cutoff can determine which occurrences receive support and how many neighbors participate in a local update. The evidence pertains to the pair set produced by the reported Web Eigenwords configuration. The paper also provides no comparison of the approach’s time or memory requirements across different graph sizes.
The evaluation studies topics learned at a single reported topic count on two collections. Its random sample helps avoid relying entirely on the authors’ chosen examples, but it covers only part of the learned output. Judgments concern the most probable words a reader sees. The design does not assess the remaining vocabulary probabilities or require different topics to represent distinct subjects. A set of topics can have readable individual lists even if some lists cover similar ground. The coherence score does not evaluate that property.
Similarly, the experiment reports no held-out prediction measure and no application-level outcome such as improved document retrieval. Better scores here establish improved relevance of the displayed words under the human protocol. They do not show whether the learned document proportions are more useful for another task. The annotators’ agreement is evidence that the protocol yielded consistent judgments. It does not supply uncertainty across independent training runs or establish how much the mean would vary under a different random sample of topics. The authors describe a clear lead in the observed means, and the scope of that evidence is the comparison they report.
Finally, the contextual interpretation is evaluated indirectly. The child example demonstrates that a word can occur among the prominent terms of different topics with different companions. There is no set of individual mentions annotated by sense and no direct evaluation of whether those mentions received the intended labels. The paper’s evidence supports a claim about flexibility in the topic representation and the readability of its output. A claim about recognizing the meaning of particular occurrences would require judgments at that level.
What came after
Efficient Methods for Incorporating Knowledge into Topic Models addresses the incorporation of knowledge with an emphasis on efficiency. That question connects directly to the computational issue raised by MRF-LDA. Dependencies give external knowledge a place to act, but the resulting assignment distribution is harder to normalize and fit. The citing work’s title identifies efficiency as its focus. Its specific use of the assignment graph, the variational bound or the experimental protocol cannot be established from that citation and title.
PaRe: A Paper-Reviewer Matching Approach Using a Common Topic Space places a topic representation in the context of matching papers and reviewers. A common topic space gives that work a different objective from the coherence study. The representation is part of a matching approach, whereas MRF-LDA is evaluated on how readers judge the words that describe its topics. The citation connects the papers, but the title does not establish whether PaRe uses MRF-LDA to learn its topic space or cites it in discussing alternatives. There is therefore no basis for attributing a reviewer-matching result to MRF-LDA’s treatment of word relationships.
Cite
Cite as Pengtao Xie, Diyi Yang and Eric Xing. 2015. Incorporating Word Correlation Knowledge into Topic Modeling. Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
@inproceedings{xie2015incorporating,
title = {{Incorporating Word Correlation Knowledge into Topic Modeling}},
author = {Pengtao Xie, Diyi Yang and Eric Xing},
booktitle = {Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
year = {2015},
doi = {10.3115/v1/n15-1074},
url = {https://doi.org/10.3115/v1/n15-1074}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/xie-2015-incorporating-word-correlation-knowledge-into/