Abstract: Graph encoders in AMR-to-text generation models often rely on neighborhood convolutions or global vertex attention. While these approaches apply to general graphs, AMRs may be amenable to encoders that target their tree-like structure. By clustering edges into a hierarchy, a tree decomposition summarizes graph structure. Our model encodes a derivation forest of tree decompositions and extracts an expected tree. From tree node embeddings, it builds graph edge features used in vertex attention of the graph encoder. Encoding TD forests instead of shortest-pairwise paths in a self-attentive baseline raises BLEU by 0.7 and chrF++ by 0.3. The forest encoder also surpasses a convolutional baseline for molecular property prediction by 1.92% ROC-AUC.
Introduction
Generating natural language from Abstract Meaning Representation (AMR) graphs is a core task in semantic-to-text generation. The primary challenge lies in the structural gap: AMRs are non-linear, multi-parented graphs, while language is inherently sequential. While AMRs are often described as "tree-like," they frequently contain reentrancies (nodes with multiple parents) and cycles that complicate standard tree-based processing.
Existing graph encoders typically utilize Graph Convolutional Networks (GCNs) or Transformers with global attention. GCNs excel at capturing local neighborhoods but often fail to model long-range dependencies. Conversely, Transformers with global attention can see the entire graph but often ignore its inherent structural hierarchy, relying instead on simple shortest-path distances to provide context. This paper proposes a latent tree decomposition (TD) parser to bridge this gap by imposing a hierarchical structure on the graph.
Methodology: Latent Tree Decomposition
The core innovation of this work is the integration of a latent TD parser into a Graph Transformer encoder. Tree Decomposition is a technique from graph theory that summarizes a graph's structure by grouping its vertices into "bags" connected in a tree structure. This process effectively converts a complex graph into an acyclic representation that is more compatible with sequential generation.
The Derivation Forest
Rather than selecting a single deterministic tree decomposition, the model represents all valid decompositions as a derivation forest. This allows the model to remain "latent," learning which structural decompositions are most beneficial for the target task during training. To manage this forest, the authors employ the inside-outside algorithm—a staple in natural language parsing—to compute embeddings for the forest nodes. These embeddings represent the expected structural context of the graph.
Motif-Based Initialization
To ground the model's understanding of graph topology, the "bags" are initialized using structural motifs. These are unlabeled, canonical subgraph structures that help the model recognize the "shape" of a graph component regardless of specific node labels. These forest-derived features are then used to bias the self-attention mechanism of a Transformer, providing a richer structural prior than simple distance metrics.
Experimental Results
The proposed model (TDP) was evaluated on two distinct benchmarks to demonstrate its versatility as a graph encoder.
AMR-to-Text Generation
On the LDC2017T10 dataset, the TDP model achieved 30.5 BLEU and 59.7 chrF++. This represents a significant improvement over strong path-based baselines, specifically outperforming the state-of-the-art model by 0.7 BLEU points. Qualitative analysis suggests that the TDP model is particularly effective at maintaining the integrity of complex clauses and preserving causal relations that local encoders often miss.
Molecular Property Prediction
To test the encoder's general-purpose utility, it was applied to the MolHIV dataset from the Open Graph Benchmark. In this task, the model predicts whether a molecule inhibits the HIV virus. The forest encoder surpassed the convolutional baseline (DGN) by 1.92% ROC-AUC, reaching a score of 80.21%. This result confirms that tree decomposition is a powerful strategy for encoding complex global topologies in non-linguistic domains.
Discussion and Conclusion
The success of the Latent TD Parser suggests that hierarchy acts as a crucial bridge between graph structures and sequential strings. By encoding a forest of possible decompositions, the model gains robustness against structural uncertainty.
However, the approach faces limitations regarding computational complexity. The parsing algorithm scales at $O(n^{k+1})$, where $k$ is the treewidth. While AMRs generally have low treewidth ($k \leq 4$), the method may become computationally expensive for very large or dense graphs. Additionally, performance tends to dip on graphs with exceptionally high treewidth due to data sparsity in the training sets. Future work will focus on optimizing the parsing algorithm and exploring its application in other graph-to-sequence domains.
Summary updated