Online Verification of Language Model Responses Under Cost Constraints

Erfan Hajihashemi, Yanning ShenarXiv 2026

TL;DR

OMVV (Online Multi-Verifier Verification) is a new algorithm that intelligently manages the cost-accuracy tradeoff when verifying Large Language Model (LLM) outputs. By adaptively routing queries through a pool of "weak" verifiers and only escalating to an expensive "strong" oracle when necessary, OMVV achieves higher accuracy at a lower cost than any single fixed verifier, all while providing rigorous theoretical guarantees on error rates.

What Problem Does This Paper Address?

As LLMs are increasingly used for complex, multi-step reasoning (like solving math problems or writing code), the risk of "hallucinations" or logical errors propagating through a chain of thought becomes a major reliability bottleneck.

The gold standard for verification is a "strong oracle"—either a massive model like GPT-4 or a human expert—but querying this oracle for every single step is prohibitively expensive in production. Previous solutions used a single "weak" verifier (a smaller, cheaper model) to act as a gatekeeper, only calling the oracle when the weak verifier was uncertain.

However, the authors identify a critical flaw: a single weak verifier isn't a one-size-fits-all solution. A verifier that excels at simple arithmetic might be overconfident and wrong on calculus, or a verifier tuned for logic might be too conservative (and thus too expensive) for factual trivia. OMVV addresses this by managing a pool of diverse verifiers and learning, on the fly, which one to trust for a given stream of queries.

Methods

The core of OMVV is an online learning framework that treats verifier selection as a multi-armed bandit problem. Here’s how the "engine" works:

  1. Multi-Verifier Pool: The system maintains $K$ candidate weak verifiers, each with different costs and performance profiles.
  2. Exponential-Weights Routing: At each round, OMVV selects a verifier based on its historical performance using a routing policy that minimizes "regret" (the difference between the algorithm's performance and the best possible fixed verifier in hindsight).
  3. Combined Scoring: Instead of relying solely on a verifier's raw score, OMVV uses a logistic regression "combiner." This combiner integrates the verifier's score with an agreement signal—the fraction of other candidate responses that match the current one.
  4. Adaptive Thresholding: Each verifier in the pool maintains its own pair of thresholds (Accept/Reject). If the combined score falls between these thresholds, the system is "uncertain" and escalates the query to the costly strong oracle.
  5. Unbiased Updates: Because the system only sees the results of the verifier it actually picks (bandit feedback), it uses importance weighting to ensure its internal performance estimates remain unbiased.

Datasets

The authors evaluated OMVV across four diverse reasoning tasks to ensure its benefits weren't limited to a single domain:

  • MATH: A benchmark of challenging competition-level math problems.
  • Zebra Logic: Logic-grid puzzles requiring complex attribute assignments.
  • TriviaQA: A large-scale factual question-answering dataset.
  • DeepMind Mathematics: Algebra problems involving systems of linear equations.

For the verifier pool, they used Qwen2-1.5B-Instruct (cheap) and Qwen2.5-3B-Instruct (more expensive/stronger) as the weak verifiers, with GPT-4o or programmatic graders serving as the strong oracle.

Key Insights and Ideas

  • Difficulty-Aware Routing: OMVV naturally learns to shift its strategy based on problem difficulty. As shown in the figure below, the system favors the cheaper verifier for easy problems but shifts toward the more expensive, reliable verifier as problems get harder.
Figure 1: Mean probability that OMVV routes to the cheaper verifier (Qwen2-1.5B), by difficulty. On easy problems, OMVV favors the cheaper verifier with substantially higher probability than on hard problems, where it shifts toward the more expensive verifier.
  • Distribution-Free Guarantees: One of the most impressive aspects of the paper is the theoretical proof that OMVV maintains control over false-accept and false-reject rates regardless of the query distribution. This means even if the "topic" of the queries shifts suddenly, the error rates stay within the user-defined bounds ($\alpha_I, \alpha_{II}$).
  • Sublinear Regret: The algorithm is mathematically guaranteed to eventually perform as well as the best single verifier in the pool, even though it starts with no knowledge of which one is best.

Key Results

The experimental results demonstrate that OMVV is strictly better than using any single verifier in isolation.

  • Higher Accuracy, Lower Cost: Across all datasets, OMVV achieved the highest accuracy while simultaneously maintaining the lowest total verification cost.
  • Reliable Error Control: In many tests, single-verifier baselines failed to stay within the target error rates (exceeding the 0.2 threshold for false accepts). OMVV was the only method that consistently satisfied these constraints.
Table 1: OMVV versus single-verifier baselines, pooled easy and hard subsets, at αI = αII = 0.2. ErrI and ErrII values exceeding the 0.2 target are shown in red; the best value in each of Accuracy, Avg(ErrI, ErrII), Cost, and Oracle frequency, within each dataset, is bolded.
  • Robustness to Shifts: Even when the difficulty of the incoming stream changed rapidly (alternating every single query), OMVV maintained its performance advantage, proving its value for dynamic, real-world applications.

Limitations and Future Work

While OMVV is a significant step forward, the authors and the methodology suggest a few areas for further exploration:

  • Generation Cost: The "agreement" feature requires generating multiple candidate responses ($M=5$ in this paper). While this improves verification, it increases the initial generation cost.
  • Fixed Pool: The algorithm assumes a fixed pool of $K$ verifiers. Future work could explore "online verifier discovery," where new models are added to the pool as they become available.
  • Oracle Cost: The paper assumes the oracle is always correct but expensive. In some domains, even the "strong" oracle might have a non-zero error rate, which would require a more complex noise-tolerant framework.

Summary updated

BibTeX
@misc{hajihashemi2026online,
  author = {Erfan Hajihashemi and Yanning Shen},
  title = {{Online Verification of Language Model Responses Under Cost Constraints}},
  year = {2026},
  eprint = {2610.02632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.02632},
}
Figure