An Unsupervised Joint System for Text Generation from Knowledge Graphs\n and Semantic Parsing

Martin Schmitt, Sahand Sharifzadeh, Volker Tresp, Hinrich Schütze · DOI

Abstract

Knowledge graphs (KGs) can vary greatly from one domain to another. Therefore supervised approaches to both graph-to-text generation and text-to-graph knowledge extraction (semantic parsing) will always suffer from a shortage of domain-specific parallel graph-text data; at the same time, adapting a model trained on a different domain is often impossible due to little or no overlap in entities and relations. This situation calls for an approach that (1) does not need large amounts of annotated data and thus (2) does not need to rely on domain adaptation techniques to work well in different domains. To this end, we present the first approach to unsupervised text generation from KGs and show simultaneously how it can be used for unsupervised semantic parsing. We evaluate our approach on WebNLG v2.1 and a new benchmark leveraging scene graphs from Visual Genome. Our system outperforms strong baselines for both text↔graph conversion tasks without any manual adaptation from one dataset to the other. In additional experiments, we investigate the impact of using different unsupervised objectives.

Introduction

The translation between structured Knowledge Graphs (KGs) and natural language is a dual challenge: Graph-to-Text generation aims to make structured data accessible to humans, while Text-to-Graph extraction (semantic parsing) enables machines to process unstructured human knowledge. Traditionally, these tasks rely on large-scale parallel datasets—aligned pairs of graphs and text. However, such data is expensive to produce and highly domain-specific. A model trained on sports data cannot easily generalize to medical data because the underlying entities and relations differ entirely.

This paper proposes a fully unsupervised joint system that learns these translations using only non-parallel corpora of graphs and text from the same domain.

Methodology

The system utilizes a standard Neural Seq2Seq architecture (LSTMs) enhanced with attention and a copy mechanism. The copy mechanism is critical for factual accuracy, allowing the model to directly transfer entity names from the source to the output.

Unsupervised Training Regime

Without parallel data, the model is trained using two primary objectives:

  1. Denoising Auto-encoding (DAE): The model learns the internal structure of each "language" (graphs or text) by reconstructing clean versions from noisy inputs.
  2. Iterative Backtranslation: The model generates "pseudo-parallel" data. For instance, it uses its current text-to-graph capability to create a noisy graph from clean text, then trains the graph-to-text direction to reconstruct that original text from the pseudo-graph.

Noise Functions

Effective denoising requires sophisticated noise functions. The authors introduce several, including swapping triples, dropping facts, and a "rule-based" noisy translation. The latter uses simple heuristics (e.g., listing triples) to bootstrap the learning process, providing a more structured starting point than random noise.

Denoising auto-encoding process and noise functions

Experimental Evaluation

The model was tested on two benchmarks:

  • WebNLG v2.1: Triples from DBpedia and human descriptions.
  • Visual Genome (VG): A new, larger, and noisier benchmark based on image scene graphs (e.g., Man — wearing — hat).

Key Results

The unsupervised system significantly outperformed rule-based baselines and narrowed the gap with supervised models. On the Visual Genome dataset, the model achieved a BLEU score of 23.2 for graph-to-text generation, coming remarkably close to the supervised score of 26.4.

Performance comparison on Visual Genome and WebNLG datasets

For semantic parsing (text-to-graph), the model achieved an F1 score of 21.7 on Visual Genome, surpassing the specialized Stanford Scene Graph Parser (19.3) without any domain-specific tuning.

Discussion and Conclusion

A key insight from this work is that unsupervised models can sometimes produce more complete descriptions than supervised ones. Supervised models often learn human annotator biases (e.g., only describing "interesting" parts of a graph), whereas the unsupervised reconstruction objective encourages the inclusion of all provided facts.

While the current approach treats graphs as linear sequences, future improvements could involve Graph Neural Networks (GNNs) to better capture structural information. Nonetheless, this work demonstrates that high-quality graph-text translation is possible without the bottleneck of manual annotation, offering a robust path for cross-domain knowledge extraction and generation.

Summary updated

BibTeX
@inproceedings{schmitt2020unsupervised,
  author = {Martin Schmitt and Sahand Sharifzadeh and Volker Tresp and Hinrich Schütze},
  title = {{An Unsupervised Joint System for Text Generation from Knowledge Graphs\textbackslash\{\}n and Semantic Parsing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.577},
}
Figure