Tackling Graphical NLP problems with Graph Recurrent Networks

Linfeng SongarXiv 2019

Abstract

Traditional Natural Language Processing (NLP) models often struggle to represent the complex, non-linear relationships inherent in language, such as dependency trees and semantic graphs. This paper introduces Graph Recurrent Networks (GRNs), a novel architecture designed to model cyclic and arbitrary graph structures directly. By utilizing an iterative message-passing framework with LSTM-style gating, GRNs preserve structural integrity while enabling massive parallelization. Experimental results across multi-hop reading comprehension, $n$-ary relation extraction, and machine translation demonstrate that GRNs consistently outperform traditional sequence-based and acyclic models.

Introduction

Language is fundamentally a web of relationships rather than a flat string of words. To capture these relationships, researchers frequently employ structured representations like dependency trees, Abstract Meaning Representation (AMR) graphs, or knowledge bases. However, standard deep learning architectures, such as Recurrent Neural Networks (RNNs), require "linearization"—the process of flattening a graph into a sequence. This transformation often places closely connected nodes far apart, stripping away vital structural context.

While Directed Acyclic Graph (DAG) LSTMs were developed to address some of these limitations, they remain restricted to acyclic structures and often require splitting graphs into separate directions, which prevents a holistic view of the data. This research proposes Graph Recurrent Networks (GRNs) to encode arbitrary graph structures efficiently while capturing global context without the need for linearization or acyclic constraints.

The Graph Recurrent Network Architecture

The core innovation of the GRN is its ability to assign a hidden state to every node in a graph simultaneously, rather than processing tokens sequentially. The architecture operates through several key mechanisms:

  1. Iterative Message Passing: In each iteration or "time step," every node broadcasts its current state to its immediate neighbors.
  2. Gated Updates: To manage information flow, each node updates its state using an LSTM-style gating mechanism, including input, output, and forget gates. This allows the model to selectively retain or discard information from its neighborhood.
  3. Global Context Acquisition: After $T$ iterations, each node effectively integrates information from any other node within $T$ hops. This enables the model to capture long-range dependencies and global context without a fixed processing order.
  4. Efficiency through Parallelization: Unlike sequential models, all nodes in a GRN update their states concurrently during an iteration. This architectural choice allows GRNs to be significantly faster on modern GPU hardware compared to sequential alternatives.

Empirical Evaluation

The effectiveness of GRNs was evaluated across four distinct NLP frontiers:

Multi-hop Reading Comprehension

Using the WikiHop and ComplexWebQuestions datasets, the model was tasked with navigating multiple documents to find answers. On WikiHop, the GRN achieved an accuracy of 65.4%, placing it among the top-performing models on the official leaderboard at the time of study.

$n$-ary Relation Extraction

The model was applied to a PubMed biomedical dataset to identify complex relationships between drugs, genes, and mutations spanning multiple sentences. The GRN outperformed the previous state-of-the-art by 1.2% and surpassed a strong bidirectional DAG LSTM baseline by 5.9% in accuracy.

AMR-to-Text Generation

Transforming Abstract Meaning Representation (AMR) graphs back into natural English (using the LDC2015E86 corpus), the GRN reached a 23.3 BLEU score. This result surpassed previous best-in-class sequence-to-sequence models by 1.3 points.

Semantic Neural Machine Translation (NMT)

By incorporating AMR graphs as additional knowledge in the WMT16 English-German task, the GRN significantly improved translation quality. The gains were most pronounced in low-resource settings, where the model achieved a +3.2 BLEU point increase on the NC-v11 subset.

Discussion and Key Insights

The Importance of Cycles

Many linguistic structures are naturally cyclic. By permitting information to flow through cycles rather than forcing an acyclic structure, GRNs capture nuances that DAG-based models inherently miss. This "wholistic" view is critical for complex semantic tasks.

Computational Efficiency

A significant finding of this research is that GRNs are 8 to 10 times faster than bidirectional DAG LSTMs. The sequential nature of DAG LSTMs creates a computational bottleneck that the parallel node updates of GRNs successfully bypass.

Semantic Abstraction and Graph Distance

In NMT, AMR graphs provide a "cleaner" semantic signal by abstracting away function words and inflections. Furthermore, GRNs exploit the "short-cuts" provided by graph structures. For instance, in AMR-to-text tasks, nodes that are 14 tokens apart in a linearized string may be directly adjacent in a graph. GRNs utilize these direct connections to generate more syntactically correct output.

Limitations and Future Directions

Despite their success, GRNs are memory-intensive because they update every node state in every iteration, which can challenge GPU capacity for very dense or large-scale graphs. Additionally, the number of transition steps ($T$) is currently a fixed hyperparameter. Future work should explore dynamic mechanisms for the model to learn the optimal number of steps per task. Finally, for massive knowledge bases, "relation-oriented sampling" is proposed as a method to reduce the number of active edges and nodes without sacrificing critical information.

Summary updated

BibTeX
@misc{song2019tackling,
  author = {Linfeng Song},
  title = {{Tackling Graphical NLP problems with Graph Recurrent Networks}},
  year = {2019},
  eprint = {1907.06142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.06142},
}
Figure