A Graph-to-Sequence Model for AMR-to-Text Generation

Linfeng Song, Yue Zhang, Zhiguo Wang, Daniel Gildea

Abstract

Abstract Meaning Representation (AMR) to text generation involves mapping complex semantic graphs to natural language. Traditional sequence-to-sequence models rely on graph linearization, which often loses structural information. This paper proposes a novel graph-to-sequence architecture using a graph-state LSTM to encode AMR graphs directly. By maintaining and updating hidden states for all nodes in parallel, the model captures intricate semantic relationships more effectively than linear models. Our approach achieves state-of-the-art results on standard benchmarks, demonstrating significant improvements in both translation quality and computational efficiency.

The Challenge of AMR-to-Text Generation

The objective of AMR-to-text generation is to transform a semantic graph—where nodes represent concepts and edges represent relations—into a coherent natural language sentence. Historically, the dominant approach involved "linearizing" these graphs into bracketed strings to be processed by standard Sequence-to-Sequence (seq2seq) models.

However, linearization is inherently lossy. Flattening a multi-dimensional graph into a one-dimensional string forces nodes that are semantically close in the graph to appear far apart in the sequence. This distance makes it difficult for standard LSTMs to maintain long-range dependencies, particularly as graph complexity increases and sequences lengthen.

Proposed Method: Graph-to-Sequence Architecture

To address these limitations, we introduce a Graph-to-Sequence architecture centered on a Graph-State LSTM encoder. Unlike traditional encoders that process a linear chain of states, our model maintains a hidden state for every node in the graph simultaneously.

The Graph-State LSTM architecture illustrating information exchange between nodes across time steps.

The encoding process involves several key components:

  1. Graph-State Encoding: Every node starts with an initial state and is updated through multiple "transition steps."
  2. Information Exchange: In each step, nodes update their states by communicating with immediate neighbors via both incoming and outgoing edges.
  3. Iterative Global Context: As iterations progress, information propagates further. After $N$ steps, a node's state incorporates context from its $N$-th degree neighbors.
  4. Attention-Based Decoding: Once the graph is encoded, an attention-based LSTM decoder generates the final sentence.
  5. Copy Mechanism: To handle rare tokens like specific names or dates, a copy mechanism allows the decoder to directly point to and extract content from input graph nodes.

Experimental Results

The model was evaluated on the LDC2015E86 corpus and pre-trained using "silver data" from Gigaword to test scaling capabilities.

Comparison of the Graph2seq model against state-of-the-art baselines and scaling performance with additional data.

Key findings include:

  • Superior Accuracy: On the LDC2015E86 test set, the model achieved 23.3 BLEU, a 1.3-point improvement over previous state-of-the-art methods.
  • Scaling with Data: When pre-trained on 2 million sentences from Gigaword, the performance reached 33.0 BLEU, significantly outperforming existing models using the same amount of data.
  • Efficiency: The graph encoder is highly parallelizable on GPUs, making it more computationally efficient than sequential encoders.

Key Insights and Discussion

Our analysis reveals that directly modeling graph structure is far superior to teaching a linear model to interpret bracketed strings. The graph-to-seq model learns more robust node representations, which enhances the accuracy of the attention mechanism.

Furthermore, we found that bidirectionality is crucial; performance drops significantly if nodes only receive information from parents or children. Optimal results were observed at approximately 9 transition iterations, suggesting this is the necessary "receptive field" for most AMR graphs to capture enough context for accurate translation.

Limitations and Future Work

While the model shows great promise, there are areas for further exploration. We did not conduct an exhaustive hyperparameter search for the optimal number of transition steps. Additionally, while the model is efficient, GPU memory constraints limited testing on larger datasets (e.g., 20 million sentences). Future work could extend this graph-state LSTM to other structured tasks, such as dependency parsing or cyclic graph encoding.

Summary updated

BibTeX
@inproceedings{song2018graph,
  author = {Linfeng Song and Yue Zhang and Zhiguo Wang and Daniel Gildea},
  title = {{A Graph-to-Sequence Model for AMR-to-Text Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-1150},
}
Figure