The nested chinese restaurant process and bayesian nonparametric inference of topic hierarchies

David M. Blei, Thomas L. Griffiths, Michael I. Jordan · DOI

TL;DR

This paper introduces the "nested Chinese restaurant process" (nCRP), a novel Bayesian nonparametric prior for learning hierarchical topic structures in documents. It enables models to discover flexible, infinitely deep topic hierarchies without pre-specifying their structure, offering a more nuanced understanding of document collections than traditional flat topic models.

What Problem Does This Paper Address?

Traditional topic models, like Latent Dirichlet Allocation (LDA), treat topics as a flat set of distributions over words, failing to capture hierarchical relationships or levels of abstraction. This limits their ability to represent complex, structured data and understand how topics relate to each other (e.g., general vs. specific topics). The authors aim to address this by developing a Bayesian nonparametric model that can infer topic hierarchies directly from data, allowing for flexible structures that adapt to the complexity of the corpus. This is particularly relevant for analyzing richly structured data common in computer science and other fields.

Methods

The core contribution is the nested Chinese restaurant process (nCRP). This is a stochastic process that generates probability distributions over infinitely deep, infinitely branching trees. It's inspired by the standard Chinese restaurant process (CRP) but extended to model hierarchical structures.

The nCRP is used as a prior in a hierarchical topic model (hLDA). In hLDA, documents are modeled as paths down a tree generated by the nCRP. Each node in the tree represents a topic (a distribution over words), and a path through the tree defines a sequence of topics at different levels of abstraction. Documents are generated by selecting a path and then drawing words from the topics along that path, with the level of abstraction for each word also being inferred.

To infer the model parameters (the topic hierarchy, topic distributions, and word-to-level assignments), the authors develop an approximate collapsed Gibbs sampling algorithm. This algorithm iteratively samples the latent variables (document paths and word-level allocations) conditioned on the observed data and other latent variables.

Datasets

The authors demonstrate their approach on three collections of scientific abstracts:

  • Journal of the ACM (JACM): 536 abstracts from 1987-2004.
  • Psychological Review: 1,272 abstracts from 1967-2003.
  • Proceedings of the National Academy of Sciences (PNAS): 12,913 abstracts from 1991-2001.

They also use simulated data drawn from an hLDA model for evaluation.

Key Insights and Ideas

  • Flexible Hierarchies: The nCRP allows for the discovery of topic hierarchies with arbitrary depth and branching factor, adapting to the data rather than imposing a predefined structure. This is a significant departure from fixed-structure models.
  • Levels of Abstraction: The model explicitly captures different levels of topic abstraction, with more general topics near the root of the hierarchy and more specific topics at the leaves. This provides a richer understanding of the thematic structure.
  • Bayesian Nonparametrics for Structure: The paper showcases the power of Bayesian nonparametric methods for inferring complex, flexible data structures like trees, moving beyond traditional parametric assumptions.
  • Preferential Attachment: The dynamics of the nCRP, similar to preferential attachment in network formation, naturally lead to clustering of documents based on shared topics at various levels.
  • Interpretability: The learned hierarchies offer a more interpretable view of document collections compared to flat topic models, allowing users to explore topics at different levels of detail.

Key Results

  • The hLDA model successfully recovers underlying hierarchical topic structures from scientific abstracts across different domains (computer science, psychology, general science).
  • For simulated data, the model accurately infers the true hierarchy, demonstrating its ability to learn from data.
  • When compared to LDA on the JACM corpus, hLDA achieved significantly better predictive performance (held-out log likelihood) for a range of topic cardinalities, particularly around the number of topics inferred by hLDA. This suggests the hierarchical structure itself contributes to better predictive modeling.
  • Qualitative analysis of LDA topics showed they were generally less interpretable, often assigning high probability to function words, whereas hLDA topics were more coherent and interpretable.

Limitations and Future Work

  • Computational Cost: While the Gibbs sampler is efficient, inferring complex hierarchical structures can still be computationally intensive, especially for very large corpora.
  • Identifiability: The ability to recover the exact tree structure depends on the size of the dataset and how "identifiable" the topics are. Datasets with polysemy or subtle topic similarities might make exact recovery harder.
  • Model Complexity: The authors note that hLDA is the simplest model exploiting the nested CRP. They suggest future work could explore models where documents exhibit multiple paths through the tree, which might be more appropriate for long, heterogeneous documents.
  • Combining Models: The paper suggests exploring models that combine the strengths of LDA (flexibility in topic usage per document) and hLDA (hierarchical structure).

Summary updated

BibTeX
@article{blei2010nested,
  author = {David M. Blei and Thomas L. Griffiths and Michael I. Jordan},
  title = {{The nested chinese restaurant process and bayesian nonparametric inference of topic hierarchies}},
  journal = {J. ACM},
  year = {2010},
  doi = {10.1145/1667053.1667056},
}
Figure