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

面向语言模型生成的轻量级重排序

Lightweight reranking for language model generations

AWS AI Labs(AWS AI 实验室)

Siddhartha Jain, Xiaofei Ma, Anoop Deoras, Bing Xiang

AI总结:

本文提出一种基于生成结果间轻量成对统计量的LLM重排序方法,可视为自洽性的扩展,在代码生成、自动形式化、摘要和翻译等任务中显著提升最佳生成选择质量。

摘要:

大型语言模型(LLMs)在其采样输出质量上可能表现出相当大的差异。从采样集合中重排序并选择最佳生成结果是获得生成质量显著提升的一种流行方法。在本文中,我们提出了一种用于对LLM生成结果进行重排序的新方法。与其他可能涉及额外推理或训练专用重排序器的技术不同,我们的方法依赖于在生成结果之间计算易于获得的成对统计量,其计算开销极小。我们表明,我们的方法可以被形式化为自洽性(self-consistency)的一种扩展,并在该框架下从理论上以及通过模拟分析了其性能。我们展示了在为代码生成任务选择最佳k个生成结果方面的显著改进,以及在自动形式化、摘要和翻译任务中选择最佳生成结果方面的稳健改进。虽然我们的方法仅假设对LLMs具有黑盒访问权限,但我们表明,额外获得token概率的访问权限可以进一步提升性能。

英文摘要:

Large Language Models (LLMs) can exhibit considerable variation in the quality of their sampled outputs. Reranking and selecting the best generation from the sampled set is a popular way of obtaining strong gains in generation quality. In this paper, we present a novel approach for reranking LLM generations. Unlike other techniques that might involve additional inferences or training a specialized reranker, our approach relies on easy to compute pairwise statistics between the generations that have minimal compute overhead. We show that our approach can be formalized as an extension of self-consistency and analyze its performance in that framework, theoretically as well as via simulations. We show strong improvements for selecting the best k generations for code generation tasks as well as robust improvements for the best generation for the tasks of autoformalization, summarization, and translation. While our approach only assumes black-box access to LLMs, we show that additional access to token probabilities can improve performance even further.

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

↑