Short Text Topic Modeling with Topic Distribution Quantization and Negative Sampling Decoder

Xiaobao Wu, Chunping Li, Yan Zhu, Yishu Miao

Introduction

Short texts, such as social media posts and news headlines, present a significant challenge for traditional topic modeling techniques like Latent Dirichlet Allocation (LDA). The primary obstacle is "data sparsity"—the limited number of word co-occurrences within a single document makes it difficult for models to discern meaningful semantic patterns. This often leads to two major issues: repetitive topics dominated by high-frequency generic words and incoherent "word salad" topics.

To address these challenges, this paper introduces the Negative sampling and Quantization Topic Model (NQTM). NQTM is a neural topic model designed to work "out of the box" on raw short-text data without requiring external resources like document pooling or auxiliary knowledge bases.

The NQTM Framework

NQTM operates within an auto-encoding framework, utilizing two core innovations to overcome the limitations of standard neural topic models: Topic Distribution Quantization and a Negative Sampling Decoder.

Architecture of the NQTM model featuring Topic Distribution Quantization and Negative Sampling Decoder.

Topic Distribution Quantization

In short documents, the topic distribution is typically "peaky," meaning the text usually pertains to only one or two specific topics. Standard neural models often produce smooth, continuous distributions that are too ambiguous for short text. NQTM addresses this by incorporating a quantization step inspired by Vector Quantized-Variational Autoencoders (VQ-VAE). This step maps the encoder's continuous output to a discrete embedding space (codebook).

A key technical contribution is the initialization of this codebook using an extended identity matrix. This provides a strong inductive bias, ensuring that different topics are mathematically distinct from the outset. This "Identity Matrix Trick" prevents the latent space from collapsing and forces the model to produce clear, non-overlapping topic assignments.

Negative Sampling Decoder

Standard decoders focus on maximizing the likelihood of words present in a document. In sparse data environments, this often results in the model predicting common, high-frequency words for every topic to "play it safe." NQTM introduces a Negative Sampling Decoder to counteract this.

The decoder identifies "negative topics"—those the document is unlikely to be associated with—and samples words from them. The training objective then penalizes the model for predicting these negative words. By teaching the model what a topic is not, NQTM significantly enhances topic diversity and prevents the generation of repetitive, generic topics.

Experimental Evaluation

The authors evaluated NQTM on four benchmark short-text datasets: StackOverflow (IT question titles), TagMyNews Title (English news titles), Snippet (Google search results), and Yahoo Answer (question titles). NQTM was compared against traditional baselines like Biterm Topic Model (BTM) and SeaNMF, as well as neural baselines such as NVDM and ProdLDA.

Key Results and Insights

The experimental results demonstrate that NQTM consistently outperforms existing models across several critical metrics.

Performance comparison of NQTM against baselines in terms of Topic Coherence (CV) and Topic Diversity (TU) across varying topic counts (K) and document frequency thresholds (min-df).

Topic Coherence and Diversity

  • Topic Coherence ($C_V$): NQTM achieved higher coherence scores than its competitors, indicating that the words within its generated topics are more semantically related.
  • Topic Diversity ($TU$): NQTM's most significant advantage lies in diversity. While other models often struggle with topic overlap (repeating the same "safe" topics), NQTM maintained nearly perfect diversity scores ($TU \approx 1.0$) across almost all datasets and configurations.
  • Robustness to Sparsity: The model proved highly robust to data sparsity. When the authors artificially increased sparsity by filtering out more words (increasing the min-df threshold), NQTM’s performance remained stable, whereas baseline models showed significant degradation.

Conclusion and Future Work

NQTM represents a significant step forward in short text topic modeling by leveraging quantization to force peaky distributions and negative sampling to ensure topic diversity. While the model introduces some computational overhead due to the negative sampling process and requires careful hyperparameter tuning, its ability to generate high-quality, diverse topics from sparse data without external assistance is a major contribution. Future research could explore the application of NQTM-generated topics in downstream tasks such as document clustering or recommendation systems.

Summary updated

BibTeX
@inproceedings{wu2020short,
  author = {Xiaobao Wu and Chunping Li and Yan Zhu and Yishu Miao},
  title = {{Short Text Topic Modeling with Topic Distribution Quantization and Negative Sampling Decoder}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.138},
}
Figure