Ablation study 2026-11-05
An ablation study compares a computational system with variants in which a component, input feature or training choice is removed or replaced. In machine learning, the purpose is to investigate which parts contribute to the measured behavior under a specified training and evaluation procedure. A useful comparison names the change, the metric and the conditions held fixed.
A measured example appears in Attention Is All You Need by Ashish Vaswani and others. Its transformer model comparisons include removing label smoothing: the base system's development-set BLEU is , versus without label smoothing. Meanwhile, wordpiece perplexity changes from to , an improvement for that metric. The same removal can therefore improve one measurement and worsen another. These are English-to-German machine translation results on the named development set, not universal effects of label smoothing.[ref]
A synthetic example shows why effects need not add. Suppose accuracy is with neither component A nor B, with A alone, with B alone, and with both. Removing either from the full system changes accuracy by zero percentage points. Adding either to the system with neither improves accuracy by ten points. The components provide redundant benefits: a zero removal effect does not imply that a component could never be useful. The statistical interaction is visible in percentage points.
For an interpretable ablation study, record the data split, metric, training budget and any settings changed to keep the variant viable. Retraining a reduced artificial neural network and suppressing a component only during evaluation answer different questions. Repeated training runs help assess variability; one difference alone does not establish statistical reliability. Broader claims require further comparisons.
Ashish Vaswani 2026-11-05
Ashish Vaswani is a machine learning researcher and coauthor of the 2017 paper introducing the Transformer model. The paper's shared-contribution statement credits him with jointly designing and implementing the first Transformer models. It explicitly states that author order is random, so his first position should not be read as sole credit for the architecture.[ref]
Attention Is All You Need by Ashish Vaswani and others. Original byline and contribution footnote
The Transformer model uses self-attention to combine information from different positions in a sequence. In scaled dot-product attention, a query is compared with keys using dot products, then the softmax function supplies weights for combining the corresponding values. The model connects this mechanism to a complete neural network for tasks such as machine translation.[ref]
Attention Is All You Need by Ashish Vaswani and others. Sections3.2–3.2.3: attention computation and its uses
An original one-dimensional example makes the weighting concrete. Choose query , keys , , and values , . With key dimension , the scaled scores are and . The softmax function gives weights and , so the output is . The input values are mixed according to the query–key comparison; this invented example is not a learned translation result.
The original evaluation reported 28.4 BLEU for its large model on the English-to-German newstest2014 test. That is a result under a specific training and evaluation setup, rather than a universal score for all Transformer models.[ref]
Attention Is All You Need by Ashish Vaswani and others. Section6.1 and Table2: big-model translation evaluation
BLEU 2026-11-05
BLEU is a reference-based metric for evaluating machine translation. It combines modified n-gram precision at several lengths using a geometric mean, then applies a brevity penalty to discourage very short outputs. Kishore Papineni and colleagues introduced it as a way to make repeated translation evaluation less costly than repeatedly collecting human judgments.[ref]
For each candidate n-gram, count matches only up to its maximum occurrence count in a single reference. Sum these clipped matches across the corpus and divide by the total number of candidate n-grams of that length to obtain . This clipping prevents repeated use of a common word from earning unlimited matches. Corpus aggregation uses counts, rather than simply averaging independently calculated sentence scores.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. §2.1, footnote 2; §2.1.1, corpus modified precision
With candidate length , effective reference length and weights summing to one,The original baseline uses and . Effective reference length sums the closest reference sentence lengths for the candidates.[ref]
For a synthetic one-pair calculation, take reference
the cat is on the mat and candidate the cat is on mat. The clipped precisions areHere , and the precision product is , givingThis is about on a scale multiplied by one hundred; it is not translation accuracy.The unsmoothed score becomes zero when a required precision is zero. Short sentences make this particularly conspicuous, while legitimate rephrasing can reduce overlap. State tokenization, casing, reference set, smoothing and scale when comparing results. The example illustrates the arithmetic; the paper emphasizes corpus-level use rather than treating each sentence score as an independent human-quality judgment.[ref]
Brevity penalty 2026-11-05
The brevity penalty in BLEU reduces the score of a candidate translation corpus that is too short relative to its references. Matching a few reference phrases can give excellent modified n-gram precision while omitting much of the intended translation; the length factor addresses that particular failure.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. §2.2.2, motivation and sentence brevity penalty
For positive total candidate length and effective reference length ,Equivalently, . The effective reference length sums closest reference sentence lengths across the corpus; the penalty is then applied to the corpus totals.[ref]
For an own example, use reference
the cat is on the mat and candidate the cat is on. Every candidate n-gram of lengths one through four matches the reference, so all four modified precisions are one. Nevertheless, and giveWith the usual four equal weights, the full score in this example is also , because its precision geometric mean is one. Perfect candidate precision has not made an incomplete prefix a perfect translation.At , the factor is one. It remains one for longer candidates; their unmatched or repeated material can instead lower precision. A brevity penalty is therefore a length correction within a combined metric, not a complete measure of translation adequacy.
Kishore Papineni 2026-11-05
Kishore Papineni is a machine translation researcher who coauthored the 2002 paper introducing BLEU. Its original byline places the authors at IBM's research center. The method supplied an automatic way to compare machine output with human reference translations, making repeated evaluation less dependent on commissioning a fresh human assessment for every system change.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. Page311: original byline, affiliation, Abstract and motivation
One key idea is modified n-gram precision. Repeating a common word cannot earn unlimited matching credit, because the candidate's matched counts are clipped by the counts available in the references. This connects a cheap string-counting procedure with an explicit defense against a trivial way to inflate ordinary overlap.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. Section2.1: clipped n-gram counts
For an original unigram example, let the candidate be
red red red blue and the reference be red blue green white. Both candidate word types appear in the reference, but clipping permits only one occurrence of red and one of blue, giving . This is only the unigram component: the full BLEU calculation also combines higher-order n-gram precisions through a geometric mean and applies a brevity penalty.The original method aggregates counts over a corpus. It is not simply the arithmetic mean of independently scored sentences, and a short example explaining one component should not be presented as the complete metric. Its usefulness as an automatic comparison also does not turn word-sequence overlap into a direct proof that every sentence conveys the correct meaning.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. Section2.1.1: corpus aggregation; Sections2.2.2–2.3: brevity penalty and combined score
Machine translation 2026-11-05
Machine translation uses a computational system to produce text in one human language from text in another. It must choose an output sequence that preserves relevant meaning while fitting the target language, rather than merely replacing each word independently. A transformer model is one architecture used for this task.[ref]
Attention Is All You Need by Ashish Vaswani and others. §3, encoder-decoder sequence model; §6.1, machine translation evaluation
A probabilistic formulation assigns conditional probabilities to candidate output sequences for input . A decoder searches for a suitable sequence, often using model probability together with additional search or length rules. For a deliberately simplified finite example, suppose three complete candidates have probabilities , and . Choosing the most probable gives the first candidate, but this is a model decision rather than a proof that its meaning is correct.
Context explains why word-by-word replacement is insufficient. The intended translation of an ambiguous word can depend on the surrounding sentence, and target word order can differ from source word order. A system can therefore produce a fluent sentence that omits or alters information; fluency and preservation of meaning require separate attention.
Training and evaluation also answer different questions. A neural language model can supply probabilities for sequences, while cross-entropy measures how much probability is assigned to observed text. BLEU instead compares output sequences with reference translations through matching n-grams and a length penalty. Reference overlap is useful for repeated comparisons, but alternative valid phrasing and context limit its interpretation as an assessment of any single sentence.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. §1.1, motivation; §2.1.1 and footnote 4, corpus evaluation versus individual sentences
Modified n-gram precision 2026-11-05
Modified n-gram precision measures reference-matched candidate n-grams while clipping repeated occurrences to the evidence available in the references. It is the precision component of BLEU. Merely asking whether a word appears anywhere in a reference would otherwise reward repeating that word indefinitely.[ref]
BLEU: a Method for Automatic Evaluation of Machine Translation by Kishore Papineni and others. §2.1 and footnote 2, clipped occurrence counts
For candidate sentence , let count n-gram , and let count it in reference . Its clipped match count isUse the maximum count in one reference for each n-gram, rather than adding counts across references. Corpus precision sums these clipped matches and divides by the total candidate n-gram count of that length, provided this denominator is nonzero. An implementation needs a stated convention when no candidate n-grams of that length exist.[ref]
For an own example, take reference
the cat the mat and candidate the the the cat. The candidate has three occurrences of the, but only two can match; cat contributes one more. Thus modified unigram precision is , whereas an unrestricted word-membership check would misleadingly credit all four words.The candidate's three bigram occurrences are
the the twice and the cat once. Only the last matches, giving modified bigram precision . Longer n-grams therefore test ordering distinctions that unigram counts cannot capture. Perplexity 2026-11-05
Perplexity measures how much probability a model assigns to observed outcomes, expressed as the inverse geometric mean of those probabilities. For a sequence evaluated by a neural language model, let be the model's conditional probability of the actually observed token given its allowed context. ThenIt is therefore exponentiated mean negative log-likelihood. If cross-entropy is expressed in bits rather than natural-log units, the equivalent expression is .[ref]
A Neural Probabilistic Language Model by Yoshua Bengio and others. §2, printed p.1141, opening definition of perplexity
A uniform predictor over possible tokens assigns each observed token probability , giving perplexity . For an unequal two-token example with assigned probabilities and ,The result need not be an integer or an actual vocabulary size. It is an effective branching measure defined by the likelihood calculation.
On a fixed evaluation representation and dataset, lower perplexity means higher geometric mean probability for the realized outcomes. Assigning zero probability to any realized outcome makes the unsmoothed sequence perplexity infinite. Correctness of the most probable token alone does not determine the metric: the probabilities assigned to all realized outcomes matter.
For an empirical example, the 2003 neural-language-model paper reports test perplexity for its MLP1 row, compared with for the five-gram back-off comparison row. These are measurements under the paper's Brown-corpus setup and token-counting conventions.[ref]
A Neural Probabilistic Language Model by Yoshua Bengio and others. §4.1, printed p.1148, token conventions; Table 1, p.1149, test-perplexity column
Changing tokenization, vocabulary, punctuation or sentence-boundary treatment changes the outcomes and the divisor . Per-word and per-subword scores therefore cannot be compared as if they measured the same event space. Perplexity is also distinct from BLEU, which compares generated text with references rather than directly averaging the probability of observed tokens.