Introduction
Short text classification, encompassing tasks like categorizing news titles or social media posts, presents a unique challenge in natural language processing. The primary difficulties stem from data sparsity and inherent ambiguity; a brief sentence often lacks sufficient context to distinguish between different meanings of the same word (e.g., "Apple" as a fruit versus a technology company). Furthermore, traditional models struggle with the "unseen word" problem, where novel entities not present in the training set are treated as generic tokens.
While incorporating external Knowledge Bases (KBs) can provide necessary "common sense" context, it often introduces noise. Conceptualizing a word can retrieve a vast array of related but irrelevant or overly broad categories. This paper introduces STCKA (Short Text Classification with Knowledge powered Attention), a deep learning framework designed to leverage external knowledge while filtering out irrelevant information through a dual-attention mechanism.
Methodology
The STCKA architecture consists of four primary modules designed to integrate textual features with conceptual background knowledge.
- Knowledge Retrieval: The system performs entity linking on the input text to identify key subjects, then retrieves associated concepts from KBs such as YAGO or Probase.
- Short Text Encoding: A Bidirectional Long Short-Term Memory (BiLSTM) network captures sequential dependencies, followed by a self-attention layer to highlight the most informative words within the sentence.
- Knowledge Encoding (Dual-Attention): This core innovation addresses the noise in retrieved concepts using two specific attention types:
- Concept-Short Text (C-ST) Attention: Evaluates the relevance of a concept to the specific input sentence, aiding in disambiguation.
- Concept-Concept Set (C-CS) Attention: Determines the "discriminative" power of a concept relative to others in the retrieved set, prioritizing specific categories (e.g., "entrepreneur") over generic ones (e.g., "person").
- Soft Switch: A learnable parameter adaptively balances these two attention scores.
- Fusion and Classification: The final text and weighted concept representations are fused and passed to a classifier.
Experimental Results
The model was evaluated across four diverse Chinese datasets: Weibo (emotion analysis), Product Review (sentiment), News Title (18 categories), and Topic (20 categories).
As shown in the results table, STCKA consistently outperforms state-of-the-art baselines, including KPCNN and BiLSTM-SA. Notably, on the "Topic" dataset—characterized by extremely short texts (averaging ~8 words)—STCKA achieved an accuracy of 88.14%, a significant improvement over previous methods.
Key Insights
- Knowledge as a Prior: STCKA mimics human cognition by treating KB concepts as "prior knowledge," allowing the network to make more informed decisions.
- Dual Attention Necessity: Qualitative analysis confirms that C-ST attention handles ambiguity while C-CS attention manages granularity (picking the most useful level of detail).
- Robustness: By linking rare entities to broader concepts, the model maintains high performance even when encountering entities not seen during training.
Limitations and Future Work
The effectiveness of STCKA is currently bounded by the coverage of the underlying Knowledge Base. Obscure or "long-tail" entities missing from the KB limit the model's contextual advantage. Additionally, texts devoid of recognizable entities cannot benefit from the conceptualization process. Future research will explore incorporating richer relational data, such as property-value pairs, to provide deeper contextual grounding.
Summary updated