Short text classification (STC) is a critical task in natural language processing, involving the categorization of brief text snippets such as tweets, search queries, and news headlines. However, STC faces two primary hurdles: semantic sparsity and a lack of labeled data. This paper introduces MI-DELIGHT, a framework designed to address these challenges by enriching text with multi-source information and employing a hierarchical dual-level contrastive learning approach. MI-DELIGHT demonstrates superior performance over specialized graph models and even large language models (LLMs) on several benchmark datasets.
The Challenge of Short Text
Short text often lacks sufficient context for accurate classification. For instance, the word "Apple" could refer to a fruit or a technology company; without additional context, disambiguation is difficult. Furthermore, while unlabeled short text is abundant, manually labeled examples are scarce, leading to overfitting in traditional deep learning models. Previous attempts to mitigate these issues using external knowledge or contrastive learning (CL) often treat feature extraction and classification as parallel tasks, failing to capture the natural progression from simple to abstract semantic features.
Methodology: The MI-DELIGHT Framework
MI-DELIGHT (Multi-source Information and Dual-level contrastivE LearnIng for sHort Text classification) addresses these limitations through a structured pipeline:
Multi-Source Information Exploration
To combat semantic sparsity, the framework constructs three distinct graph representations to "fill in the blanks" of sparse text:
- Word Graph: Utilizes Point-wise Mutual Information (PMI) to capture statistical word co-occurrences.
- POS Graph: Incorporates linguistic structure by tagging parts-of-speech (adjectives, nouns, etc.).
- Entity Graph: Integrates factual knowledge by linking text to entities in external knowledge bases like NELL.
Hierarchical Dual-Level Contrastive Learning
The model employs a hierarchical structure that mirrors increasing task complexity, moving from fine-grained to coarse-grained feature extraction:
- Instance-Level CL (ICL): Ensures that a text and its augmented version (generated via WordNet synonyms) have similar embeddings, capturing fundamental semantic features.
- Cluster-Level CL (CCL): Groups similar instances into "pseudo-clusters" to understand broader semantic patterns. This stage uses a "swapping" mechanism where cluster assignments of an original text supervise its augmented counterpart, preventing "class collision."
- Linear Classification: The final classification is performed using the refined, abstract features derived from the preceding levels.
Experiments and Results
The performance of MI-DELIGHT was evaluated on five diverse datasets: Twitter (social media), MR (movie reviews), Snippets (web search), Ohsumed (medical abstracts), and TagMyNews (news headlines).
MI-DELIGHT consistently outperformed a wide range of baselines, including specialized Graph Neural Network (GNN) models like TextGCN and GIFT. Notably, it surpassed state-of-the-art LLMs such as GPT-3.5 and Llama 3 on three datasets: Snippets, Ohsumed, and TagMyNews. For example, on the Snippets dataset, MI-DELIGHT achieved 87.90% accuracy, significantly higher than GPT-3.5's 66.52%.
The success of MI-DELIGHT is attributed to its ability to leverage massive unlabeled data through contrastive learning and its effective use of domain-specific information via graph representations. While LLMs excel in general-purpose tasks (as seen in the Twitter and MR results), they often struggle with the domain-specific nuances found in medical or technical texts. Ablation studies further confirmed that each component—the multi-source graphs, both levels of contrastive learning, and the hierarchical structure—is essential for the model's overall performance.
Conclusion
MI-DELIGHT offers a robust solution for short text classification by effectively addressing semantic sparsity and data scarcity. By integrating statistical, linguistic, and factual information into a hierarchical contrastive learning framework, it achieves state-of-the-art results on several benchmarks. Future work will explore more advanced data augmentation techniques and aim to reduce the computational complexity associated with multi-graph construction.
Summary updated