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

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

TL;DR

This paper introduces the first truly unsupervised system for generating natural language text from knowledge graphs (KGs) and for performing semantic parsing (converting text to KGs). By leveraging novel noise injection techniques and a multi-task learning approach, their model achieves competitive results without requiring any parallel graph-text data, making it highly adaptable to new domains.

What Problem Does This Paper Address?

Knowledge graphs (KGs) are powerful tools for organizing information, but they come in many shapes and sizes across different domains. This diversity makes it incredibly difficult to train supervised models for tasks like generating text from KGs (graph-to-text) or extracting information from text into KGs (semantic parsing). Supervised methods require large amounts of domain-specific, parallel graph-text data, which is often scarce. Adapting models trained on one domain to another is also challenging due to the lack of overlapping entities and relations. This paper tackles this problem by proposing an unsupervised approach that bypasses the need for parallel data and can adapt to new KG schemas.

Methods

The core of the proposed system is a neural sequence-to-sequence (seq2seq) model with an attention mechanism and a copy mechanism. What makes it novel is its unsupervised training regime, inspired by unsupervised machine translation.

  • Multi-task Learning: The system is trained jointly for both graph-to-text and text-to-graph conversion. This shared encoder-decoder architecture allows the model to learn a common semantic space for both text and graph representations.
  • Noisy Source Samples: To train the model without parallel data, they introduce a denoising auto-encoding objective. This involves creating "noisy" versions of the input data (either graphs or text) and training the model to reconstruct the original, clean data. They propose several noise functions:
  • Graph Noises: Swap, drop, and blank facts (triples) within a KG.
  • Text Noises: Similar swap, drop, and blank operations on words in text.
  • Novel Noises: * rule: A rule-based system generates noisy translations (e.g., converting a KG to text and then back to a noisy KG). This is crucial for distinguishing data format tokens from text tokens and identifying potential fact components.
  • repeat: Mimics models that might repeat important words, forcing the model to learn to de-duplicate information.
  • Back-translation: The model is trained to translate from text to graph and then back to text (and vice-versa). The output of the first translation is used as the noisy input for the second, creating pseudo-parallel training instances.
  • Rule-Based Baselines: For comparison, they also implement simple rule-based systems for both graph-to-text and text-to-graph tasks.

Datasets

The authors evaluate their approach on two datasets:

  • WebNLG v2.1: A well-established dataset for graph-to-text generation.
  • Visual Genome (VG): A new benchmark derived from the Visual Genome dataset. This benchmark consists of scene graphs (representing objects, attributes, and relationships in images) and corresponding human-generated textual descriptions. The key difference from existing scene graph datasets is that the graphs and texts were not automatically generated from each other, making it a more challenging test for conversion tasks. They also created a subset called VGball for faster experimentation.

Key Insights and Ideas

  • Unsupervised Learning is Viable for Graph-Text Tasks: The paper demonstrates that it's possible to achieve strong performance in graph-to-text and text-to-graph tasks without any parallel data, which has significant implications for domains where such data is scarce.
  • The Power of Rule-Based Noise: The introduction of rule-based translations as a noise function is a critical component. It helps the model learn fundamental distinctions between data formats and identify key linguistic elements for fact extraction, proving essential for unsupervised learning in this context.
  • Multi-task Learning Benefits: Sharing an encoder and decoder for both tasks allows the model to learn a more robust and generalizable representation of information, benefiting both conversion directions.
  • Supervision Isn't Always King: Surprisingly, their unsupervised models perform nearly on par with supervised models on some metrics, suggesting that the unsupervised approach can capture essential information effectively, sometimes even outperforming supervised models by avoiding biases present in training data.
  • Domain Adaptation is Implicit: The unsupervised nature of the system means it automatically adapts to new KG schemas without manual intervention, a major advantage over traditional supervised methods.

Key Results

  • Graph-to-Text: The unsupervised models consistently outperform the rule-based baseline on both WebNLG and VG datasets across BLEU, METEOR, and CHRF++ metrics. On VG, their best unsupervised model achieved a BLEU score of 20.0 (sampled noise) and 19.6 (composed noise), compared to the rule-based system's 5.9. On WebNLG, they achieved BLEU scores of 38.5 (sampled noise) and 32.5 (composed noise), significantly outperforming the rule-based system's 14.8.
  • Text-to-Graph: For semantic parsing, their unsupervised models also outperform the rule-based baseline and even a highly domain-specific parser (Stanford Scene Graph Parser) on the VG dataset. On VG, their best unsupervised model achieved an F1 score of 21.7 (sampled noise) and 23.0 (composed noise), compared to the rule-based system's 13.1 and the SSGP's 13.4. On WebNLG, they achieved an F1 score of 39.1 (sampled noise) and 32.5 (composed noise), significantly outperforming the rule-based system's 0.0.
  • Qualitative Analysis: The generated texts from the unsupervised model were found to be more complete than those from the supervised model, suggesting it avoids omitting information that might be considered less salient in image captions.

Limitations and Future Work

  • Rule-Based System Dependency: While the rule-based systems are used to generate noisy data for unsupervised training, their performance is limited. The authors suggest that future work could explore more sophisticated rule-based systems or alternative methods for generating high-quality noisy translations.
  • Adaptation to Graph Neural Networks: The current model uses RNN-based seq2seq architectures. The authors note that adapting their approach to graph neural networks (GNNs) for graph processing is a potential area for future research.
  • Noise Model Optimization: The ablation study shows that there isn't a single "best" noise model for all datasets and tasks. Future work could involve more systematic exploration and optimization of noise functions and injection regimes.
  • Computational Cost: Training on large datasets like VG is computationally intensive, and the authors mention using a subset (VGball) for faster experimentation. Further optimizations for scalability could be beneficial.

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 and Semantic Parsing.}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.577},
}
Figure