It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Risk
Paper · 2023 · Amanda Bertsch, Alex Xie, Graham Neubig et al.
Summary
A system that can write several plausible summaries still has to decide which one to show. The most probable wording may leave out something that appears in many other summaries, each of which phrases it differently. Minimum Bayes Risk decoding, or MBR, offers a way to use that information. It compares each eligible output with a collection of generated examples and selects the output with the best average score. The score can reward exact agreement, shared wording, or another kind of similarity suited to the task. The paper explains this decision rule for text generation and traces its use back to minimum Bayes risk decoding for statistical machine translation.
The authors use MBR to explain why several generation techniques can work in similar ways. In self-consistency, a system generates several explanations and answers, then returns the most common final answer. This is MBR with a score that gives credit for an exact answer match. Range voting gives each generated example a vote that can express degrees of similarity. An output ensemble can compare finished texts generated by different systems and return the one with the strongest average support. The same averaging operation also resembles a way to estimate where samples cluster in a space of output features.
The experiments show how much depends on what the decoder compares and how it scores the comparisons. On CNN/DM, every tested MBR scoring rule beats every tested greedy or beam-search baseline on the reported summary metrics. With ROUGE-1 as its scoring rule, MBR reaches 46.89 on CNN/DM ROUGE-1, compared with 43.98 for greedy decoding in that experiment. Using BERTScore as the rule instead yields the highest CNN/DM BERTScore, 88.68. The authors also try to improve the evidence distribution by adjusting the weight of each sampled output for its length. In both CNN/DM and WMT’16 Romanian-English, every tested adjustment lowers scores relative to MBR using the original evidence distribution. In the translation experiment, the unadjusted decoder scores 33.56 on BLEU, while the beam-search baselines score 33.21 without length correction and 33.06 with it. The two tasks are summarization and machine translation, and the translation comparison uses BLEU score.
MBR changes what happens after a generator is trained. It needs extra generation and scoring at inference time, and it can use the same generator and data as a simpler decoder. Its decisions depend on which outputs are eligible, how the evidence is collected, and what the score rewards. The experiments establish gains for specific combinations of those choices. The paper also explains why a higher score on the metric used to pick an output can reflect that metric’s preferences, leaving human judgments and other measures important for interpreting the gain.
Deep dive: It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Risk
Minimum Bayes Risk decoding chooses text by agreement across possible outputs, connecting self-consistency, voting and output ensembles. · about 38 minutes to read
The problem and its context
Choosing a text under uncertainty
A translation system assigns probabilities to possible continuations of a source sentence. Those probabilities define a distribution over complete translations, including sequences that differ in wording, completeness, or both. A decoder is the procedure that turns this distribution into the text a reader actually receives. One common objective is to return the sequence with the highest probability. That objective treats each complete sequence as its own outcome. If several plausible phrasings convey the same point, their probability is spread across separate outcomes.
The paper’s starting question is which output makes the best decision when the system can express uncertainty but must deliver a single result. Imagine that the candidate with the largest individual probability uses an unusual rendering of a phrase. Other candidates may use several versions of a more common rendering. A decoder that searches for the most probable complete sequence follows the first ranking. A decoder that gives partial credit for agreement can use support spread across the other versions. The importance of that support depends on whether the selected comparison score recognizes the relationship between them. Overlap in wording and semantic similarity can lead to different assessments of the same pair.
Standard decoding offers several ways to obtain a sequence. Greedy decoding commits to the most probable next token at every step. Beam search keeps several unfinished sequences in play and extends them before deciding which paths to retain. Both rely on scores derived from the generator. Sampling instead makes random draws from the next-token probabilities, possibly after transforming those probabilities. A single draw produces an output, but a collection of draws makes it possible to study recurring features and compare complete alternatives. The paper situates sampling modifications such as nucleus sampling in earlier work on neural text degeneration.
A search algorithm and a decision objective solve different problems. Increasing the effort spent on search can uncover a sequence with greater probability. The resulting sequence may still fare poorly under an evaluation that gives credit for partial agreement with a reference. MBR makes that form of agreement part of the selection objective. The generator supplies the probability distribution, and a separate loss specifies the consequence of choosing one output when another output is treated as a possible reference. Better search under one objective and a better choice under the other are distinct claims.
The relation between these objectives becomes clear if every departure from the reference incurs the same loss. A translation with a harmless change in wording then receives the same penalty as a translation that misses the point entirely. The probability of an exact match determines which output is safest under that particular rule. When the loss distinguishes a close paraphrase from a substantial error, the risks change. The decoder can favor a sequence that agrees moderately well with a broad range of plausible references, even if another string has a higher individual probability.
From structured spaces to sampled texts
The authors locate MBR in Bayesian decision theory. In that setting a decision comes with consequences that depend on an uncertain outcome, and the decision rule averages those consequences under a distribution over outcomes. Speech and language researchers had adopted this idea by the 1990s and early 2000s. The paper describes applications to syntactic disambiguation, speech recognition, and statistical translation. In each setting, the system could express uncertainty over outputs while the user needed a particular result. Work discussed by the authors also took the approach into question answering.
Many early systems represented alternatives in compact structures. A word lattice, for example, can encode many complete sequences as paths that share parts of a graph. The paper describes lattice MBR in which the paths provided both the evidence about plausible translations and the options the decoder could return. Exact calculation in such a space depended on dynamic programming and on the ability to break the scoring rule into contributions that could be computed over the structure. This made measures such as edit distance and variants of BLEU tractable in settings where enumerating every path would be prohibitively costly.
Modern autoregressive generators organize the calculation differently. A next-token probability depends on the prefix that has already been produced. For the systems discussed in the paper, the complete distribution is generally too large to sum over directly. Researchers increasingly used collections of finished outputs as a manageable approximation. This changed where the expense lay. The decoder could score arbitrary pairs of texts once they had been generated, and the quality of the approximation now depended on which outputs made it into the collection. Some comparisons could use learned metrics or, in the examples from code generation, check whether programs agree when executed.
Earlier sampling-based translation work gave the authors a reason to distinguish a list of leading search results from a sample of plausible outputs. Beam search is designed to retain promising paths. Its completed outputs may be useful candidates, but their frequencies do not estimate how often the generator would produce each alternative under random sampling. A sample designed to represent the generator’s distribution can provide a different view of uncertainty. Later work before this paper used separate collections for the two jobs or narrowed a large pool with a cheap scoring rule before applying a more expensive one.
The authors describe most recent work explicitly using MBR as concentrated in neural translation, with newer applications outside that area and some use in shared tasks. They also follow mentions of MBR-related terms in the ACL Anthology from 2000 to 2022. The figure tracks appearances of the terminology. The paper’s discussion of newer names explains why that count can miss work with a similar decision rule. Self-consistency, range voting, and output ensembling each start from their own account of why agreement matters. Relating them to MBR gives a common way to ask which outputs count as evidence, how they receive weight, and what agreement means.
The method, step by step
From an input to a collection of possible outputs
Consider a document to summarize. The generator can start several summaries from that document and complete each one. Some summaries will share information in spite of using different words. Others may repeat a particular phrase or concentrate on a different part of the document. MBR uses generated summaries as provisional references. Each eligible summary receives a score against each provisional reference, and the decoder aggregates those scores to choose a finished output.
The provisional references are called evidence. The eligible outputs are called hypotheses. The same collection can play both roles, which saves work and ensures every collected output can be returned. Separate collections give the decoder more control. The evidence can include a broad range of plausible summaries, including ones the system would hesitate to show a reader. The hypotheses can come from a procedure designed to produce stronger individual outputs. A text can therefore help determine what is typical without being eligible to win.
For a document or sentence in the reported experiments, the authors start from an existing trained generator. They draw evidence and hypotheses from it, apply a task-specific score to their pairs, and change the scoring or weighting rule in controlled comparisons. The released implementation is named minimum-bayes-risk. The experiments change the inference procedure, so the published checkpoints supply the underlying probabilities throughout.
How minimum Bayes risk decoding selects an output
The steps in order.
How the generator assigns probabilities
An autoregressive generator assigns a probability to the next token given the input and the tokens already written. A token is a unit of text used in the generation process. The probability at a particular step has the following form.
p(yᵢ | y₍<ᵢ₎, x)
Here x is the input, i is a position in the output, and yᵢ is the token at that position. The notation y₍<ᵢ₎ denotes the prefix before position i. The vertical bar means that the probability p is conditional on that prefix and the input. For a fixed prefix and input, the probabilities across possible next tokens sum to one. This is the local normalization used for tokenization and generation here.
p(y | x) = ∏ᵢ₌₁ᵀ p(yᵢ | y₍<ᵢ₎, x)
Here y is the complete output and T is its length in tokens. The product ∏ multiplies the conditional probability at each position i from the first token through position T. Each factor uses the appropriate prefix. The quantity on the left is the probability of the entire sequence given x. Ancestral sampling follows those conditionals in order, drawing a token according to the current probabilities and using it as part of the prefix for the next draw. Completing this process repeatedly provides independent examples from the sequence distribution when each draw uses fresh randomness and the conditionals are left unchanged.
Temperature sampling changes the probabilities used for those draws. A temperature below one sharpens the next-token distribution, putting more mass on the tokens that already received relatively high scores. The experiments use this procedure to produce hypotheses. A sampled hypothesis can differ from the sequence greedy decoding would produce, while still being drawn from a distribution that emphasizes high-scoring continuations. Ancestral draws for the evidence preserve the original probabilities. Using these procedures together is an instance of giving the evidence and hypotheses different jobs.
What the decoder minimizes
The uncertainty in the decision rule is over a possible reference y for the input. A proposed answer y′ has a loss against each such reference. The loss can assign different penalties to departures of different kinds. Risk is the probability-weighted average of the losses. The paper presents the rule as a minimization and expands it into an expectation and then a sum.
ŷ = argmin[y′ ∈ Y] R(y′)
The symbol Y denotes the space of possible outputs. The expression y′ ∈ Y says that the choice ranges over candidates y′ belonging to that space. The risk R(y′) is the expected loss of choosing that candidate. The operator argmin selects a candidate attaining the lowest risk, and ŷ denotes the selected output. It is a text rather than a risk value.
ŷ = argmin[y′ ∈ Y] Eᵧ|ₓ[L(y, y′)]
Here Eᵧ|ₓ is an expectation over possible reference outputs y conditional on x. The function L(y, y′) measures the loss for returning candidate y′ when compared with reference y. The candidates still range over Y, and ŷ is the candidate that minimizes this average. The role of a reference in the calculation is to express an uncertain outcome, so a generated reference can take the place of a human reference during decoding.
ŷ = argmin[y′ ∈ Y] ∑ᵧ∈ᵞ L(y, y′) p(y | x)
The sum ∑ runs over y in Y, the same output space indicated by the upper label on the sum. The product inside it gives each loss the weight p(y | x), the probability of its reference sequence. x remains fixed throughout the decision. The same candidate y′ is compared against every reference in its sum before the candidates are ranked.
An equivalent form rewards utility or gain. This is convenient when the natural score rises as a candidate gets better. Many automatic metrics already have that convention.
G(y, y′) = −L(y, y′)
G is the gain assigned to a candidate y′ against a reference y, and L is the corresponding loss. The minus sign converts minimization of loss into maximization of gain. The paper allows any real-valued comparison function of a reference and a candidate. That freedom permits fairly different definitions of consensus and makes the gain function one of the decoder’s design choices.
Estimating risk with a sample
The exact rule requires both a search through all candidate outputs and a sum over all reference outputs. For the generators in the paper, practical MBR replaces these operations with a finite candidate pool and a sampled reference collection. This is a Monte Carlo estimate. Draw references independently from the distribution of interest, evaluate the loss against them, and use the average as an estimate of the expected loss.
R(y′) ≈ (1 / |Yₑ|) ∑[y ∈ Yₑ] L(y, y′)
Yₑ is the evidence collection and |Yₑ| is its number of sampled entries. The sum iterates over those entries, so repeated draws of the same string contribute repeatedly. L(y, y′) is the loss for one comparison, R(y′) is the full risk, and ≈ marks the sample approximation. The formula uses ancestral evidence to estimate risk under the original generator distribution. If the evidence is drawn from a modified distribution, its unweighted average estimates risk under that modified distribution.
R(y′) ≈ −(1 / |Yₑ|) ∑[y ∈ Yₑ] G(y, y′)
The same estimated risk appears as the negative average gain. G is the gain function, y is an evidence output, and y′ is the candidate being assessed. With independent ancestral draws, the relative frequency of an output estimates its probability under the generator. This explains why an unweighted sum over occurrences already carries probability information. Each occurrence contributes equally to the average, while strings that occur often carry greater total influence.
With a shared pool, each sampled reference is also a candidate. The same average serves as its selection score.
ŷ = argmax[y′ ∈ Yₑ] (1 / |Yₑ|) ∑[y ∈ Yₑ] G(y, y′)
argmax selects a candidate with the highest value. The left side ŷ is the returned output, and Yₑ identifies both the choices and the evidence in this version of the rule. G(y, y′) gives the gain for one comparison. All candidates have the same denominator, so the mean and the total order them in the same way. If a string appears more than once as a candidate, the copies obtain the same score. If it appears more than once as evidence, the repeated comparison contributes more than once.
ŷ = argmax[y′ ∈ Yₕ] ∑[y ∈ Yₑ] G(y, y′)
Yₕ is the hypothesis collection. The sum continues to use Yₑ, and ŷ is chosen only from Yₕ. The factor for the size of the evidence is omitted because it is constant across hypotheses. Separating the collections can improve the quality of the options available to the decoder while allowing a broad or differently sampled view of plausible references. It also makes a failure easier to diagnose conceptually. A good output may be missing from Yₕ, or it may be present and lose under the estimate built from Yₑ.
Where the decoder’s choices enter
The first design decision is how to obtain the hypotheses. The paper reviews systems that filter preliminary outputs with a reranker, systems that apply cheap MBR before rescoring with a more expensive metric, and work that makes new hypotheses after a preliminary output pool has been assembled. These approaches change the material the decoder can return. Temperature sampling in the authors’ experiments is another way to try to improve that pool. Constraints introduced at this stage remain in force even if a later scoring rule would favor an output excluded by the filter.
The evidence is a second decision. An ancestral sample estimates the original sequence distribution. Earlier work discussed in the paper also sharpens the evidence distribution with a temperature below one to address problems encountered with label smoothing. Label smoothing affects training and can change the probabilities from which an ancestral decoder draws. Limits on the evidence draw can therefore be useful when the probabilities of the original generator are themselves a poor proxy for the outputs a reader would consider appropriate.
The third decision is what the metric rewards. Word or character overlap, a learned similarity score, and agreement in what an executable output does all define different gains. A reference-based metric can be used at inference time because the generated evidence supplies the references. The gain is then measured against generated texts. Evaluation with the same metric can use the benchmark references instead. Keeping those roles straight is essential for reading the results. A gain function that values overlapping wording can do well at both roles, but its success still depends on what wording overlap captures about the task.
The distribution over evidence is the fourth decision. A collection drawn under one distribution may be used to estimate an expectation under another by reweighting its entries. The authors discuss distributions derived from the generator, distributions combining several generators, and distributions that alter the influence of sequence length. They also discuss a distribution over texts humans would produce as a possible target.
ŷ = argmin[y′ ∈ Yₕ] E[y ∼ pₕᵤₘₐₙ][L(y, y′)]
pₕᵤₘₐₙ denotes a hypothetical distribution over human outputs for the input under consideration. The notation y ∼ pₕᵤₘₐₙ says that the expectation E takes its reference y from that distribution. The choice ŷ minimizes the expected loss L(y, y′) over the eligible hypotheses Yₕ. This formulation expresses an objective one might care about. The paper’s experiments use generated evidence and do not estimate the human distribution directly.
How exact agreement gives self-consistency
An exact-match gain offers a useful special case. Its average is the proportion of evidence entries identical to the candidate. Under a sufficiently large ancestral sample, those proportions approach the corresponding probabilities. With the mode available as a hypothesis, the decision approaches selection of the most probable sequence under the sampling distribution. This connection explains where probability maximization sits within MBR. A more tolerant gain changes what counts as support.
G(y, y′) = 𝟙[y = y′]
G is the gain for candidate y′ and evidence output y. The indicator 𝟙 returns one if its condition holds and zero otherwise. Here the condition is equality of complete outputs. With a finite evidence collection, the winning string has the greatest observed support among eligible candidates. Its position depends on the realized sample, and a modified sampling distribution changes what its frequency estimates.
Self-consistency applies exact match after extracting the answer. The generator produces separate responses to the same prompt, each containing an explanation and a final answer. The explanations can differ and still contribute to the same answer’s count. The paper treats answer extraction as the operation that defines which differences the vote ignores. This is the connection it draws to the earlier self-consistency work on reasoning.
aᵢ = ans(yᵢ)
Here yᵢ is the full response from draw i, and ans is the operation that extracts its final answer. aᵢ denotes that answer. In this formula i indexes whole responses, whereas it indexed token positions in the sequence-probability formula. The paper denotes the collection of full responses by O and the extracted answers by A. The multiplicity of an answer in A is retained for the vote.
â = argmax[a] ∑ᵢ₌₁ᵐ 𝟙[aᵢ = a]
m is the number of responses and i indexes them. An eligible answer is denoted by a, and aᵢ is the answer from the ith response. The indicator gives the candidate a vote when the extracted answer matches it. The winning answer â, written explicitly here, is the maximizer of the vote total. The normalization by the number of draws would leave the choice unchanged.
G(y, y′) = 𝟙[ans(y) = ans(y′)]
In this equivalent view, y and y′ are entire responses. ans extracts their final answers and 𝟙 gives the gain G when those answers agree. Either implementation gathers together the support of different explanations for the same answer. The paper also discusses extensions that filter the responses or replace exact match with another comparison rule. The latter matters for open-ended responses, where suitable answers can share content without having identical extracted strings.
How averaging gives ensembles and range voting
Completed outputs from several generators can contribute to the same decision. In the paper’s account of Post-Ensemble, each generator produces text separately, and a comparison based on sentence embeddings scores pairs of completed texts. A sentence embedding represents a sentence by a vector so that the system can compare vectors. The result with the highest average similarity is returned. In MBR terms, the evidence can be interpreted as coming from a mixture of generators.
pₑₙₛₑₘᵦₗₑ(y | x) = ∑ᵢ₌₁ⁿ πᵢ pθᵢ(y | x)
pₑₙₛₑₘᵦₗₑ is the conditional distribution of the mixture, x is the input, and y is an output. The index i ranges over the n generators. θᵢ denotes generator i, pθᵢ is its conditional sequence distribution, and πᵢ is its probability of supplying a draw. The πᵢ values sum to one. Equal weights give each generator the same prior influence. Other weights express a different judgment about how much each contributes to the evidence. A particular decoding procedure supplies a finite collection that stands in for this distribution.
The paper also discusses an ensemble of parsers that produce Abstract Meaning Representation graphs. Each parser scores completed outputs under its own probabilities. This is a relaxation of the usual comparison between texts, since the quantities being averaged are losses assigned by parsers. The choice can still be described as minimizing an expectation.
ŷ = argmin[y′ ∈ Yₕ] E[θ ∼ π][L(θ, y′)]
Yₕ is the eligible collection of parser outputs. The expectation E averages over parsers θ drawn according to π, the distribution assigning their weights. The loss L(θ, y′) is the perplexity score the paper assigns to the candidate y′ under parser θ. The minimizer ŷ is the output with the lowest average loss under that weighting.
L(θ, y′) = exp(−log pθ(y′)) = 1 / pθ(y′)
pθ(y′) is the probability assigned by parser θ to output y′ in the paper’s expression for this example. The input is implicit. log takes the logarithm and exp reverses it after the sign has been changed, giving the reciprocal shown. Lower probability then produces higher loss. The example concerns decisions over already completed outputs. Earlier approaches that combine weights or share token probabilities operate at other stages of generation.
Range voting supplies another reading of the ordinary evidence average. The pool of hypotheses is the ballot’s candidate list, and each sampled reference is a voter. A voter assigns a real-valued gain to each candidate. The scores can reflect partial support, so several distinct evidence outputs can jointly favor the same hypothesis even in the absence of an exact match.
cₑₗₑ꜀ₜₑ𝒹 = argmax[c ∈ C] (1 / |V|) ∑[v ∈ V] G(v, c)
C is the candidate collection and c is one candidate. V is the collection of voters, v is a voter, and |V| is the number of voters. G(v, c) is the score assigned by v to c. The selected candidate appears on the left. With uniform voter weights, this is the MBR average with candidates standing for hypotheses and voters standing for evidence. An exact-match rule is a particularly restrictive ballot because it gives credit only when the relevant outputs agree exactly.
What the evidence says about clusters of outputs
The connection to density estimation starts from the idea that samples reveal where a distribution places its mass. Kernel density estimation compares a point of interest with the observed samples using a kernel, a function that gives greater weight to some relationships than others. Averaging the kernel comparisons yields a density estimate at the point. MBR performs an analogous calculation when its gain compares a candidate with each evidence draw.
p̂(x) = (1 / n) ∑ᵢ₌₁ⁿ K(x, xᵢ)
In this density-estimation formula x is the point being scored, and xᵢ is the sample at index i. It is a local use of x, separate from the source text in the decoding formulas. n is the number of samples. The kernel K assigns the contribution from a sample to the estimate at x, and p̂(x) is that estimate. The authors draw on Post-Ensemble for this connection and refer to its approximation bounds. Their own formulation explores the relationship through a familiar overlap score.
For ROUGE-n, a sequence can be represented by a vector of counts for all possible contiguous token groups of length n. Called n-grams, these groups include single tokens when n is one. The gain then depends on how similar the two count vectors are. This gives a way to understand the score as proximity in a feature space, with the features defined by n-grams and the comparison drawn from ROUGE.
Kᵣ(Tₙ(y) − Tₙ(y′)) = 1 − ‖Tₙ(y) − Tₙ(y′)‖₁ / (‖Tₙ(y)‖₁ + ‖Tₙ(y′)‖₁)
Tₙ(y) is the count vector for sequence y, and Tₙ(y′) is the vector for candidate y′. The vector has a coordinate for each possible n-gram from the vocabulary. Its size is the vocabulary size raised to n. The notation ‖·‖₁ means the sum of absolute coordinate values. The numerator counts the total mismatch in the vectors, and the denominator is their combined count. Kᵣ denotes the ROUGE-based comparison. In the paper’s notation it is written against the difference of the vectors, while the normalization on the right also uses their individual totals.
ŷ = argmax[y′ ∈ Yₕ] ∑[y ∈ Yₑ] Kᵣ(Tₙ(y′) − Tₙ(y))
In this application Yₕ supplies candidates y′ and Yₑ supplies references y. The kernel Kᵣ compares the count vectors Tₙ(y′) and Tₙ(y). The maximizing candidate is ŷ. Reversing the order of the vectors in the difference leaves the absolute mismatch unchanged. The resulting score is high when a candidate’s counts are close to those of many evidence outputs under this comparison.
ŷ ≈ argmax[y′ ∈ Yₕ] p′(Tₙ(y′) | x)
Here p′ denotes a distribution over output features given source input x, and Tₙ(y′) gives the features for the candidate. Yₕ remains the search space for eligible outputs, and ≈ expresses the paper’s density-estimation interpretation of the preceding selection rule. A candidate can lie near a concentration of these features even if its exact wording is individually uncommon. The authors propose that concentration in a suitable feature space may track downstream scores more closely than the original probabilities over strings. That proposal is an explanation to investigate.
Reweighting evidence to test length correction
The probability of a prefix decreases or stays the same as it is extended, since each new conditional probability is at most one. This can favor short outputs when a decoder compares products of token probabilities. Beam search often applies a length correction to the sequence score used to compare alternatives. The authors test whether a similar correction helps when applied to the distribution that supplies MBR’s evidence. The concern about length is part of the earlier work on challenges in neural machine translation.
s(y | x) = log p(y | x)
Here s is the original sequence score for output y given input x. It is the logarithm of p(y | x), the probability given by the product of the token conditionals. The length corrections act on this score. Because the probability and its logarithm rank sequences in the same order, changing from the probability to the log score alone would preserve their ranking.
sₗ(y | x) = s(y | x) / Tᵝ
sₗ is the length-corrected score, s is the original score, and T is the length of y in tokens. β is the exponent controlling the strength of length normalization. For negative log probability scores written as log p(y | x), dividing by a larger positive denominator moves a score closer to zero. A larger β gives a stronger relative preference to longer sequences through this correction.
sₗ(y | x) = s(y | x) + γT
In the alternative correction, γ is the reward added per token and T is the number of tokens. The corrected score sₗ adds this total reward to the original s for y given x. Both corrections favor length through the sequence score, but the first rescales the log probability and the second adds a term determined by length.
pₗ(y | x) ∝ exp(sₗ(y | x))
pₗ is the target evidence distribution after length correction, and exp(sₗ(y | x)) is the unnormalized weight for y given x. The proportionality sign ∝ means that a common normalizing constant is needed to turn those weights into probabilities. Computing it would require summing across the output space. The authors instead draw evidence from the original distribution and estimate what the average loss would be if those outputs had been distributed according to the corrected probabilities.
How importance sampling changes the average
Importance sampling starts with an identity for expectations. If one can sample easily from a proposal distribution but wants an average under a target distribution, the density ratio compensates for the discrepancy. The proposal needs to cover the outcomes that contribute to the target expectation.
Eₚ[f(z)] = Eᵩ[f(z) p(z) / q(z)]
z denotes a possible outcome and f(z) the quantity being averaged. p is the target distribution and q the proposal. Eₚ averages under p, and Eᵩ averages under q. Multiplying by the ratio p(z) / q(z) changes the contribution of each outcome. In the full sum under q, the probability q(z) cancels the denominator, leaving the sum weighted by p(z).
R(y′) = E[y ∼ pₗ][L(y, y′)]
R(y′) here is the risk under length correction. pₗ is the target distribution conditional on the fixed input, and E[y ∼ pₗ] averages over y from that distribution. L(y, y′) is the loss against the proposed output y′. The actual evidence is generated ancestrally under the uncorrected distribution.
w(y) = pₗ(y | x) / p(y | x)
w(y) is the ideal importance weight for an evidence output y. Its numerator is the corrected probability given x, and its denominator is the original probability. The corrected probability cannot be evaluated directly at practical cost because the normalizing constant is unavailable. The exponentiated corrected score still gives the weight up to that constant.
p̃ₗ(y | x) = exp(sₗ(y | x))
p̃ₗ denotes the unnormalized target weight. It is computed by exponentiating sₗ, the length-corrected score for y given x. The tilde distinguishes this weight from the normalized probability pₗ.
w̃(y) = p̃ₗ(y | x) / p(y | x)
w̃(y) is the corresponding unnormalized importance weight. The numerator is the computable target weight and the denominator is the probability of the observed evidence sequence under the original generator. The missing constant is common to the weights and can be canceled through normalization.
R(y′) = E[y ∼ p][L(y, y′) w̃(y)] / E[y ∼ p][w̃(y)]
Both expectations average over evidence y from the proposal p for the fixed input x. The numerator averages the loss multiplied by its unnormalized importance weight. The denominator averages the weights. The ratio gives the target risk because the common scale in w̃ cancels. In practice each expectation is estimated using the same finite collection.
R̂(y′) = ∑[y ∈ Yₑ] L(y, y′) w̃(y) / (∑[z ∈ Yₑ] w̃(z))
R̂ is the finite-sample estimator. Yₑ is the ancestral evidence collection, y indexes its entries in the numerator, and z indexes those same entries in the denominator. L and w̃ are the loss and unnormalized weight. The estimator normalizes the total weight across the observed draws and uses the resulting weights to average their losses. The authors note that this ratio is biased at finite sample sizes, though it is consistent as the number of draws grows under the conditions of the estimator. A large mismatch between proposal and target can also give a small part of the sample outsized influence.
Experiments and results
What the experiments compare
The first experiment asks how the rule for comparing outputs affects abstractive summarization. The authors use CNN/DM and the released facebook/bart-large-cnn checkpoint, a BART-Large system already adapted to the task. They draw 30 ancestral evidence outputs and 30 temperature-sampled hypotheses per input. The hypothesis temperature is 0.5. This creates the two pools needed for the MBR decision, with the comparison rule varied across runs. The dataset and checkpoint come from earlier work on abstractive summarization and BART.
The second experiment changes the evidence weighting on CNN/DM and adds WMT’16 Romanian-English translation. For translation, the checkpoint is facebook/mbart-large-50-many-to-many-mmt, identified as mBART-50. In the length experiments the authors use 50 ancestral evidence draws and 50 temperature-sampled hypotheses per input. The hypothesis temperature is 0.5 on CNN/DM and 0.3 on WMT’16 Romanian-English. The gains are ROUGE-1 and BLEU-4, respectively. The article’s dataset identification follows the WMT’16 translation findings, and the translation system draws on multilingual denoising pretraining.
The score tables report benchmark results for the named datasets without separately identifying the evaluation splits. The two CNN/DM experiments use different sample counts, so their score tables answer different questions. Within the gain comparison, the alternatives are different ways to score a candidate against the evidence. Within the length comparison, the alternatives change how much that evidence contributes to the estimate. Reading the variants against their own baselines keeps the sample regime and objective clear.
Changing the gain on CNN/DM
The gain comparison uses ROUGE-1, BEER, and BERTScore. ROUGE-1 rewards single-token overlap. BEER is a metric developed for translation and serves here as a gain for summaries. BERTScore is a learned metric. The authors evaluate all variants with ROUGE-1, ROUGE-2, ROUGE-L, and BERTScore. ROUGE-2 reflects overlap of token pairs. ROUGE-L uses a longest common subsequence, so shared tokens can contribute in their original order even with gaps. The evaluation checks whether changing the gain moves scores across several definitions of similarity.
For comparison, the paper uses greedy decoding, beam search with width 5, beam search with width 10, and diverse beam search with width and group setting 5. The width controls how many partial paths can be kept during search. Diverse beam search is included as an alternative search baseline that seeks variation among paths. Greedy decoding is the strongest of these tested baselines on all the reported CNN/DM metrics in this experiment.
Gain functions and search baselines on CNN/DM ROUGE-1
Every tested MBR gain exceeds the search baselines, and the matching gain gives the highest score.
The numbers
| System or setting | ROUGE-1 |
|---|---|
| Greedy | 43.98 |
| Beam search, width 5 | 43.16 |
| Beam search, width 10 | 42.62 |
| Diverse beam search | 43.77 |
| MBR with ROUGE-1 gain (this paper) | 46.89 |
| MBR with BEER gain | 46.31 |
| MBR with BERTScore gain | 46.04 |
The ordering inside the MBR family depends on the evaluation objective. ROUGE-1 gain gives CNN/DM ROUGE-2 of 22.29. BEER gives 22.36, the highest ROUGE-2 in this comparison, and BERTScore gain gives 22.09. On CNN/DM ROUGE-L, those gains give 32.01, 32.02, and 32.09, respectively. Greedy decoding gives 20.88 on ROUGE-2 and 30.88 on ROUGE-L. The three gains therefore improve the reported overlap scores relative to the strongest baseline even though each emphasizes a different comparison.
On CNN/DM BERTScore, MBR with BERTScore gain gives 88.68. MBR with ROUGE-1 gives 88.41 and MBR with BEER gives 88.38. Greedy decoding gives 88.04. The benefit with ROUGE-1 gain extends to the learned evaluation score, while the highest learned score comes from using the same metric for selection. This result gives two distinct kinds of evidence. The cross-metric improvement indicates that a gain based on token overlap can choose outputs that do better under another automatic criterion. The matching gain and evaluation metric also make it possible to exploit properties specific to that metric.
Length correction on CNN/DM
The authors compare ordinary MBR with length normalization at β = 0.5 and β = 1.0, and with a length reward at γ = 0.5 and γ = 1.0. The uncorrected MBR decoder averages over the ancestral evidence directly. The corrected variants use the same type of ancestral evidence, with the target length preference entering through normalized importance weights. The beam-search comparison uses the checkpoint’s default length penalty of β = 2 for BART when correction is enabled.
Length correction for beam search and MBR on CNN/DM ROUGE-L
Uncorrected MBR leads the comparison, while length normalization gives the weakest MBR settings.
The numbers
| System or setting | ROUGE-L |
|---|---|
| Beam search without correction | 30.77 |
| Beam search with correction | 30.84 |
| MBR without correction (this paper) | 32.54 |
| MBR with length normalization, β = 0.5 | 29.99 |
| MBR with length normalization, β = 1.0 | 30.0 |
| MBR with length reward, γ = 0.5 | 32.48 |
| MBR with length reward, γ = 1.0 | 32.25 |
CNN/DM ROUGE-1 and ROUGE-2 tell the same story about the strongest setting. Uncorrected MBR gives 47.70 on ROUGE-1 and 23.00 on ROUGE-2. The length reward with γ = 0.5 gives 47.60 and 22.93. Normalization with β = 0.5 gives 44.29 and 19.95. The uncorrected BERTScore is 88.50, while the γ = 0.5 reward gives 88.48 and each length normalization setting gives 88.03. The relative effect therefore ranges from a small decline for the weaker length reward to larger losses for the tested normalization settings.
The beam-search baselines have a different pattern. Adding the default length correction moves CNN/DM ROUGE-1 from 43.88 to 43.95, ROUGE-2 from 20.96 to 21.00, and BERTScore from 87.79 to 87.81. The length ratio, reported relative to the references, moves from 108.00 to 114.39. Uncorrected MBR has a length ratio of 111.64, and the MBR length reward at γ = 0.5 gives 112.52. The decode with the highest automatic scores thus has a length ratio closer to the references than length-corrected beam search, while the uncorrected beam sequence lengths are closer by that measure.
Length correction on WMT’16 Romanian-English
The Romanian-English comparison applies the same length schemes with BLEU-4 as the MBR gain. The default beam-search length penalty for mBART is β = 1. In addition to BLEU, the authors report chrF, a character n-gram F-score, and BLEURT, a learned evaluation metric. They also report BERTScore and the ratio of output length to reference length. BLEU and chrF are computed with sacrebleu. For BLEURT the authors use the smaller BLEURT-20-D6 checkpoint for efficiency. The scoring choices draw on the work on reporting BLEU scores, chrF, and BLEURT.
Length correction for beam search and MBR on WMT’16 Romanian-English BLEU
Uncorrected MBR has the highest BLEU, and either length adjustment worsens MBR at each strength tested.
The numbers
| System or setting | BLEU |
|---|---|
| Beam search without correction | 33.21 |
| Beam search with correction | 33.06 |
| MBR without correction (this paper) | 33.56 |
| MBR with length normalization, β = 0.5 | 31.14 |
| MBR with length normalization, β = 1.0 | 31.09 |
| MBR with length reward, γ = 0.5 | 32.09 |
| MBR with length reward, γ = 1.0 | 31.29 |
Uncorrected MBR also leads every corrected MBR setting on the other reported translation metrics. Its WMT’16 Romanian-English chrF is 60.00, its BLEURT is 65.53, and its BERTScore is 94.96. Beam search with its default correction gives 60.05 on chrF, 65.60 on BLEURT, and 94.96 on BERTScore. The uncorrected MBR system therefore leads the table on the metric used as its gain, ties the corrected beam baseline on BERTScore, and trails that beam baseline on chrF and BLEURT. Beam search also shows a mixed response to length correction, with BLEU favoring the uncorrected setting.
The translation length ratios help interpret the change in quality. Uncorrected MBR gives 100.04, while uncorrected beam search gives 99.37 and corrected beam search gives 101.58. MBR length normalization gives 102.82 at β = 0.5 and 102.60 at β = 1.0. The per-token reward gives 105.00 at γ = 0.5 and 105.63 at γ = 1.0. In this experiment the length-corrected MBR outputs extend further beyond reference lengths, and their metric scores are lower than those of uncorrected MBR. The two changes occur together in this setup. The comparison leaves open how much of the quality change comes from preferring different lengths and how much comes from estimating the reweighted expectation with a finite sample.
What the ablations show
A good gain helps only when the pool contains a good choice
Varying the gain within the CNN/DM experiment shows how much the selected candidate can depend on what counts as a match. ROUGE-1 gain is best on CNN/DM ROUGE-1, while BERTScore gain is best on CNN/DM BERTScore. The ordering changes again on ROUGE-2, where BEER leads. These are changes in what the decoder selects from a sampled collection. The generator and the stated sampling procedures stay the same, so the comparison locates the variation in the criterion used for selection. The same collection can support several plausible choices according to which properties the gain emphasizes.
The BEER result also offers a comparison with Wiher and colleagues. Their experiment on the same dataset and with the same base system found that MBR with BEER scored below beam search. The authors obtain the opposite ordering. Wiher and colleagues made hypotheses from the evidence collection together with other decoded outputs. The current paper draws a separate set of hypotheses with temperature 0.5. A broader ancestral sample can be useful as a summary of uncertainty, while a sharpened sample can supply better candidates under the gain. These different roles make the hypothesis-pool explanation plausible.
This comparison crosses studies. The paper’s gain experiment changes the comparison rule under its own sampling setup, while the evidence for changing the hypothesis pool comes from the discrepancy with prior work. A controlled swap of the two hypothesis construction procedures within one experiment would isolate their effects more directly. As reported, the finding establishes that BEER can work as a gain on CNN/DM and that conclusions about the gain are sensitive to the accompanying decoding setup.
Across all three gains, the observed improvement over the greedy and beam baselines is more consistent than the ranking among the gains. That pattern gives context to the paper’s emphasis on building the pool. Once the hypotheses include suitable alternatives, several reasonable gains can pick a summary that evaluates well. The case also illustrates why the reasons for a win can differ across settings. A metric may align closely with the evaluation, or a change in which texts are eligible may simply make a better output available to score.
A length penalty can change search and evidence in different ways
In beam search, a length penalty changes the score used to compare paths or completed sequences. In the MBR experiment, changing length alters how much each sampled reference contributes to the estimated risk. The resulting penalty or reward can favor a different candidate even when the candidates available for comparison come from the same procedure. This is a different intervention from modifying beam-search scores, which is why a useful beam-search setting does not transfer automatically.
The two correction families also behave differently from one another. On CNN/DM, the weaker length reward leaves ROUGE-L close to uncorrected MBR, while both normalization settings bring it near or below the beam-search values. All corrected translation settings score below uncorrected MBR on BLEU, with the weaker length reward again leading the corrected choices. The CNN/DM normalization settings give length ratios of 110.75 and 110.77 even as overlap scores decline. Changes in output length provide only part of the explanation for changes in the ranking.
The authors suggest that the gap between the original and corrected distributions may make the importance-sampling estimator noisy. If an output is improbable in the ancestral sample but receives a high weight under the target, observing it can have a large effect on the empirical average. This changes the effective influence of the evidence even though every candidate is still compared with every sampled reference. The reported runs show how the tested reweighting schemes behave. They do not measure the estimator’s variance or compare reweighting with direct draws from the corrected target, so the proposed mechanism remains open.
The paper reads the relatively close match to reference lengths under uncorrected MBR as evidence that its decision rule can moderate sequence-length bias. With MBR, a candidate’s score comes from its agreement with the evidence pool. Probability still matters through the evidence distribution, while the ranking of candidates also takes their similarity to other outputs into account. A candidate can therefore win even though some shorter string receives a larger individual probability. Bias in the gain can still push the outcome toward particular lengths.
What the earlier self-consistency comparison contributes
The self-consistency discussion includes a sampling comparison reported by the earlier authors. Among the tested settings they favor nucleus sampling with p = 0.95 and τ = 0.7 without top-k sampling. They also find sampled outputs more useful than beam-search outputs for the vote. The p here is the nucleus cutoff controlling how much probability mass is retained in the sampling pool at each step, and τ is the sampling temperature. This use of p names a cutoff and is separate from the conditional probability notation used in the method.
The MBR formulation explains what is attractive about sampling for this comparison. Repeated answer frequencies under independent draws estimate the probabilities of final answers after extraction. Several explanations can supply probability mass to the same answer. A beam can produce several strong sequences, but its list represents a search for high scores, so their counts have a different interpretation. The authors suggest that ancestral sampling could improve on the earlier settings because it estimates the generator’s original answer frequencies. Their argument gives a reason for trying that procedure. The cited comparison leaves the ancestral-sampling result open.
The rationale also has a dependency that matters for interpretation. An unbiased estimate is desirable when the underlying distribution is the one whose answer probabilities the decoder wants to estimate. If sharpening or filtering improves the relationship between frequently sampled answers and correct answers, a biased sampling procedure may work better for the task. The paper’s separation of the hypothesis pool, evidence collection, scoring rule, and target distribution gives a precise description of that possibility.
Limitations
Limits the authors identify
A gain can import the weaknesses of a metric into decoding. The paper cites earlier findings that BLEU-based MBR can favor short outputs. It also discusses a case in which COMET-based MBR made more errors involving names and numbers because the metric lacked sensitivity to those changes. Repetition of this kind of insensitivity across generated references can help a candidate win. That effect is especially consequential when a small change in wording alters an important detail while leaving most of the sequence similar. The paper draws this example from work on COMET.
The authors distinguish improving a chosen score from improving the overall quality people perceive. Earlier work they discuss finds that the MBR setting preferred by humans can differ from the setting that maximizes the automatic metric. Using that metric both for decoding and for evaluation on benchmark references can reward traits it happens to favor. Evaluating with several metrics gives a broader account of the outcome. Common blind spots can persist across automatic metrics, so even improvements on multiple reported measures leave human preferences open.
The paper also identifies an estimation limit in the length experiments. Self-normalized importance sampling uses a ratio of empirical averages. It is biased with a finite evidence collection, and a substantial discrepancy between the target and the proposal may make the estimate unstable. The authors raise that discrepancy as a possible explanation for the poorer corrected MBR results. Their comparison supports a practical finding about the particular reweighted decoder. The behavior of length correction with better coverage of the target distribution remains a separate question.
The density interpretation is deliberately tentative where it connects features to downstream performance. A gain that clusters outputs by n-gram counts can reveal agreement in surface features. The authors posit that a distribution over those features may align better with particular metrics than the original sequence distribution does. Which features align with a given evaluation, and how well, can vary. The paper uses the similarity to density estimation to motivate the question and points to earlier work for approximation bounds.
Limits of the experimental setup
The paper’s own experiments put the proposed controls to work on CNN/DM summarization and WMT’16 Romanian-English translation with particular released checkpoints. Other tasks enter through formal examples and prior work. Those examples establish how the MBR rule can represent an answer vote or a completed-output ensemble. They leave open the relative effectiveness of alternative evidence samplers, hypothesis filters, and metrics in those other tasks. The summarization and translation experiments also use different temperatures, checkpoints, and gains, so their absolute scores cannot isolate the effect of changing task alone.
Candidate coverage and evidence quality pose separate limits even when the algorithm is correctly implemented. The decoder can only return an eligible output. If a candidate pool omits the best available text, averaging a better estimate of the gain cannot supply that missing choice. If the generated evidence favors a repeated error, agreement can reward the error. The experiments show that the selected outputs tend to score better under the reported metrics in several comparisons. They leave factual accuracy and the ability to recover information missing from the samples unevaluated.
The reported tables give point estimates. They leave run-to-run variation from stochastic sampling and uncertainty about small differences unquantified. This matters when comparing nearby scores, such as the CNN/DM ROUGE-L values for the different gain functions. They also leave wall-clock time and memory use unspecified. Comparing each candidate with each evidence entry introduces extra work beyond producing the samples. The measurements support a quality comparison under the reported setups, while cost at other sample sizes and with other metrics remains open.
Finally, the experiments separate the hypothesis and evidence pools, but they do not provide a full study crossing all the choices in the taxonomy. In particular, the proposed explanation of the earlier BEER discrepancy rests on a comparison across papers. The length-correction study combines a new target distribution with an empirical method for estimating its risks from ancestral draws. Both comparisons support specific conclusions about what worked. A broader causal claim about the optimal candidate pool or target distribution would require controls that vary those ingredients independently.
What came after
Consensus as a way to choose among generations
Universal Self-Consistency for Large Language Model Generation takes up the problem of using consistency for generated responses more generally. The earlier self-consistency rule analyzed by Bertsch and colleagues has an extractor and a clear equality test on final answers. Applying consistency more broadly raises the issue of how to recognize agreement when answers are expressed in different forms. In the MBR account, this falls under the gain: the decoder needs a definition of which differences count and which can be treated as compatible. The later paper’s title identifies that broader scope. Its particular test for agreement and the size of any resulting gains are unspecified here. Universal Self-Consistency for Large Language Model Generation
From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Models places the subject in a broader discussion of inference-time procedures. The distinction in Bertsch and colleagues’ paper between proposing outputs and deciding among them gives a concrete example of why that wider view matters. A single next-token rule specifies how an individual output can be constructed. A higher-level procedure can generate several finished outputs, compare them, and use those comparisons to determine the answer. The later work’s stated scope is the broader family of inference-time algorithms. Its title leaves the status of any particular MBR variant open. From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Models
Objectives for alignment and factuality
DeAL addresses alignment at decoding time. Its point of contact with the earlier paper is the decision made during generation, when a trained generator’s probability scores are available and an additional objective can matter for the returned text. Bertsch and colleagues make such an objective explicit through a gain or loss defined for candidate outputs. Alignment poses a related question about which properties that objective should reward. The later title establishes its focus on decoding-time alignment. The specific relationship of its search or scoring rule to MBR remains open. DeAL: Decoding-time Alignment for Large Language Models
Enhancing Factuality through Consensus and Consistency in Summarization Using Minimum Bayes Risk Decoding explicitly applies MBR to a question within summarization. Bertsch and colleagues’ CNN/DM comparisons evaluate overlap and learned measures of similarity. The later work makes factuality the stated aim and connects it to consensus and consistency. That focus changes the question asked of the comparison rule. Agreement about wording is useful to the extent that it gives evidence about the facts a summary states. An MBR application with that aim must contend with the possibility that repeated agreement among generations can reflect a shared error. The title establishes the application and its objective, while leaving the factuality score, evidence construction, and measured effects unspecified. Enhancing Factuality through Consensus and Consistency in Summarization Using Minimum Bayes Risk Decoding
The role of answer format
Format-Adapter addresses reasoning through the choice of a suitable format. This focus meets the original paper at the point where a generated response is turned into something the decoder can compare. Bertsch and colleagues’ self-consistency formulation makes that step visible through answer extraction. The final answer can be compared across different explanations once it has been identified, and the comparison depends on how answers are represented. The later work’s title places the emphasis on adapting the format to improve reasoning. Its method for choosing formats and its use of any particular MBR decision rule are unspecified. Format-Adapter: Improving Reasoning Capability of LLMs by Adapting Suitable Format
Cite
Cite as Amanda Bertsch, Alex Xie, Graham Neubig and Matthew Gormley. 2023. It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Risk. Proceedings of the Big Picture Workshop.
@inproceedings{bertsch2023it,
title = {{It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Risk}},
author = {Amanda Bertsch, Alex Xie, Graham Neubig and Matthew Gormley},
booktitle = {Proceedings of the Big Picture Workshop},
year = {2023},
doi = {10.18653/v1/2023.bigpicture-1.9},
url = {https://doi.org/10.18653/v1/2023.bigpicture-1.9}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bertsch-2023-it-s-mbr-all-way/