NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Topic Modeling as Multi-Objective Contrastive Optimization

Thong Thanh Nguyen, Xiaobao Wu, Xinshuai Dong, Cong-Duy T Nguyen, See-Kiong Ng, Anh Tuan Luu

Abstract

Neural Topic Models (NTMs) have advanced automated theme discovery, yet they frequently succumb to two primary challenges: the "low-level trap," where models prioritize word frequency patterns over semantic meaning, and "objective conflict," where reconstruction goals clash with contrastive objectives. This paper introduces a novel framework that integrates setwise contrastive learning with multi-objective optimization (MOO). By leveraging LLM-powered data augmentation and a gradient-based Pareto solver, the proposed model significantly enhances topic coherence and diversity. Experimental results across multiple benchmarks, including 20Newsgroups and Wikitext-103, demonstrate superior performance over existing state-of-the-art contrastive NTMs.

1. Introduction

Topic modeling is essential for extracting latent themes from large-scale text corpora. While Variational Autoencoder (VAE)-based Neural Topic Models (NTMs) have shown promise, recent attempts to incorporate contrastive learning have revealed significant limitations. Specifically, models often learn to distinguish documents based on superficial features like word counts rather than high-level semantics—a phenomenon termed the "low-level trap."

Comparison of model responses to semantic vs. frequency-based similarity. Our model correctly identifies the semantically related Instance 2, while the baseline NTM+CL is misled by the frequency distribution of Instance 1.

Furthermore, the standard training objective, which combines Evidence Lower Bound (ELBO) and contrastive loss via a fixed weighted average, often leads to sub-optimal solutions due to the inherent conflict between reconstruction and generalization. This paper addresses these issues through a more robust optimization framework.

2. Methodology

The authors propose a two-pronged approach to address these challenges: setwise contrastive learning and multi-objective optimization.

2.1 Setwise Contrastive Learning

To mitigate the influence of document-specific noise, the framework shifts from document-level to set-level contrast. By comparing sets of documents, the model is forced to identify shared semantic signals rather than individual quirks.

  • LLM-Augmentation: The model utilizes the ChatGPT API to generate natural and semantically rich "positive" and "negative" views of documents, providing a cleaner training signal than traditional rule-based methods like random word swapping.
  • Feature Extraction: Features from $K$ documents are aggregated using pooling functions (e.g., MaxPooling) to create a representative set vector, effectively filtering out "peculiar words" that do not contribute to the broader topic.

2.2 Multi-Objective Optimization (MOO)

Instead of manual hyperparameter tuning to balance the ELBO and contrastive losses, the training process is treated as a mathematical search for a Pareto stationary solution. A gradient-based solver identifies a compromise direction that satisfies both objectives. This ensures that the contrastive regularizer enhances the model without degrading its core reconstruction capabilities.

3. Experimental Results

The model was evaluated on standard benchmarks including 20Newsgroups (20NG), IMDb, Wikitext-103, AG News, and the large-scale Yahoo Answer dataset.

3.1 Topic Quality

The proposed model achieved significant improvements in both Topic Diversity (TD) and Topic Coherence (NPMI). On the 20NG dataset, TD reached 0.959, a substantial increase from the previous state-of-the-art of 0.841. Similarly, NPMI on the Wiki dataset improved to 0.491, indicating more human-interpretable topics.

3.2 Downstream Performance

In document classification tasks using discovered topics as features, the model outperformed the NTM+CL baseline on the 20NG dataset with an F1 score of 57.0 (compared to 54.4). This suggests that the learned representations are more semantically meaningful for practical applications.

4. Conclusion and Future Work

By addressing the low-level trap and objective conflicts through setwise contrast and MOO, this work provides a more robust foundation for neural topic modeling. While the results are impressive, the reliance on LLM APIs introduces computational overhead. Future research will focus on exploring dynamic set-grouping strategies and utilizing smaller, local models for data augmentation to further refine semantic extraction while maintaining efficiency.

Summary updated

BibTeX
@inproceedings{nguyen2024topic,
  author = {Thong Thanh Nguyen and Xiaobao Wu and Xinshuai Dong and Cong-Duy T Nguyen and See-Kiong Ng and Anh Tuan Luu},
  title = {{Topic Modeling as Multi-Objective Contrastive Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=HdAoLSBYXj},
}
Figure