Topics

Here’s the formula for BLEU:

where:

  • is the brevity penalty
  • is the precision of n-grams in BLEU with value in
  • is the weight applied to the n-gram precision score.
    • The weights determine the contribution of each n-gram size to the overall score. A common choice for these weights is which rewards higher n-grams since they are more challenging to match
    • Expanding the exp, it turns out we are doing (math explanation). If we fix , this value will be larger for higher
  • is the maximum n-gram size considered (typically 4)