AMR-to-text generation as a Traveling Salesman Problem

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

Abstract

Generating natural language from Abstract Meaning Representation (AMR) graphs is a complex task due to the lack of inherent linear order and the abstraction of syntactic details. This paper reformulates AMR-to-text generation as an Asymmetric Generalized Traveling Salesman Problem (AGTSP). By partitioning the AMR graph into fragments and using a global TSP solver to find the optimal sequence of their translations, the authors achieve a competitive BLEU score of 22.44. This approach demonstrates that combinatorial optimization is a viable and effective alternative to traditional beam-search decoding in semantic-to-text generation.

Introduction

Abstract Meaning Representation (AMR) is a semantic formalism that captures "who is doing what to whom" in a rooted, directed graph. Unlike syntactic trees, AMR abstracts away from surface-level details like function words (articles, prepositions) and word order. The "AMR-to-text" task is essentially the inverse of parsing: given a graph, the goal is to produce a fluent, grammatical sentence.

This task is difficult because graphs have no inherent linear order, they are "thin" on syntactic information (requiring the generator to "hallucinate" function words and tense), and the search space for word sequences is exponentially large.

Methods

The authors propose a three-stage pipeline:

  1. Rule Acquisition: "Graph-to-string" rules are extracted from a corpus of aligned sentence-AMR pairs. These rules map rooted, connected AMR fragments to word sequences. A modified MCMC sampling algorithm learns these mappings, supplemented by "concept rules" to ensure full graph coverage.
  2. Graph Partitioning: For a new input AMR, the system identifies all possible matching rules. A "cut" is a subset of these rules that covers the entire graph without overlap.
  3. AGTSP Formulation: The ordering of these fragments is treated as a Traveling Salesman Problem.
Visualization of the AGTSP formulation. Concepts in the AMR graph represent "city groups" (circles), and each group contains different possible rule translations or "cities" (nodes). The solver must find the optimal path through exactly one city per group.

In this formulation, the problem is Generalized because the solver must choose exactly one "city" (rule) from each concept's group. It is Asymmetric because the cost of traveling between fragments depends on the direction. The Cost Function is estimated using a Maximum Entropy classifier, incorporating features such as 4-gram language model scores and the shortest path distance between concepts within the original AMR graph.

Key Results

The system, referred to as "All", was evaluated on the SemEval-2016 Task 8 dataset. It achieved a BLEU score of 22.44 on the test set.

BLEU score comparison on Dev and Test sets. The proposed system ("All") significantly outperforms the PBMT baseline and performs comparably to the state-of-the-art JAMR-gen.

As shown in the results, the AGTSP approach significantly outperformed a Phrase-Based Machine Translation (PBMT) baseline (16.94 BLEU). It also performed comparably to JAMR-gen (23.00 BLEU), despite JAMR-gen using a more powerful 5-gram language model. Ablation studies confirmed that "Induced Rules" (complex fragments) were far more effective than "Concept Rules" (single nodes) alone, highlighting the importance of local context.

Discussion and Limitations

A key insight of this work is that graph distance serves as an effective proxy for word order. By framing the problem as a TSP, the authors can use global optimization solvers (like Google's OR-Tools) to find better global solutions than traditional beam search.

However, some limitations remain. The current cost function neglects AMR edge labels (e.g., :ARG0 vs :ARG1), which can lead to subject-object confusion. The model also struggles with "re-entrant" nodes (nodes with multiple parents), currently translating them only once. Finally, while computationally manageable for typical sentences, the NP-hard nature of TSP may pose challenges for extremely large and dense graphs.

Conclusion

Reformulating AMR-to-text generation as a Traveling Salesman Problem allows for global optimization over word ordering and fragment selection. This method provides a robust framework for generating fluent text from abstract semantic representations, achieving state-of-the-art performance through combinatorial optimization.

Summary updated

BibTeX
@inproceedings{song2016amr,
  author = {Linfeng Song and Yue Zhang and Xiaochang Peng and Zhiguo Wang and Daniel Gildea},
  title = {{AMR-to-text generation as a Traveling Salesman Problem}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1224},
}
Figure