Source-linked AI summary

Which LLM to pick? Online Active Model Selection for Large Language Models

Alessandro Turrin, Patrik Okanovic, Torsten Hoefler, Nezihe Merve Gürel

arXiv:2610.01592v1cs.CLcs.LG

TL;DR

Selecting an LLM for streaming data is difficult because benchmark signals only approximate real performance and oracle annotations are costly. ONLINE LLM PICKER actively selects prompts for annotation to identify a strong candidate model. Across multiple tasks, it identifies the best or near-best model with fewer annotations, and returned models can reduce regret in sequential generation.

  • Problem

    Selecting the best LLM for a task or stream is difficult because performance varies by context, while reliable oracle annotations are costly and prior active model-selection work had not addressed online LLM settings.

    Source: §1 · pp. 1–2
  • Method

    ONLINE LLM PICKER selects informative prompts from an incoming stream for annotation to identify the best candidate LLM.

    Source: §1 · p. 2
  • Results

    Across multiple generation tasks, ONLINE LLM PICKER identifies the best or near-best LLM while requiring up to 71.67% fewer annotations than competing baselines.

    Source: §1 · p. 2
  • Takeaways & Limitations

    Using the returned model for sequential generation on unannotated prompts reduces regret by up to a factor of 2.51× versus the best competing baseline.

    Source: §4.5.1 · p. 9

    The setting assumes prompts arrive from an unknown distribution, with each reference annotation hidden unless queried from an oracle.

    Source: §3.1 · p. 3

Abstract

from arXiv · show

Large Language Models (LLMs) are increasingly applied to process streaming data, with practitioners relying on benchmarks to select the best model even though these signals only approximate real performance. While oracle annotations can provide reliable feedback, they are often costly and difficult to obtain at scale. To address this challenge, we propose ONLINE LLM PICKER, the first framework for active model selection for LLMs in online settings. Given an arbitrary stream of queries and a limited annotation budget, ONLINE LLM PICKER selects the most informative prompts for annotation to identify the best LLM among candidate models. Across multiple tasks including 10 datasets, for over 130 language models, we show that ONLINE LLM PICKER saves annotation cost by up to 71.67% while reliably identifying the best or near-best model for the stream. We also show that using the returned model for sequential generation on unannotated prompts across the stream reduces regret by up to a factor of 2.51x, indicating that ONLINE LLM PICKER can identify the best or near-best model well before processing all streaming prompts.

1 Introduction

Choosing an LLM for a task or stream is difficult because model performance varies by context, while existing active-selection work has not addressed online LLM selection. ONLINE LLM PICKER selects informative prompts for annotation and identifies a strong model with fewer annotations.

1 Introduction

  • Existing active model selection largely targets classification or assumes prompts are available upfront, leaving online LLM selection unaddressed.The paper states that prior work had not explored active model selection for LLMs in online settings.Source: §1 · pp. 1–2
  • Selecting a suitable LLM is difficult because no single model consistently excels across domains or datasets, and effectiveness varies by context.The introduction notes that standard evaluation metrics alone cannot fully capture model quality or practical utility.Source: §1 · p. 1
  • ONLINE LLM PICKER selects informative prompts from an incoming stream for annotation to identify the best candidate LLM.Its informativeness criterion combines variance across model responses to unannotated prompts with posterior uncertainty, without assumptions about the underlying LLMs.Source: §1 · p. 2
  • ONLINE LLM PICKER identifies the best or near-best model while using up to 71.67% fewer annotations than competing baselines.The evaluation spans multiple generation tasks and model collections containing over 130 language models.Source: §1 · p. 2

2 Related Work

Prior work spans automatic metrics, benchmarks, human feedback, active testing, and active model selection, but each leaves challenges for efficient selection in online LLM settings. This paper introduces online active model selection for LLMs and compares its approach with baselines.

2 Related Work

3 Online LLM Picker

ONLINE LLM PICKER selects annotations from a prompt stream to identify the best model under a limited budget. It maintains a posterior over candidate models, adapts its learning rate to observed loss variance, and queries using model disagreement and posterior uncertainty.

3.1 Problem Statement and Background

  • With budget b ≪ T, the goal is to identify the model with minimum cumulative loss using annotations from only selected prompts.The returned model is evaluated by identification probability and annotation efficiency.Source: §3.1 · p. 3

3.2 The Algorithm

  • At each time step, a Bernoulli query decision determines whether an annotation updates the posterior over which candidate model is best.When no annotation is queried, the reference remains hidden and the posterior is unchanged.Source: §3.2 · p. 3

3.2.1 Adaptive Learning Rate

  • The adaptive learning rate uses an exponential moving average of observed loss variance because sparse queries and noisy examples can distort raw variance estimates.The decay rate β controls the moving average’s memory; its effective window is approximately (1 − β)^−1.Source: §3.2.1 · p. 4

3.2.2 Query Probability

  • Query probability combines hypothetical loss variance across model responses with posterior entropy, increasing queries when disagreement or uncertainty is high.The entropy is normalized by log m, and a time-decaying lower bound guards against unstable importance-weighted estimates and skipped informative prompts.Source: §3.2.2 · pp. 5–6

4 Experiments

Experiments evaluate ONLINE LLM PICKER on streaming generative tasks using more than 130 language models and compare it with baselines on regret, identification probability, and annotation efficiency.

4.1 Datasets and Models

  • The dataset suite spans open-ended question answering, arithmetic and calculus, grammar correction, multi-turn conversation, long-form question answering, medical calculation, and finance.The model collections include open-source and proprietary LLMs, from a few million to several billion parameters.Source: §4.1 · pp. 6–7

4.2 Baselines

  • Baselines query annotations probabilistically: Random uses fixed b/T, while disagreement, KL divergence, and entropy-based uncertainty guide adaptive query probabilities.Disagreement targets prompts with strong model disagreement; KL and uncertainty use divergence from posterior belief and entropy over pairwise losses, respectively.Source: §4.2 · pp. 7–8

4.5.1 Regret

  • Up to 2.51× regret reduction versus the best competing baseline for sequential generation on unannotated prompts.The reduction occurs across the evaluated budget levels, including before the annotation budget is exhausted.Source: Figure 2 · p. 8, §4.5.1 · p. 9

4.3 Evaluation Protocol

  • Each realization uses T i.i.d. test instances; methods are compared at matched average annotation counts after query-probability tuning.Results are averaged over independent realizations with fresh streams.Source: §4.3 · p. 8

4.4 Performance Metrics

  • Evaluation measures regret on unannotated prompts, the fraction of realizations identifying the best model, and annotation efficiency for finding best or near-best models.Annotation efficiency relates the number of annotations used to identifying those models.Source: §4.4 · p. 8

4.5.2 Identification Probability

  • Up to 71.67% annotation cost saved versus the best competing baseline when reaching maximum identification probability.Across datasets and annotation budgets, ONLINE LLM PICKER required the fewest annotations to reach that probability.Source: Figure 3 · p. 9, §4.5.2 · p. 9

4.5.3 Annotation Efficiency

  • Up to 70.69% fewer annotations were required to identify a near-best model within the tested δ-vicinities.The comparison is against the best competing baseline and is reported separately by dataset and δ-vicinity.Source: §4.5.3 · p. 9

5 Discussions

The discussion frames online LLM selection with limited annotation evidence as a new problem and presents ONLINE LLM PICKER as a method for it. Related work on data sampling generally assumes offline access or slowly changing distributions.

5 Discussions

  • The paper introduces online model selection for LLMs with limited annotation evidence, a technically challenging setting given open-ended generative outputs.ONLINE LLM PICKER is presented as a method tailored to confidently identify the best model in this setting with annotation efficiency.Source: §5 · pp. 9–10

A Related Work

  • Prior data-sampling approaches generally assume offline access to the full corpus or slowly changing data distributions, unlike adaptive decisions on streaming data.The discussion also distinguishes active testing that evaluates a fixed model or small model set from selecting the best LLM for an arbitrary stream under limited annotations.Source: A Related Work · p. 17

B Datasets and LLM collections

The study covers more than 130 LLMs across 10 datasets, with model scores assessed using task-appropriate metrics. It also compares baselines that query annotations based on disagreement or uncertainty.

B Datasets and LLM collections

C Baselines

  • Disagreement queries at a fixed probability but only when variance across experts’ average pairwise answer discrepancies exceeds a near-zero threshold.Source: C Baselines · p. 18
  • The Kullback–Leibler baseline queries in proportion to the mismatch between its posterior belief and a loss-based predictive distribution.Source: C Baselines · p. 18
  • The Uncertainty baseline queries more often when entropy of the per-model average-loss profile is higher.Source: C Baselines · p. 18

D Extended Results

This section reports additional results and experimental data, with 500 independent realizations for each dataset and budget level.

D.1 Regret

ONLINE LLM PICKER achieves lower regret than baselines across datasets, with reported reductions up to 2.51×. It also requires fewer annotations than baselines to reach 100% identification probability.

D.1 Regret

  • 2.51×, 2.47×, 2.44×, and 1.97× are the regret reduction factors on Comprehensive–Arithmetic–Problems, SQuAD, SQuAD v2, and FinQA, respectively.Source: Table 4 · p. 19, §D.1 · p. 19
  • ONLINE LLM PICKER has consistently lower regret than baselines across datasets, compared against the strongest competing baseline at the same budget.Source: Table 4 · p. 19, §D.1 · p. 19

D.2 Identification Probability

  • ONLINE LLM PICKER consistently requires fewer annotations than baselines to reach 100% identification probability.Source: §D.2 · p. 19

D.3 Robustness Analysis

ONLINE LLM PICKER has the lowest 95th-percentile accuracy gap in 36 of 40 cases and the second-lowest in the other four. The section also includes extended annotation-efficiency plots.

D.3 Robustness Analysis

  • Table 5 reports the percentage of stream length annotated by each method before it first reaches 100% identification probability.Source: Table 5 · p. 20
  • In 36 of 40 cases, ONLINE LLM PICKER has the lowest 95th-percentile accuracy gap; in the other four, it has the second-lowest gap.Source: §D.3 · p. 19, Table 6 · p. 21

D.4 Annotation Efficiency

  • The section provides extended plots for annotation-efficiency results described in Table 1.Source: §D.4 · p. 21

E Ablation Study and Design Choice Analysis

All tested versions outperform the baselines, and the largest improvements come from combining variance and entropy. Adaptive learning rate yields a small improvement whose gains depend on the data distribution.

E Ablation Study and Design Choice Analysis

  • All versions of ONLINE LLM PICKER consistently outperform the baseline methods on the Comprehensive Arithmetic Problems dataset.The ablation describes the overall algorithm structure as effective.Source: E Ablation Study and Design Choice… · p. 21
  • The largest improvements come from combining variance and entropy.The ablation identifies this component as having the strongest impact across the board.Source: E Ablation Study and Design Choice… · p. 21
  • The full method reaches 100% identification probability at about 196 annotations, versus about 202 without adaptive learning rate.The gains from adaptive learning rate depend on the data distribution through a proxy of observed-annotation variance.Source: E Ablation Study and Design Choice… · p. 21
  • General-purpose embeddings and LLM judges can produce noisy or misleading scores on specialized domains; investigating robust domain-appropriate metrics is beyond this work's scope.In the medical datasets, several open-source embedding models produced nearly constant similarity scores across sentences.Source: E Ablation Study and Design Choice… · p. 21
  • Figure 5 presents annotation efficiency for ONLINE LLM PICKER and baselines across different δ values.The supplied caption gives the figure's scope but no specific values or winner.Source: Figure 5 · p. 22

F.1 Rationale for Metric Selection

The metric-selection rationale favors ROUGE and BERTScore for stability, reproducibility, and computational feasibility. The authors report instability in embedding-based scores and substantial costs for LLM-based evaluators in their pairwise-comparison setting.

F.1 Rationale for Metric Selection

  • ROUGE and BERTScore were selected for stability, reproducibility, and computational feasibility.The authors contrast these established metrics with newer LLM-based evaluation frameworks.Source: §F.1 · p. 22
  • LLM-based evaluators can vary with prompt phrasing and model biases, while embedding scores were noisier and less stable across streaming batches.Embedding scores clustered tightly even when model outputs differed meaningfully.Source: §F.1 · p. 22
  • Pairwise comparisons across 54 models make LLM-based scoring computationally and financially impractical for large-scale or online evaluation.The passage attributes this constraint to the quadratic nature of the comparisons.Source: §F.1 · p. 22
  • Established metrics support reproducibility without requiring proprietary or high-cost APIs.The authors describe the current metric choice as a robust and efficient baseline, while naming advanced LLM-based metrics as future work.Source: §F.1 · p. 22

F.2 Computational Overhead Analysis

The overhead analysis counts pairwise model-output distances and oracle similarities, then reports that preprocessing makes the measured runtime low enough for real-time or interactive applications. The following posterior subsection introduces an update using cumulative loss estimates and an adaptive learning rate.

F.2 Computational Overhead Analysis

  • Figure 6 compares identification probability for full ONLINE LLM PICKER against its variance-entropy and adaptive-LR versions.The caption does not state the outcome of the comparison.Source: Figure 6 · p. 23
  • For 54 models, each prompt requires 1,431 pairwise distances plus 54 oracle similarities, totaling 1,485 distance computations.Symmetry allows computing only the upper triangular part of the pairwise distance matrix, excluding its diagonal.Source: §F.2 · pp. 22–23
  • Preprocessing pairwise similarities yields about 0.156 seconds per prompt; 1,000 prompts took 2 minutes and 36 seconds on the reported local machine.The authors describe this latency as low enough for real-time or interactive applications, including with dozens of models.Source: §F.2 · p. 23

F.3 Posterior Distribution

  • The posterior distribution is updated using the cumulative loss estimate and adaptive learning rate.The passage introduces the posterior update but does not supply its displayed formula.Source: §F.3 · p. 23
Loading 2610.01592v1…