Abstract
Neural Topic Models (NTMs) have traditionally relied on Variational Autoencoders (VAEs), which often suffer from a unidirectional bottleneck and a training-evaluation gap. We introduce NTM-ACL, a framework that employs a bidirectional Cycle-GAN structure and applies contrastive learning directly to the generator. This approach "sharpens" the decoder's output, leading to significantly improved topic coherence. Our experiments on four benchmark datasets demonstrate that NTM-ACL outperforms existing state-of-the-art models.
Introduction
Topic modeling is essential for uncovering latent themes in large document collections. While classical methods like Latent Dirichlet Allocation (LDA) are interpretable, they struggle with scalability. Neural Topic Models (NTMs) addressed this using VAEs but introduced a new challenge: the unidirectional bottleneck. In these models, Contrastive Learning (CL) is typically applied to the encoder. However, at evaluation time, the quality of the topic-word distributions depends entirely on the decoder (generator). This mismatch creates a performance gap where the component responsible for generating topics is not directly optimized by the contrastive signal.
Methodology: The NTM-ACL Framework
NTM-ACL bridges this gap through three integrated components: Cycle Adversarial Training, Topic-Augmented Contrastive Learning, and Reconstruct Min-Term Replacement.
1. Cycle Adversarial Training
Departing from the standard VAE, NTM-ACL utilizes a Cycle-GAN architecture. It features a Generator ($G$) that maps topic distributions to word distributions and an Encoder ($E$) for the inverse mapping. Two discriminators ($D_x$ and $D_\theta$) ensure the realism of the generated samples. This bidirectional flow ensures a more organized latent space and breaks the structural limitations of unidirectional VAEs.
2. Topic-Augmented Contrastive Learning
The model employs two types of contrastive loss:
- Self-supervised Contrastive Loss ($\mathcal{L}_{SelfCon}$): Applied directly to the generator, it ensures that similar topic distributions yield similar word distributions, directly enhancing the coherence of the output topics.
- Discriminative Contrastive Loss ($\mathcal{L}_{DisCon}$): Acts as a stabilizer by utilizing category information from real and generated samples, preventing imbalances during adversarial training.
3. Reconstruct Min-Term Replacement (RMR)
RMR is a novel data augmentation strategy designed for topic distributions. By passing a distribution through the cycle ($G \rightarrow E$), the model identifies the "least important" terms in the reconstruction and replaces them with original values. This creates high-quality "positive pairs" for the contrastive objective, providing a cleaner training signal than random noise.
Experimental Results
We evaluated NTM-ACL on four standard benchmarks: NYTimes (NYT), Grolier (GRL), DBPedia (DBP), and 20Newsgroups (20NG).
NTM-ACL consistently outperformed eight competitive baselines, including LDA, ProdLDA, and CLNTM. On the NYTimes dataset, NTM-ACL achieved a $C_P$ score of 0.398, a significant improvement over the previous GAN-based state-of-the-art (ToMCAT, 0.381). Ablation studies confirmed that both the cycle-consistency and adversarial losses are critical to the model's success.
Discussion and Future Work
The primary innovation of NTM-ACL is closing the training-evaluation gap by applying contrastive learning to the generator. While the model shows robust performance, it relies heavily on the initial reconstruction quality of the Cycle-GAN. Future research will explore simultaneous optimization of the encoder and generator through symmetrical contrastive learning and strategies to further stabilize adversarial training in complex model structures.
Summary updated