[Paper Review] A Nested HDP for Hierarchical Topic Models
This paper proposes the nested hierarchical Dirichlet process (nHDP), a Bayesian nonparametric model that extends the nested Chinese restaurant process (nCRP) by allowing each word in a document to follow its own path through a shared topic tree, enabling flexible thematic borrowing across topics. Unlike the nCRP’s rigid single-path constraint, the nHDP uses document-specific distributions over paths via nested Dirichlet processes, learning a coherent hierarchical topic structure while supporting cross-thematic variation, demonstrated on 1.8 million New York Times articles with scalable inference.
We develop a nested hierarchical Dirichlet process (nHDP) for hierarchical topic modeling. The nHDP is a generalization of the nested Chinese restaurant process (nCRP) that allows each word to follow its own path to a topic node according to a document-specific distribution on a shared tree. This alleviates the rigid, single-path formulation of the nCRP, allowing a document to more easily express thematic borrowings as a random effect. We demonstrate our algorithm on 1.8 million documents from The New York Times.
Motivation & Objective
- To overcome the limitation of the nested Chinese restaurant process (nCRP), which restricts all words in a document to a single path through the topic tree, limiting thematic expressiveness.
- To enable cross-thematic borrowing within documents by allowing each word to independently select a path to a topic node, rather than being constrained to a single thematic path.
- To develop a Bayesian nonparametric prior that learns a shared, global topic tree structure while permitting document-specific topic distributions through nested Dirichlet processes.
- To maintain thematic coherence in topic hierarchies—where root topics are general and leaf topics are specific—while allowing for random effects and thematic borrowing within documents.
- To scale the model to large corpora, such as 1.8 million New York Times articles, using a variational inference algorithm for efficient learning.
Proposed method
- The nHDP uses a global nested Chinese restaurant process (nCRP) as a base distribution to define a shared, infinite topic tree structure with hierarchical parent-child relationships.
- For each document, a separate Dirichlet process is drawn over the nodes of the global nCRP tree, enabling document-specific topic distributions that can favor different subtrees.
- Each node in the tree includes a document-specific switching probability (i.i.d. beta-distributed) that determines whether to stop at that node or continue down the tree for a given word.
- Word generation proceeds by walking down the document-specific HDP path, stopping at a node with the node’s switching probability, then sampling the word from the topic’s multinomial distribution at the terminal node.
- The model employs a nested HDP structure: the global nCRP serves as a discrete base distribution for a second-level HDP per document, enabling shared atoms (topics) with document-specific weights.
- Scalable variational inference is used to learn the model parameters efficiently, enabling training on large-scale datasets like the 1.8M-document New York Times collection.
Experimental results
Research questions
- RQ1Can a hierarchical topic model allow each word in a document to follow its own path through a shared topic tree, rather than being restricted to a single path?
- RQ2How can a Bayesian nonparametric model learn a coherent, global topic hierarchy while supporting flexible thematic borrowing within documents?
- RQ3What is the impact of allowing document-specific distributions over paths in a shared topic tree on topic coherence and thematic expressiveness?
- RQ4Can the proposed model scale to large corpora, such as 1.8 million news articles, with efficient inference?
- RQ5How does the nHDP compare to the nCRP in capturing hierarchical topic structures and cross-thematic relationships in real-world text?
Key findings
- The nHDP successfully learns a meaningful, interpretable hierarchical topic structure on 1.8 million New York Times articles, with top-level topics such as sports and foreign affairs forming coherent subtrees.
- The model captures thematic branching by subregion and issue in foreign affairs and by team in sports, indicating effective hierarchical organization of topics.
- Each document is able to express thematic borrowing through multiple paths, as evidenced by words selecting different subtrees, which the nCRP cannot model due to its single-path constraint.
- The use of document-specific switching probabilities allows for random effects and thematic variation within documents, improving modeling flexibility.
- The scalable variational inference algorithm enables one-pass training on the large dataset, demonstrating practical applicability to real-world text corpora.
- The model maintains thematic coherence, with root topics being general and child topics becoming increasingly specific, as intended by the hierarchical design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.