[Paper Review] Text Level Graph Neural Network for Text Classification
This paper proposes a Text Level Graph Neural Network (TL-GNN) that constructs individual graphs for each input text using local word windows, enabling online inference and reducing memory consumption. By sharing global parameters and using message passing across small-context edges, TL-GNN achieves state-of-the-art performance on text classification benchmarks with significantly lower memory usage than corpus-level GNNs.
Recently, researches have explored the graph neural network (GNN) techniques on text classification, since GNN does well in handling complex structures and preserving global information. However, previous methods based on GNN are mainly faced with the practical problems of fixed corpus level graph structure which do not support online testing and high memory consumption. To tackle the problems, we propose a new GNN based model that builds graphs for each input text with global parameters sharing instead of a single graph for the whole corpus. This method removes the burden of dependence between an individual text and entire corpus which support online testing, but still preserve global information. Besides, we build graphs by much smaller windows in the text, which not only extract more local features but also significantly reduce the edge numbers as well as memory consumption. Experiments show that our model outperforms existing models on several text classification datasets even with consuming less memory.
Motivation & Objective
- To address the limitations of corpus-level graph neural networks in text classification, particularly high memory usage and lack of support for online inference.
- To develop a GNN-based model that maintains global information while enabling per-text graph construction independent of the full corpus.
- To reduce edge count and memory consumption by limiting connections to nearby words within a small sliding window.
- To improve model efficiency and scalability for real-world deployment in streaming or online text classification scenarios.
Proposed method
- Constructs a text-level graph for each input sequence, where nodes represent word embeddings and edges connect words within a fixed-size window of size p.
- Shares global parameters for word representations and edge weights across all text-level graphs, enabling parameter efficiency and joint training.
- Employs a message passing mechanism where each node aggregates information from its neighboring nodes in the local window to update its representation.
- Applies a max-pooling reduction across messages to produce a non-linear, discriminative node representation.
- Uses a shared global embedding matrix and edge weight matrix, with rare edges mapped to a 'public' edge type to stabilize training.
- Aggregates final node representations via global average pooling to produce a text-level representation for classification.
Experimental results
Research questions
- RQ1Can a GNN-based text classification model be designed to support online inference without relying on a fixed corpus-level graph structure?
- RQ2How does limiting inter-word connections to a small local window affect performance and memory consumption compared to full or large-context graphs?
- RQ3To what extent do trainable edge weights improve performance compared to fixed, precomputed weights like PMI?
- RQ4Does the use of global parameter sharing across text-level graphs maintain or enhance classification accuracy while reducing memory footprint?
- RQ5How does the choice of message reduction function (e.g., max vs. mean) impact model performance?
Key findings
- TL-GNN achieves state-of-the-art performance on R8, R52, and Ohsumed datasets, with 97.8% accuracy on R8 and 94.6% on R52.
- The model consumes significantly less memory than previous corpus-level GNNs due to a reduced number of edges from local windowing.
- Performance peaks at p=3, indicating that local context (3 neighbors) is optimal; larger windows degrade performance due to loss of local feature sensitivity.
- Removing trainable edge weights (fixed with PMI) reduces accuracy by 0.6–1.0%, demonstrating the importance of learnable relations.
- Replacing max-pooling reduction with mean-pooling leads to a drop in performance, confirming the benefit of max-pooling in highlighting discriminative features.
- Eliminating pre-trained word embeddings results in a slight but measurable drop in accuracy, indicating their positive contribution to initial representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.