Topic Memory Networks for Short Text Classification

Jichuan Zeng, Jing Li, Yan Song, Cuiyun Gao, Michael R. Lyu, Irwin King

Abstract

Short text classification is a challenging task due to the inherent data sparsity and lack of context in brief documents like tweets or search snippets. This paper presents Topic Memory Networks (TMN), an end-to-end framework that addresses these challenges by jointly learning latent topics and text classification. By employing a memory mechanism, TMN enriches sparse text representations with corpus-level topical knowledge, significantly improving classification accuracy without relying on external knowledge bases.

Introduction

The proliferation of short-form content on the web, such as social media posts and news headlines, has made short text classification a critical task. Traditional models like Convolutional Neural Networks (CNNs) often struggle with such data because the limited number of words provides insufficient co-occurrence information. For example, a tweet mentioning "wristbands" and "winning" might be misclassified as "Sports" if the model fails to recognize the topical link between "wristbands" and "Music" or "Concerts."

Previous research has attempted to mitigate this sparsity using external knowledge bases (e.g., Wikipedia) or pre-trained topic models. However, these approaches are often domain-specific and difficult to adapt to different languages or evolving slang. TMN overcomes these limitations by discovering latent topics internally and integrating them into the classification process via a joint learning framework.

Methodology

The TMN architecture consists of three primary components integrated into a single end-to-end trainable model:

  1. Neural Topic Model (NTM): Utilizing a Variational Auto-Encoder (VAE) framework, the NTM processes a Bag-of-Words (BoW) representation to induce latent topics. This neural approach allows for seamless integration and joint training with the rest of the network.
  2. Topic Memory Mechanism: Inspired by Memory Networks, this component acts as a bridge between the latent topics and the input sequence. It utilizes Source and Target matrices to store topical representations and an attention mechanism to retrieve relevant topical context for each word in the input.
  3. Text Classifier: A standard classifier (e.g., CNN) processes the original word embeddings alongside the enriched topical features provided by the memory mechanism to produce the final classification.
Figure 1: The overall architecture of the Topic Memory Network (TMN), illustrating the integration of the Neural Topic Model, Topic Memory Mechanism, and Classifier.

A key innovation of TMN is Joint Learning. By training the topic model and classifier simultaneously, the classification labels guide the discovery of "discriminative" topics that are specifically useful for the classification task, while the topics provide the necessary context for the classifier.

Experimental Setup

The model was evaluated on four diverse short-text datasets: Snippets (Google search results), TagMyNews (English news titles), Twitter (tweets with hashtag labels), and Weibo (Chinese microblogging data). These datasets represent a range of languages and classification granularities, from 7 to 50 classes.

Results and Discussion

TMN consistently outperformed strong baselines, including standard CNNs and models utilizing pre-trained topic embeddings (CNN+TEWE). For instance, on the Twitter dataset, TMN achieved an accuracy of 0.397, compared to 0.381 for a standard CNN.

Context Enrichment and Topic Discovery

The memory mechanism allows the model to "pull in" related concepts from the entire corpus. As shown in the qualitative analysis, for a tweet containing the word "wristband," the model identifies topics related to "Bieber" and "Music," effectively providing context that is not explicitly present in the short text itself.

Figure 5: Qualitative analysis showing (a) the topic mixture and word-topic attention for a sample tweet, and (b) the top words associated with the discovered latent topics.

Furthermore, the topics discovered by TMN were found to be more human-interpretable and coherent than those produced by traditional methods like LDA or Biterm Topic Models (BTM), as measured by the $C_V$ coherence metric. The authors also noted that using multiple "hops" (layers) in the memory network (typically around 5) optimized performance before hitting saturation.

Conclusion

Topic Memory Networks provide a robust solution for short text classification by internally generating and utilizing topical context. By jointly learning topics and classification, the model discovers discriminative features that mitigate the effects of data sparsity. Future work will focus on addressing word polysemy through context-sensitive embeddings and extending the topic model to capture phrase-level semantics.

Summary updated

BibTeX
@inproceedings{zeng2018topic,
  author = {Jichuan Zeng and Jing Li and Yan Song and Cuiyun Gao and Michael R. Lyu and Irwin King},
  title = {{Topic Memory Networks for Short Text Classification}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1351},
}
Figure