Bridging the Structural Gap Between Encoding and Decoding for Data-To-Text Generation

Chao Zhao, Marilyn A. Walker, Snigdha ChaturvediACL 2020

Abstract

Generating sequential natural language descriptions from graph-structured data (e.g., knowledge graph) is challenging, partly because of the structural differences between the input graph and the output text. Hence, popular sequence-to-sequence models, which require serialized input, are not a natural fit for this task. Graph neural networks, on the other hand, can better encode the input graph but broaden the structural gap between the encoder and decoder, making faithful generation difficult. To narrow this gap, we propose DualEnc, a dual encoding model that can not only incorporate the graph structure, but can also cater to the linear structure of the output text. Empirical comparisons with strong single-encoder baselines demonstrate that dual encoding can significantly improve the quality of the generated text.

Introduction

Data-to-text generation involves transforming structured data—typically Resource Description Framework (RDF) triples—into coherent natural language. A significant challenge in this field is the structural gap between the input and output. Standard Sequence-to-Sequence (Seq2Seq) models often flatten graphs into strings, losing vital relational information. Conversely, Graph-to-Sequence (Graph2Seq) models using Graph Neural Networks (GNNs) preserve structure but create a mismatch: the encoder processes a complex web, while the decoder must generate a linear sequence. This makes it difficult for the model to align input data with output words effectively.

The DUALENC Architecture

To address this mismatch, we introduce DUALENC, a model that utilizes a dual-encoding architecture to simultaneously handle graph structure and the linear requirements of text.

The DUALENC architecture, featuring a dual-encoding mechanism with a Graph Encoder and a Neural Planner to bridge the structural gap.

The architecture consists of four primary components:

  1. Graph Encoder: A Relational Graph Convolutional Network (R-GCN) encodes the input RDF triples, capturing structural dependencies between entities and predicates.
  2. Neural Planner: This component acts as the bridge. It determines the optimal order for mentioning triples, creating a sequential "Content Plan."
  3. Plan Encoder: The resulting content plan is encoded using a Long Short-Term Memory (LSTM) network to capture its linear progression.
  4. Dual-Conditioned Decoder: An LSTM decoder with attention and copy mechanisms generates text by attending to both the original graph representation and the sequential content plan.

Experimental Setup

The model was evaluated on the WebNLG dataset, a standard benchmark consisting of sets of 1 to 7 RDF triples from DBpedia and their corresponding human-written descriptions. The dataset includes both SEEN domains (present in training) and UNSEEN domains to test generalization capabilities.

Results and Discussion

DUALENC significantly outperformed existing baselines across multiple metrics. The neural planner achieved a 15% absolute improvement in planning accuracy over previous state-of-the-art methods. On the WebNLG SEEN test set, the model achieved a BLEU score of 64.42, outperforming the previous best (ADAPT) by nearly 4 points.

Comparative performance of DUALENC (GCN) against baselines in terms of planning accuracy and BLEU-2 scores across varying triple-set sizes.

Key insights from our evaluation include:

  • Planning as a Structural Bridge: Content planning transforms a non-linear graph into a linear intermediate format that the decoder can follow more easily.
  • Generalization: GCNs generalize better to unseen domains because structural patterns are more consistent across topics than specific vocabulary.
  • Efficiency: The neural planner is significantly faster than previous transition-based planners, handling complex 7-triple instances in seconds.

Human evaluation further confirmed these findings, with DUALENC rated superior in Coverage (94.5%) and Faithfulness (91.8%), indicating a reduced likelihood of missing information or hallucinating facts compared to standard GCN or sequential models.

Conclusion

By bridging the structural gap through dual encoding and explicit content planning, DUALENC provides a more faithful and fluent approach to data-to-text generation. Future work will focus on refining the granularity of planning—such as the internal ordering of subjects and objects—to further enhance linguistic fluency.

Summary updated

BibTeX
@inproceedings{zhao2020bridging,
  author = {Chao Zhao and Marilyn A. Walker and Snigdha Chaturvedi},
  title = {{Bridging the Structural Gap Between Encoding and Decoding for Data-To-Text Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=dmEcM2QjT3j},
}
Figure