TL;DR
Standard text graph neural networks often overlook word order, suffer from vocabulary sparsity, and ignore direct document-to-document relationships. This paper introduces a Word-Character Heterogeneous Graph that incorporates word $n$-grams, character $n$-grams, and inter-document cosine similarities, alongside tailored GCN and GAT architectures (WCTextGCN and WCTextGAT). These additions yield consistent improvements across standard text classification and extractive summarization benchmarks.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) such as GCNs and GATs are widely used in natural language processing. In conventional text graph setups (like TextGCN), a corpus is structured as a bipartite or heterogeneous graph with two node types: documents and words. Document-word edges are weighted via TF-IDF, while word-word edges use Pointwise Mutual Information (PMI).
However, this representation has three notable shortcomings:
- Loss of word ordering: Linking unigrams directly to documents discards local phrase structure and word order essential for semantic interpretation.
- Word sparsity: Infrequent or out-of-vocabulary words receive poor representations, hindering performance on texts with large vocabularies or short lengths.
- Absence of explicit document relationships: Document nodes do not link directly to one another, leaving inter-document semantic similarity unexploited.
Methods
The authors introduce a heterogeneous graph containing four types of nodes:
- Documents ($V_d$)
- Unique words ($V_w$)
- Word $n$-grams ($V_g$) to model local phrase order
- Character $n$-grams ($V_c$) to combat sub-word sparsity
Edges are defined across these entities:
- Document–Word & Document–Word $n$-gram: Weighted by TF-IDF.
- Word–Word: Weighted by PMI co-occurrence statistics.
- Document–Document: Connected by cosine similarity if it exceeds a predefined threshold.
- Word $n$-gram–Word & Character $n$-gram–Word: Binary (0/1) indicator edges representing containment.
To process this graph, the authors adapt two core architectures:
- WCTextGCN: Modifies the standard GCN adjacency matrix into a block matrix covering pairwise similarities, TF-IDF weights, PMI values, and containment indicators across all four node sets.
- WCTextGAT: Uses multi-head graph attention to aggregate multi-relational neighborhoods across four updating steps (e.g., updating word nodes by attending over documents, other words, word $n$-grams, and character $n$-grams).
Datasets
The authors evaluate their approach on existing, widely adopted NLP benchmarks (no new datasets were introduced):
- Text Classification:
- 20-Newsgroups (20NG) (newsgroup topic classification)
- Ohsumed (medical abstracts)
- R8 and R52 (Reuters news subsets)
- Movie Review (MR) (short-text binary sentiment classification)
- Extractive Single-Document Summarization:
- CNN/DailyMail
- NYT50 (New York Times articles)
Key Insights and Ideas
- Subwords cushion vocabulary sparsity: Character $n$-grams act like subword tokenization in transformers or fastText, routing information to rare words through shared character roots. This proved especially impactful for short-text classification (e.g., the MR dataset).
- Higher-order word $n$-grams restore local semantics: Incorporating word $n$-grams allows the graph to preserve critical multi-word phrase patterns without needing a full sequential recurrent or attention backbone over the entire document.
- Diminishing returns beyond small $n$: Sweeping character $n$ from 3 to 6 revealed that combinations of 3-grams and 4-grams provide almost all the gains; expanding to 5- or 6-grams adds graph complexity with minimal performance benefits.
Key Results
- Text Classification:
- On 20NG, WCTextGCN achieved 87.21% test accuracy, outperforming TextGCN (86.34%) by over 0.8%.
- On R8, WCTextGCN reached 97.49% (vs. 97.07% for TextGCN).
- On MR, WCTextGAT reached 77.98%, outperforming standard TextGAT (76.45%) and TextGCN (76.74%).
- Across all 5 datasets, the proposed models consistently outperformed fastText, BiLSTM, CNN baselines, and vanilla TextGCN/TextGAT.
- Extractive Summarization:
- Framing sentence selection as classification on the proposed graph (termed HSG-Ours, extending HeterogeneousSumGraph) outperformed the baseline HSG.
- On NYT50, ROUGE-1 improved from 42.31 to 42.85, and ROUGE-2 improved from 19.51 to 20.03 (>0.5 point gains).
- On CNN/DailyMail, ROUGE-L increased from 42.58 to 43.43.
Limitations and Future Work
- Graph Complexity and Scalability: Expanding the graph to include word $n$-grams and character $n$-grams substantially increases the total node and edge count, which can present memory bottlenecks on massive corpora.
- Heuristic Edge Definitions: Connections are largely rule-based (boolean presence or static similarity thresholds) rather than dynamically learned topologies.
- Future Directions: The authors plan to evaluate this graph structure on opinion extraction, misinformation detection, voting intention forecasting, and socioeconomic attribute prediction, as well as investigate learned neighbor weighting schemes.
Summary updated