ENCONTER: Entity Constrained Progressive Sequence Generation via Insertion-based Transformer

Lee-Hsun Hsieh, Yang-Yin Lee, Ee-Peng Lim
3/17/2021
cs.CLcs.AIcs.LG
transformer-attention

Official code: LARC-CMU-SMU/Enconter (3 stars, Jupyter Notebook, last commit 2021-01-20).

Abstract

Pretrained using large amount of data, autoregressive language models are able to generate high quality sequences. However, these models do not perform well under hard lexical constraints as they lack fine control of content generation process.

Show full abstract

Progressive insertion-based transformers can overcome the above limitation and efficiently generate a sequence in parallel given some input tokens as constraint. These transformers however may fail to support hard lexical constraints as their generation process is more likely to terminate prematurely. The paper analyses such early termination problems and proposes the Entity-constrained insertion transformer (ENCONTER), a new insertion transformer that addresses the above pitfall without compromising much generation efficiency. We introduce a new training strategy that considers predefined hard lexical constraints (e.g., entities to be included in the generated sequence). Our experiments show that ENCONTER outperforms other baseline models in several performance metrics rendering it more suitable in practical applications. Our code is available at https://github.com/LARC-CMU-SMU/Enconter

View on arXivView PDF

Code Implementations(1)

Implementation of 2021 EACL paper Enconter

30Jupyter Notebook, PythonJan 19, 20215 years ago
language-modelnlgnon-autoregressive

Similar Papers

Cite this paper

@article{hsieh2021enconter,
  title  = {ENCONTER: Entity Constrained Progressive Sequence Generation via Insertion-based Transformer},
  author = {Lee-Hsun Hsieh and Yang-Yin Lee and Ee-Peng Lim},
  year   = {2021},
  eprint = {2103.09548},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.09548}
}

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

Discussion