Combating Label Sparsity in Short Text Topic Modeling via Nearest Neighbor Augmentation

Yang Lin, Xinyu Ma, Xin Gao, Ruiqing Li, Yasha Wang, Xu Chu

Abstract

Topic modeling on short texts, such as tweets or headlines, is hindered by the lack of sufficient word co-occurrence data. This paper introduces kNNTM, a novel neural topic model designed to mitigate the "label sparsity problem." Unlike traditional approaches that focus on input data sparsity, kNNTM augments the reconstruction target of a Variational Autoencoder (VAE) using a document's $k$-nearest neighbors. By employing a multi-view distance metric that integrates local word-level features and global semantic distributions, kNNTM provides a richer training signal. Evaluations on benchmark datasets show that kNNTM consistently outperforms state-of-the-art models in both topic coherence and document clustering.

Introduction

Traditional topic models like Latent Dirichlet Allocation (LDA) rely on dense word co-occurrence to identify themes. In short texts, most semantically related words are absent, leading to what the authors term the label sparsity problem. In Neural Topic Models (NTMs) based on the VAE framework, the model attempts to reconstruct the input document. If a short document mentions "Intel" but omits "processor," the model may incorrectly learn that these terms are unrelated. This creates a biased training signal that suppresses valid semantic connections.

Illustration of the label sparsity problem and the proposed kNN-based label completion process.

Methodology

The proposed kNNTM (k-Nearest Neighbor Topic Model) addresses label sparsity by "filling in the blanks" through neighborhood-based augmentation.

kNN-Based Label Completion

For each document during training, kNNTM identifies $k$ similar documents and aggregates their bag-of-words (BoW) distributions. This augmented BoW serves as the target for the VAE’s reconstruction loss. This process effectively informs the model that a document mentioning specific terms is also likely related to terms found in its semantic neighborhood.

Multi-View Distance Metric

To accurately identify neighbors in sparse text, kNNTM utilizes a fused distance metric:

  1. Local View (Input Space): Employs Optimal Transport (OT) distance to compare BoW vectors, combining general knowledge from pre-trained GloVe embeddings with domain-specific patterns.
  2. Global View (Semantic Space): Measures Euclidean distance between document-topic distributions, ensuring documents with similar high-level themes are grouped together.
The kNNTM architecture, highlighting the encoding, quantization, and decoding phases alongside the multi-view distance and kNN aggregation components.

Training Procedure

The model follows a two-phase training strategy. It is first pre-trained to establish stable topic distributions. Subsequently, a memory bank is used to store and update these distributions, facilitating efficient neighbor searching during the label augmentation phase.

Experimental Results

The researchers evaluated kNNTM on three short-text benchmarks: GoogleNews, Snippet, and StackOverflow.

Performance Metrics

kNNTM demonstrated superior performance across several key metrics:

  • Topic Quality (TQ): On the Snippet dataset ($K=50$), kNNTM achieved a TQ of 0.365, outperforming the TSCTM baseline (0.346).
  • Document Clustering: The model showed significant gains in representation learning. For the StackOverflow dataset ($K=100$), it reached a top-NMI of 0.440, compared to 0.393 for the best baseline.
  • Topic Diversity: Unlike many competitors that produce redundant topics, kNNTM maintains high diversity, ensuring discovered themes are distinct and interpretable.

Conclusion

kNNTM successfully combats label sparsity in short-text topic modeling by leveraging neighborhood information to enrich the VAE reconstruction target. While the use of Optimal Transport distances introduces computational overhead, the resulting improvements in topic coherence and clustering accuracy are substantial. Future work will focus on optimizing the kNN search through efficient sampling strategies to scale the model to larger datasets.

Summary updated

BibTeX
@inproceedings{lin2024combating,
  author = {Yang Lin and Xinyu Ma and Xin Gao and Ruiqing Li and Yasha Wang and Xu Chu},
  title = {{Combating Label Sparsity in Short Text Topic Modeling via Nearest Neighbor Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.817},
}
Figure