← Latest papers
💬 NLP

Correcting Prompt Dependence in LLM Benchmarks: A Bayesian Hierarchical Model with Embedding-Space Clustering

This paper proposes a corrective Bayesian hierarchical model with embedding-space clustering to address the limitations of classical inference and prompt dependence in LLM benchmarking, thereby delivering more robust performance metrics and significantly reducing errors in limited-data settings.

Original authors: Mary Llewellyn, Isobel Thornton, James Bishop, Annie Gray

Published 2026-06-05
📖 5 min read🧠 Deep dive

Original authors: Mary Llewellyn, Isobel Thornton, James Bishop, Annie Gray

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 trying to judge how good a new chef is at cooking. You ask them to cook 100 different dishes. If you simply count how many dishes came out perfect and divide by 100, you get a "success rate."

But here is the catch: What if those 100 dishes weren't actually 100 different challenges? What if 50 of them were just slight variations of the same pasta recipe, and the other 50 were just slight variations of the same soup recipe?

If the chef is great at pasta but terrible at soup, your simple "100 dishes" score is misleading. You aren't testing 100 independent skills; you are testing two skills, each 50 times. The math you used to calculate the score assumes every dish is a totally new, unrelated test. When that assumption is wrong, your score is wrong, and your confidence in that score is fake.

This is exactly the problem the paper "Correcting Prompt Dependence in LLM Benchmarks" tackles.

The Problem: The "Fake Independence" Trap

Large Language Models (LLMs) are often tested using "benchmarks"—lists of questions or prompts. The standard way to measure performance is to treat every single prompt as an independent event, like flipping a coin 1,000 times.

The authors argue that this is a lie. In reality, prompts in these tests are often clumped together.

  • The Metaphor: Imagine a test where 10 questions are all about "how to bake a cake," and another 10 are all about "how to fix a car."
  • The Reality: If the AI knows how to bake a cake, it will likely get all 10 cake questions right. If it fails, it likely fails all of them. These questions are not independent; they are "dependent" on the same underlying skill.
  • The Consequence: Standard math thinks you have 20 independent data points. The authors show you might only have 2 (one for cake, one for car). This makes the AI look either much better or much worse than it really is, and it makes the "error bars" (the uncertainty) look tiny when they should be huge.

The Solution: The "Grouping" Detective

The authors propose a new way to do the math, called BHM-ESC (Bayesian Hierarchical Model with Embedding-Space Clustering).

Here is how it works, using a simple analogy:

  1. The "Word Cloud" Map (Embedding Space):
    First, the model translates every question into a point on a giant map. Questions that are similar in meaning (like "How do I bake a cake?" and "What's a good cake recipe?") land right next to each other. Questions about cars land far away.

  2. Finding the Clusters:
    Instead of guessing how many groups there are, the model acts like a detective looking at the map. It asks: "How many distinct neighborhoods of questions are there?" It doesn't need a human to tell it "There are 5 groups." It figures out the number of groups automatically based on how the questions are packed together.

  3. The "Team Captain" Approach (Hierarchical Modeling):
    Once the groups are found, the model stops treating every question as a solo act.

    • It treats the "Cake Neighborhood" as one team. It asks: "How good is the AI at the Cake Team?"
    • It treats the "Car Neighborhood" as another team.
    • It then averages the performance of these teams to get the final score.

Why This Matters (The Results)

The authors tested this on "adversarial" benchmarks (tests designed to trick the AI into doing bad things, like breaking safety rules). They compared their new method against the old, standard methods.

  • The Old Way: Said the AI was very consistent and confident.
  • The New Way: Said, "Wait, you only really tested a few distinct types of tricks. Your confidence is overblown."

The Paper's Specific Findings:

  • Better Accuracy: By fixing the math to account for these "clumps" of similar questions, the error in their performance estimates dropped significantly (by 4% to 73%).
  • Real Confidence: The new method gave much more honest "uncertainty" ranges. The old method often claimed to be 100% sure when it was actually guessing.
  • Overestimation: The standard methods were overestimating the number of truly independent tests by 1.3 to 5.6 times. In other words, if a test had 100 questions, the old math thought it was 100 unique tests, but the new math realized it was only 20 to 80 unique tests.

The Bottom Line

The paper doesn't claim this will fix AI safety or make AI smarter. It simply says: Stop counting questions like they are all different if they aren't.

By using a statistical method that groups similar questions together and counts the groups instead of the individuals, we get a much truer picture of how an AI is actually performing. It's the difference between grading a student on 100 copies of the same math problem versus grading them on 100 different concepts. The new method ensures we aren't fooled by repetition.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →