学习打破循环:分析和减轻神经文本生成的重复
Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation
摘要:
虽然大规模神经语言模型,如GPT 2和BART,在各种文本生成任务上取得了令人印象深刻的结果,但它们往往会陷入基于最大化的解码算法(\textit{e.g.},贪婪搜索)的不期望的重复级循环中。这种现象是违反直觉的,因为在人类语料库中几乎没有连续的重复级别(例如,0.02\% in Wikitext-103).为了研究产生连续重复级别重复的根本原因,我们研究了重复令牌的概率与上下文中先前重复的概率之间的关系。通过定量实验,我们发现:1)语言模型具有重复前一句的偏好; 2)重复水平的重复具有\textit{self-reinforcement effect}:一个句子在上下文中重复的次数越多,继续生成该句子的概率越高; 3)初始概率越高的句子通常具有更强的自我强化效应。受我们的研究结果的启发,我们提出了一种简单有效的训练方法\textbf{DITTO}(Pseu \underline{D} o-Repet \underline{IT} ion Penaliza \underline{T} i \underline{O} n),其中模型学习从重复的伪数据中惩罚重复级别重复的概率。虽然我们的方法的动机是减少重复,实验表明,DITTO不仅减轻了重复问题,而不牺牲困惑,但也实现了更好的生成质量。在开放式文本生成(Wikitext-103)和文本摘要(CNN/DailyMail)上的大量实验证明了该方法的通用性和有效性。
英文摘要:
While large-scale neural language models, such as GPT2 and BART, have achieved impressive results on various text generation tasks, they tend to get stuck in undesirable sentence-level loops with maximization-based decoding algorithms (\textit{e.g.}, greedy search). This phenomenon is counter-intuitive since there are few consecutive sentence-level repetitions in human corpora (e.g., 0.02\% in Wikitext-103). To investigate the underlying reasons for generating consecutive sentence-level repetitions, we study the relationship between the probabilities of the repetitive tokens and their previous repetitions in the context. Through our quantitative experiments, we find that 1) Language models have a preference to repeat the previous sentence; 2) The sentence-level repetitions have a \textit{self-reinforcement effect}: the more times a sentence is repeated in the context, the higher the probability of continuing to generate that sentence; 3) The sentences with higher initial probabilities usually have a stronger self-reinforcement effect. Motivated by our findings, we propose a simple and effective training method \textbf{DITTO} (Pseu\underline{D}o-Repet\underline{IT}ion Penaliza\underline{T}i\underline{O}n), where the model learns to penalize probabilities of sentence-level repetitions from pseudo repetitive data. Although our method is motivated by mitigating repetitions, experiments show that DITTO not only mitigates the repetition issue without sacrificing perplexity, but also achieves better generation quality. Extensive experiments on open-ended text generation (Wikitext-103) and text summarization (CNN/DailyMail) demonstrate the generality and effectiveness of our method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。