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

通过最小贝叶斯风险解码生成多样且高质量的文本

Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decoding

CyberAgent(赛博代理公司)

Yuu Jinnai, Ukyo Honda, Tetsuro Morimura, Peinan Zhang

AI总结:

本文将多样性目标引入 MBR 解码,提出 DMBR 与 KMBR 两种算法,在编码器-解码器模型和大语言模型的多任务实验中取得质量与多样性的更优权衡。

摘要:

文本生成系统最重要的挑战之一,是生成不仅正确而且多样的输出。近年来,最小贝叶斯风险(Minimum Bayes-Risk,MBR)解码因能在各类解码算法中生成最高质量的句子而受到重视。然而,现有为生成多样输出而提出的算法主要基于束搜索或随机采样,因此其输出质量受到这些底层方法的上限限制。本文研究了一种替代路径:我们通过将多样性目标施加于 MBR 解码,开发促进多样性的解码算法。我们提出 MBR 的两个变体——Diverse MBR(DMBR)和 $k$-medoids MBR(KMBR),用于生成兼具高质量与多样性的句子集合。我们使用编码器-解码器模型以及带提示的大语言模型,在多种有向文本生成任务上评估 DMBR 和 KMBR。实验结果表明,所提方法相比 diverse beam search 和采样算法实现了更好的权衡。

英文摘要:

One of the most important challenges in text generation systems is to produce outputs that are not only correct but also diverse. Recently, Minimum Bayes-Risk (MBR) decoding has gained prominence for generating sentences of the highest quality among the decoding algorithms. However, existing algorithms proposed for generating diverse outputs are predominantly based on beam search or random sampling, thus their output quality is capped by these underlying methods. In this paper, we investigate an alternative approach -- we develop diversity-promoting decoding algorithms by enforcing diversity objectives to MBR decoding. We propose two variants of MBR, Diverse MBR (DMBR) and $k$-medoids MBR (KMBR), methods to generate a set of sentences with high quality and diversity. We evaluate DMBR and KMBR on a variety of directed text generation tasks using encoder-decoder models and a large language model with prompting. The experimental results show that the proposed method achieves a better trade-off than the diverse beam search and sampling algorithms.

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

↑