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

一种非单调自终止的语言模型

A Non-monotonic Self-terminating Language Model

New York University(纽约大学);Prescient Design, Genentech(基因泰克Prescient Design部门);CIFAR(加拿大高等研究院)

Eugene Choi, Kyunghyun Cho, Cheolhyoung Lee

摘要:

最近的大规模神经自回归序列模型在各种自然语言生成任务上表现出令人印象深刻的性能。然而,当用诸如贪婪搜索、束搜索、顶部- $k$采样和核采样的解码算法生成时,它们生成的序列通常表现出退化性质,诸如非终止、不期望的重复和过早终止。本文重点研究了不完全解码算法导致的非终止序列问题。我们首先定义了一种不完全概率解码算法,该算法包括贪婪搜索、顶部$k$采样和核采样,超越了Welleck等人最初提出的不完全解码算法。(2020)。然后,我们提出了一个非单调自终止语言模型,它大大放松了Welleck等人(2020)最初提出的自终止语言模型中单调增加终止概率的约束,以解决使用不完全概率解码算法时的非终止序列问题。我们证明,我们提出的模型,防止非终止序列时,不仅使用不完整的概率解码算法,但也束搜索。我们经验验证我们的模型序列完成任务与各种架构。

英文摘要:

Recent large-scale neural autoregressive sequence models have shown impressive performances on a variety of natural language generation tasks. However, their generated sequences often exhibit degenerate properties such as non-termination, undesirable repetition, and premature termination, when generated with decoding algorithms such as greedy search, beam search, top-$k$ sampling, and nucleus sampling. In this paper, we focus on the problem of non-terminating sequences resulting from an incomplete decoding algorithm. We first define an incomplete probable decoding algorithm which includes greedy search, top-$k$ sampling, and nucleus sampling, beyond the incomplete decoding algorithm originally put forward by Welleck et al. (2020). We then propose a non-monotonic self-terminating language model, which significantly relaxes the constraint of monotonically increasing termination probability in the originally proposed self-terminating language model by Welleck et al. (2020), to address the issue of non-terminating sequences when using incomplete probable decoding algorithms. We prove that our proposed model prevents non-terminating sequences when using not only incomplete probable decoding algorithms but also beam search. We empirically validate our model on sequence completion tasks with various architectures.

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

↑