arXiv

Optimal Bayesian Stopping for Efficient Inference of Consistent LLM Answers

Title: Efficiently Identifying Consistent LLM Responses via Optimal Bayesian Termination

Abstract: A straightforward method for enhancing the precision of Large Language Models (LLMs), particularly in mathematical and reasoning tasks, involves generating multiple responses and selecting the answer that appears most frequently. This study utilizes Bayesian prior knowledge to reduce sampling expenses by terminating the process once a threshold of consistency is met. While calculating the exact posterior distribution is computationally prohibitive, we propose an efficient "L-aggregated" stopping rule that monitors only the counts of the L-1 most common answers. Our theoretical analysis demonstrates that L=3 is sufficient: this simplified approximation guarantees asymptotic optimality, outperforms baseline methods without priors, and enables rapid posterior calculation. In practice, this approach identifies the most consistent LLM response (the mode) with fewer samples, maintaining comparable accuracy while reducing the number of LLM calls—and thus inference costs—by as much as 50%.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Advantech's Tsai on Nvidia Collaboration, AI Strategy
Bloomberg

Advantech's Tsai on Nvidia Collaboration, AI Strategy

Advantech's Tsai discusses the Nvidia partnership and AI strategy.

SK Hynix to Double Wafer Capacity to Ease Memory Chip Crunch
Bloomberg

SK Hynix to Double Wafer Capacity to Ease Memory Chip Crunch

SK Hynix plans to double its wafer capacity to alleviate the ongoing global memory chip shortage. This expansion aims to...

AI Productivity Boost Is Overhyped | 3-Minute MLIV
Bloomberg

AI Productivity Boost Is Overhyped | 3-Minute MLIV

The video argues that AI’s productivity boost is overhyped, challenging the assumption that it will significantly enhanc...

Intel's Lip-Bu Tan on Agentic AI & Partner Networks
Bloomberg

Intel's Lip-Bu Tan on Agentic AI & Partner Networks

Intel’s Lip-Bu Tan discusses Agentic AI and the vital role of partner networks in driving innovation.

Haas Says Arm May Hit $15 Billion AI Chip Revenue Goal Early
Bloomberg

Haas Says Arm May Hit $15 Billion AI Chip Revenue Goal Early

Haas suggests Arm may achieve its $15 billion AI chip revenue target sooner than expected. This indicates strong market ...

Arm May Hit $15 Billion AI Chip Revenue Goal Early, CEO Says
Bloomberg

Arm May Hit $15 Billion AI Chip Revenue Goal Early, CEO Says

Arm’s CEO predicts the company could hit its $15 billion AI chip revenue target ahead of schedule. This optimistic outlo...