arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.14971cs.CL
收藏

Penalty Decoding:有效抑制开放式文本生成中的自我强化效应

Penalty Decoding: Well Suppress the Self-Reinforcement Effect in Open-Ended Text Generation

Shanghai Jiao Tong University(上海交通大学)

Wenhong Zhu, Hongkun Hao, Rui Wang

AI总结:

针对开放式文本生成中的自我强化效应,提出结合遗忘机制、重复惩罚和长度惩罚的Penalty Decoding方法,有效缓解了惩罚参数选择困难及生成偏离事实等问题,显著提升了生成文本质量。

摘要:

解码算法对开放式文本生成至关重要,它将潜在表示转化为连贯且有意义的输出。本文研究了文本生成中的自我强化效应以及重复惩罚在缓解该效应上的有效性。然而,确定最佳的重复惩罚值颇具挑战。为此,我们提出了一种忽略远端token的遗忘机制,以减轻惩罚选择的负担。此外,我们引入了长度惩罚,以解决过度惩罚导致的句子过短问题。结合这三种策略的penalty decoding方法有助于解决采样方法偏离事实信息的问题。实验结果证明了该方法在生成类似人类输出的高质量句子方面的有效性。

英文摘要:

The decoding algorithm is critical for open-ended text generation, transforming latent representations into coherent and meaningful outputs. This paper investigates the self-reinforcement effect in text generation and the effectiveness of a repetition penalty to mitigate it. However, determining the optimal repetition penalty value is challenging. To tackle this, we propose a forgetting mechanism that disregards distant tokens, reducing the burden of penalty selection. In addition, we introduce a length penalty to address overly short sentences caused by excessive penalties. Our penalty decoding approach incorporating three strategies helps resolve issues with sampling methods deviating from factual information. Experimental results demonstrate the efficacy of our approach in generating high-quality sentences resembling human output.

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

↑