Introduction
Short text classification (STC) involves categorizing brief snippets of text, such as tweets, search queries, or news titles. This task is inherently challenging due to the lack of context in short texts and the frequent scarcity of labeled data for niche tasks. While Graph Neural Networks (GNNs) are effective at incorporating auxiliary information, most current models are transductive, requiring retraining for new samples and suffering from high memory demands. SimpleSTC is introduced as a streamlined, inductive GNN framework that addresses these limitations by leveraging external semantic knowledge.
Methodology
SimpleSTC employs a two-layered hierarchical graph approach to provide context and enable inductive inference.
- Word Graph Construction: The model utilizes a "global pool" of words from an external corpus (WikiText) to build a semantic backbone. Connections are established based on Point-wise Mutual Information (PMI), capturing word co-occurrence patterns beyond the target dataset.
- Hierarchical Graph Learning:
- Word Level: A 2-layer GNN refines word embeddings using the global graph topology.
- Text Level: Texts are represented by pooling word embeddings, weighted by TF-IDF.
- Dynamic Text Graph: The model dynamically learns a graph of individual short texts, connecting similar samples to propagate labels effectively.
- Inductive Inference: When a new sample arrives, it is mapped to the pre-constructed word graph and related to existing training samples for immediate prediction without retraining.
Key Insights and Results
A primary finding of this research is the efficacy of the "global pool" approach. Using a large external corpus for the word graph often proves more effective than integrating complex auxiliary data like Part-of-Speech (POS) tags or Knowledge Graph entities.
Performance and Efficiency
- Accuracy: SimpleSTC consistently outperforms state-of-the-art (SOTA) baselines. For instance, it achieved 80.96% accuracy on the Snippets dataset, a significant improvement over models like TextING.
- Memory Footprint: The model is highly memory-efficient. On the TagMyNews dataset, it required only 12.37 GB of VRAM, whereas many transductive competitors failed due to Out-of-Memory (OOM) errors.
- Inference Speed: SimpleSTC offers rapid inference, processing samples nearly twice as fast as inductive variants of models like HGAT.
Conclusion and Future Work
SimpleSTC demonstrates that a simplified, inductive approach can achieve superior performance in short text classification. While the current Wikipedia-based global pool is effective, future work may focus on improving word coverage and exploring domain-specific corpora to further refine the semantic backbone. Additionally, optimizing the threshold for text graph pruning remains an area for potential tuning across diverse domains.
Summary updated