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

TopicNet: Semantic Graph-Guided Topic Discovery

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

Overview

TopicNet is a hierarchical topic model designed to leverage external knowledge bases, such as WordNet, to guide the discovery of topics within text. By representing topics as Gaussian distributions in a shared embedding space, TopicNet enforces human-like semantic hierarchies. This approach yields deeper, more interpretable topic structures that consistently outperform purely data-driven models.

The Challenge with Traditional Models

Traditional hierarchical topic models are typically unsupervised—they search for patterns in data without any external context about how the world is organized. This limitation leads to two primary issues:

  1. Semantic Incoherence: As models delve into deeper, more abstract layers, the learned topics often become nonsensical or difficult for humans to interpret.
  2. Inflexibility: Users frequently possess specific domain knowledge (e.g., a medical taxonomy or a product hierarchy) that they want the model to respect. Standard models lack a straightforward mechanism to inject this "prior belief."

Furthermore, deep neural topic models often suffer from "posterior collapse," a phenomenon where different layers of the hierarchy learn identical representations, effectively wasting the model's capacity.

The TopicNet Solution

To address these challenges, the authors introduce TopicNet, built upon a novel architecture called Gaussian SawETM.

TopicNet combines data-driven topic discovery (a) with prior knowledge graphs (b) to create a semantically guided hierarchy (c).

The architecture's key innovations include:

  • Gaussian-Distributed Embeddings: Instead of representing a topic as a single point (vector) in space, TopicNet represents each topic and word as a Gaussian distribution. The mean ($\mu$) represents the semantic core, while the covariance ($\Sigma$) captures the "level of abstraction" or uncertainty.
  • The TopicTree Prior: The model incorporates a predefined semantic graph (like WordNet). This "TopicTree" acts as a roadmap, instructing the model on which concepts should act as parents to others (e.g., "animal" is a hypernym of "dog").
  • Shared Embedding Space: By projecting words and topics from all layers into the same space, the model can directly measure similarities and enforce hierarchical constraints across different levels of abstraction.
  • Asymmetric Entailment: To model the "is-a" relationship, the authors use a thresholded KL divergence. This encourages a general topic's distribution to "envelop" its more specific sub-topics.
  • Sawtooth Connection (SC): To prevent posterior collapse and enable the model to scale up to 15 layers deep, a specific connectivity pattern is used to build dependencies between adjacent layers.
Density order embeddings illustrate how general concepts (like 'Object') encompass more specific sub-topics (like 'animal' or 'mammal').

Key Insights

  • Uncertainty as Abstraction: One of the most elegant features of TopicNet is its use of Gaussian variance to represent abstraction. A broad topic like "Object" features a wide distribution, whereas a specific word like "mammal" has a much tighter, concentrated distribution.
  • Knowledge as an Inductive Bias: Rather than forcing the model to strictly adhere to a graph, TopicNet uses the graph as a regularizer. The model balances the empirical evidence it observes in the raw text with the structured knowledge from the semantic graph.
  • Solving Posterior Collapse: The combination of the Sawtooth Connection and hierarchical constraints allows the authors to successfully train models with 15 layers—a significant improvement over most existing neural topic models, which typically struggle beyond 3 or 4 layers.

Performance and Results

The model was evaluated on four standard text benchmarks: 20Newsgroups (20NG), Reuters Corpus Volume I (RCV1), Wikipedia (Wiki), and Reuters-21578 (R8).

  • Better Representations: The unsupervised version of the model achieved lower perplexity (indicating better predictive performance) than state-of-the-art models like ETM and WHAI across all major datasets.
  • Superior Topic Quality: TopicNet maintains high topic quality—balancing coherence and diversity—even in very deep layers. In contrast, purely data-driven models often see their quality plummet as depth increases.
  • Interpretability: Qualitative results demonstrate that TopicNet discovers hierarchies that align with human reasoning, successfully mapping paths from broad concepts down to highly specific terms.

Limitations and Future Directions

While powerful, TopicNet does have limitations. Representing entities as Gaussians and calculating KL divergences is more memory-intensive than using simple vectors, requiring significant storage for intermediate variables. Additionally, the model's success is heavily dependent on how well the chosen semantic graph aligns with the actual text corpus; irrelevant prior knowledge may not improve downstream task performance. Future research will likely focus on refining how prior information is selected and adapted for specific applications.

Summary updated

BibTeX
@inproceedings{duan2021topicnet,
  author = {Zhibin Duan and Yishi Xu and Bo Chen and Dongsheng Wang and Chaojie Wang and Mingyuan Zhou},
  title = {{TopicNet: Semantic Graph-Guided Topic Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure