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

自适应对比搜索:面向开放式文本生成的基于不确定性引导的解码方法

Adaptive Contrastive Search: Uncertainty-Guided Decoding for Open-Ended Text Generation

LMU Munich(慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)

Esteban Garces Arias, Julian Rodemann, Meimingwei Li, Christian Heumann, Matthias Aßenmacher

AI总结:

本文提出自适应对比搜索解码策略,通过模型每一步的估计不确定性引导自适应退化惩罚,在提升文本生成创造性与多样性的同时保持连贯性和高质量。

摘要:

从大型语言模型的输出分布中进行解码以生成高质量文本,是语言建模中的一个复杂挑战。为了应对这一问题,人们已经提出了多种方法,例如束搜索、带温度的采样、k-采样、核p-采样、典型解码、对比解码和对比搜索,旨在提高连贯性、多样性以及与人类生成文本的相似性。在本研究中,我们提出了自适应对比搜索,这是一种新颖的解码策略,通过引入自适应退化惩罚来扩展对比搜索,该惩罚由模型在每个生成步骤的估计不确定性所引导。该策略旨在增强语言建模过程的创造性和多样性,同时生成连贯且高质量的文本输出。我们的研究结果表明,在不同的模型架构和数据集上,该方法在这两个方面均取得了性能提升,凸显了我们的方法在文本生成任务中的有效性。我们的代码库、数据集和模型均已公开提供。

英文摘要:

Decoding from the output distributions of large language models to produce high-quality text is a complex challenge in language modeling. Various approaches, such as beam search, sampling with temperature, $k-$sampling, nucleus $p-$sampling, typical decoding, contrastive decoding, and contrastive search, have been proposed to address this problem, aiming to improve coherence, diversity, as well as resemblance to human-generated text. In this study, we introduce adaptive contrastive search, a novel decoding strategy extending contrastive search by incorporating an adaptive degeneration penalty, guided by the estimated uncertainty of the model at each generation step. This strategy is designed to enhance both the creativity and diversity of the language modeling process while at the same time producing coherent and high-quality generated text output. Our findings indicate performance enhancement in both aspects, across different model architectures and datasets, underscoring the effectiveness of our method in text generation tasks. Our code base, datasets, and models are publicly available.

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

↑