Few-shot Knowledge Graph-to-Text Generation with Pretrained Language Models

Junyi Li, Tianyi Tang, Wayne Xin Zhao, Zhicheng Wei, Nicholas Jing Yuan +1 more
6/3/2021
cs.CL

Official code: RUCAIBox/Few-Shot-KG2Text (49 stars, Python, last commit 2023-05-04).

Abstract

This paper studies how to automatically generate a natural language text that describes the facts in knowledge graph (KG). Considering the few-shot setting, we leverage the excellent capacities of pretrained language models (PLMs) in language understanding and generation.

Show full abstract

We make three major technical contributions, namely representation alignment for bridging the semantic gap between KG encodings and PLMs, relation-biased KG linearization for deriving better input representations, and multi-task learning for learning the correspondence between KG and text. Extensive experiments on three benchmark datasets have demonstrated the effectiveness of our model on KG-to-text generation task. In particular, our model outperforms all comparison methods on both fully-supervised and few-shot settings. Our code and datasets are available at https://github.com/RUCAIBox/Few-Shot-KG2Text.

View on arXivView PDF

Code Implementations(1)

Source for the ACL 2021 Findings paper "Few-shot Knowledge Graph-to-Text Generation with Pretrained Language Models"

497Python, PerlMay 30, 20213 years ago

Similar Papers

Cite this paper

@article{li2021fewshot,
  title  = {Few-shot Knowledge Graph-to-Text Generation with Pretrained Language Models},
  author = {Junyi Li and Tianyi Tang and Wayne Xin Zhao and Zhicheng Wei and Nicholas Jing Yuan and Ji-Rong Wen},
  year   = {2021},
  eprint = {2106.01623},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01623}
}

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.01623.svg)](https://codeofpaper.com/paper/2106.01623)

Discussion