TL;DR
This comprehensive survey provides the first systematic roadmap for applying Graph Neural Networks (GNNs) to the field of Natural Language Processing (NLP). It introduces a new taxonomy that organizes the field into three core pillars—graph construction, representation learning, and encoder-decoder frameworks—demonstrating how moving beyond simple sequences to complex graph structures can unlock new levels of machine reasoning and linguistic understanding.
What Problem Does This Paper Address?
For years, the "gold standard" in NLP has been to treat text as a sequence of tokens, processed by models like RNNs or Transformers. While effective, this approach ignores the rich, non-linear relationships inherent in language, such as dependency trees, semantic web structures, and massive external knowledge bases.
The challenge is that graph-structured data is "irregular." Unlike images (grids) or text (sequences), graphs have varying numbers of neighbors and no fixed ordering. This paper addresses the gap between traditional deep learning and the complex structural needs of NLP. It tackles three fundamental questions:
- Construction: How do we turn raw text into a useful graph?
- Learning: How do we represent these graphs mathematically?
- Mapping: How do we translate graph inputs into structured outputs like sentences or trees?
Methods
The authors propose a taxonomy organized along three axes:
- Graph Construction: This is the "how." They distinguish between Static Construction, which uses existing linguistic tools (like dependency parsers or knowledge bases) to build a fixed graph, and Dynamic Construction, which allows the model to learn the graph structure on the fly. Dynamic construction is particularly exciting because it can bypass the errors and noise often found in manual parsing tools.
- Graph Representation Learning: Once the graph exists, how do we process it? The paper reviews Graph Filtering (spectral and spatial methods that aggregate information from neighbors) and Graph Pooling (techniques to condense a large graph into a single vector). They highlight the Graph Attention Network (GAT) as a pivotal method that uses self-attention to weigh the importance of different neighbors.
- Encoder-Decoder Frameworks: Most NLP tasks are "X-to-Y" problems. The survey details advanced architectures like Graph-to-Sequence (for translation or summarization), Graph-to-Tree (for generating mathematical equations or code), and Graph-to-Graph (for information extraction).
Datasets
As a survey, this paper summarizes dozens of benchmarks across 12 application areas. Notable mentions include:
- Translation/Generation: WMT, Multi30K, and AMR-to-text datasets.
- Reasoning & QA: SQuAD, HotpotQA (multi-hop reasoning), and WebQuestions.
- Knowledge Graphs: FB15k-237 and WN18RR.
- Dialogue: MultiWOZ and Ubuntu Dialogue Corpus.
- Parsing: PTB 3.0 and UD 2.2.
Key Insights and Ideas
- Transformers are GNNs in Disguise: One of the most profound "aha" moments is the realization that the standard Transformer is essentially a GNN operating on a "fully connected" graph. By using Graph Transformers, researchers can inject "structural bias"—telling the model which connections actually matter based on syntax or logic.
- The Power of Dynamic Graphs: Static graphs are often noisy. The paper argues that Dynamic Graph Construction—where the model learns which words should be connected based on the specific task—often outperforms human-defined linguistic rules.
- Beyond Sequences: For tasks requiring deep reasoning (like multi-hop Question Answering), sequence models often get lost. GNNs allow the model to "jump" across documents and entities, mimicking how a human might connect clues to solve a mystery.
Key Results
The survey synthesizes results from hundreds of papers, showing that GNNs have become the state-of-the-art for:
- AMR-to-Text Generation: Where preserving the "who-did-what-to-whom" structure is vital.
- Multi-hop Reasoning: GNNs consistently outperform sequence models on datasets like HotpotQA because they can explicitly model the path between disparate pieces of evidence.
- Semantic Role Labeling (SRL): By incorporating syntactic dependency graphs, GNN-based models achieve significantly higher F1 scores than syntax-agnostic LSTMs.
Limitations and Future Work
Despite the progress, the authors pinpoint several "frontier" challenges:
- Scalability: Dynamic graph construction currently has an $O(n^2)$ complexity, making it difficult to process very long documents or massive knowledge bases.
- Heterogeneity: Most current dynamic methods assume all nodes are the same type. Learning dynamic graphs that include words, entities, and topics simultaneously is still an open problem.
- Pre-training: While we have BERT and GPT for sequences, we lack a universal "Pre-trained GNN" for NLP that can be fine-tuned across many different graph-based tasks.
- Graph-to-Graph Transformation: This remains the most difficult architecture to master, particularly for tasks like semantic parsing where both the input and output are complex, irregular structures.
Summary updated