BLEU Score › The Brevity Penalty

Michael BrenndoerferFebruary 22, 20264 min read
Language AI HandbookAll chapters
Part 53 of 67Evaluation Fundamentals
Chapter 407BLEU Score › The Brevity Penalty
Reading section 4 of 15 · The Brevity Penalty · 4 minSection 4 of 15 · 4 min

Book contents

Section 4 of 15 · 4 min read

BLEU Score › The Brevity PenaltyOne section · Sections in this chapter4 / 15 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Modified n-gram precision alone creates a perverse incentive: shorter translations achieve higher precision scores. A candidate consisting of a single word that appears in the reference would achieve perfect precision, yet conveys almost no information. This problem, known as the "sparse translation" or "under-translation" issue, plagued early statistical systems that learned to minimize risk by producing short, safe outputs. To counteract this strategic shortening, BLEU introduces a brevity penalty (BP) that penalizes translations shorter than their references.

The brevity penalty compares the candidate length cc against the effective reference length rr. The effective reference length is determined by finding, for each candidate sentence, the reference length closest to the candidate length (in absolute difference). For corpus-level BLEU, these lengths are summed across all sentences before computing the ratio. This "closest match" approach prevents the penalty from being overly harsh when multiple references exist with varying lengths, allowing the candidate to align with the most comparable reference length.

BP={1if c>re(1−r/c)if c≤rBP = \begin{cases} 1 & \text{if } c > r \\ e^{(1 - r/c)} & \text{if } c \leq r \end{cases}

where:

  • BPBP: the brevity penalty factor (ranging from 0 to 1)
  • cc: the total length of the candidate translation (in words)
  • rr: the effective reference length, defined as the length of the reference closest to cc in absolute difference

When the candidate is longer than the reference (c>rc > r), no penalty is applied (BP=1BP = 1). This reflects the asymmetry in translation evaluation: while omitting content is a serious error, adding extra information (over-translation) is already penalized by the precision component, which will not match n-grams beyond what exists in the reference. When the candidate is shorter, the penalty grows exponentially as the ratio r/cr/c increases. A candidate half the length of the reference receives a penalty of e−1≈0.37e^{-1} \approx 0.37, while a candidate one-tenth the length receives e−9≈0.0001e^{-9} \approx 0.0001, effectively zeroing out the score. The exponential formulation ensures that the penalty accelerates rapidly as translations become dangerously short, protecting against systems that might attempt to cheat by producing single-word outputs.

Notice the deliberate asymmetry in the penalty design. Over-translation (producing a longer output) does not receive an explicit length penalty, only an implicit precision penalty from n-grams in the candidate that do not match anything in the reference. Under-translation (producing a shorter output) receives both the precision penalty for any missed content and the explicit brevity penalty for the length difference. This asymmetry reflects the original designers' view that under-translation is the more dangerous pathology for statistical systems. Neural systems exhibit the opposite tendency, often generating long, repetitive outputs, which is why modern neural MT evaluation sometimes augments BLEU with explicit penalties for over-generation.

Out[4]:
Visualization
Line chart showing the BLEU brevity penalty from approximately 0 to 1.1 against the candidate-to-reference length ratio from 0 to 2, with callouts at ratios 0.1 and 0.5.
Brevity penalty as a function of the candidate-to-reference length ratio. The penalty decays exponentially when the candidate is shorter than the reference (c/r < 1) and remains at 1.0 when the candidate is longer. The exponential form means that even mild under-translation at 90% of reference length receives a modest 10% penalty, but severe under-translation at 50% length cuts the score by 63%.