Don't Pass@k: A Bayesian Framework for Large Language Model Evaluation
This paper proposes a principled Bayesian framework that replaces the unstable Pass@k metric with posterior estimates and credible intervals to provide more reliable, compute-efficient, and uncertainty-aware rankings for large language models across both binary and graded evaluation scenarios.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a talent scout trying to find the best math student in a room full of 20 geniuses. You give them a hard problem.
The Old Way (Pass@k): The "Lucky Guess" Lottery
Currently, most people evaluate AI models using a method called Pass@k. Imagine you ask a student to solve a math problem. They might get it right on the first try, or they might get it wrong five times and then get it right on the sixth.
- Pass@k says: "If the student gets it right at least once in their first attempts, they pass."
- The Problem: This is like judging a basketball player based on whether they made one lucky shot out of ten tries. If you only let them take 5 shots, the results are chaotic. One day they might hit a lucky shot and look like a pro; the next day they might miss every shot and look terrible, even if their actual skill hasn't changed. It's noisy, unstable, and often misleading, especially when you don't have the budget to let them take 100 shots.
The New Way (Bayes@N): The "Confidence Coach"
This paper proposes a new framework called Bayes@N. Instead of just counting "Pass" or "Fail," it acts like a wise coach who keeps a running diary of the student's performance.
Here is how it works, using simple metaphors:
1. The "Categorical" Scorecard (Not Just Right/Wrong)
In the old days, a test was just a 1 (Right) or 0 (Wrong).
- The New Way: Imagine a rubric that says:
- 0: The student refused to answer.
- 1: They tried but got the math wrong.
- 2: They got the math right but wrote it in the wrong format (like forgetting to box the answer).
- 3: They got it right and formatted it perfectly.
- 4: They got it right, formatted it, and explained their steps clearly.
The new system treats these as different "flavors" of performance, not just a binary pass/fail. It gives you a much richer picture of how the model thinks.
2. The "Confidence Interval" (The Safety Net)
This is the most important part.
- The Old Way: If Model A scores 60% and Model B scores 61%, the old system says, "Model B is the winner!" But was that 1% difference real, or just luck? The old system doesn't know.
- The New Way: The Bayesian framework draws a "fuzzy circle" (called a Credible Interval) around the score.
- If Model A's circle is [55% to 65%] and Model B's circle is [56% to 66%], the circles overlap. The coach says, "Stop! We can't tell who is better yet. It's a tie."
- If the circles don't touch, then we declare a winner with confidence.
This prevents the "leaderboard churn" where models jump up and down in rank every time you run the test one more time.
3. The "Prior Knowledge" (Learning from the Past)
Imagine you are evaluating a new version of a student who just took a test last year.
- The Old Way: You ignore last year's results and start from scratch.
- The New Way: You use last year's performance as a "head start" (a Prior). If the student was great last year, you start with a slight assumption they are good this year, and you only need a few new test results to confirm it. This saves a massive amount of time and money.
4. Why This Matters (The "Gold Standard")
The authors ran simulations where they knew the true skill level of the models (like knowing the exact weight of a coin). They found that:
- Pass@k (the old way) was like trying to guess the weight of a coin by flipping it 5 times. It took a huge number of flips to get a stable answer.
- Bayes@N (the new way) was like using a scale. It found the true ranking much faster and with far fewer flips.
The Big Takeaway
The paper argues that we should stop treating AI evaluation like a lottery ticket (did it get lucky this time?) and start treating it like a statistical investigation.
By using this new Bayesian framework, we can:
- Save Money: We need fewer computer runs (trials) to know who is actually the best.
- Be Honest: We can admit when two models are too close to call, rather than forcing a fake winner.
- Be Nuanced: We can reward models for being "mostly right" or "well-formatted," not just for getting a lucky perfect answer.
In short: Don't just count the wins; measure the confidence. This makes AI evaluation fairer, cheaper, and more reliable.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.