ATM: Adversarial-neural Topic Model

Rui Wang, Deyu Zhou, Yulan He

Abstract

The Adversarial-neural Topic Model (ATM) represents a paradigm shift in topic modeling by applying Generative Adversarial Networks (GANs) to discover latent themes in text. Unlike traditional models that rely on complex probabilistic inference or Variational Auto-Encoders (VAEs) with ill-suited priors, ATM utilizes a competitive framework between a generator and a discriminator. By incorporating a Dirichlet prior and leveraging the Wasserstein GAN with Gradient Penalty (WGAN-GP), ATM achieves superior topic coherence and learns high-quality word embeddings simultaneously.

Introduction

Topic modeling is a fundamental task in Natural Language Processing (NLP) aimed at uncovering hidden thematic structures within large document collections. For over a decade, Latent Dirichlet Allocation (LDA) has been the standard approach. However, LDA's reliance on intricate mathematical inference—such as Gibbs sampling or Variational Inference—makes it rigid; changing model assumptions often requires re-deriving the entire inference algorithm from scratch.

Recent neural topic models have attempted to address these limitations using Variational Auto-Encoders (VAEs). While more flexible, many VAE-based models employ Gaussian priors that fail to reflect the sparse, multi-topic nature of real-world documents, often resulting in incoherent topics. Furthermore, these models frequently lack the ability to produce the dense word-level semantic representations (word embeddings) essential for modern NLP tasks.

Methodology

ATM addresses these challenges by reframing topic modeling as an adversarial game. The architecture consists of two primary components:

  1. The Generator (G): This network maps a topic distribution, sampled from a Dirichlet prior, to a document-word distribution (typically a TF-IDF vector). The use of a Dirichlet prior is critical, as it naturally captures the sparsity of topics within documents.
  2. The Discriminator (D): This network attempts to distinguish between real document representations from the corpus and the synthetic distributions produced by the generator.
Architecture of the Adversarial-neural Topic Model (ATM) showing the Generator (G) and Discriminator (D) networks.

To ensure training stability, the authors implement the Wasserstein GAN with Gradient Penalty (WGAN-GP). A significant advantage of this architecture is that the weights in the generator's final layers effectively learn semantic relationships between words, providing high-quality word embeddings as a secondary output.

Experimental Setup

The model was rigorously evaluated on three distinct datasets:

  • Grolier: A benchmark set of approximately 30,000 encyclopedia articles.
  • NYTimes: A larger corpus containing 100,000 news articles.
  • Event Dataset: A subset of the GDELT database, used to evaluate ATM's performance in open-domain event extraction.

Key Results

ATM demonstrated significant improvements over baseline models, including LDA, NVDM, and ProdLDA. The model was evaluated using five coherence measures: $C_P$, $C_A$, NPMI, UCI, and UMass.

Comparison of topic coherence metrics (C_P, C_A, NPMI, UCI) across Grolier and NYTimes datasets for ATM and baseline models.

Quantitative analysis showed that ATM consistently outperformed its competitors across almost all metrics and datasets. Qualitatively, ATM produced cleaner topics with fewer "out-of-topic" noise words. For instance, in topics related to "Airlines" or "Elections," ATM identified more relevant and distinct keywords than traditional Bayesian or VAE-based approaches. Additionally, PCA visualizations of the learned embeddings confirmed that ATM successfully clusters semantically related concepts in a continuous vector space.

Conclusion and Future Work

ATM proves that adversarial training can effectively replace traditional inference in topic modeling while maintaining probabilistic rigor through the use of Dirichlet priors. Its portability was further demonstrated by its success in event extraction tasks without architectural modifications.

However, limitations remain. ATM currently treats documents as "bags of words," ignoring sequential information. Future iterations could incorporate Recurrent Neural Networks (RNNs) or Transformers to capture word order. Additionally, while ATM excels on standard corpora, performance on extremely short texts (e.g., social media posts) and very high topic counts remains an area for further optimization.

Summary updated

BibTeX
@article{wang2019atm,
  author = {Rui Wang and Deyu Zhou and Yulan He},
  title = {{ATM: Adversarial-neural Topic Model}},
  journal = {Information Processing \& Management},
  year = {2019},
  doi = {10.1016/j.ipm.2019.102098},
}
Figure