JointGT: Graph-Text Joint Representation Learning for Text Generation from Knowledge Graphs
Pei Ke, Haozhe Ji, Yu Ran, Xin Cui, LiWei Wang, Linfeng Song, Xiaoyan Zhu, Minlie Huang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/thu-coai/JointGTOfficialIn paperpytorch★ 75
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. 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.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| PathQuestion | JointGT (BART) | BLEU | 65.89 | — | Unverified |
| PathQuestion | T5 | BLEU | 58.95 | — | Unverified |
| PathQuestion | JointGT (T5) | BLEU | 60.45 | — | Unverified |
| PathQuestion | BART | BLEU | 63.74 | — | Unverified |
| WebNLG 2.0 (Constrained) | BART | BLEU | 56.65 | — | Unverified |
| WebNLG 2.0 (Constrained) | JointGT (T5) | BLEU | 61.01 | — | Unverified |
| WebNLG 2.0 (Constrained) | T5 | BLEU | 58.66 | — | Unverified |
| WebNLG 2.0 (Constrained) | JointGT (BART) | BLEU | 58.55 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | JointGT (BART) | BLEU | 65.92 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | JointGT (T5) | BLEU | 66.14 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | T5 | BLEU | 64.42 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | BART | BLEU | 64.55 | — | Unverified |
| WebQuestions | JointGT (BART) | BLEU | 30.02 | — | Unverified |
| WebQuestions | T5 | BLEU | 28.78 | — | Unverified |
| WebQuestions | BART | BLEU | 29.61 | — | Unverified |
| WebQuestions | JointGT (T5) | BLEU | 28.95 | — | Unverified |