NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Every Document Owns Its Structure: Inductive Text Classification via Graph Neural Networks

Yufeng Zhang, Xueli Yu, Zeyu Cui, Shu Wu, Zhongzhen Wen, Liang Wang

Introduction

Traditional graph-based text classification methods, such as TextGCN, typically rely on a transductive approach. They construct a single, massive global graph encompassing all words and documents in a dataset. While effective, this paradigm suffers from two critical limitations: context blindness, where word relationships are fixed regardless of local context, and the "new word" problem, where the model cannot generalize to unseen vocabulary without rebuilding the entire graph.

To address these issues, the authors propose TextING (Inductive Text Classification via Graph Neural Networks). Grounded in the philosophy that "every document owns its structure," TextING builds unique, local graphs for individual documents, enabling a truly inductive learning process that generalizes to new data and captures nuanced word interactions.

Methodology: The TextING Framework

The TextING model processes text through three distinct stages designed to capture local dependencies and aggregate them into a document-level representation.

The TextING architecture: from document-specific graph construction to gated word interaction and final readout.

1. Graph Construction

For each document, a unique graph is generated. Nodes represent unique words, and edges are established between words appearing within a fixed-size sliding window (typically size 3). This approach ensures that word relationships are defined by their immediate context within the specific document, rather than a global average.

2. Gated Graph Word Interaction

The core of the model is a Gated Graph Neural Network (GGNN). This component utilizes a GRU-like (Gated Recurrent Unit) gating mechanism to update node representations. Each word node aggregates information from its neighbors, allowing the model to learn complex, multi-hop dependencies. By stacking these layers, TextING captures long-range interactions within the document structure.

3. Readout Function

To produce a final classification label, the individual word embeddings must be pooled. TextING employs a dual-strategy readout:

  • Attention Mechanism: Learns to weigh the importance of specific words (e.g., identifying sentiment-heavy terms).
  • Max-Pooling: Captures the most salient features across the node set. The resulting document vector is passed through a softmax layer for final prediction ($\hat{y}_g$).

Performance and Inductive Capability

TextING was evaluated against standard benchmarks including MR (movie reviews), R8/R52 (news), and Ohsumed (medical abstracts). It consistently achieved state-of-the-art results, with particularly notable gains on short-text datasets like MR (79.82% accuracy vs. TextGCN's 76.74%), where local structure is more informative than sparse global connections.

The authors specifically highlighted the Prop.NW (Proportion of New Words) metric, noting that the MR dataset has a high rate of unseen words in the test set (30.07%), making it a perfect test for inductive learning. Unlike transductive models that degrade when training data is scarce or new words appear, TextING maintains high accuracy.

Comparison of TextING and TextGCN across different training percentages. TextING shows a substantial performance gain, especially when training data is limited.

As shown in the experimental results, the "Gain percentage" of TextING over TextGCN is highest when the training percentage is low. In rigorous cold-start experiments with severely limited training data, TextING achieved an average gain of 21.06% over TextGCN, proving its superior ability to handle unseen vocabulary.

Discussion: Interaction and Density

The authors' analysis revealed several key insights into graph-based modeling:

  • Interaction Steps: Increasing the number of GGNN layers helps capture broader context, but excessive steps lead to "over-smoothing," where node representations become indistinguishable. Performance typically peaks at a small number of steps (e.g., 2).
  • Graph Density: The choice of sliding window size directly impacts graph density. A window that is too small results in disconnected components, while one that is too large introduces noise. A window size of 3 was found to be an optimal balance for most tasks.

Conclusion

TextING represents a shift toward more flexible, document-centric NLP. By moving from global transductive graphs to local inductive ones, the model overcomes the limitations of fixed vocabularies and context-independent embeddings. Its superior performance on short texts and its ability to handle unseen words make it a robust solution for real-world text classification challenges.

Summary updated

BibTeX
@inproceedings{zhang2020every,
  author = {Yufeng Zhang and Xueli Yu and Zeyu Cui and Shu Wu and Zhongzhen Wen and Liang Wang},
  title = {{Every Document Owns Its Structure: Inductive Text Classification via Graph Neural Networks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.31},
}
Figure