Graph-to-Text Generation with Dynamic Structure Pruning

Liang Li, Ruiying Geng, Bowen Li, Can Ma, Yinliang Yue, Binhua Li, Yongbin Li

Abstract

Traditional graph-to-text generation models often struggle with structural information loss and static node representations. This paper introduces a novel framework that dynamically re-encodes the input graph at each decoding step. By implementing Structure-Aware Cross-Attention (SACA) and Dynamic Graph Pruning (DGP), the model evolves its understanding of the graph as the sentence progresses, effectively "forgetting" nodes that have already been verbalized. This approach achieves new state-of-the-art results on major benchmarks, particularly for complex graph structures.

The Problem: Structural Loss and Static Representations

In graph-to-text tasks, such as converting Knowledge Graphs (KG) or Abstract Meaning Representations (AMR) into natural language, standard encoder-decoder architectures face two primary hurdles:

  1. Structural Loss: Decoders typically treat graph nodes as a flat sequence during cross-attention, ignoring the connectivity captured by the encoder.
  2. Static Representations: A single forward pass through the encoder produces fixed representations. However, the importance of specific nodes changes as a sentence is generated word-by-word.

Furthermore, as generation progresses, previously mentioned nodes become redundant. These nodes act as noise, potentially distracting the model and leading to repetitive or unfaithful outputs.

Methodology

The proposed architecture is built upon a T5-based model enhanced with structural adapters. The core innovations lie in how the decoder interacts with the graph structure during the generation process.

Overview of the model architecture, structural adapter details, and a concrete example of dynamic pruning.

Structure-Aware Cross-Attention (SACA)

SACA replaces simple attention with a dynamic re-encoding process. At each decoding step, the model constructs a "joint graph" where the current generated text context is treated as a new node connected to all input graph nodes. A Relational Graph Attention Network (RGAT) then re-encodes the graph, allowing representations to evolve based on the current generation state.

Dynamic Graph Pruning (DGP)

To manage redundancy, a gating mechanism is integrated into SACA. It calculates a gate value for each node at every step. If the model determines a node is no longer relevant to the current context, the gate value drops, effectively pruning the node and its edges. This reduces interference from information that has already been verbalized. To encourage efficiency, the authors use an $L_1$ regularization term during training to minimize the number of active gates without sacrificing quality.

Conceptual Innovation

By comparing standard cross-attention to the proposed methods, we can see how the model shifts from a static view to a dynamic, context-dependent understanding of the input data.

Comparison between (a) standard cross-attention, (b) structure-aware cross-attention, and (c) dynamic graph pruning.

Key Results and Insights

The model was evaluated on two prominent benchmarks: LDC2020T02 (AMR-to-text) and ENT-DESC (KG-to-text). It achieved state-of-the-art performance on both:

  • LDC2020T02: Reached 48.78 BLEU and 74.35 ChRF++, outperforming previous best models by nearly 0.8 BLEU points.
  • ENT-DESC: Reached 34.87 BLEU, a significant improvement over prior graph-based approaches.

Performance on Complex Graphs

Analysis revealed that the SACA/DGP approach is particularly effective for complex graphs with high diameters or multiple reentrancies (nodes with multiple parents). By dynamically focusing and pruning, the model maintains coherence even as the input complexity increases.

Human Evaluation

In side-by-side human studies, the model was rated significantly higher in "Authenticity" (faithfulness to the input graph) compared to baselines. This confirms that dynamic re-encoding better captures and adheres to the provided structural data.

Conclusion and Future Work

While the dynamic approach introduces a minor increase in computational cost (roughly 5% more parameters and a slight increase in inference latency), the performance gains are substantial. Future work may involve scaling this dynamic pruning approach to massive knowledge graphs or adapting it for other structured data tasks like table-to-text and code generation.

Summary updated

BibTeX
@inproceedings{li2022graph,
  author = {Liang Li and Ruiying Geng and Bowen Li and Can Ma and Yinliang Yue and Binhua Li and Yongbin Li},
  title = {{Graph-to-Text Generation with Dynamic Structure Pruning}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=E4SOg1_rFD0},
}
Figure