AI Research
Repeated Testing Has Limits: LLM Code Benchmarks Face a 23% Precision Ceiling
A large-scale study finds that running the same code evaluation multiple times offers diminishing returns, with fundamental variance constraints that repeated execution cannot overcome.
A new study from arXiv sheds light on a hidden constraint in how machine learning researchers benchmark code-generating models: no matter how many times you run the same test, you hit a hard ceiling on how much precision you can gain.
Researchers evaluated 16 different language models across 99 LeetCode-style programming problems, using two different prompts and conducting five runs each—totaling 15,840 individual test executions in a fully controlled design. Their findings challenge a common assumption in model evaluation: that simply repeating tests will reliably improve score accuracy.
The Variance Problem#
The study distinguishes between two sources of uncertainty in benchmark scores. Aleatoric variance comes from the randomness inherent in how models generate code (stochastic decoding). Epistemic variance stems from evaluating on only a finite set of problems, which may not represent how a model performs more broadly. Standard statistical approaches—pooled-binomial intervals—fail to account for this structure correctly: they are roughly twice too narrow when you care about generalizing to new problems, and twice too wide when measuring performance on a fixed problem set. When researchers properly account for clustering across multiple runs, nearly half of adjacent leaderboard comparisons become statistically indistinguishable.
The Ceiling Effect#
The research identifies a hard mathematical limit called the variance ceiling, which measures the maximum factor by which additional runs can reduce score variance. Across the 16 models tested, this ceiling ranged from 1.05 to 1.71, with a median of 1.34. In practical terms, this means even in the best case, repetition can narrow confidence intervals by no more than 23%—and for the typical model, just 14%. This is not a limitation of the study design; it is a fundamental property of how uncertainty propagates through code evaluation.
The Economics of Testing#
Beyond pure statistics, the researchers considered the actual cost trade-offs: adding more verified problems is expensive, while running the same test again is cheap. They derived an optimal repeat count formula—$R^{*}=\sqrt{\mu_w c_p/(\sigma_b^2 c_g)}$—and found that the variance curve is relatively flat around its optimum. Surprisingly, the main reason to run tests multiple times is not to squeeze out extra precision, but rather to reliably estimate the variance components themselves. For this benchmark, two to three runs suffice.