Semantic Clustering and Convolutional Neural Network for Short Text Categorization

Peng Wang, Jiaming Xu, Bo Xu, Cheng-Lin Liu, Heng Zhang, Fangyuan Wang, Hongwei Hao

Introduction

Short text categorization, involving the classification of search snippets, headlines, or tweets, presents a significant challenge in natural language processing. Unlike long documents, short texts suffer from extreme data sparsity and a lack of sufficient contextual information. Traditional methods like Bag-of-Words (BoW) often fail due to limited word overlap and ambiguity. While topic models like Latent Dirichlet Allocation (LDA) attempt to alleviate this by expanding texts with latent semantics, they typically ignore the local structural and ordering information vital for understanding short-form content.

This paper proposes a hybrid approach that integrates semantic clustering with Convolutional Neural Networks (CNNs). By leveraging external knowledge through pre-trained word embeddings, the model identifies "semantic cliques" to supervise the extraction of meaningful multi-scale semantic units, effectively denoising the input and enriching the representation of short texts.

Methodology: The Semantic-CNN Architecture

The proposed architecture moves beyond standard CNNs by incorporating a semantic filtering stage based on unsupervised clustering. The overall flow is depicted in Figure 1.

Figure 1: Architecture of the Semantic-CNN model, highlighting the multi-scale semantic unit detection and clique-based supervision.

1. Semantic Clique Discovery

The process begins by grouping pre-trained word embeddings (e.g., Word2Vec, GloVe) into "semantic cliques" using a fast clustering algorithm based on searching density peaks. These cliques represent clusters of semantically related terms, providing a structured map of the embedding space that reflects real-world concepts.

2. Multi-scale Semantic Unit (SU) Detection

To capture local context, the model employs sliding windows of varying widths ($m$). For each window, an additive composition of word vectors creates a candidate "Semantic Unit." This multi-scale approach ensures that the model can recognize meaningful phrases of different lengths (e.g., bigrams vs. trigrams).

3. Clique-Based Supervision

A key innovation is the use of semantic cliques as a filter. A candidate SU is retained only if its vector representation lies within a specific Euclidean distance threshold of a known semantic clique. This step effectively "denoises" the text, ensuring the CNN processes only those n-grams that align with established semantic patterns found in large-scale external corpora like Wikipedia.

4. Convolution and K-Max Pooling

The filtered semantic units are processed through a convolutional layer to extract local features. Instead of standard max-pooling, the model utilizes k-max pooling, which captures the $k$ most significant features across the text regardless of their spatial position, preserving more information for the final classification layer.

Experimental Results

The model was evaluated on the Google Snippets (search results) and TREC (question classification) datasets using three embedding types: Senna, GloVe, and Word2Vec.

Figure 2: Accuracy performance across different numbers of window matrices for Google Snippets and TREC datasets.

As shown in Figure 2, the "Semantic-CNN" consistently outperformed strong baselines. On the TREC dataset, it achieved a peak accuracy of 97.2% with GloVe embeddings, surpassing standard DCNNs (93.0%) and SVMs (95.0%). On Google Snippets, it reached 85.1% accuracy using Word2Vec, outperforming LDA-based expansion methods.

The results also highlight the importance of the "multi-scale" aspect. Accuracy generally peaks when using 3 to 4 window matrices, suggesting that capturing phrases of varying lengths is crucial for short text understanding, though adding too many scales can eventually introduce noise.

Conclusion

By combining the structural feature extraction of CNNs with the semantic grounding of unsupervised clustering, this approach effectively addresses the sparsity of short texts. The use of "semantic cliques" as a supervisory signal allows the model to leverage vast external knowledge to disambiguate and enrich brief inputs, setting a new standard for short text categorization tasks.

Summary updated

BibTeX
@inproceedings{wang2015semantic,
  author = {Peng Wang and Jiaming Xu and Bo Xu and Cheng-Lin Liu and Heng Zhang and Fangyuan Wang and Hongwei Hao},
  title = {{Semantic Clustering and Convolutional Neural Network for Short Text Categorization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-2058},
}
Figure