Uncertainty-Aware Decoding with Minimum Bayes Risk

Nico Daheim, Clara Meister, Thomas Möllenhoff, Iryna Gurevych
3/7/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: UKPLab/iclr2025-mbr-uncertainty (3 stars, Apache-2.0, last commit 2025-02-28).

Abstract

Despite their outstanding performance in the majority of scenarios, contemporary language models still occasionally generate undesirable outputs, for example, hallucinated text. While such behaviors have previously been linked to uncertainty, there is a notable lack of methods that actively consider uncertainty during text generation. In this work, we show how Minimum Bayes Risk (MBR) decoding, which selects model generations according to an expected risk, can be generalized into a principled uncertainty-aware decoding method. In short, we account for model uncertainty during decoding by incorporating a posterior over model parameters into MBR's computation of expected risk. We show that this modified expected risk is useful for both choosing outputs and deciding when to abstain from generation and can provide improvements without incurring overhead. We benchmark different methods for learning posteriors and show that performance improves with prediction diversity. We release our code publicly.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the repository for "Uncertainty-Aware Decoding with Minimum Bayes' Risk", ICLR 2025.

30C++, LuaFeb 6, 20251 years agoApache-2.0

Cite this paper

@article{daheim2025uncertaintyaware,
  title  = {Uncertainty-Aware Decoding with Minimum Bayes Risk},
  author = {Nico Daheim and Clara Meister and Thomas Möllenhoff and Iryna Gurevych},
  year   = {2025},
  eprint = {2503.05318},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.05318v1},
  journal = {ICLR 2025 2025}
}

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/2503.05318.svg)](https://codeofpaper.com/paper/2503.05318)

Discussion