Bayesian Accuracy Mitigates Length Bias in LLM Evaluation.

Koen Oostermeijer· July 15, 2026 View original

Summary

This paper analyzes length bias in multiple-choice LLM benchmarks, showing that standard accuracy penalizes longer answers while length-normalized accuracy often over-corrects. It introduces Bayesian accuracy, a new scoring rule that removes linear length effects by computing posterior probabilities under an explicit prior over answer length, offering a more robust evaluation method.

When evaluating Large Language Models (LLMs) on multiple-choice benchmarks, a common issue is "length bias." Standard scoring methods, which sum log-probabilities over tokens, inherently penalize longer candidate answers compared to shorter ones. While a common heuristic to mitigate this is to normalize scores by completion length, empirical evidence shows this often over-corrects, introducing a new bias towards longer answers. The researchers conducted an analysis of these scoring rules, characterizing when both standard and length-normalized accuracy are appropriate and how their respective length biases are influenced by the distribution of completion lengths. Motivated by these findings, they propose "Bayesian accuracy." This novel scoring rule calculates the posterior probability of each candidate answer, incorporating an explicit prior distribution over answer length. This approach effectively removes linear length effects from the evaluation. Bayesian accuracy is designed as a direct replacement for existing likelihood-based multiple-choice evaluation methods, requires no additional computational passes, and consistently demonstrates lower empirical length bias than both standard and length-normalized accuracy across various benchmarks and few-shot settings.

Why it matters

This research provides a more accurate and fair method for evaluating LLMs on multiple-choice tasks, leading to better insights into model performance and more reliable benchmark comparisons.

How to implement this in your domain

  1. 1Adopt Bayesian accuracy as the default evaluation metric for multiple-choice LLM benchmarks.
  2. 2Review existing LLM evaluation pipelines to identify and correct for length biases.
  3. 3Educate data scientists and ML engineers on the pitfalls of standard and length-normalized accuracy.
  4. 4Incorporate length-bias analysis into model development and fine-tuning processes.
  5. 5Contribute to open-source tools that implement Bayesian accuracy for broader adoption.

Who benefits

AI DevelopmentResearch & AcademiaEdTechSoftware TestingData Science

Key takeaways

  • LLM multiple-choice benchmarks suffer from length bias.
  • Standard accuracy penalizes long answers; normalized accuracy often over-corrects.
  • Bayesian accuracy is a new scoring rule that removes linear length effects.
  • It offers a more robust and less biased evaluation method for LLMs.

Original post by Koen Oostermeijer

"arXiv:2607.12767v1 Announce Type: new Abstract: Multiple-choice benchmarks that rank candidate completions by conditional log-probability suffer from a length bias: because log-probabilities sum over tokens, longer answers tend to be penalized relative to shorter ones in practice…"

View on X

Originally posted by Koen Oostermeijer on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses