GAP: A Graph-aware Language Model Framework for Knowledge Graph-to-Text Generation
Anthony Colas, Mehrdad Alvandipour, Daisy Zhe Wang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/acolas1/GAP_COLING2022OfficialIn paperpytorch★ 19
Abstract
Recent improvements in KG-to-text generation are due to additional auxiliary pre-training tasks designed to give the fine-tune task a boost in performance. These tasks require extensive computational resources while only suggesting marginal improvements. Here, we demonstrate that by fusing graph-aware elements into existing pre-trained language models, we are able to outperform state-of-the-art models and close the gap imposed by additional pre-training tasks. We do so by proposing a mask structure to capture neighborhood information and a novel type encoder that adds a bias to the graph-attention weights depending on the connection type. Experiments on two KG-to-text benchmark datasets show our models are competitive while involving fewer parameters and no additional pre-training tasks. By formulating the problem as a framework, we can interchange the various proposed components and begin interpreting KG-to-text generative models based on the topological and type information found in a graph.
Tasks
Benchmark Results
| Dataset | Model | Metric | Claimed | Verified | Status |
|---|---|---|---|---|---|
| EventNarrative | JointGT | BLEU | 31.19 | — | Unverified |
| EventNarrative | T5 | BLEU | 12.8 | — | Unverified |
| EventNarrative | GAP - Me,r+γ | BLEU | 35.08 | — | Unverified |
| EventNarrative | GAP - Me,re | BLEU | 34.02 | — | Unverified |
| EventNarrative | BART | BLEU | 31.38 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | GAP - Me,r+γ | BLEU | 66.2 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | GAP - Me,re | ROUGE | 76.22 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | JointGT (BART) - w/ JointGTPretrain | BLEU | 65.92 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | JointGT (BART) - w/ BARTPretrain | BLEU | 64.6 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | KGPT w/o pretrain | BLEU | 62.3 | — | Unverified |
| WebNLG 2.0 (Unconstrained) | GCN | BLEU | 60.8 | — | Unverified |