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

论采样适配器的有效性

On the Efficacy of Sampling Adapters

ETH Zürich(苏黎世联邦理工学院);University of Cambridge(剑桥大学)

Clara Meister, Tiago Pimentel, Luca Malagutti, Ethan G. Wilcox, Ryan Cotterell

AI总结:

提出统一框架sampling adapters理解top-k等采样技术,论证其通过精确率与召回率权衡提升文本质量,并发现强调精确率的指标与Mauve等序列级质量得分相关。

摘要:

采样是从概率模型生成文本的常见策略,然而标准的祖先采样通常会导致文本不连贯或不符合语法。为了缓解这一问题,人们引入了对模型采样分布的各种修改,如 nucleus 或 top-k 采样,如今它们已在语言生成系统中被广泛使用。我们提出了一个统一框架来理解这些技术,我们将其称为 sampling adapters。Sampling adapters 通常能带来质量更好的文本,这引发了一个问题:从形式上看,它们是如何改变语言生成模型的(子)词级分布的?为什么这些局部变化能带来更高质量的文本?我们认为,它们所强制实施的转变可以被视为精确率与召回率之间的权衡:虽然模型失去了生成某些字符串的能力,但其在理想文本上的精确率却有所提高。虽然这种权衡并未反映在分布质量的标准指标(如困惑度)中,但我们发现,几种强调精确率的指标确实表明,sampling adapters 能够带来与真实分布更对齐的概率分布。此外,这些指标与更高的序列级质量得分(具体为 Mauve)相关。

英文摘要:

Sampling is a common strategy for generating text from probabilistic models, yet standard ancestral sampling often results in text that is incoherent or ungrammatical. To alleviate this issue, various modifications to a model's sampling distribution, such as nucleus or top-k sampling, have been introduced and are now ubiquitously used in language generation systems. We propose a unified framework for understanding these techniques, which we term sampling adapters. Sampling adapters often lead to qualitatively better text, which raises the question: From a formal perspective, how are they changing the (sub)word-level distributions of language generation models? And why do these local changes lead to higher-quality text? We argue that the shift they enforce can be viewed as a trade-off between precision and recall: while the model loses its ability to produce certain strings, its precision rate on desirable text increases. While this trade-off is not reflected in standard metrics of distribution quality (such as perplexity), we find that several precision-emphasizing measures indeed indicate that sampling adapters can lead to probability distributions more aligned with the true distribution. Further, these measures correlate with higher sequence-level quality scores, specifically, Mauve.

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

↑