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.
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. Then
It 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 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]
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.