Introduction
Text classification is a fundamental task in Natural Language Processing (NLP). While sequential models like Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks are effective at capturing local context, they often struggle with global, non-consecutive dependencies. Recent advancements in Graph Convolutional Networks (GCNs), such as TextGCN, have attempted to bridge this gap by constructing global word-document graphs. However, these models typically rely on a single type of relationship—sequential co-occurrence—ignoring the rich, multi-faceted nature of language.
This paper introduces TensorGCN, a framework that harmonizes semantic, syntactic, and sequential contexts. By representing text as a graph tensor and employing a dual-propagation mechanism, TensorGCN captures the heterogeneous structural properties of language more effectively than traditional single-graph or sequence-based approaches.
Methodology
Text Graph Tensor Construction
The core innovation of TensorGCN is the construction of a text graph tensor consisting of three distinct layers, each representing a different linguistic perspective:
- Sequential-based Graph: This layer captures local word co-occurrences using Point-wise Mutual Information (PMI) within a sliding window across the corpus.
- Syntactic-based Graph: Utilizing a dependency parser, this graph links words based on grammatical roles (e.g., subject-verb relationships), allowing the model to capture long-range dependencies that are structurally significant but physically distant in a sentence.
- Semantic-based Graph: This layer leverages pre-trained embeddings to link words with high cosine similarity, capturing underlying meaning regardless of their specific usage in a sentence.
TensorGCN Learning Framework
To learn from this heterogeneous tensor, the model utilizes two types of propagation in each hidden layer:
- Intra-graph Propagation: Standard GCN operations aggregate information within each individual graph layer (e.g., a word learning from its grammatical neighbors).
- Inter-graph Propagation: This novel step facilitates information exchange across layers. By creating "virtual graphs" that connect the same node across different tensor layers, the model allows a word's semantic representation to be informed by its syntactic and sequential contexts, resulting in a unified, multi-faceted embedding.
Experimental Results
TensorGCN was evaluated against five benchmark datasets: 20NG, R8, R52, Ohsumed, and MR. As shown in the table below, TensorGCN consistently outperformed the TextGCN baseline and other deep learning models.
| Dataset | TextGCN (Baseline) | TensorGCN (Ours) |
|---|---|---|
| 20NG | 0.8634 | 0.8774 |
| R8 | 0.9707 | 0.9804 |
| R52 | 0.9356 | 0.9505 |
| Ohsumed | 0.6836 | 0.7011 |
| MR | 0.7674 | 0.7791 |
Key Insights and Discussion
Information Complementarity
Ablation studies demonstrate that the combination of all three graph types yields the best performance. This suggests that sequential, syntactic, and semantic information provide complementary signals that a single-graph approach cannot fully capture.
The Importance of Structural Integrity
A common alternative to the tensor approach is merging all edges into a single graph. However, experiments showed that this "Merge edges" strategy performs significantly worse. This highlights the importance of maintaining the distinct structural properties of different relationship types during the learning process to avoid "muddying" the information.
Syntactic Sensitivity
Syntactic information proved particularly beneficial for datasets like MR (Movie Reviews) and Ohsumed. In sentiment analysis, the grammatical relationship between a modifier and its target noun is often more indicative of sentiment than simple word proximity.
Conclusion
TensorGCN provides a robust framework for integrating heterogeneous linguistic information into text classification. By utilizing a graph tensor and dual-propagation learning, it achieves state-of-the-art results while preserving the unique structural characteristics of semantic, syntactic, and sequential contexts. While the construction of multiple graphs introduces some computational overhead, the performance gains justify the complexity. Future work may involve extending this framework to incorporate external knowledge bases or ontologies.
Summary updated