TL;DR
This paper introduces TextRGNN, a novel Graph Neural Network (GNN) architecture for text classification that enhances performance by incorporating residual connections to deepen the network and using word2vec for improved node embedding initialization. TextRGNN achieves state-of-the-art results across various text classification tasks by effectively capturing both graph structure and semantic information.
What Problem Does This Paper Address?
Text classification is a fundamental task in Natural Language Processing (NLP) with applications ranging from sentiment analysis to news categorization. While traditional methods relied on handcrafted features, deep learning models like CNNs, RNNs, and Transformers have shown great promise. More recently, Graph Neural Networks (GNNs) have emerged as a powerful tool for text classification, treating text as a graph where words and documents are nodes. However, existing GNN-based text classification models often suffer from limitations: they typically use shallow, two-layer GNN architectures, which can lead to "over-smoothing" of node features (making them too similar) and limit their ability to capture rich semantic information. Furthermore, node embeddings are often initialized with simple methods like one-hot encoding or pre-trained embeddings like GloVe, which may not fully leverage the sequential and contextual nature of text.
Methods
The authors propose TextRGNN, an improved GNN framework with two key innovations:
- Residual Connections for Deeper GNNs: To overcome the limitations of shallow GNNs and the over-smoothing problem, TextRGNN introduces residual connections. This allows for deeper GNN architectures (specifically, a three-layer GCN) without sacrificing performance. The residual connections help to preserve node feature distinctiveness and enable the network to capture information from a wider receptive field.
- Word2vec for Enhanced Node Embedding Initialization: Instead of relying solely on one-hot encoding or generic pre-trained embeddings, TextRGNN integrates word2vec (specifically, the Continuous Bag-of-Words model) for node embedding initialization. This approach leverages the contextual information learned by word2vec, providing richer semantic representations for nodes. The final node embedding is a weighted average of the one-hot encoding and the word2vec-derived features, allowing for a balance between structural and semantic information.
Datasets
The paper evaluates TextRGNN on five widely used text classification datasets:
- MR: Movie reviews for binary sentiment classification.
- R8 & R52: Subsets of the Reuters 21578 dataset for multi-class classification.
- Ohsumed: Medical abstracts for classification.
- 20NG: Newsgroup documents for multi-class classification.
The authors note that they adapted existing implementations and used these datasets to compare their model against various baselines.
Key Insights and Ideas
- Deeper GNNs are Beneficial with Residual Connections: The paper demonstrates that simply increasing GNN depth can lead to over-smoothing. However, by introducing residual connections, they enable deeper architectures (three layers) that effectively mitigate over-smoothing and improve performance by capturing broader contextual information.
- Word2vec Initialization Captures Crucial Semantic Nuances: Integrating word2vec for node embedding initialization significantly enhances the model's ability to extract non-graph semantic information. This is crucial because graph structure alone may not fully represent the meaning within text.
- A Unified Framework for Text and Corpus Level Graphs: TextRGNN's proposed framework is shown to be general and effective for both text-level graphs (where each document is a graph) and corpus-level graphs (where a single large graph represents the entire corpus).
- Residual Connections Offer a Different Benefit than in Computer Vision: While residual connections in computer vision primarily aim to enable deeper networks, in TextRGNN, they also play a role in fine-tuning the aggregation and updating of node features, leading to more precise mappings to text categories.
Key Results
TextRGNN achieved state-of-the-art (SOTA) performance on four out of the five tested datasets (20NG, R8, R52, and Ohsumed) for document classification. Specifically:
- The "our method-C" (corpus level) achieved an accuracy of 88.72% on 20NG, and "our method-T" (text level) achieved 98.21% on R8.
- The paper also shows that their improved network structure and node representation initialization can significantly improve classification accuracy even when combined with pre-trained word embeddings like BERT (as seen in Table 3, where BertGCN and ROBERTAGCN outperform their non-asterisk counterparts).
- Ablation studies confirmed that both the residual connection and the word2vec initialization contribute positively to performance. The three-layer residual network with word2vec initialization showed the best results.
Limitations and Future Work
- Computational Resources: The authors mention that due to computational limitations, they could only test the impact of pre-trained word embeddings on smaller datasets (R8 and R52).
- Generalizability of Hyperparameters: While they found optimal parameters for specific datasets, they note that different models may have different optimal parameters, suggesting the need for dataset-specific tuning.
- Future Directions: The authors plan to migrate their structure to other GNN architectures and downstream NLP tasks like reasoning and question answering. They also aim to explore other methods to address over-smoothing and investigate migrating classical computer vision structures to graph neural networks. They also suggest that while word2vec is useful for pre-training GCNs, it can be seen as a pre-module for GCN pre-training, especially when compared to large pre-trained models like BERT.
Summary updated