Accuracy and Normalized Accuracy under Length Bias: Analysis, Guidelines, and a Bayesian Alternative

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

A new scoring rule, "Bayesian accuracy," addresses the pervasive length bias in multiple-choice benchmarks that rank candidate completions by conditional log-probability. Standard methods often penalize longer answers, while the common mitigation of normalizing scores by completion length frequently over-corrects, introducing a bias toward longer answers. Bayesian accuracy computes the posterior probability of each candidate under an explicit prior over answer length, effectively removing linear length effects. This method is a direct replacement for existing likelihood-based multiple-choice evaluation, requires no additional forward passes, and consistently demonstrates lower empirical length bias across various benchmarks and few-shot settings.

Key takeaway

For machine learning engineers evaluating language models on multiple-choice benchmarks, you should consider adopting Bayesian accuracy. This new scoring rule offers a more robust and less biased evaluation by explicitly accounting for answer length, unlike standard or length-normalized methods. Implementing it requires no extra forward passes, streamlining your evaluation workflow and providing more accurate insights into model performance without introducing artificial biases towards shorter or longer responses.

Key insights

Bayesian accuracy removes length bias in multiple-choice benchmarks via an explicit answer length prior.

Principles

Method

Bayesian accuracy computes the posterior probability of each candidate under an explicit prior over answer length, removing linear length effects.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.