Abstract
ToMCAT (Topic Modeling with Cycle-consistent Adversarial Training) is a neural topic model that addresses the "inference gap" in previous adversarial approaches. By combining Generative Adversarial Networks (GANs) with cycle-consistency constraints, ToMCAT enables both high-quality topic discovery and efficient document inference. Experimental results across multiple benchmarks demonstrate that ToMCAT produces more coherent topics than traditional LDA and VAE-based models, while its supervised variant, sToMCAT, achieves state-of-the-art text classification performance.
Introduction
Topic modeling is a fundamental task in natural language processing for discovering latent themes in large text corpora. While Latent Dirichlet Allocation (LDA) has long been the standard, its reliance on specific mathematical derivations limits its flexibility for modern neural architectures. Neural Topic Models (NTMs), particularly those based on Variational Autoencoders (VAEs), have emerged as alternatives. However, VAEs often use Gaussian priors that do not naturally fit the simplex-constrained nature of topic distributions.
Adversarial-neural Topic Models (ATM) improved topic discovery using Generative Adversarial Networks (GANs) but suffered from a significant limitation: they lacked an encoder, making them unable to perform inference on new documents. ToMCAT bridges this gap using a bidirectional architecture inspired by CycleGAN.
The ToMCAT Framework
ToMCAT introduces a cycle-consistent adversarial framework to create a bidirectional bridge between words and topics. It consists of four primary components:
- Generator ($G$): Maps a topic distribution sampled from a Dirichlet prior to a word distribution.
- Encoder ($E$): Maps a document (TF-IDF vector) back into a topic distribution.
- Discriminators ($D_X, D_Z$): Use Wasserstein GAN (WGAN) losses to ensure generated word distributions look like real documents and encoded topics look like valid Dirichlet samples.
- Cycle-Consistency Loss: Forces the model to be reversible ($x \to E(x) \to G(E(x)) \approx x$), aligning the latent topic space with the actual word space.
For supervised tasks, sToMCAT adds a classifier network on top of the encoder, allowing the model to use document labels to refine discovered topics.
Experimental Evaluation
The authors evaluated ToMCAT and sToMCAT on four standard benchmarks: NYTimes (NYT), Grolier (GRL), DBpedia (DBP), and 20 Newsgroups (20NG). Performance was measured using topic coherence metrics—$C_A$, $C_P$, and NPMI—which quantify how semantically related the top words in a topic are.
As shown in the results, ToMCAT consistently achieves the highest coherence scores among unsupervised models. For example, on the NYT dataset, ToMCAT reached an NPMI of 0.0956, significantly outperforming LDA (0.0814). In the supervised setting, sToMCAT further improved these scores, demonstrating that classification tasks can act as semantic anchors to help the model discover more coherent topics.
Key Insights
- Closing the Inference Gap: By borrowing cycle-consistency from computer vision, the authors fixed the primary weakness of adversarial topic models, enabling bidirectional mapping.
- Dirichlet over Gaussian: The paper reinforces that the Dirichlet distribution is a superior prior for text, better capturing the "peaky" nature of document topics compared to the Gaussian priors used in VAEs.
- Automatic Balancing: To simplify training, the authors implemented a gradient-based mechanism to automatically balance adversarial and cycle-consistency losses, removing the need for manual hyperparameter tuning.
Conclusion
ToMCAT represents a significant advancement in neural topic modeling by successfully integrating adversarial training with cycle-consistency. It provides a robust framework for both topic discovery and document inference. Future work may involve incorporating pre-trained word embeddings (like BERT) to better capture synonymous relationships and exploring more complex document-level semantics.
Summary updated