Abstract
Neural Topic Models (NTMs) have recently integrated contrastive learning to improve document representation. However, these models often suffer from "sample bias," where negative samples are semantically too similar to the original document, creating "false negatives" that hinder learning. We present the Graph Contrastive Topic Model (GCTM), a framework that leverages Graph Neural Networks (GNNs) and global word co-occurrence patterns to generate high-quality, semantically distinct samples. By treating topic modeling as a graph problem and utilizing multi-hop information propagation, GCTM achieves superior topic coherence and classification accuracy across standard benchmarks.
Introduction: The Sample Bias Problem
Traditional Neural Topic Models (NTMs) aim to discover latent themes within document collections. While Contrastive Learning (CL) has been introduced to pull similar documents together and push dissimilar ones apart, existing implementations are limited by how they define "dissimilarity."
Most models generate negative samples by simply removing high-frequency words. This approach is flawed; for instance, a sports article remains fundamentally about sports even if the word "soccer" is removed. These highly similar negative samples confuse the model. GCTM addresses this by ensuring negative samples contain words that are semantically irrelevant or uncorrelated to the original text, rather than just less frequent.
The GCTM Architecture
GCTM moves beyond simple word-frequency swapping by modeling the document-word relationship as a graph. The architecture integrates several innovative components to refine sample generation:
- Graph Construction: The model builds a Document-Word Bipartite Graph (DWBG) to map word-document occurrences. Simultaneously, it constructs two global Word Co-occurrence Graphs (WCGs) based on Normalized Pointwise Mutual Information (NPMI). The Positive WCG ($W^+$) links words that frequently appear together, while the Negative WCG ($W^-$) links words that rarely co-occur.
- Information Propagation: Using Graph Convolutional Networks (GCNs), the model propagates information through these graphs. This "multi-hop" approach allows the model to identify distant but relevant correlations for positive samples and fundamentally irrelevant terms for negative samples.
- Contextual Integration: Unlike traditional Bag-of-Words models, GCTM utilizes SBERT (Sentence-BERT) to provide rich contextual embeddings, capturing the sequence and syntax of the input text.
Key Insights: Escaping the Similarity Trap
A critical finding in the development of GCTM is the "similarity trap." In previous state-of-the-art models like CLNTM, negative samples often maintained a 95% similarity to the original document. GCTM successfully reduces this similarity to approximately 10%, providing a much clearer training signal for the model to distinguish between distinct topics.
By utilizing the global "social network" of words through GCNs, the model identifies latent correlations that are not explicitly present in a single document. This allows for the creation of "actively uncorrelated" negative samples, which are more beneficial for training than simple random noise.
Experimental Results
GCTM was evaluated on three benchmark datasets: 20 Newsgroups (20NG), IMDB, and NIPS. The model demonstrated significant improvements in two primary metrics:
- Topic Coherence (NPMI): GCTM achieved a coherence score of 0.379 on the 20NG dataset (with $k=50$ topics), outperforming the previous best of 0.353 (SCHOLAR+BAT).
- Text Classification: Document representations learned by GCTM improved classification accuracy on 20NG to 0.543, compared to 0.486 for standard CLNTM.
Qualitatively, GCTM produces "cleaner" topics. While baseline models often include unrelated terms in a topic cluster (e.g., mixing culinary terms into a technology topic), GCTM maintains high thematic purity.
Limitations and Future Directions
Despite its success, GCTM faces challenges common to graph-based models. The authors noted that increasing GCN depth beyond two layers leads to "over-smoothing," where node representations become indistinguishable noise. Additionally, while the dual-loss approach (NTM loss + Contrastive loss) is currently effective, future iterations may explore whether contrastive loss alone can sufficiently guide the learning process. Finally, scaling the construction of global word co-occurrence graphs for multi-million document datasets remains a computational hurdle for future research.
Summary updated