POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training

Yizhe Zhang, Guoyin Wang, Chunyuan Li, Zhe Gan, Chris Brockett +1 more
5/1/2020
cs.CLcs.AIcs.LG

Official code: dreasysnail/POINTER (113 stars, Python, MIT, last commit 2021-09-26).

Abstract

Large-scale pre-trained language models, such as BERT and GPT-2, have achieved excellent performance in language representation learning and free-form text generation. However, these models cannot be directly employed to generate text under specified lexical constraints.

Show full abstract

To address this challenge, we present POINTER (PrOgressive INsertion-based TransformER), a simple yet novel insertion-based approach for hard-constrained text generation. The proposed method operates by progressively inserting new tokens between existing tokens in a parallel manner. This procedure is recursively applied until a sequence is completed. The resulting coarse-to-fine hierarchy makes the generation process intuitive and interpretable. We pre-train our model with the proposed progressive insertion-based objective on a 12GB Wikipedia dataset, and fine-tune it on downstream hard-constrained generation tasks. Non-autoregressive decoding yields an empirically logarithmic time complexity during inference time. Experimental results on both News and Yelp datasets demonstrate that POINTER achieves state-of-the-art performance on constrained text generation. We released the pre-trained models and the source code to facilitate future research (https://github.com/dreasysnail/POINTER).

View on arXivView PDF

Code Implementations(1)

MIT
11317Python, ShellJul 21, 20205 years agoMIT

Similar Papers

Cite this paper

@article{zhang2020pointer,
  title  = {POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training},
  author = {Yizhe Zhang and Guoyin Wang and Chunyuan Li and Zhe Gan and Chris Brockett and Bill Dolan},
  year   = {2020},
  eprint = {2005.00558},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00558}
}

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

Discussion