Cost-Aware Best-LLM Identification using Dueling Feedback

Sarvesh Gharat, Nikhil Karamchandani, Jayakrishnan NairNeurIPS 2026

TL;DR

Evaluating Large Language Models (LLMs) through head-to-head human comparisons is the gold standard, but querying massive models like OpenAI’s O1 costs up to 150x more than smaller ones like Gemini Flash. This paper introduces an adaptive algorithm that finds the single best LLM for a task with guaranteed statistical confidence while minimizing your API bill. By smartly routing comparisons through cheaper "proxy" models instead of constantly querying the expensive frontrunner, it achieves provably optimal cost efficiency.

What Problem Does This Paper Address?

Imagine you need to pick the best LLM for your company’s vision pipeline. Automated benchmarks are notoriously plagued by data leakage, so you turn to human preference evaluations (like Chatbot Arena), pitting two models head-to-head on the same prompt and asking an annotator, "Which response is better?"

In machine learning, this is a dueling bandit problem: you pull a pair of "arms" (models) and observe a noisy binary outcome (who won). Your goal is fixed-confidence best-arm identification—keep running duels until you are, say, 99% sure you’ve found the champion.

Classical dueling bandit algorithms try to minimize the total number of duels. However, in the LLM world, comparisons do not cost the same. Querying a massive reasoning model might cost $15 per million tokens, while a lightweight flash model costs $0.10. Furthermore, real-world human preferences often violate transitivity (Model A beats B, B beats C, yet C beats A!), breaking standard ranking assumptions.

Figure 1: Preference matrix and model costs for the Vision- based task [Chiang et al., 2024]

The authors tackle a practical, previously unstudied gap: How do we find the best model with guaranteed confidence while minimizing total monetary cost, without assuming clean, transitive rankings?

Methods

The authors only assume the existence of a Condorcet winner—a model that beats every other model with probability greater than 0.5 in a direct duel—without requiring the rest of the models to follow a neat linear hierarchy.

Building on the classic Track-and-Stop framework from scalar multi-armed bandits, they introduce DCTAS (Dueling Bandit Cost-Aware Track and Stop):

  • Closed-Form Optimal Allocations (New): Usually, Track-and-Stop algorithms must numerically solve complex nested optimization problems at every step to figure out which arms to pull. Because of the Condorcet assumption, the authors derive an explicit, closed-form mathematical formula for the ideal cost allocation across model pairs, converting them cleanly into pull probabilities.
  • Handling Non-Unique Weights (New): If two different models are equally cost-effective at knocking out a suboptimal contender, the optimal sampling weights aren't unique, which breaks standard convergence proofs. The authors design a custom WeightPullAllocation routine to handle this gracefully.
  • Modified Stopping Rule (Adapted): Instead of testing simple pairwise superiority, they adapt a Generalized Likelihood Ratio Test (GLRT) with a Chernoff stopping threshold to test the global hypothesis that a specific model is the Condorcet winner. They also test a practical variant (DCTAC) that swaps the conservative Chernoff threshold for tighter confidence intervals.

Datasets

Rather than training new models, the authors construct bandit simulation environments using existing empirical data:

  • Synthetic Instance: A 3-arm setup where Arm 1 is the Condorcet winner with a variable cost $k \in [1, 19]$, while Arms 2 and 3 cost $1$.
  • Real-World Chatbot Arena Datasets: Four domain-specific human preference matrices paired with actual API querying costs: Text-to-Image (T2I), Text-to-Text (T2T), Vision, and Search.

Key Insights and Ideas

  • Real-world LLM preferences play rock-paper-scissors, but still crown a king: Across all tested Chatbot Arena datasets, strict transitivity fails (e.g., in Vision, Gemini 2.0 Flash beats Gemini 1.5 Pro, which beats Claude 3.7 Sonnet, which beats Gemini 2.0 Flash). Yet every single dataset still possessed a clear Condorcet winner.
  • Let the cheap models eliminate each other: Suppose Model 1 is the best—and most expensive—model, Model 2 is cheap and second-best, and Model 3 is cheap and terrible. A cost-unaware algorithm repeatedly pits $(1, 2)$ and $(1, 3)$ to prove Model 1 is king. As Model 1 gets pricier, DCTAS completely stops comparing $(1, 3)$! Instead, it pits $(2, 3)$ to cheaply eliminate Model 3, saving its budget for the decisive $(1, 2)$ duels.
  • Math that actually simplifies: Incorporating heterogeneous costs and pairwise duels sounds like a recipe for intractable math, yet the information-theoretic lower bound collapses into an intuitive closed-form expression measuring the "statistical ease per dollar" of eliminating each loser.

Key Results

  • Theoretical Optimality: DCTAS is proven to be asymptotically optimal—as the allowed error probability $\delta \to 0$, its expected cost matches the fundamental information-theoretic lower bound.
  • Synthetic Scaling: As the best arm's cost $k$ scales from 1 to 19 ($\delta = 0.01$), DCTAS increasingly outperforms cost-unaware Track-and-Stop (TAS) and static cost-aware baselines (CRR and DPCA). At $k=4$, DCTAS drops the pull fraction of the expensive $(1, 3)$ pair to $0$, shifting $62.9\%$ of pulls to the cheap $(2, 3)$ pair.
Figure 2: Total cost incurred by DCTAS, TAS, CRR, and DPCA for different values of k.
  • Real-World Savings: On Chatbot Arena benchmarks ($\delta = 10^{-10}$), DCTAS consistently beats TAS, cutting total evaluation costs by 5.7% on Text-to-Text and 5.9% on Search—the two tasks with the widest price gaps between models—while outperforming non-adaptive cost-aware baselines by 3x to 10x+. Furthermore, the confidence-interval variant (DCTAC) cuts costs even further (e.g., dropping Vision cost from 77.0 to 42.6).

Limitations and Future Work

While not explicitly separated into a limitations section, two key constraints emerge from the formulation:

  • Dependence on a Condorcet Winner: Although empirically validated on current LLM leaderboards, the algorithm's guarantees rely on a Condorcet winner existing. If a task exhibits a top-level rock-paper-scissors cycle with no overall Condorcet winner, alternative definitions like the Borda winner would be needed.
  • Asymptotic Conservatism: Like standard Track-and-Stop methods, DCTAS's theoretical optimality holds asymptotically ($\delta \to 0$), and its Chernoff stopping rule can be overly conservative in finite regimes—evidenced by how much earlier the heuristic confidence-interval variant (DCTAC) stops in practice.

Summary updated

Abstract

Inspired by the problem of identifying the best model from a collection of large language models (LLMs) with heterogeneous querying costs, we formulate and analyse a variant of the multi-armed bandit (MAB) with (i) dueling feedback, where pairwise comparisons between model responses provide robust preference signals, and (ii) heterogeneous sampling costs, reflecting the differing costs of querying different LLMs. Assuming the existence of a Condorcet winner, a condition we empirically validate across multiple real-world datasets, we propose a Track-and-Stop style algorithm for best-arm identification with prescribed confidence. We prove that the algorithm almost surely achieves the asymptotically optimal cost as the error tends to zero. Finally, we extensively evaluate our approach on both synthetic and real-world instances, demonstrating consistent improvements over classical cost-unaware algorithms and their cost-aware extensions.
BibTeX
@inproceedings{gharat2026cost,
  author = {Sarvesh Gharat and Nikhil Karamchandani and Jayakrishnan Nair},
  title = {{Cost-Aware Best-LLM Identification using Dueling Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WwFT9uaTpj},
}
Figure