JointGT: Graph-Text Joint Representation Learning for Text Generation from Knowledge Graphs

Pei Ke, Haozhe Ji, Yu Ran, Xin Cui, Liwei Wang +3 more
6/19/2021
cs.CLcs.AI

Official code: thu-coai/JointGT (75 stars, Python, PyTorch, last commit 2021-07-27).

Abstract

Existing pre-trained models for knowledge-graph-to-text (KG-to-text) generation simply fine-tune text-to-text pre-trained models such as BART or T5 on KG-to-text datasets, which largely ignore the graph structure during encoding and lack elaborate pre-training tasks to explicitly model graph-text alignments. To tackle these problems, we propose a graph-text joint representation learning model called JointGT.

Show full abstract

During encoding, we devise a structure-aware semantic aggregation module which is plugged into each Transformer layer to preserve the graph structure. Furthermore, we propose three new pre-training tasks to explicitly enhance the graph-text alignment including respective text / graph reconstruction, and graph-text alignment in the embedding space via Optimal Transport. Experiments show that JointGT obtains new state-of-the-art performance on various KG-to-text datasets.

View on arXivView PDF

Code Implementations(1)

thu-coai/JointGTOfficial100%
PyTorch

Codes for our paper "JointGT: Graph-Text Joint Representation Learning for Text Generation from Knowledge Graphs" (ACL 2021 Findings)

758Python, ShellMay 26, 20215 years ago
bartknowledge-graphpretrained-modelspytorcht5+1 more

Similar Papers

Cite this paper

@article{ke2021jointgt,
  title  = {JointGT: Graph-Text Joint Representation Learning for Text Generation from Knowledge Graphs},
  author = {Pei Ke and Haozhe Ji and Yu Ran and Xin Cui and Liwei Wang and Linfeng Song and Xiaoyan Zhu and Minlie Huang},
  year   = {2021},
  eprint = {2106.10502},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10502}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.10502.svg)](https://codeofpaper.com/paper/2106.10502)

Discussion