Introduction
Short text classification (STC) is a critical task in natural language processing, covering domains like sentiment analysis of tweets, categorization of news headlines, and intent detection in search queries. However, STC faces two primary challenges: semantic sparsity and label scarcity. The brevity of the text provides limited contextual information, and the sheer volume of data makes manual labeling prohibitively expensive.
While Graph Neural Networks (GNNs) and Contrastive Learning (CL) have emerged as promising solutions, standard CL techniques often rely on data augmentation (e.g., word deletion or swapping). In short texts, such perturbations can drastically alter meaning—for instance, removing the word "not" flips a sentence's sentiment. To address this, the SimSTC framework introduces an augmentation-free multi-view graph approach.
Methods: The SimSTC Framework
SimSTC (Simple graph contrastive learning framework for Short Text Classification) generates contrasting views of text without modifying the original content. It constructs three distinct graph structures from the corpus:
- Word Graph: Captures lexical relationships using Point-wise Mutual Information (PMI) to identify word co-occurrences.
- POS Graph: Models syntactic structure by analyzing the co-occurrence of Part-of-Speech (POS) tags.
- Entity Graph: Incorporates external knowledge by linking texts to real-world entities via the NELL knowledge base.
The workflow involves applying Graph Convolutional Networks (GCNs) to these graphs to extract node embeddings. Each text is then represented by three vectors (Word-view, POS-view, and Entity-view). Instead of traditional augmentation, SimSTC treats these three representations of the same text as positive pairs in a shared hidden space, while pushing representations of different texts apart. The model is optimized using a joint loss function combining supervised cross-entropy and self-supervised multi-view contrastive loss.
Experimental Setup
The framework was evaluated on four benchmark datasets:
- Twitter & MR: Binary sentiment classification.
- Snippets: 8-category web search result classification.
- StackOverflow: 20-category technical question title classification.
To simulate real-world label scarcity, the authors utilized a low-resource setting with only 40 labeled samples per category.
Key Insights
- Structure as Augmentation: By leveraging semantics, syntax, and entities as natural "augmentations," SimSTC avoids the risks associated with text corruption while providing diverse linguistic perspectives.
- Theoretical Foundation: The authors provide an information-theoretic proof (Theorem 1) demonstrating that the multi-view approach increases the lower bound on mutual information between text embeddings, capturing a richer representation of the text.
- Domain Specialization: While Large Language Models (LLMs) excel at general sentiment tasks, they often struggle with domain-specific, multi-class datasets like StackOverflow. SimSTC’s graph-based approach allows for better adaptation to these niche domains.
Results and Discussion
SimSTC consistently outperformed previous graph-based and deep learning baselines, including BERT and RoBERTa. Notably, it also surpassed fine-tuned LLMs on complex datasets.
On the Snippets dataset, SimSTC achieved 85.14% accuracy, significantly outperforming Llama 3-8B (75.25%) and GPT-3.5 (66.50%). On StackOverflow, it reached 84.07%, maintaining an edge over Llama 3. Furthermore, SimSTC is highly efficient; on the Twitter dataset, it utilizes only 1.5 million trainable parameters, which is less than 5% of the parameters required for fine-tuning an LLM like Llama 3.
Conclusion
SimSTC demonstrates that a lightweight, multi-view graph approach can effectively mitigate the issues of semantic sparsity and label scarcity in short text classification. By replacing noisy data augmentation with structural linguistic views, it achieves state-of-the-art performance while remaining computationally efficient compared to massive language models. Future work may explore additional views and extend the framework to longer documents.
Summary updated