arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.07418cs.CL
收藏

控制输出序列长度的位置编码

Positional Encoding to Control Output Sequence Length

Tokyo Institute of Technology(东京工业大学)

Sho Takase, Naoaki Okazaki

摘要:

神经编码器-解码器模型在自然语言生成任务中已经取得了成功。然而,抽象摘要的实际应用必须考虑生成的摘要不应超过期望长度的附加约束。在本文中,我们提出了正弦位置编码的简单但有效的扩展(Vaswani等人,2017),以使神经编码器-解码器模型能够保留长度约束。与以前的研究不同,在以前的研究中,学习嵌入表示每个长度,所提出的方法可以生成任何长度的文本,即使目标长度不存在于训练数据中。实验结果表明,该方法不仅可以控制生成长度,而且提高了ROUGE分数。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑