arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.09726cs.CLcs.LG
收藏

RankGen:使用大型排名模型改进文本生成

RankGen: Improving Text Generation with Large Ranking Models

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Google Research(谷歌研究院)

Kalpesh Krishna, Yapei Chang, John Wieting, Mohit Iyyer

摘要:

给定一个输入序列(或前缀),现代语言模型通常会将高概率分配给重复的、不连贯的或与前缀无关的输出序列;因此,模型生成的文本也包含这样的工件。为了解决这些问题,我们提出了RankGen,一个1.2B参数编码器模型的英语,分数模型代给定的前缀。RankGen可以灵活地作为评分函数并入束搜索中,并用于从任何预训练的语言模型解码。我们使用大规模对比学习来训练RankGen,以将前缀映射为接近跟随它的地面实况序列并且远离两种类型的否定:(1)来自与前缀相同的文档的随机序列,以及(2)从以前缀为条件的大语言模型生成的序列。在四种不同的语言模型(345 M-11 B参数)和两个领域的实验表明,RankGen在自动度量(85.0对77.3 MAUVE超过nucleus)以及英语作者的人类评价(74.5%人类偏好超过nucleus采样)方面都明显优于nucleus,top-k和典型采样等解码算法,以及对比解码和搜索。分析表明,与基线相比,RankGen输出与前缀更相关,并提高了连续性和一致性。我们发布了我们的模型检查点,代码和人类偏好数据,并提供了解释,以促进未来的研究。

英文摘要:

Given an input sequence (or prefix), modern language models often assign high probabilities to output sequences that are repetitive, incoherent, or irrelevant to the prefix; as such, model-generated text also contains such artifacts. To address these issues we present RankGen, a 1.2B parameter encoder model for English that scores model generations given a prefix. RankGen can be flexibly incorporated as a scoring function in beam search and used to decode from any pretrained language model. We train RankGen using large-scale contrastive learning to map a prefix close to the ground-truth sequence that follows it and far away from two types of negatives: (1) random sequences from the same document as the prefix, and (2) sequences generated from a large language model conditioned on the prefix. Experiments across four different language models (345M-11B parameters) and two domains show that RankGen significantly outperforms decoding algorithms like nucleus, top-k, and typical sampling, as well as contrastive decoding and search, on both automatic metrics (85.0 vs 77.3 MAUVE over nucleus) as well as human evaluations with English writers (74.5% human preference over nucleus sampling). Analysis reveals that RankGen outputs are more relevant to the prefix and improve continuity and coherence compared to baselines. We release our model checkpoints, code, and human preference data with explanations to facilitate future research.

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

↑