AMR-to-text Generation with Synchronous Node Replacement Grammar

Linfeng Song, Xiaochang Peng, Yue Zhang, Zhiguo Wang, Daniel Gildea

Introduction

Abstract Meaning Representation (AMR) is a semantic formalism that represents sentence meaning as a rooted, directed graph. Nodes in an AMR graph represent concepts (e.g., "boy" or "want-01"), while edges denote semantic relations (e.g., "ARG0" or "ARG1"). Generating natural language from these abstract structures is a significant challenge because AMRs omit function words and syntactic markers. This paper, presented at ACL 2017, introduces a novel graph-to-string transduction method using a Synchronous Node Replacement Grammar (SNRG) to bridge this gap.

The Problem with Tree-Based Approaches

Traditional methods for AMR-to-text generation often rely on converting the graph into an intermediate spanning tree. However, this "Graph-to-Tree-to-String" pipeline frequently suffers from information loss during the tree conversion phase, leading to errors that the final generation step cannot correct. Alternatively, treating generation as a Traveling Salesman Problem (TSP) avoids tree-conversion errors but fails to capture the inherent hierarchical and nested nature of human language.

Synchronous Node Replacement Grammar (SNRG)

The authors propose SNRG as a middle ground that respects the graph structure while capturing hierarchical correspondences. SNRG is a rewriting system where a non-terminal node in a graph is replaced by a graph fragment, while a corresponding non-terminal in a string is simultaneously replaced by a word or phrase.

Hierarchical mapping between AMR graph fragments and sentence components.

Rule Extraction and Derivation

The system learns hierarchical rules from a corpus of aligned AMR-sentence pairs through a two-step heuristic. It first extracts basic mappings and then "collapses" them into templates. For instance, a rule might map a specific graph fragment to the phrase "[#X#] wants to go," where #X# serves as a placeholder for any graph fragment representing a subject.

The synchronous derivation process from a start symbol to a complete AMR graph and sentence.

The generation process involves a log-linear model that scores different derivations based on translation probabilities, a 4-gram language model, and a unique "moving distance" feature that encourages the model to process subgraphs that are physically close to each other in the AMR structure.

Results and Key Insights

The SNRG-based model achieved a state-of-the-art BLEU score of 25.62 on the LDC2015E86 benchmark, significantly outperforming previous models like JAMR-gen (23.00) and TSP-gen (22.44).

Key findings from the study include:

  • Induced Rules are Crucial: Ablation studies showed that removing hierarchical induced rules caused the BLEU score to drop from 25.62 to 17.43, identifying them as the most important component.
  • Locality Matters: The "moving distance" feature proved vital, confirming that human language tends to group related semantic concepts close together.
  • Graph-Direct Mapping: Bypassing intermediate tree structures preserves non-projective dependencies, leading to more accurate semantic representation in the output text.

Conclusion

By utilizing a Synchronous Node Replacement Grammar, this research demonstrates that direct graph-to-string transduction is a highly effective approach for AMR-to-text generation. While challenges like data sparsity and alignment heuristics remain, the SNRG framework provides a robust foundation for capturing the complex relationship between abstract semantics and natural language.

Summary updated

BibTeX
@inproceedings{song2017amr,
  author = {Linfeng Song and Xiaochang Peng and Yue Zhang and Zhiguo Wang and Daniel Gildea},
  title = {{AMR-to-text Generation with Synchronous Node Replacement Grammar}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-2002},
}
Figure