← Latest papers
📊 statistics

Don't Throw Away Your Beams: Improving Consistency-based Uncertainties in LLMs via Beam Search

This paper proposes using beam search instead of multinomial sampling to generate candidates for consistency-based uncertainty quantification in large language models, demonstrating that this approach reduces variance and achieves state-of-the-art performance on short-form QA tasks.

Original authors: Ekaterina Fadeeva, Maiya Goloburda, Aleksandr Rubashevskii, Roman Vashurin, Artem Shelmanov, Preslav Nakov, Mrinmaya Sachan, Maxim Panov

Published 2026-05-08
📖 4 min read☕ Coffee break read

Original authors: Ekaterina Fadeeva, Maiya Goloburda, Aleksandr Rubashevskii, Roman Vashurin, Artem Shelmanov, Preslav Nakov, Mrinmaya Sachan, Maxim Panov

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

The Big Problem: The AI Response "Echo Chamber"

Imagine you ask a simple question to a Large Language Model (LLM) like: "Who sang 'Thriller'?"

To determine how confident the AI is in its answer, researchers usually ask the AI to answer the same question multiple times (say, 10 times) and observe how much the answers agree. This is called Consistency-Based Uncertainty.

  • The Old Method (Multinomial Sampling): Imagine this as rolling a loaded die. If the AI is 90% sure the answer is "Michael Jackson," every time you roll the die, it lands on "Michael Jackson." You get 10 answers, and 9 or 10 of them are identical.
    • The Flaw: Because the AI keeps giving you exactly the same answer, you might think: "Wow, it's super confident!" But in reality, the AI is simply stuck in a loop. It hasn't explored other possibilities. If the answer was actually "Prince" (a wrong hypothesis), the AI could still be stuck saying "Prince" 10 times, tricking you into believing it is confident when it is wrong. Furthermore, getting 10 identical answers is a waste of computing power.

The New Solution: The "Beam Search" Detective

The authors propose a new way to get these 10 answers. Instead of rolling a die, they use a strategy called Beam Search.

  • The Analogy: Imagine you are a detective looking for a suspect in a city.
    • Multinomial Sampling consists of sending 10 people randomly to ask a random person on the street. If the crowd mostly says "Michael Jackson," all 10 people return saying "Michael Jackson."
    • Beam Search consists of sending 10 detectives simultaneously down the 10 most probable streets. Even if "Michael Jackson" is the most popular answer, Beam Search forces the detectives to also check the second, third, and fourth most probable streets.
    • The Result: You get a list of 10 different answers (for example: "Michael Jackson", "Mr. Jackson", "Prince", "Bruno Mars").

Why It's Better: The "Diversity" Bonus

The paper argues that by using Beam Search, you gain two major advantages:

  1. End of Duplicates: You stop wasting time getting the same answer 10 times. You get a true variety of what the AI thinks.
  2. Honest Confidence Scores:
    • If the AI gives you 10 different answers (some correct, others wrong), the system realizes: "Hey, the AI isn't sure!" and assigns a low confidence score.
    • If the AI gives you 10 answers that are all very similar (even if they are slight variations of the same idea), the system realizes: "Okay, the AI is fairly sure," and assigns a high confidence score.

The Secret Ingredient: Weighting the Answers

The paper also introduces a clever trick. The fact that Beam Search finds 10 different paths doesn't mean they are all equally probable.

  • The Analogy: Imagine the AI is a weather forecaster.
    • Path A (Beam 1): "It will rain" (90% chance).
    • Path B (Beam 10): "It will rain" (0.01% chance).
    • If we treat both paths as equal, we skew the math.
    • The Solution: The authors say: "Let's count the 'It will rain' answer from Path A as 90 votes, and the 'It will rain' answer from Path B as 0.01 votes." They use a probability-weighted estimator. This ensures that the AI's confidence score reflects the true probability of the answers, not just the fact that they are different.

The Proof: Does It Work?

The researchers tested this method on six different question-answering datasets (such as quizzes, science, and general knowledge) using three different AI models.

  • The Result: The "Beam Search" method consistently beat the old "Roll the Die" method.
  • The Metric: They used a score called PRR (Prediction-Rejection Ratio). Imagine this as a test to see: "If we discard the AI's worst answers based on its confidence score, do the remaining answers improve?"
  • The Final Result: The Beam Search method was better at spotting bad answers and keeping good ones. It achieved State-of-the-Art results, meaning it was the best method currently available for short factual questions.

The Conclusion

The paper says: Don't throw away your beams.

In the world of AI, "beams" are the multiple paths a model explores to find an answer. The authors show that instead of randomly sampling answers (which often leads to boring duplicates), we should use the structured paths of Beam Search. By doing this, and carefully counting the probability of each path, we can obtain a much more accurate "confidence meter" for the AI. This helps us know when to trust the AI and when to be skeptical, especially for short factual questions.

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 →