Perplexity Cannot Always Tell Right from Wrong
Petar Veličković, Federico Barbero, Christos Perivolaropoulos, Simon Osindero, Razvan Pascanu
TL;DR
Perplexity, a common proxy for model quality, can be misleading for model selection, especially with long contexts and distribution shifts. Grounded in a continuity theorem for decoder-only Transformers, the paper proves that high-confidence copying of long sequences implies the existence of inputs the model gets wrong yet with log-perplexity approaching zero. It introduces iso-perplexity analysis and demonstrates, via parity and bitstring copy experiments, that perplexity can fail to prefer the more accurate model, particularly under OOD conditions. The work advocates diagnostic approaches and confidence-aware metrics to complement perplexity for safer, more reliable model selection and deployment.
Abstract
Perplexity -- a function measuring a model's overall level of "surprise" when encountering a particular output -- has gained significant traction in recent years, both as a loss function and as a simple-to-compute metric of model quality. Prior studies have pointed out several limitations of perplexity, often from an empirical manner. Here we leverage recent results on Transformer continuity to show in a rigorous manner how perplexity may be an unsuitable metric for model selection. Specifically, we prove that, if there is any sequence that a compact decoder-only Transformer model predicts accurately and confidently -- a necessary pre-requisite for strong generalisation -- it must imply existence of another sequence with very low perplexity, but not predicted correctly by that same model. Further, by analytically studying iso-perplexity plots, we find that perplexity will not always select for the more accurate model -- rather, any increase in model confidence must be accompanied by a commensurate rise in accuracy for the new model to be selected.
