Abstract
Traditional Graph Neural Network (GNN) approaches for document classification often rely on static, corpus-wide graphs that struggle with word ambiguity and fail to generalize to unseen data. This paper introduces a novel framework that learns a unique, sparse graph structure for every document. By combining fixed sentence-level "local" connections with dynamically learned "global" inter-sentence edges using the Gumbel-Softmax trick, the model effectively captures context and long-range dependencies in an inductive setting. Experimental results across five benchmark datasets demonstrate that this sparse structure learning significantly outperforms state-of-the-art inductive baselines.
Introduction
Most GNN-based document classification methods utilize static word co-occurrence graphs, where edges are formed between words appearing within a fixed window. This approach faces three primary challenges:
- Word Ambiguity: Multiple meanings of a single word (e.g., "bank") are often collapsed into a single node, leading to contextual confusion.
- Word Synonymity: Semantically related words may be distant in the text and remain unconnected, missing vital shared information.
- Dynamic Contextual Dependency: Static graphs treat all neighbors uniformly, failing to distinguish between essential connections and noise.
Furthermore, many existing models are transductive, requiring the entire corpus during training. This work focuses on inductive classification, enabling the model to process entirely new documents without retraining.
Methodology
The proposed framework constructs document-level graphs through a multi-stage process involving local syntactic context and global semantic learning.
Graph Construction and Message Passing
Instead of a single node per unique word, the model creates disjoint sentence-level subgraphs. A word appearing in multiple sentences is represented by separate nodes, preserving local syntactic context. The model then performs joint message passing:
- Local Syntactic Neighbors: Fixed connections within a sentence.
- Global Semantic Neighbors: Potential connections between words in different sentences.
Sparse Structure Learning (SSL)
The core innovation is the SSL module, which dynamically identifies relevant inter-sentence edges. To avoid the noise of a fully connected graph, the model calculates attention-based scores for potential edges and employs the Gumbel-Softmax trick. This technique allows for discrete edge sampling while maintaining differentiability for end-to-end training via backpropagation. An entropy-based regularization loss ensures the model retains essential local information while learning global connections.
Experimental Evaluation
The model was evaluated on five benchmark datasets: MR (movie reviews), R8 & R52 (Reuters news), Ohsumed (medical abstracts), and 20NG (20 Newsgroups).
Key Results
The proposed model consistently outperformed state-of-the-art inductive baselines like TextING and HyperGAT:
- Accuracy: On the MR dataset, it achieved 79.74% accuracy, surpassing TextING's 78.93%.
- Robustness: On the imbalanced R52 dataset, the model maintained superior performance even with limited training data (2.5% of the original set).
- Ablation Studies: Results confirmed that the "Sparse" approach is superior to both "Disjoint" (no inter-sentence edges) and "Complete" (fully connected) configurations, highlighting the importance of pruning noisy connections.
Discussion and Conclusion
The study demonstrates that sparsity is a critical feature in graph-based document modeling. A complete graph often introduces excessive noise that degrades performance. By starting with sentence-level subgraphs, the model naturally handles word disambiguation. Crucially, because the model learns the process of graph construction rather than relying on a fixed corpus graph, it generalizes exceptionally well to documents with unseen words, a key requirement for real-world inductive classification tasks.
Summary updated