NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge-Aware Bayesian Deep Topic Model

Dongsheng Wang, Yishi Xu, Miaoge Li, Zhibin Duan, Chaojie Wang, Bo Chen, Mingyuan Zhou

Abstract

Traditional probabilistic topic models often struggle to produce human-interpretable results, frequently over-emphasizing high-frequency words or failing to capture semantic hierarchies. We present the Knowledge-Aware Bayesian Deep Topic Model (TopicKG), a framework that bridges the gap between unsupervised text mining and structured domain knowledge. By jointly embedding documents and prior topic hierarchies into a shared latent space, TopicKG discovers highly coherent taxonomies. Its adaptive variant, TopicKGA, further enhances performance by "self-correcting" prior knowledge to better align with the specific nuances of a target corpus.

Introduction

Purely data-driven topic models, such as Latent Dirichlet Allocation (LDA), rely solely on word co-occurrences. While effective for broad pattern recognition, they often yield "human-unfriendly" results, such as assigning infrequent but semantically relevant words to incorrect topics. Although hierarchical topic models attempt to organize concepts into trees, they typically ignore readily available structured knowledge like WordNet or domain-specific taxonomies. Existing knowledge-aware models are often shallow or highly sensitive to the quality of the provided knowledge; if the prior hierarchy does not perfectly match the data, performance can degrade significantly.

Methodology

The authors introduce TopicKG and its adaptive counterpart, TopicKGA, to address these challenges through a multi-layered generative approach.

  1. Joint Generative Framework: The model treats the document's bag-of-words vector and the prior topic tree as components of a single generative process, utilizing a Gamma Belief Network (GBN) for multi-layer document representations.
  2. Shared Embedding Space: Words and topics are mapped into a unified $d$-dimensional space. Topic distributions are derived from the semantic similarity (inner product) between these embeddings.
  3. Graph Convolutional Aggregation: To integrate the topic tree, the model employs a Graph Convolutional Network (GCN). This allows topic embeddings to refine themselves by aggregating information from parent and child nodes in the hierarchy.
  4. Adaptive Structure (TopicKGA): To solve the mismatch problem, TopicKGA uses an adaptive graph technique to learn missing links from the target corpus. This allows the model to refine prior knowledge to better represent the actual data distribution.
The model jointly processes the target corpus and a prior topic tree to produce coherent, hierarchical topics.

Key Insights and Ideas

Knowledge as Regularization

The prior topic tree acts as a powerful regularizer, constraining embedding vectors to conform to a known structure. This prevents the model from drifting into incoherent "noise" topics that often plague unsupervised models.

Addressing the Mismatch Problem

General-purpose knowledge (like WordNet) often lacks the specific nuances of a specialized corpus. TopicKGA’s ability to add "free topics"—new nodes and links—allows it to capture concepts present in the data but missing from the initial prior knowledge.

Efficiency via Variational Autoencoders

By basing inference on Variational Autoencoders (VAEs), specifically the Weibull VAE, the model remains scalable and fast. It outperforms other knowledge-based models that rely on slower algorithms like Expectation-Maximization (EM).

Experimental Results

The models were evaluated on four standard benchmark datasets: 20 Newsgroups (20NG), R8, Reuters, and RCV2. TopicKG/A were compared against several baselines, including standard Embedded Topic Models (ETM) and BERT-based models (CombinedTM).

  • Topic Coherence: TopicKGA consistently achieved the highest Topic Coherence (TC) scores across all layers, indicating that the learned topics are more semantically meaningful to humans.
  • Classification Performance: In document classification tasks, TopicKGA outperformed all baselines. For example, on the 20NG dataset, it achieved a Micro F1 score of 60.04, a significant improvement over the standard ETM's 47.79.
  • Computational Speed: Despite the added complexity of the GCN and adaptive layers, the model demonstrated faster learning speeds and superior reconstruction performance compared to competitors like TopicNet.
Quantitative comparison showing TopicKGA outperforming baselines in classification accuracy across different datasets.

Conclusion and Future Work

TopicKG and TopicKGA represent a significant step forward in integrating structured domain knowledge with deep generative models. While highly effective for relational knowledge (graphs and trees), a current limitation is the model's inability to natively leverage the "implicit" knowledge found in massive pre-trained language models like BERT or GPT in a Bayesian framework. Future research will focus on combining deep generative topic models with these large-scale language models to further enhance semantic understanding.

Summary updated

BibTeX
@inproceedings{wang2022knowledge,
  author = {Dongsheng Wang and Yishi Xu and Miaoge Li and Zhibin Duan and Chaojie Wang and Bo Chen and Mingyuan Zhou},
  title = {{Knowledge-Aware Bayesian Deep Topic Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=uw2Xggoo0i},
}
Figure