TL;DR
This paper tackles the challenge of classifying short texts, which often suffer from sparse features and lack of context. They propose "PathWalk," a novel method that represents text as a "term graph" to capture rich, non-local relationships between words and sentences, leading to state-of-the-art performance and improved robustness.
What Problem Does This Paper Address?
Classifying short texts, like tweets, search queries, or user comments, is crucial for many applications. However, their brevity means they have limited words and context, leading to sparse feature representations. Traditional methods often treat each short text independently (IID assumption), ignoring valuable relationships between texts in a dataset. This can make models vulnerable to small perturbations, leading to misclassifications. The authors aim to overcome this sparsity and improve robustness by leveraging the interconnectedness of texts within a corpus.
Methods
The core of the proposed "PathWalk" method lies in transforming the entire text corpus into a term graph. This graph represents words as nodes and their sequential order within sentences as directed edges. This structure allows for capturing not just local context within a sentence but also "non-local" context from relationships between different sentences.
The method then represents individual short sentences using a "walk-of-words" model, which is a sequence of nodes and directed edges from the term graph. To further enrich the representation, they introduce topological features derived from the term graph. These features capture local network structures (like triangles or polygons formed by overlapping words across sentences), providing contextual information that would otherwise be missed.
PathWalk offers three variants (PathWalk-I, II, and III) that progressively incorporate more topological features (edges, then nodes, then higher-order structures) to enhance the sentence representation. The final classification is performed using a BiLSTM encoder followed by a SoftMax layer.
Datasets
The authors evaluated their method on four publicly available datasets:
- RT-Polarity: A movie review dataset for sentiment analysis.
- SST (Stanford Sentiment Treebank): A dataset with fine-grained sentiment labels, which they adapted for binary classification.
- Video Query (Query): Chinese queries from a video website, used for binary topic classification.
- Chinese DanMu (DanMu): User reviews from social media sites, used for binary sentiment classification.
Key Insights and Ideas
- Non-IID Assumption is Key: Treating text datasets as non-IID (non-independently and identically distributed) by explicitly modeling relationships between texts is crucial for short text classification. This allows the model to learn from the collective context of the corpus.
- Term Graphs Capture Richer Context: Representing the corpus as a term graph effectively captures both word order and inter-sentence relationships, addressing the sparsity problem inherent in short texts.
- Topological Features Provide Valuable Context: Local network structures within the term graph (simplical complexes) act as powerful contextual features, helping to disambiguate meanings and improve classification accuracy.
- Robustness Gains: The proposed method demonstrates improved robustness against adversarial perturbations, meaning it's less susceptible to misclassification when faced with noisy or slightly altered input.
Key Results
PathWalk achieved state-of-the-art results across all four tested datasets, outperforming strong baselines like BiLSTM, fastText, and TextCNN. For instance, on the DanMu dataset, PathWalk-I achieved 93.19% accuracy, PathWalk-II reached 94.20%, and PathWalk-III attained 94.53%, all surpassing the best baseline (BiLSTM at 94.08%). The paper also highlights that PathWalk variants are particularly effective on shorter texts, where inter-sentence relationships are more pronounced.
Limitations and Future Work
The authors acknowledge that the optimal number of topological features (parameter K) needs careful fine-tuning for different datasets. They note that while increasing K generally improves performance, too many features can lead to "semantic drift." They suggest that future work could explore using attention mechanisms with topological features to further enhance performance. Additionally, the fixed-sentence length strategy used in experiments showed limitations on datasets with high variance in sentence length (like RT), indicating a need for more adaptive approaches.
Summary updated