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

Yuu Jinnai, Ukyo Honda, Tetsuro Morimura, Peinan Zhang
1/10/2024
cs.CLcs.AI

No official code found. Best implementation: CyberAgentAILab/diverse-mbr (4 stars, MIT, last commit 2024-08-15).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Code of "Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decoding" 2024

40Shell, PythonFeb 24, 20242 years agoMIT

Similar Papers

Cite this paper

@article{jinnai2024generating,
  title  = {Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decoding},
  author = {Yuu Jinnai and Ukyo Honda and Tetsuro Morimura and Peinan Zhang},
  year   = {2024},
  eprint = {2401.05054},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.05054v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.05054.svg)](https://codeofpaper.com/paper/2401.05054)

Discussion