Tree-Structured Neural Topic Model

Masaru Isonuma, Junichiro Mori, Danushka Bollegala, Ichiro Sakata

Abstract

While hierarchical topic modeling effectively organizes information from general to specific, traditional Bayesian approaches often struggle with scalability. This paper introduces the Tree-Structured Neural Topic Model (TSNTM), which utilizes doubly-recurrent neural networks and variational inference to discover hierarchical "topic trees." TSNTM achieves topic quality comparable to traditional models while training up to 15 times faster, facilitating the use of hierarchical structures in large-scale deep learning pipelines.

Introduction

Traditional topic models like Latent Dirichlet Allocation (LDA) produce "flat" lists of topics, failing to capture the hierarchical nature of human knowledge. For example, a product review might move from general "Quality" to specific "Durability" and finally to details like "Zipper strength."

Existing tree-structured models, such as the nested Chinese Restaurant Process (nCRP), capture these hierarchies but rely on slow inference techniques like Gibbs sampling. These methods do not scale well to millions of documents and are difficult to integrate with modern neural networks. TSNTM addresses this by framing hierarchical modeling within a scalable neural inference framework.

Methodology

The TSNTM architecture parameterizes an unbounded tree structure through several key components:

  • Doubly-Recurrent Neural Networks (DRNN): The model uses two recurrent structures to represent the tree: one for ancestors (vertical) and one for siblings (horizontal). This ensures a topic is positioned correctly relative to its parent and its peers.
  • Autoencoding Variational Bayes (AEVB): Instead of sampling, the model uses a Variational Autoencoder (VAE) to encode documents and decode them by selecting paths through the topic tree.
  • Dynamic Tree Growth: The model grows or prunes branches based on heuristic rules, allowing the tree shape to adapt to the data.
  • Regularization and Temperature: A specific regularizer forces sibling topics to be distinct (orthogonal) while allowing children to inherit traits from parents. Level-dependent temperature parameters ensure that leaf nodes are more specific than root nodes.

Experimental Results

The model was evaluated on the 20NewsGroups dataset and Amazon Product Reviews (specifically laptop bags).

Scalability and Speed

The most significant advantage of TSNTM is its efficiency. On a dataset of 32,000 documents, TSNTM trained significantly faster than the traditional nCRP model.

Training time comparison showing TSNTM's linear scaling and significant speed advantage over nCRP.

As illustrated above, TSNTM maintains a low, linear training time as the number of documents increases, eventually achieving a 15x speedup over nCRP.

Topic Specialization

Qualitative results demonstrate that TSNTM successfully captures fine-grained attributes. In the laptop bag dataset, the model moved from broad concepts at the root to specific technical details at the leaves.

A discovered topic tree for laptop bag reviews, showing the progression from general quality to specific components.

As shown in the hierarchy above, the root topic branches into functional categories like "Cover" and "Carry," which further specialize into specific items like "MacBook cover" or "Shoulder strap."

Conclusion and Future Work

TSNTM provides a scalable solution for hierarchical topic induction, bridging the gap between interpretable Bayesian structures and efficient neural inference. While it faces a slight "perplexity gap" compared to sampling-based models, its speed and ease of integration make it ideal for large-scale applications. Future research may explore replacing heuristic tree growth with fully learnable structures using reinforcement learning.

Summary updated

BibTeX
@inproceedings{isonuma2020tree,
  author = {Masaru Isonuma and Junichiro Mori and Danushka Bollegala and Ichiro Sakata},
  title = {{Tree-Structured Neural Topic Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.73},
}
Figure