English

Positional Encoding to Control Output Sequence Length

Computation and Language 2019-04-17 v1

Abstract

Neural encoder-decoder models have been successful in natural language generation tasks. However, real applications of abstractive summarization must consider additional constraint that a generated summary should not exceed a desired length. In this paper, we propose a simple but effective extension of a sinusoidal positional encoding (Vaswani et al., 2017) to enable neural encoder-decoder model to preserves the length constraint. Unlike in previous studies where that learn embeddings representing each length, the proposed method can generate a text of any length even if the target length is not present in training data. The experimental results show that the proposed method can not only control the generation length but also improve the ROUGE scores.

Keywords

Cite

@article{arxiv.1904.07418,
  title  = {Positional Encoding to Control Output Sequence Length},
  author = {Sho Takase and Naoaki Okazaki},
  journal= {arXiv preprint arXiv:1904.07418},
  year   = {2019}
}

Comments

Accepted by NAACL-HLT 2019

R2 v1 2026-06-23T08:40:44.523Z