arXiv:2610.02632cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02632

Online Verification of Language Model Responses Under Cost Constraints

Erfan Hajihashemi, Yanning Shen

ABSTRACT

As large language models are increasingly deployed for multi-step reasoning, verifying the correctness of their outputs has become essential for maintaining reliability at scale. Verifying the correctness of large language model outputs is often done by querying a costly ground-truth oracle, which is impractical to invoke at every step in an online setting. Prior work addresses this by querying a single weak verifier on every step, and using its score to decide whether the costly strong verifier needs to be queried as well, reserving strong verification for only a small fraction of the steps. However, a single fixed weak verifier may not perform consistently well as the subject matter or difficulty of incoming queries changes over time, and committing to one in advance risks either overly costly or inaccurate verification. We introduce OMVV (Online Multi-Verifier Verification), an algorithm that maintains a pool of K candidate weak verifiers with differing cost and verification performance, and adaptively routes each round's decision to a verifier selected via an online score combiner and an exponential-weights routing policy. OMVV provides a distribution-free, finite-time guarantee on false-accept and false-reject rates across the full pool of verifiers, and further achieves sublinear regret against the best fixed verifier in hindsight under a combined cost and consistency objective. Experiments on reasoning dataset benchmarks show that OMVV achieves higher accuracy at lower verification cost than any single fixed verifier, across a range of operating budgets.

1 INTRODUCTION

Large language models increasingly solve complex problems by producing multi-step chain of thought reasoning traces (Wei et al., 2022). As such traces are used to drive downstream decisions, search, and agentic pipelines, an incorrect final answer that goes unflagged can propagate silently into the final output. Verifying a candidate solution against ground-truth is an effective remedy: training a separate model to judge the correctness of a candidate answer and using it to rerank or filter samples substantially improves accuracy (Cobbe et al., 2021).

In many practical applications, a language model does not answer queries in isolation: it faces a stream of queries that arrive sequentially over time, which can naturally be modeled as an online environment. In such a stream, verification is not only a per query concern, since a mistake left unflagged at one step can propagate forward into the queries and responses that follow, whether by feeding a wrong intermediate result into subsequent reasoning or by shaping later interactions around a flawed answer. This has motivated a growing line of work that studies verification of language models directly as an online problem (Kiyani et al., 2026; Balcan et al., 2026). However, providing an oracle that checks the correctness of every single generated response in this online setting is often not doable in practice.

A PREPRINT

To avoid the cost of obtaining ground-truth for every query, a weak verifier, an inexpensive way to estimate correctness that is cheaper than the oracle but also less reliable, can be integrated. Relying on such a verifier makes it possible to decide most responses without ever querying the oracle, calling the oracle only on the subset of responses the weak verifier is least certain about. However, a single weak verifier might not be sufficient throughout the entire stream: how well it matches the queries it encounters depends on their subject and difficulty, both of which can shift over the course of a stream. A verifier well suited to easier queries may become overconfident as difficulty increases, while a verifier calibrated for harder queries may query the oracle unnecessarily on queries it could have resolved on its own. We propose OMVV, which addresses this by maintaining a pool of candidate weak verifiers with differing cost and verification performance rather than committing to a single one. At each round, OMVV routes the response to one of the candidate verifiers. The oracle is queried only when the selected verifier is itself uncertain about the response. This routing decision is learned online, and OMVV additionally satisfies a regret guarantee on it, ensuring that its accuracy and cost approach those of the best fixed verifier in the pool in hindsight. Across mathematical reasoning, logic, and factual tasks, OMVV outperforms single verifier selective verification (Kiyani et al., 2026), run separately with each of the two candidate weak verifiers, on accuracy and cost simultaneously.

Contributions. Overall, our contributions can be summarized as follows:

I) We introduce OMVV, an online algorithm for verifying language model outputs that maintains a pool of weak verifiers with differing cost and verification performance and adaptively routes each response to a candidate verifier based on its historical performance.

II) It is proven that OMVV maintains distribution-free finite-time control over both wrongly accepting an incorrect response and wrongly rejecting a correct one. We further establish a regret guarantee on the routing decision itself, showing that OMVV's accuracy and cost approach those of the best fixed verifier in the pool in hindsight.

III) Through experiments on mathematical reasoning, logic, and factual tasks, it is demonstrated that OMVV outperforms single-verifier selective verification (Kiyani et al., 2026) achieving better accuracy and cost simultaneously.