Document-Level Text Generation with Minimum Bayes Risk Decoding using Optimal Transport
Yuu Jinnai
TL;DR
This work addresses the challenge of document-level text generation by extending Minimum Bayes Risk (MBR) decoding with Optimal Transport (OT). It introduces MBR-OT, which uses a Wasserstein distance-based utility between distributions of document segments, allowing sentence-level utility functions to guide document-level generation despite structural variations like reordering and merging. Across tasks—document-level machine translation, simplification, summarization, and dense image captioning—MBR-OT (particularly WD and its entropic variant) consistently outperforms standard MBR and LA-based baselines, while maintaining robustness to model noise. The approach leverages the strength of sentence-level metrics for document-scale evaluation and offers practical efficiency optimizations, with released code to support reproducibility and further research in document-level generation.
Abstract
Document-level text generation tasks are known to be more difficult than sentence-level text generation tasks as they require the understanding of longer context to generate high-quality texts. In this paper, we investigate the adaption of Minimum Bayes Risk (MBR) decoding for document-level text generation tasks. MBR decoding makes use of a utility function to estimate the output with the highest expected utility from a set of candidate outputs. Although MBR decoding is shown to be effective in a wide range of sentence-level text generation tasks, its performance on document-level text generation tasks is limited as many of the utility functions are designed for evaluating the utility of sentences. To this end, we propose MBR-OT, a variant of MBR decoding using Wasserstein distance to compute the utility of a document using a sentence-level utility function. The experimental result shows that the performance of MBR-OT outperforms that of the standard MBR in document-level machine translation, text simplification, and dense image captioning tasks. Our code is available at https://github.com/jinnaiyuu/mbr-optimal-transport
