Tree-Structured Topic Modeling with Nonparametric Neural Variational Inference

Ziye Chen, Cheng Ding, Zusheng Zhang, Yanghui Rao, Haoran Xie

Introduction

Traditional topic modeling techniques, such as Latent Dirichlet Allocation (LDA), typically organize text into a "flat" list of topics. However, human knowledge is inherently hierarchical; general concepts naturally branch into more specific sub-topics. For instance, a broad "Science" category should logically lead to "Physics" and "Biology," which further divide into "Quantum Mechanics" or "Genetics."

While older probabilistic models can generate these hierarchies, they face significant hurdles: they are computationally expensive (poor scalability) and often require a pre-defined tree width, which is rarely known in advance. To address these issues, researchers have introduced nTSNTM (nonparametric Tree-Structured Neural Topic Model), a framework that combines the scalability of neural networks with the flexibility of nonparametric probabilistic priors.

The nTSNTM Framework

The core innovation of nTSNTM lies in its use of Neural Variational Inference (NVI) combined with a Stick-Breaking Process (SBP). This allows the model to automatically determine the optimal number of topics at each level of the hierarchy without human intervention.

Nonparametric Topic Discovery

To enable an "unbounded" number of topics, the model employs a stick-breaking prior. Conceptually, the probability space is treated as a unit-length stick that is broken into pieces. The size of each piece represents the probability of a topic being "active."

The Stick-Breaking Process (SBP) used to determine topic probabilities across levels.

Because the standard Beta distribution used in traditional stick-breaking is not easily differentiable for gradient-based neural network training, the authors utilize the Kumaraswamy distribution as a differentiable approximation. This allows the model to learn the tree's width through standard backpropagation.

Structural Innovations: Bottom-Up Dependency

Unlike previous hierarchical models that often build trees from the top down, nTSNTM adopts a bottom-up approach. It uses dependency matrices ($M$) to model how specific leaf topics belong to more general parent topics. This architectural choice prevents a common pitfall where top-level topics become redundant by simply repeating the terms of their children.

To ensure a "clean" hierarchy where each sub-topic primarily associates with a single parent, the model incorporates a Low-Temperature Softmax function. This forces the network to make "harder" choices about topic affiliations, resulting in a more interpretable and distinct tree structure.

Comparison of tree structures: hLDA (top-down sampling), rCRP/TSNTM (fixed width/sampling), and nTSNTM (bottom-up neural inference).

Experimental Results

The model was rigorously tested on four major text benchmarks: 20NEWS, Reuters, Wikitext-103, and the massive Rcv1-v2 dataset (containing over 800,000 documents).

Topic Quality and Hierarchy

nTSNTM consistently outperformed both traditional and neural baselines in terms of Normalized Pointwise Mutual Information (NPMI), a standard metric for topic coherence. Furthermore, the model demonstrated superior Topic Specialization, successfully moving from general terms (e.g., "space," "system") at the root to highly specific terms (e.g., "nasa," "orbit") at the leaves. It also achieved higher Topic Uniqueness (TU), indicating lower redundancy across different levels of the hierarchy.

Scalability

A key advantage of the neural approach is speed. On the large-scale Rcv1-v2 dataset, nTSNTM was twice as fast as the previous state-of-the-art neural tree model (TSNTM). In contrast, older probabilistic models like hLDA failed to complete the task within a 48-hour window, highlighting the efficiency of the NVI-based approach.

Conclusion and Future Work

nTSNTM represents a significant step forward in automated text organization, providing a scalable and flexible solution for discovering hierarchical topic structures. While the model currently uses a fixed depth (e.g., 3 levels), future research could explore methods to automate depth discovery as well. Additionally, the authors suggest applying this framework to tasks like aspect extraction in customer reviews, where hierarchical relationships between product features are common.

Summary updated

BibTeX
@inproceedings{chen2021tree,
  author = {Ziye Chen and Cheng Ding and Zusheng Zhang and Yanghui Rao and Haoran Xie},
  title = {{Tree-Structured Topic Modeling with Nonparametric Neural Variational Inference}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.182},
}
Figure