Skip to content
ImagineWorld

Provable Test-Time Scaling for Beam Search in LLM Reasoning

node_idnode-paper_arxiv-2609.38672_provable-test-time-scaling-for-beam-search-in-llm-reasoning
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2609.38672
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the value-estimation field, the work gives provable test-time scaling for beam search in LLM reasoning — guarantees on how search quality grows with compute when guided by value estimates — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleProvable Test-Time Scaling for Beam Search in LLM Reasoning
paper_authorsQijia He, Yu Huang, Yuan Cheng, Yuxin Chen, Yingbin Liang
arxiv_id2609.38672
arxiv_urlhttps://arxiv.org/abs/2609.38672
arxiv_categories{"primary":"cs.LG","secondary":["cs.AI"]}
arxiv_v1
arxiv_submitted_at2026-09-29
arxiv_updated_at2026-09-29
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:10:36Z
local graph

Provable Test-Time Scaling for Beam Search in LLM Reasoning

Section titled “Provable Test-Time Scaling for Beam Search in LLM Reasoning”

Authors: Qijia He, Yu Huang, Yuan Cheng, Yuxin Chen, Yingbin Liang

arxiv: 2609.38672

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Beam-search–based test-time methods provide an effective way to improve large language model (LLM) performance on long-horizon generation by pruning invalid reasoning paths early, leading to significantly improved reasoning efficiency and more favorable test-time cost scaling. Despite strong empirical success, the theoretical understanding of beam search remains limited. In this paper, we study the test-time compute guarantee of the commonly used beam search framework that uses the model’s internal log-likelihood for intermediate scoring, while relying on an external reward model only after a complete response is generated. We first establish a lower bound for vanilla beam search, showing that at least Ω(C⋆(x)2)\Omega(C^{\star}(x)^{2}) samples are required for the optimal response to survive, where C⋆(x)C^{\star}(x) is the token-level coverage coefficient for prompt xx. This motivates our modified confidence-filtered beam search (CF-Beam), which reduces the sufficient coverage dependence from quadratic to nearly linear under prefix competitiveness, for fixed horizon, gap, and target accuracy. We then show that the regret of CF-Beam is upper-bounded by the probability of rare failure events and the reward estimation error scaled by a path-level coverage coefficient, where the rare-failure term vanishes as per-step sampling increases. Our results highlight a fundamental advantage of beam search over sequence-level inference methods such as Best-of-N and Best-of-Majority. While the guarantees of these approaches typically involve coverage coefficients that grow exponentially with the horizon LL, CF-Beam controls the dominant search-induced term through a token-level coverage coefficient that scales polynomially with LL. Our numerical experiments further confirm that beam search is more robust on hard instances and under increasing reasoning horizons.

Test-time computing has emerged as a powerful paradigm for improving the performance of large language models (LLMs) by allocating additional computation at inference time. Unlike post-training approaches such as supervised fine-tuning and reinforcement learning from human feedback, which improve performance by updating the model’s parameters, test-time methods operate on a fixed model and improve accuracy via repeated sampling, aggregation, and selection. Due to their simplicity in implementation and striking performance scaling behavior, test-time methods have been widely deployed in real-world systems (Zaharia et al., 2024; Team et al., 2023).

Existing and widely studied test-time methods include Best-of-NN sampling (BoN), majority voting, chain-of-thought (CoT) reasoning, and their corresponding variants (Jinnai et al., 2024; Ichihara et al., 2025; Wang et al., 2022; Liu et al., 2025a; Di et al., 2025). Despite their empirical success, applying these approaches to complex real world tasks can be prohibitively expensive, as BoN and voting-based schemes require a rapidly increasing number of samples to maintain accuracy as context length grows. Moreover, the presence of imperfect verifiers can exacerbate selection errors by over-trusting spurious candidates or discarding correct but low-scoring solutions (Huang et al., 2025).

To improve the reasoning capabilities of LLMs on long reasoning chains and mitigate the compounding errors in final answers that arise from accumulated small mistakes or model imperfections across intermediate steps (Xu et al., 2025; Xie et al., 2023), beam search has been found to be a promising test-time approach for sparse-success and long-horizon settings. This method expands candidate responses token by token and applies a step-level verifier, which can be either an external reward model (Lightman et al., 2023; Setlur et al., 2024) or an internal self-evaluation metric (Xie et al., 2023), to prune low-quality continuations at each step. By aggregating candidate trajectories and pruning inferior paths, beam search allocates inference-time computation to the most promising prefixes toward desired outputs, thereby increasing the probability of identifying correct solutions (Yu et al., 2025a; Zhu et al., 2024) while simultaneously reducing unnecessary test-time computation.

Despite a rich body of empirical evidence demonstrating the effectiveness of beam search, theoretical analysis of beam search remains limited. Meister et al. (2020) studied what implicit objective function beam search optimizes. Recently, Fadeeva et al. (2025) studied beam search for self-consistency-based uncertainty quantification. To the best of our knowledge, there has not been a principled theoretical understanding of its test-time scaling performance, which raises the following fundamental research questions:

    How does beam search scale at test time, particularly when test-time compute is constrained and verifiers are imperfect?

    Compared to recent test-time guarantees for Best-of-Majority Di et al. (2025) and best-of-N Huang et al. (2025), does beam search enjoy provable advantages?

From the analysis standpoint, the main technical obstacle is that step-by-step pruning in beam search induces strong token-level dependencies over time, making the resulting dynamics harder to analyze than in sequence-level methods. Moreover, beam search often relies on heuristic intermediate verifiers whose step-wise scores are not aligned with a single, globally consistent objective.

In this paper, we answer the above questions by analyzing the test-time performance of beam search in a sampling-access setting, where token probabilities are estimated from sampled continuations and used as an internal verifier, while an external reward model is accessible only after the complete response is generated.

  • •

    Vanilla-Beam vs. CF-Beam. We establish a lower bound of sample complexity, showing that vanilla beam search (Vanilla-Beam) requires the sample size to be at least Ω(C⋆(x)2)\Omega(C^{\star}(x)^{2}) for the optimal response to survive, where C⋆(x)C^{\star}(x) is the token-level coverage coefficient for prompt x∈Xx\in\mathcal{X}. This motivates us to filter the low-probability samples via the estimated sampling policy, resulting in the confidence-filtered beam search (CF-Beam) as shown in Figure 1, which reduces the sufficient coverage dependence from quadratic to nearly linear under prefix competitiveness, for fixed horizon, gap, and target accuracy.

  • •

    Regret Analysis. We show that the regret of CF-Beam is upper bounded by the probability of rare failure events and the reward estimation error scaled by a path-level coverage coefficient, where the rare-failure term vanishes as per-step sampling increases. Our results highlight a fundamental advantage of beam search over sequence-level inference methods such as Best-of-NN and Best-of-Majority. While the guarantees of those approaches involve coverage coefficients that may potentially grow exponentially with the horizon LL, CF-Beam controls the dominant search-induced term through a token-level coverage coefficient that scales only polynomially with LL.

  • •

    Reward-Model-Free Regret. We further analyze the regret for a fully self-consistent CF-Beam. In contrast to standard CF-Beam, whose guarantees depend on the error of an external reward model, the regret bound for the self-consistent version is driven solely by the probability of rare failure events. Since the regret is decoupled from the reward-model error, self-consistent CF-Beam admits a sufficient total query budget growing only linearly in LL, up to logarithmic factors, for fixed beam width, token-level coverage, prefix gap, and target accuracy.

  • •

    Numerical experiments. Our numerical results compare CF-Beam against vanilla beam search, BoN, Majority voting and Best-of-Majority, demonstrating that CF-Beam achieves better performance on hard instances and is more robust to increasing horizon length.

Test-time algorithms are decoding strategies that use extra inference-time compute to map an input prompt under a fixed LLM model to an improved output response. Formally, given a prompt x∈Xx\in\mathcal{X}, the goal of the algorithm is to produce a response yy, which is represented as a length-LL token sequence y=(a_1,…,a_L)∈ALy=(a\_{1},\ldots,a\_{L})\in\mathcal{A}^{L}, based on a fixed reference LLM policy π_ref:X→Δ(AL)\pi\_{\text{ref}}:\mathcal{X}\to\Delta(\mathcal{A}^{L}). Here, A\mathcal{A} denotes the token vocabulary, and Δ(AL)\Delta(\mathcal{A}^{L}) is the set of probability distributions over AL\mathcal{A}^{L}.

Figure 1 : Confidence-Filtered Beam Search Pipeline

Figure 1 : Confidence-Filtered Beam Search Pipeline

The quality of the complete response yy is evaluated by a ground-truth outcome reward r⋆:X×Y→[0,1]r^{\star}:\mathcal{X}\times\mathcal{Y}\to[0,1], which is only revealed after the entire response is generated. Such sparse outcome rewards are standard in LLM settings, e.g., in reinforcement learning with verifiable feedback (RLVR) (Chen et al., 2025; He et al., 2025). In practice, r⋆r^{\star} is typically unavailable, and the algorithm designer instead relies on an approximate reward model r^:X×Y→[0,1]\hat{r}:\mathcal{X}\times\mathcal{Y}\to[0,1] that assigns a surrogate score r^(x,y)\hat{r}(x,y) to assess the quality of response yy for any prompt xx.

The reference policy π_ref\pi\_{\text{ref}} further admits a standard autoregressive factorization by steps. Let s_t−1:=(a_1,…,a_t−1)s\_{t-1}:=(a\_{1},\ldots,a\_{t-1}) denote the token prefix generated up to step t−1t-1 (with s_0=∅s\_{0}=\emptyset). Then we have

π_ref(y∣x)=∏_t=1Lπ_ref(a_t∣x,s_t−1),\pi\_{\mathrm{ref}}(y\mid x)=\prod\_{t=1}^{L}\pi\_{\mathrm{ref}}(a\_{t}\mid x,s\_{t-1}),

Here, on the right-hand side, with a slight abuse of notation, we use π_ref\pi\_{\text{ref}} to also denote a token-level reference policy X×S→Δ(A)\mathcal{X}\times\mathcal{S}\to\Delta(\mathcal{A}), where S\mathcal{S} is the set of all token prefixes from steps 1 to LL. Since beam search algorithms aggregate and process information at the token level, we focus throughout the remainder of the paper on the token-level policy π_ref:X×S→Δ(A)\pi\_{\text{ref}}:\mathcal{X}\times\mathcal{S}\to\Delta(\mathcal{A}). We assume black-box sampling access to the reference policy, without access to full logits or exact next-token probabilities, so token probabilities must be estimated from sampled continuations.

Given a prompt xx, the goal of parallel test-time computing is to design an algorithm Alg that interacts with the base policy π_ref(⋅∣s,x)\pi\_{\mathrm{ref}}(\cdot\mid s,x) through sampling and aggregation and outputs a response y∼π_Alg(⋅∣x)y\sim\pi\_{\text{Alg}}(\cdot\mid x), aiming to maximize the expected ground-truth reward E_y∼Alg(⋅∣x)[r⋆(x,y)]\mathbb{E}\_{y\sim\text{Alg}(\cdot|x)}\big[r^{\star}(x,y)\big].

Let y⋆:=arg⁡max⁡_y∈Yr⋆(x,y)y^{\star}:=\arg\max\_{y\in\mathcal{Y}}r^{\star}(x,y) denote the optimal response that maximizes the true outcome reward. We define the regret on instance xx as

Reg(x)=r⋆(x,y⋆)−E_y∼π_Alg(⋅∣x) ⁣[r⋆(x,y)].\mathrm{Reg}(x)=r^{\star}(x,y^{\star})-\mathbb{E}\_{y\sim\pi\_{\text{Alg}}(\cdot\mid x)}\!\left[r^{\star}(x,y)\right].(1)

We measure the test-time computational cost of an algorithm Alg by the number of token-level policy queries it makes to the base model. Concretely, each time Alg queries π_ref(⋅∣s,x)\pi\_{\mathrm{ref}}(\cdot\mid s,x) to sample from the next-token distribution at a prefix ss, we count one query. We use NN to denote the (per-prefix) sample complexity, i.e., the number of such queries issued at each prefix ss, and let B(x)B(x) denote the total number of such queries on instance xx. We refer to B(x)B(x) as the total (query) budget of Alg.

To quantify the ability of the base policy π_ref\pi\_{\mathrm{ref}} to generate the optimal response, following Huang et al. (2025), we introduce coverage coefficients that measure how difficult it is for the base policy π_ref\pi\_{\mathrm{ref}} to sample the optimal trajectory.

Definition 1 (Token- and sequence-level coverage).
Section titled “Definition 1 (Token- and sequence-level coverage).”

Fix an instance xx and let y⋆(x)=(a_1⋆,…,a_L⋆)y^{\star}(x)=(a\_{1}^{\star},\dots,a\_{L}^{\star}) be the unique optimal response, with optimal prefixes s_t−1⋆=a⋆_1:t−1s\_{t-1}^{\star}=a^{\star}\_{1:t-1}. Let π⋆\pi^{\star} denote the oracle policy that deterministically follows the optimal token at each step, i.e., π⋆(a_t⋆∣s_t−1⋆,x)=1\pi^{\star}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)=1 for all t∈[L]t\in[L]. The token-level coverage coefficient is defined as

C_t⋆(x):=π⋆(a_t⋆∣s_t−1⋆,x)π_ref(a_t⋆∣s_t−1⋆,x)=1π_ref(a_t⋆∣s_t−1⋆,x).C\_{t}^{\star}(x):=\frac{\pi^{\star}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)}{\pi\_{\mathrm{ref}}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)}=\frac{1}{\pi\_{\mathrm{ref}}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)}.(2)

We further define C⋆_max⁡(x):=max⁡_t∈[L]C_t⋆(x)C^{\star}\_{\max}(x):=\max\_{t\in[L]}C\_{t}^{\star}(x) and C‾(x):=∏_t=1LC_t⋆(x)\overline{C}(x):=\prod\_{t=1}^{L}C\_{t}^{\star}(x) as the sequence-level coverage coefficient.

The quantity C_t⋆(x)C\_{t}^{\star}(x) captures the inverse probability of sampling the optimal token at depth tt under π_ref\pi\_{\mathrm{ref}}, while C‾(x)\overline{C}(x) reflects the compounding difficulty along an autoregressive trajectory. This notion is consistent with the L_1L\_{1} coverage coefficient studied in Huang et al. (2025); Di et al. (2025).

For notational convenience, we omit the dependence on the instance xx when no ambiguity arises.

Beam search is a search-based decoding algorithm for LLM inference, which explores diverse responses and applies a step-level verifier to prune low-quality continuations at each step, aiming to ultimately concentrate on the most promising prefixes and reduce unnecessary test-time computational cost.

Vanilla-Beam, as shown in Section 3 (Xie et al., 2023; Yu et al., 2025a), generally maintains a beam of bb trajectories. At each step, it expands each trajectory by enumerating multiple next-token candidates (Lines 6-11), scores the newly formed trajectories under a chosen metric (Line 18), and prunes these trajectories to the top bb candidates, which forms the beam B\mathcal{B} for the next step (Line 23). After reaching the end-of-sequence or length limit, it selects the final output by maximizing an external reward model over the top-bb estimated log-likelihood candidates (Line 25).

In particular, the log-likelihood is used as the scoring metric. For each time step t∈[L]t\in[L], we draw NN fresh i.i.d. samples a_t(1),…,a_t(N)∼π_ref(⋅∣s_t−1,x){a}\_{t}^{(1)},\ldots,{a}\_{t}^{(N)}\sim\pi\_{\text{ref}}(\cdot\mid s\_{t-1},x), and then estimate the action distribution at step tt by the empirical frequencies: π^(a_t∣s_t−1,x)=1N∑_i=1N1(a_t(i)=a_t).\hat{\pi}(a\_{t}|s\_{t-1},x)=\frac{1}{N}\sum\_{i=1}^{N}\textbf{1}({a}\_{t}^{(i)}=a\_{t}). The score of a trajectory, denoted as Q(s_t)Q(s\_{t}) is defined as the sum of estimated log-probabilities: Q(s_t)=∑_i=1tlog⁡π^(a_i∣s_i−1,x).Q(s\_{t})=\sum\_{i=1}^{t}\log\hat{\pi}(a\_{i}|s\_{i-1},x). Samples at distinct prefixes use independent randomness. We keep only the top-bb trajectories for the next round, i.e., B_t=top-b{s_t∈D_t:Q(s_t)}.\mathcal{B}\_{t}=\text{top-}b\left\{s\_{t}\in{\mathcal{D}\_{t}}:Q(s\_{t})\right\}. If filtering leaves an empty beam, the algorithm returns any fixed response; ties are resolved by a fixed rule.

In practice, retaining only the top-bb trajectories can be fragile in Vanilla-Beam. Since the action space A\mathcal{A} is typically enormous, most tokens lie in the low-probability tail and are rarely sampled. Yet occasional tail samples amplified by finite-sample estimation and hard top-bb pruning can introduce spurious candidates and thereby crowd out the optimal prefix s⋆s^{\star}. Since beam search is path-dependent, eliminating s⋆s^{\star} at an early step is irreversible and prevents recovery even if subsequent steps are estimated accurately. The following theorem formalizes this phenomenon by constructing a hard instance where Vanilla-Beam fails (i.e., the correct trajectory is discarded with a constant probability), without a sufficiently large sample size. Detailed proof of constructing the hard instance is deferred to Appendix C.

There exists an LLM instance π∈Π\pi\in\Pi satisfying 50≤C_i⋆(x):=C⋆(x)≪(∣A∣)1/450\leq C\_{i}^{\star}(x):=C^{\star}(x)\ll{(|\mathcal{A}|)^{1/4}} for all i∈[L]i\in[L], such that if we set N≤(C⋆(x))2/16N\leq(C^{\star}(x))^{2}/16, the probability of eliminating the correct answer y⋆y^{\star} using Vanilla-Beam with 2≤b≤N/22\leq b\leq N/2 is at least 0.50.5.

Theorem 1 shows that without the sample size NN to be at least N>Ω((C_max⁡⋆)2)N>\Omega((C\_{\max}^{\star})^{2}), Vanilla-Beam cannot survive the correct response to the end of the process.

Confidence-Filtered Beam Search (CF-Beam).

Section titled “Confidence-Filtered Beam Search (CF-Beam).”

In order to reduce the sample complexity of Vanilla-Beam, inspired by Di et al. (2025), we introduce a thresholding step (Lines 14-15 in Section 3), which filters low-probability samples based on the estimation of their probability of sampling. We call this modified algorithm Confidence-Filtered Beam Search (CF-Beam). To be specific, for each prefix s_t, t∈[L]s\_{t},\ t\in[L], after generating NN actions, we keep only those satisfying π^_t(a_t∣s_t−1,x)≥β_t\hat{\pi}\_{t}(a\_{t}\mid s\_{t-1},x)\geq\beta\_{t}, and then select the top-bb trajectories from such a filtered action set. We will show in Section 4.2 (Theorem 2 and Corollary 1) that this simple modification yields a sample complexity bound of O~(C_max⁡⋆)\widetilde{O}(C\_{\max}^{\star}) for fixed horizon, prefix gap, and target accuracy, thereby improving the sample complexity from the quadratic to nearly linear dependence on C⋆_t(x)C^{\star}\_{t}(x).

In this subsection, we introduce the technical assumptions to establish the performance guarantee for the beam search method.

First, while the performance metric is defined with respect to the true reward r⋆r^{\star}, the algorithm typically has access only to an approximate reward model r^\hat{r}. We capture the quality of r^\hat{r} via a distributional estimation error under π_ref\pi\_{\mathrm{ref}}, which is a commonly adopted assumption in the literature (Huang et al., 2025; Di et al., 2025).

For each instance x∈Xx\in\mathcal{X}, the reward model satisfies

E_y∼π_ref(⋅∣x)[(r⋆(x,y)−r^(x,y))2]≤ϵ_RM2(x).\mathbb{E}\_{y\sim\pi\_{\mathrm{ref}}(\cdot\mid x)}\left[\left(r^{\star}(x,y)-\hat{r}(x,y)\right)^{2}\right]\leq\epsilon\_{\mathrm{RM}}^{2}(x).(3)

For each instance xx, there exists a unique optimal response

y⋆(x)=arg⁡max⁡_y∈Yr⋆(x,y),y^{\star}(x)=\arg\max\_{y\in\mathcal{Y}}r^{\star}(x,y),(4)

with r⋆(x,y⋆(x))=1r^{\star}(x,y^{\star}(x))=1. Here, y⋆(x)=(a⋆_1,…,a⋆_L)y^{\star}(x)=(a^{\star}\_{1},\dots,a^{\star}\_{L}) captures the entire optimal path. Moreover, the reward model error at the optimum is bounded as

$$\bigr^{\star}(x,y^{\star}(x))-\hat{r}(x,y^{\star}(x))\big\leq\epsilon_{\mathrm{opt}}(x).$$

It is obvious that the reward model error is crucial for the success of inference time algorithms, and building an accurate reward model has been extensively studied in the Reinforcement Learning with Human Feedback (RLHF) framework (Wang et al., 2026; Sun et al., 2025b; Duan et al., 2025; Yu et al., 2025b). Since our work mainly focuses on sampling strategy of the base model, we directly assume that we have access to a reward model with the estimation errors controlled by ϵ_RM2\epsilon\_{\text{RM}}^{2} and ϵ_opt\epsilon\_{\text{opt}}.

Furthermore, since the reward signal is only available at the sequence level, the algorithm can evaluate a completed response yy using r^(x,y)\hat{r}(x,y), but does not observe intermediate-step rewards for partial prefixes. In such settings, inference-time decisions must rely on signals intrinsic to the base policy, such as its self-likelihood and uncertainty over candidate continuations. As having been justified by prior analyses (Cordero-Encinar and Duncan, 2025; Feng et al., 2025), we impose the following prefix separability condition.

There exists a common κ∈(0,1]\kappa\in(0,1] such that, for each depth t∈[L]t\in[L] and any prefix s=(a_1,…,a_t)∈Ats=(a\_{1},\dots,a\_{t})\in\mathcal{A}^{t} with s≠s⋆_t=(a⋆_1,…,a⋆_t)s\neq s^{\star}\_{t}=(a^{\star}\_{1},\dots,a^{\star}\_{t}), we have

1t∑_i=1tlog⁡(π_ref(a⋆_i∣s⋆_i−1,x)π_ref(a_i∣s_i−1,x))≥κ,\frac{1}{t}\sum\_{i=1}^{t}\log\left(\frac{\pi\_{\mathrm{ref}}(a^{\star}\_{i}\mid s^{\star}\_{i-1},x)}{\pi\_{\mathrm{ref}}(a\_{i}\mid s\_{i-1},x)}\right)\geq\kappa,(6)

where s_i−1=a_1:i−1s\_{i-1}=a\_{1:i-1} and s⋆_i−1=a⋆_1:i−1s^{\star}\_{i-1}=a^{\star}\_{1:i-1}.

Any larger positive gap lower bound also implies the condition with κ=1\kappa=1, so restricting the chosen lower bound to (0,1](0,1] does not restrict the model class.

Such a gap condition is needed whenever intermediate pruning decisions rely on likelihood-based signals rather than direct reward feedback. Related gap-dependent analyses have also appeared in self-consistency and certification-based decoding settings; see, e.g., Cordero-Encinar and Duncan (2025); Aeeneh et al. (2024). The following proposition shows that, in our beam-search setting, this prefix-competitiveness condition is not merely technical: without it, likelihood-based pruning can irreversibly discard the optimal trajectory even with an arbitrarily large sampling budget.

Without Assumption 3, there exists an LLM instance (π_ref,r⋆)(\pi\_{\mathrm{ref}},r^{\star}) on which, for every sample size N≥1N\geq 1, beam search with beam width b=1b=1 prunes the optimal trajectory y⋆y^{\star} from the final beam with probability at least 3/43/4.

The proof is deferred to Appendix D, and additional discussion is provided in Appendix B.

The regret arises from three factors: (i) the accuracy of the reward model used for the final selection, (ii) the capacity of the base model π_ref\pi\_{\mathrm{ref}}, and (iii) search failures, i.e., events under which the optimal response is eliminated during inference. The first factor is captured by Assumptions 1 and 2, and the second by the coverage coefficients in Definition 1. To control the third factor, we define good events that separate two failure modes: the optimal action fails to pass confidence filtering, or the optimal prefix passes filtering but is discarded by top-bb pruning.

Since the algorithm samples only at prefixes in the current beam, the empirical frequency π^(a_t⋆∣s_t−1⋆,x)\hat{\pi}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x) is undefined once an optimal prefix has been discarded. To define it for every tt, we use an equivalent description of the sampling process. Before the algorithm runs, we independently draw, for every prefix ss of depth less than LL, a histogram of NN i.i.d. samples from π_ref(⋅∣s,x)\pi\_{\mathrm{ref}}(\cdot\mid s,x); the histogram of ss is revealed only when the algorithm expands ss. Since each prefix is expanded at most once, the output of the algorithm has the same distribution as under fresh sampling, and the construction is used only in the analysis. Under this coupling, the empirical frequencies along the optimal path are defined whether or not the path survives, and histograms at distinct prefixes are mutually independent.

We define the following events.

(i) Filtering event. The optimal action passes confidence filtering at every depth:

E_β:={∀t∈[L]: π^(a_t⋆∣s_t−1⋆,x)≥β_t}.\mathcal{E}\_{\beta}:=\bigl\{\forall t\in[L]:\ \hat{\pi}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)\geq\beta\_{t}\bigr\}.

(ii) Beam-survival event. Let rank_t(s)\mathrm{rank}\_{t}(s) denote the rank of s∈D_ts\in\mathcal{D}\_{t} when D_t\mathcal{D}\_{t} is sorted by Q(⋅)Q(\cdot) in descending order, with ties broken by the rule of the algorithm. Define

E_b:={∀t∈[L]: s_t⋆∈D_t ⇒ rank_t(s_t⋆)≤b}.\mathcal{E}\_{b}:=\bigl\{\forall t\in[L]:\ s\_{t}^{\star}\in\mathcal{D}\_{t}\ \Rightarrow\ \mathrm{rank}\_{t}(s\_{t}^{\star})\leq b\bigr\}.

The overall good event is E:=E_β∩E_b\mathcal{E}:=\mathcal{E}\_{\beta}\cap\mathcal{E}\_{b}.

By induction over the depths, E\mathcal{E} holds if and only if y⋆∈B_Ly^{\star}\in\mathcal{B}\_{L}: on E_β\mathcal{E}\_{\beta}, every optimal prefix in the beam generates its optimal extension as a candidate, and on E_b\mathcal{E}\_{b}, top-bb pruning retains this extension. We refer to P(Ec)\mathbb{P}(\mathcal{E}^{c}) as the search error.

Now we present our main result on the regret of the CF-Beam algorithm.

Suppose L≥2L\geq 2, N≥48C_max⁡⋆κ2max⁡{2,log⁡(2C_max⁡⋆)}N\geq\frac{48C\_{\max}^{\star}}{\kappa^{2}}\max\{2,\log(2C\_{\max}^{\star})\}, and β_t=(1−1/L)/C_t⋆(x)\beta\_{t}=(1-1/L)/C\_{t}^{\star}(x) for all t∈[L]t\in[L]. Under Assumptions 1, 2, and 3, the regret of CF-Beam in Section 3 satisfies

Reg(x)≤P(Ec)+ϵ_opt(x)+2C‾(x)ϵ_RM2(x)⏟_reward-model error,\mathrm{Reg}(x)\leq\mathbb{P}(\mathcal{E}^{c})+\underbrace{\epsilon\_{\mathrm{opt}}(x)+2\sqrt{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}}\_{\text{reward-model error}},(7)

where the search error satisfies

P(Ec)≤Lexp⁡ ⁣(−N2C_max⁡⋆L2)⏟_filtering error+2C_max⁡⋆bexp⁡ ⁣(−κ2N48C_max⁡⋆)⏟_pruning error.\mathbb{P}(\mathcal{E}^{c})\leq\underbrace{L\exp\!\left(-\frac{N}{2C\_{\max}^{\star}L^{2}}\right)}\_{\text{filtering error}}+\underbrace{\frac{2C\_{\max}^{\star}}{b}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right)}\_{\text{pruning error}}.(8)

Theorem 2 separates the regret into a search error and a reward-model error. The search error accounts for filtering out an optimal action or pruning its prefix from the beam. Both probabilities decay exponentially with the per-prefix sample size NN; their rates depend on the token-level coverage C_max⁡⋆C\_{\max}^{\star}, the horizon LL for filtering, and the prefix gap κ\kappa for pruning. A wider beam reduces the pruning term, since discarding the optimal prefix requires at least bb filtered competitors to match or exceed its score. Once the optimal response survives, the remaining regret comes from the final reward-based selection. Its bound involves the sequence-level coefficient C‾(x)\overline{C}(x), which arises when transferring the reward-model error guarantee under π_ref\pi\_{\mathrm{ref}} to the selected output; this term does not decrease with NN or bb. The threshold β_t\beta\_{t} depends on the unknown C_t⋆(x)C\_{t}^{\star}(x), so this result gives an oracle guarantee rather than a directly implementable rule. For practical use, Appendix H.1 describes an empirical variant of CF-Beam that replaces the unknown optimal-token probability 1/C_t⋆(x)1/C\_{t}^{\star}(x) with the largest empirical next-token frequency at the current prefix, and sets the threshold to β_t(s)=γmax⁡_a∈Aπ^(a∣s,x)\beta\_{t}(s)=\gamma\max\_{a\in\mathcal{A}}\hat{\pi}(a\mid s,x) for a constant γ∈(0,1)\gamma\in(0,1). This proxy is reasonable when the optimal continuation is locally competitive, in which case the optimal-token probability is of the same order as the largest next-token probability.

We first bound the probability that the optimal response is lost during search. At each depth, the empirical count of the optimal action is binomial; a Chernoff lower-tail bound and a union bound over depths control the filtering error. The threshold lies a relative 1/L1/L below the mean frequency, which yields the L2L^{2} factor in this bound. For pruning, we count the filtered competitors whose empirical scores match or exceed that of the optimal prefix. Truncated binomial moment bounds control their score differences even when low-probability actions happen to pass the filter. Assumption 3 supplies the true likelihood gap, and summing over competitors uses their total probability mass rather than their number. If the optimal prefix passes filtering but is pruned, at least bb competitors must match or exceed its score; Markov’s inequality then controls the pruning error.

On E\mathcal{E}, the optimal response reaches the final beam, so the remaining regret comes from reward-based selection. For each response yy, the joint probability Pr⁡(y^=y,E)\Pr(\hat{y}=y,\mathcal{E}) is at most π_ref(y∣x)∏_t=1Lβ_t−1≤4C‾(x)π_ref(y∣x)\pi\_{\mathrm{ref}}(y\mid x)\prod\_{t=1}^{L}\beta\_{t}^{-1}\leq 4\overline{C}(x)\pi\_{\mathrm{ref}}(y\mid x). This comparison and Cauchy–Schwarz transfer the reward-model error bound under π_ref\pi\_{\mathrm{ref}} to the selected response, while the pointwise error at y⋆y^{\star} contributes ϵ_opt(x)\epsilon\_{\mathrm{opt}}(x). We provide the comprehensive proof in Appendix E.

Under the assumptions and threshold choice of Theorem 2, for δ∈(0,1)\delta\in(0,1), it suffices to take

N≳C_max⁡⋆max⁡{L2log⁡2Lδ,1κ2(log⁡(eC_max⁡⋆)+[log⁡1bδ]_+)}N\gtrsim C\_{\max}^{\star}\max\left\{L^{2}\log\frac{2L}{\delta},\quad\frac{1}{\kappa^{2}}\left(\log(eC\_{\max}^{\star})+\left[\log\frac{1}{b\delta}\right]\_{+}\right)\right\}(9)

to achieve regret at most δ+ϵ_opt(x)+2C‾(x)ϵ_RM2(x)\delta+\epsilon\_{\mathrm{opt}}(x)+2\sqrt{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}, where [u]_+:=max⁡{u,0}[u]\_{+}:=\max\{u,0\} and the implicit constant is universal.

Corollary 1 shows that the sufficient per-prefix sample size grows linearly in C_max⁡⋆C\_{\max}^{\star} and quadratically in LL, up to logarithmic factors, and only logarithmically in 1/δ1/\delta. Since the total query budget is at most LbNLbN, the total budget is O~(bL3C_max⁡⋆)\widetilde{O}(bL^{3}C\_{\max}^{\star}) for fixed κ\kappa and δ\delta. The beam width enters only through log⁡(1/(bδ))\log(1/(b\delta)): a wider beam relaxes the requirement from the pruning error until the filtering error or the baseline condition dominates.

For fixed LL, κ\kappa, and δ\delta, Corollary 1 shows that N=O~(C_max⁡⋆)N=\widetilde{O}(C\_{\max}^{\star}) samples per prefix suffice for the search error to be at most δ\delta. In contrast, Theorem 1 exhibits an instance satisfying Assumption 3 on which Vanilla-Beam with 2≤b≤N/22\leq b\leq N/2 and N≤(C⋆)2/16N\leq(C^{\star})^{2}/16 discards y⋆y^{\star} with probability at least 1/21/2. Confidence filtering therefore reduces the per-prefix sample requirement from quadratic to nearly linear in the token-level coverage.

4.3 Comparison with Other Test-time Methods

Section titled “4.3 Comparison with Other Test-time Methods”

In this subsection, we compare the search-induced component of CF-Beam with other commonly adopted test-time algorithms for which regret guarantees have recently been established.

First, Di et al. (2025) proposed the Best-of-Majority algorithm, which first applies majority voting (self-consistency) to discard low-frequency candidates and then selects the final response from the remaining set using an external reward model. They established a regret bound given by Reg(x)≲ϵ_opt(x)+C‾(x) ϵ_RM2(x)+C‾(x)exp⁡ ⁣(−N~/C‾(x)),\textstyle\mathrm{Reg}(x)\lesssim\epsilon\_{\mathrm{opt}}(x)+\sqrt{\overline{C}(x)\,\epsilon\_{\mathrm{RM}}^{2}(x)}+\overline{C}(x)\exp\!\left(-{\widetilde{N}}/{\overline{C}(x)}\right), where C‾(x):=∏_t=1LC_t⋆(x)\overline{C}(x):=\prod\_{t=1}^{L}C\_{t}^{\star}(x) captures the coverage along the entire trajectory in our path-based notation, and N~\widetilde{N} refers to the number of complete responses sampled. To make the search-induced term at most δ\delta, the sample size N~\widetilde{N} needs to satisfy N~≳C‾(x)log⁡ ⁣(C‾(x)/δ)\widetilde{N}\gtrsim\overline{C}(x)\log\!\left({\overline{C}(x)}/{\delta}\right), which leads to the total computation budget B=LN~B=L\widetilde{N} on the order of B≳L C‾(x)log⁡ ⁣(C‾(x)/δ)B\gtrsim L\,\overline{C}(x)\log\!\left({\overline{C}(x)}/{\delta}\right). Whenever C⋆_min:=min⁡_1≤t≤LC_t⋆(x)>1C^{\star}\_{\text{min}}:=\min\_{1\leq t\leq L}C\_{t}^{\star}(x)>1, this budget can scale exponentially with the horizon length LL. This exponential scaling of the coverage-dependent term also appears in other test-time algorithms such as Best-of-NN Huang et al. (2025), where the regret bound takes the form of O(C‾(x)⋅log⁡(1/ε_RM(x))/N~+N~⋅ε_RM2(x)).O\left({\overline{C}(x)\cdot\log(1/\varepsilon\_{\mathrm{RM}}(x))}/{\widetilde{N}}+\sqrt{\widetilde{N}\cdot\varepsilon\_{\mathrm{RM}}^{2}(x)}\right). Similarly, the dependence on C‾(x)\overline{C}(x) can lead to exponentially large sample complexity as LL increases.

In contrast, our CF-Beam method controls the rare-failure term with a budget B=LbNB=LbN that satisfies Corollary 1, which scales only polynomially in LL (up to the beam-width factor bb). Hence, beam-pruning combined with β\beta-filtering effectively replaces the potentially exponential dependence on C‾(x)\overline{C}(x) with a polynomial dependence on LL in the search-induced component, yielding substantially reduced computation-cost scaling in long-horizon settings when the reward-model error is controlled.

The above comparison suggests that CF-Beam can be more favorable on hard instances. Compared to sequence-level parallel sampling methods, a key advantage of CF-Beam is that its search-induced guarantee scales with LC_max⁡⋆LC\_{\max}^{\star} rather than the product C‾(x)=∏_t=1LC_t⋆(x)\overline{C}(x)=\prod\_{t=1}^{L}C\_{t}^{\star}(x). When all C_t⋆(x)C\_{t}^{\star}(x) are close to 11 and LL is moderate, sequence-level methods such as Best-of-NN or Best-of-Majority may be more sample-efficient. In contrast, when some C_t⋆(x)C\_{t}^{\star}(x) are large, C‾(x)\overline{C}(x) grows rapidly, and CF-Beam becomes more favorable due to its dependence on LC_max⁡⋆LC\_{\max}^{\star} in the search-induced term. This qualitative trend is consistent with the empirical scaling study of Snell et al. (2024).

In this subsection, we establish the lower bound for the beam search algorithm.

For the CF-Beam algorithm, when b≥2b\geq 2, there exist hard instances with a sufficiently small constant κ′>0\kappa^{\prime}>0 and C⋆_t(x)=∣A∣/(1+∣A∣κ′)C^{\star}\_{t}(x)={|\mathcal{A}|}/({1+|\mathcal{A}|\kappa^{\prime}}) for all t∈[L]t\in[L], such that the regret can be lower bounded as Ω(C‾(x)ϵ_RM2(x)).\Omega\left(\sqrt{{\overline{C}(x)\epsilon\_{\text{RM}}^{2}(x)}}\right).

This lower bound matches the reward model error term in the upper bound in Theorem 2, demonstrating the minimax optimality of the regret with respect to the reward estimation error ϵ_RM2(x)\epsilon\_{\text{RM}}^{2}(x). To be specific, the lower bound is determined by (i) the difficulty of the problem C‾\overline{C} and (ii) the accuracy of the reward model. These two dependencies are necessary, since outputting the optimal response requires both the model’s ability to generate it and the reward model’s ability to identify it.

Di et al. (2025) established a general lower bound for the pass@k inference problem with a similar structure. However, their construction cannot be directly applied to our setting, as it does not satisfy Assumption 3. Our lower bound instead constructs a family of instances with an arbitrarily small prefix gap κ\kappa, under which it is information-theoretically difficult for any intermediate pruning strategy to eliminate all suboptimal prefixes with high probability before the final step. The incurred regret is then driven by the inability of the imperfect reward model to always select the true optimum among the surviving candidates.

4.5 Extension to Reward Model Free Setting

Section titled “4.5 Extension to Reward Model Free Setting”

In the case when a reliable reward model is unavailable (or severely noisy), finding the most probable path becomes a natural metric to identify the optimality of the path. To this end, we can derive a reward-model-free variant of CF-Beam by replacing the final selection rule, namely, instead of selecting the candidate with the largest estimated reward, we define Q_L(y):=∑_t=1Llog⁡π^(a_t∣s_t−1,x)Q\_{L}(y):=\sum\_{t=1}^{L}\log\hat{\pi}(a\_{t}\mid s\_{t-1},x) and output y^←arg⁡max⁡_y∈B_LQ_L(y),\hat{y}\leftarrow\arg\max\_{y\in\mathcal{B}\_{L}}Q\_{L}(y), i.e., the most “self-consistent” candidate within the final beam according to the intrinsic score Q_LQ\_{L}. This modification yields Algorithm 4.5, which can be viewed as a reward-model-free variant of CF-Beam in Algorithm 3.

The same filtered-score analysis controls this variant, with an additional comparison at the final step: the selected complete response must have the largest empirical likelihood, rather than merely remain in the beam. The proof is deferred to Appendix E.4.

Suppose y⋆y^{\star} is an optimal response with r⋆(x,y⋆)=1r^{\star}(x,y^{\star})=1, Assumption 3 holds, N≥48C_max⁡⋆κ2max⁡{2,log⁡(2C_max⁡⋆)}N\geq\frac{48C\_{\max}^{\star}}{\kappa^{2}}\max\{2,\log(2C\_{\max}^{\star})\}, and β_t=1/(2C_t⋆(x))\beta\_{t}=1/(2C\_{t}^{\star}(x)). The regret of Section 4.5 satisfies

Reg(x)\displaystyle\mathrm{Reg}(x)≤Lexp⁡ ⁣(−N8C_max⁡⋆)+2C_max⁡⋆bexp⁡ ⁣(−κ2N48C_max⁡⋆)+[C_max⁡⋆exp⁡ ⁣(−κ2N48C_max⁡⋆)]L.\displaystyle\leq L\exp\!\left(-\frac{N}{8C\_{\max}^{\star}}\right)+\frac{2C\_{\max}^{\star}}{b}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right)+\left[C\_{\max}^{\star}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right)\right]^{L}.

In particular, N≳(C_max⁡⋆/κ2)log⁡(eLC_max⁡⋆/δ)N\gtrsim(C\_{\max}^{\star}/\kappa^{2})\log(eLC\_{\max}^{\star}/\delta) suffices to achieve regret at most δ∈(0,1)\delta\in(0,1). No reward-model accuracy assumption is needed.

The first two terms account for filtering and intermediate beam pruning, and the last controls final selection by the empirical score. Since the guarantee does not involve reward-model error, the threshold multiplier can be fixed at 1/21/2 independently of LL. This removes the L2L^{2} factor from the filtering contribution to the sufficient per-prefix sample size in Corollary 1. The resulting total query budget is O~(LbC_max⁡⋆/κ2)\widetilde{O}(LbC\_{\max}^{\star}/\kappa^{2}), with only logarithmic dependence on LL in the per-prefix sample requirement.

(a) p = 0.01 p=0.01

(a) p = 0.01 p=0.01

(a) p = 0.01 p=0.01

(a) p = 0.01 p=0.01

(a) p = 0.01 p=0.01

We validate our theoretical findings by comparing two implementations of CF-Beam, Oracle CF-Beam and Empirical CF-Beam, against four baselines: Vanilla beam search, Best-of-NN (Huang et al., 2025), Majority Voting, and Best-of-Majority (Di et al., 2025). Oracle CF-Beam uses the threshold in Theorem 2, while Empirical CF-Beam sets β_t(s)=γmax⁡_a∈Aπ^(a∣s,x)\beta\_{t}(s)=\gamma\max\_{a\in\mathcal{A}}\hat{\pi}(a\mid s,x) with γ=0.3\gamma=0.3, without requiring the optimal-token probability. Following the RLVR setting, we evaluate each algorithm on a synthetic LLM simulator paired with a noisy reward model of error level ϵ_RM2=0.01\epsilon\_{\mathrm{RM}}^{2}=0.01, and report the accuracy of identifying the optimal response. Baseline descriptions, the experimental protocol, simulator construction, and parameter setups are deferred to Appendix H. We also evaluate Empirical CF-Beam on a pretrained LLM in Appendix H.2.

Figure 3 compares the algorithms under varying total budgets across three difficulty levels, parameterized by the per-rollout success probability p∈{0.01,0.05,0.3}p\in\{0.01,0.05,0.3\} (larger pp = easier). CF-Beam algorithms achieve the largest advantage in the hardest setting (p=0.01p=0.01, Figure 2(a)), where sparse coverage and tail fluctuations are most pronounced—precisely the regime that amplifies the failure mode of Theorem 1. As pp increases (Figures 2(b)–2(c)), the gap narrows and Vanilla-Beam catches up under sufficiently large budgets. This trend mirrors the relationship between C‾\overline{C} and C⋆_max⁡C^{\star}\_{\max} shown in each panel: as pp grows, C‾\overline{C} approaches C⋆_max⁡C^{\star}\_{\max}, reducing CF-Beam’s edge. These observations align with our theoretical discussion in Section 4.3.

Figure 3 reports accuracy as the horizon LL grows, with per-step success probability 0.80.8. Sequence-level baselines (Best-of-NN, Best-of-Majority, Majority Voting) degrade rapidly, while beam-based methods remain robust, and CF-Beam consistently attains the highest accuracy. This is consistent with our theory: CF-Beam’s dominant sample-complexity term scales only polynomially in LL, whereas sequence-level methods can suffer exponential dependence on LL.

In this section, we focus on related work in theoretical studies of test-time scaling. Additional related work is deferred to Appendix A.

Despite extensive literature on test-time computing (Wang et al., 2022; Kang et al., 2025; Jinnai et al., 2024; Ichihara et al., 2025; Wei et al., 2022; Ghosal et al., 2025; Liu et al., 2025a), especially beam search (Xu et al., 2025; Xie et al., 2023; Zhu et al., 2024), theoretical analyses have only emerged recently. Hu et al. (2024) decomposed the statistical error of Chain-of-Thought (CoT) estimators and showed it vanishes with more demonstrations. Huang et al. (2024) analyzed Best-of-N and showed that larger NN does not necessarily improve performance. Cordero-Encinar and Duncan (2025) and Aeeneh et al. (2024) established convergence rates for Majority Voting, while Di et al. (2025) proposed Best-of-Majority, which selects the top-kk response from a set of highly self-consistent candidates with non-degrading sample complexity. Yu et al. (2025c) combined Best-of-N with a rewind-and-repeat strategy (Kim et al., 2024; Beirami et al., 2024) to derive stronger guarantees.

The existing theoretical studies on beam search methods remains rather limited. Meister et al. (2020) characterized the implicit objective optimized by beam search, and Fadeeva et al. (2025) analyzed beam search for self-consistency-based uncertainty quantification. To our knowledge, no prior work studies the test-time scaling guarantees of beam search; Our work fills this research gap and provides the first test-time computing guarantee for beam search type algorithms.

This paper studied test-time guarantees for beam search in LLM reasoning, where model likelihood scores intermediate trajectories and an external reward model is queried only after full responses are generated. We showed that vanilla beam search can be theoretically suboptimal, and proposed Confidence-Filtered Beam Search to filter low self-consistency tokens before beam selection. CF-Beam improves the search-induced scaling over sequence-level methods on hard and long-horizon instances. The limitation is that this advantage relies on prefix alignment between likelihood and final reward; otherwise, reward-optimal prefixes may be pruned before final reward evaluation. Future work includes prompt-adaptive choices between beam-based and sequence-level methods, and settings with external rewards or process verifiers available before full responses are generated.

  • Aeeneh et al. (2024) S. Aeeneh, N. Zlatanov, and J. Yu New bounds on the accuracy of majority voting for multiclass classification. IEEE Transactions on Neural Networks and Learning Systems 36 (4), pp. 6014–6028. Cited by: Appendix A, §4.1, §6.
  • Aggarwal et al. (2023) P. Aggarwal, A. Madaan, Y. Yang, et al. Let’s sample step by step: adaptive-consistency for efficient reasoning and coding with llms. arXiv preprint arXiv:2305.11860. Cited by: Appendix A.
  • Beirami et al. (2024) A. Beirami, A. Agarwal, J. Berant, A. D’Amour, J. Eisenstein, C. Nagpal, and A. T. Suresh Theoretical guarantees on the best-of-n alignment policy. arXiv preprint arXiv:2401.01879. Cited by: §6.
  • Chen et al. (2025) F. Chen, Z. Jia, A. Rakhlin, and T. Xie Outcome-based online reinforcement learning: algorithms and fundamental limits. arXiv preprint arXiv:2505.20268. Cited by: §2.
  • Chen et al. (2023) X. Chen, R. Aksitov, U. Alon, J. Ren, K. Xiao, P. Yin, S. Prakash, C. Sutton, X. Wang, and D. Zhou Universal self-consistency for large language model generation. arXiv preprint arXiv:2311.17311. Cited by: Appendix A.
  • Cordero-Encinar and Duncan (2025) P. Cordero-Encinar and A. B. Duncan Certified self-consistency: statistical guarantees and test-time training for reliable reasoning in llms. arXiv preprint arXiv:2510.17472. Cited by: Appendix A, §4.1, §4.1, §6.
  • Di et al. (2025) Q. Di, K. Ji, X. Li, H. Zhao, and Q. Gu Best-of-majority: minimax-optimal strategy for pass@ kk inference scaling. arXiv preprint arXiv:2510.03199. Cited by: Appendix A, §H.1, item 2., §1, §2, §3, §4.1, §4.3, §4.4, §5, §6.
  • Duan et al. (2025) K. Duan, Z. Liu, X. Mao, T. Pang, C. Chen, Q. Chen, M. Q. Shieh, and L. Dou Efficient process reward model training via active learning. arXiv preprint arXiv:2504.10559. Cited by: §4.1.
  • Fadeeva et al. (2025) E. Fadeeva, M. Goloburda, A. Rubashevskii, R. Vashurin, A. Shelmanov, P. Nakov, M. Sachan, and M. Panov Don’t throw away your beams: improving consistency-based uncertainties in llms via beam search. arXiv preprint arXiv:2512.09538. Cited by: Appendix A, Appendix A, §1, §6.
  • Feng et al. (2025) A. Feng, M. Alonso, and A. Odonnat Optimal self-consistency for efficient reasoning with large language models. arXiv preprint arXiv:2511.12309. Cited by: Appendix A, §4.1.
  • Feng et al. (2023) X. Feng, Z. Wan, M. Wen, S. M. McAleer, Y. Wen, W. Zhang, and J. Wang Alphazero-like tree-search can guide large language model decoding and training. arXiv preprint arXiv:2309.17179. Cited by: §B.3.
  • Ghosal et al. (2025) S. S. Ghosal, S. Chakraborty, A. Reddy, Y. Lu, M. Wang, D. Manocha, F. Huang, M. Ghavamzadeh, and A. S. Bedi Does thinking more always help? understanding test-time scaling in reasoning models. arXiv preprint arXiv:2506.04210. Cited by: Appendix A, §6.
  • He et al. (2025) S. He, T. Xia, X. Zhou, and H. Wei Response-level rewards are all you need for online reinforcement learning in llms: a mathematical perspective. arXiv preprint arXiv:2506.02553. Cited by: §2.
  • Hu et al. (2024) X. Hu, F. Zhang, S. Chen, and Z. Yang Unveiling the statistical foundations of chain-of-thought prompting methods. arXiv preprint arXiv:2408.14511. Cited by: Appendix A, §6.
  • Huang et al. (2024) A. Huang, A. Block, D. J. Foster, D. Rohatgi, C. Zhang, M. Simchowitz, J. T. Ash, and A. Krishnamurthy Self-improvement in language models: the sharpening mechanism. arXiv preprint arXiv:2412.01951. Cited by: §B.2, §6.
  • Huang et al. (2025) A. Huang, A. Block, Q. Liu, N. Jiang, A. Krishnamurthy, and D. J. Foster Is best-of-n the best of them? coverage, scaling, and optimality in inference-time alignment. arXiv preprint arXiv:2503.21878. Cited by: Appendix A, §H.1, item 2., §1, §2, §2, §4.1, §4.3, §5.
  • Ichihara et al. (2025) Y. Ichihara, Y. Jinnai, T. Morimura, K. Ariu, K. Abe, M. Sakamoto, and E. Uchibe Evaluation of best-of-n sampling strategies for language model alignment. arXiv preprint arXiv:2502.12668. Cited by: Appendix A, §1, §6.
  • Jinnai et al. (2024) Y. Jinnai, T. Morimura, K. Ariu, and K. Abe Regularized best-of-n sampling to mitigate reward hacking for language model alignment. In ICML 2024 Workshop on Models of Human Feedback for AI Alignment, Cited by: Appendix A, §1, §6.
  • Joag-Dev and Proschan (1983) K. Joag-Dev and F. Proschan Negative association of random variables with applications. The Annals of Statistics, pp. 286–295. Cited by: Appendix F.
  • Kang et al. (2025) Z. Kang, X. Zhao, and D. Song Scalable best-of-n selection for large language models via self-certainty. arXiv preprint arXiv:2502.18581. Cited by: Appendix A, §6.
  • Kim et al. (2024) M. Kim, T. Thonet, J. Rozen, H. Lee, K. Jung, and M. Dymetman Guaranteed generation from large language models. arXiv preprint arXiv:2410.06716. Cited by: §6.
  • Lee et al. (2025) H. Lee, S. Oh, J. Kim, J. Shin, and J. Tack Revise: learning to refine at test-time via intrinsic self-verification. arXiv preprint arXiv:2502.14565. Cited by: Appendix A.
  • Lightman et al. (2023) H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe Let’s verify step by step. In The Twelfth International Conference on Learning Representations, Cited by: §1.
  • Liu et al. (2025a) X. Liu, T. Liang, Z. He, J. Xu, W. Wang, P. He, Z. Tu, H. Mi, and D. Yu Trust, but verify: a self-verification approach to reinforcement learning with verifiable rewards. arXiv preprint arXiv:2505.13445. Cited by: Appendix A, Appendix A, §1, §6.
  • Liu et al. (2025b) Z. Liu, Y. Chen, M. Shoeybi, B. Catanzaro, and W. Ping Acemath: advancing frontier math reasoning with post-training and reward modeling. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 3993–4015. Cited by: §H.2.
  • Meister et al. (2020) C. Meister, R. Cotterell, and T. Vieira If beam search is the answer, what was the question?. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP 2020, Online, November 16-20, 2020, pp. 2173–2185. Cited by: Appendix A, §1, §6.
  • Pinelis (2021) I. Pinelis Best lower bound on the probability of a binomial exceeding its expectation. Statistics & Probability Letters 179, pp. 109224. Cited by: Appendix G.
  • Setlur et al. (2024) A. Setlur, C. Nagpal, A. Fisch, X. Geng, J. Eisenstein, R. Agarwal, A. Agarwal, J. Berant, and A. Kumar Rewarding progress: scaling automated process verifiers for llm reasoning. arXiv preprint arXiv:2410.08146. Cited by: §1.
  • Snell et al. (2024) C. Snell, J. Lee, K. Xu, and A. Kumar Scaling llm test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314. Cited by: §4.3.
  • Stahlberg and Byrne (2019) F. Stahlberg and B. Byrne On nmt search errors and model errors: cat got your tongue?. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp. 3356–3362. Cited by: Remark 3.
  • Sun et al. (2025a) Y. Sun, Y. Liang, Z. Zhang, and J. Teng Theoretical modeling of llm self-improvement training dynamics through solver-verifier gap. arXiv preprint arXiv:2507.00075. Cited by: Appendix A.
  • Sun et al. (2025b) Z. Sun, Y. Guo, Y. Lin, X. Chen, Q. Qi, X. Tang, J. Wen, et al. Uncertainty and influence aware reward model refinement for reinforcement learning from human feedback. In The Thirteenth International Conference on Learning Representations, Cited by: §4.1.
  • Team et al. (2023) G. Team, R. Anil, S. Borgeaud, J. Alayrac, J. Yu, R. Soricut, J. Schalkwyk, A. M. Dai, A. Hauth, K. Millican, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805. Cited by: §1.
  • Wang et al. (2022) X. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, S. Narang, A. Chowdhery, and D. Zhou Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171. Cited by: Appendix A, §1, §6.
  • Wang et al. (2026) Z. Wang, R. Wang, Y. Wu, Y. Yu, P. Zhang, S. Sun, Y. Yang, and Y. Li Reward modeling from natural language human feedback. arXiv preprint arXiv:2601.07349. Cited by: §4.1.
  • Wei et al. (2022) J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35, pp. 24824–24837. Cited by: Appendix A, §6.
  • Wu et al. (2024) Y. Wu, Z. Sun, S. Li, S. Welleck, and Y. Yang Inference scaling laws: an empirical analysis of compute-optimal inference for problem-solving with language models. arXiv preprint arXiv:2408.00724. Cited by: §B.3.
  • Xie et al. (2023) Y. Xie, K. Kawaguchi, Y. Zhao, J. X. Zhao, M. Kan, J. He, and M. Xie Self-evaluation guided beam search for reasoning. Advances in Neural Information Processing Systems 36, pp. 41618–41650. Cited by: Appendix A, Appendix A, §1, §3, §6.
  • Xu et al. (2025) Y. Xu, S. Ren, and J. Zhang Collaborative beam search: enhancing llm reasoning via collective consensus. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 11409–11421. Cited by: Appendix A, §1, §6.
  • Yang et al. (2025) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §H.2.
  • Yao et al. (2023) S. Yao, D. Yu, J. Zhao, I. Shafran, T. Griffiths, Y. Cao, and K. Narasimhan Tree of thoughts: deliberate problem solving with large language models. Advances in neural information processing systems 36, pp. 11809–11822. Cited by: §B.3.
  • Yu et al. (2025a) F. Yu, Y. Li, and B. Wang Scaling flaws of verifier-guided search in mathematical reasoning. arXiv preprint arXiv:2502.00271. Cited by: Appendix A, Appendix A, §1, §3.
  • Yu et al. (2025b) Y. Yu, Z. Chen, A. Zhang, L. Tan, C. Zhu, R. Y. Pang, Y. Qian, X. Wang, S. Gururangan, C. Zhang, et al. Self-generated critiques boost reward modeling for language models. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 11499–11514. Cited by: §4.1.
  • Yu et al. (2025c) Y. Yu, Q. Di, Q. Gu, and D. Zhou On the limits of test-time compute: sequential reward filtering for better inference. arXiv preprint arXiv:2512.04558. Cited by: Appendix A, §6.
  • Zaharia et al. (2024) M. Zaharia, O. Khattab, L. Chen, J. Q. Davis, H. Miller, C. Potts, J. Zou, M. Carbin, J. Frankle, N. Rao, and A. Ghodsi The shift from models to compound ai systems. Note: https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/ Cited by: §1.
  • Zhao et al. (2025) X. Zhao, Z. Kang, A. Feng, S. Levine, and D. Song Learning to reason without external rewards. arXiv preprint arXiv:2505.19590. Cited by: Appendix A.
  • Zhu et al. (2024) T. Zhu, K. Zhang, J. Xie, and Y. Su Deductive beam search: decoding deducible rationale for chain-of-thought reasoning. arXiv preprint arXiv:2401.17686. Cited by: Appendix A, §1, §6.

Table 1: Summary of Notations Used in the Paper

NotationDescription
$\pi_{\text{ref}}(\cdotx)$
LLResponse length (horizon) of y=(a_1,…,a_L)y=(a\_{1},\ldots,a\_{L}).
aaAn action/token from the vocabulary A\mathcal{A}.
s_ts\_{t}Prefix (trajectory) up to step tt: s_t=(a_1,…,a_t)s\_{t}=(a\_{1},\ldots,a\_{t}).
bbBeam width, i.e., the number of trajectories retained at each step.
BBTest-time compute budget, i.e., the total number of samples drawn from π_ref\pi\_{\mathrm{ref}}.
NNNumber of samples drawn per prefix s_t∈B_ts\_{t}\in\mathcal{B}\_{t} at each step.
D_t\mathcal{D}\_{t}Candidate set after confidence filtering at step tt.
B_t\mathcal{B}\_{t}Beam set at step tt, consisting of at most bb selected prefixes (i.e., $
Q(s_t)Q(s\_{t})Estimated score of prefix s_ts\_{t}, e.g., Q(s_t)=∑_i=1tlog⁡π^(a_i∣s_i−1,x)Q(s\_{t})=\sum\_{i=1}^{t}\log\hat{\pi}(a\_{i}\mid s\_{i-1},x).
κ\kappaPrefix gap parameter between optimal and suboptimal trajectories; see Assumption 3.
ϵ_RM2\epsilon\_{\mathrm{RM}}^{2}Reward-model estimation error; see Assumption 1.
ϵ_opt\epsilon\_{\mathrm{opt}}Reward-model error on the optimal response; see Assumption 2.
C_t⋆(x)C\_{t}^{\star}(x), C_max⁡⋆(x)C\_{\max}^{\star}(x), C‾(x)\overline{C}(x)Coverage coefficients; see Definition 1.
β_t\beta\_{t}Confidence-filtering threshold at step tt.

Notations. We use Bin(N,p)\mathrm{Bin}(N,p) to denote the binomial distribution with parameters N∈N+N\in\mathbb{N}^{+} and p∈[0,1]p\in[0,1].

Beyond post-training scaling laws, recent work has increasingly focused on scaling computation at inference time to improve the quality of a fixed base model. Existing work mainly falls into two approaches: parallel and sequential test-time computation. For parallel methods, the compute budget is used to generate multiple candidate trajectories simultaneously, increasing the probability of finding a high-quality response. Existing such type of methods include Best-of-N (BoN) (Huang et al., 2025; Jinnai et al., 2024; Ichihara et al., 2025), majority voting (Wang et al., 2022; Kang et al., 2025), and beam search (Xie et al., 2023; Yu et al., 2025a). In sequential test-time computation, computation is allocated adaptively through iterative refinement or search, using methods like Chain-of-Thought (Wei et al., 2022; Ghosal et al., 2025; Hu et al., 2024) and self-verification (Liu et al., 2025a; Lee et al., 2025). Some recent studies aimed to bridge the gap between existing test-time computation methods. Di et al. (2025) proposes Best-of-Majority, which used majority voting as a filtering mechanism and an external reward model to select the final answer. Yu et al. (2025c) included a sequential technique for BoN sampling. The beam search method we study here mainly falls into the first category, since candidates are generated in parallel rather than sequentially.

Beam search algorithms have been widely used as a decoding strategy for large language models. Xu et al. (2025) and Xie et al. (2023) mainly used self-consistency as the evaluation metric for top-bb selection; Zhu et al. (2024) introduced beam search to increase the successful rate of chain of thought; Yu et al. (2025a) empirically compared beam search algorithms with the methods like BoN and majority voting, and pointed out the weakness and strengths of beam search-based algorithms. Despite the empirical success of beam search and its many variants, there has been rather limited theoretical studies of beam search algorithms. Meister et al. (2020) studied what implicit objective function beam search optimizes. A recent work Fadeeva et al. (2025) studied beam search for consistency-based uncertainty quantification and provided a theoretical comparison between beam-based candidate generation and multinomial sampling estimators. To our best knowledge, there has not been any work theoretically analyzing the test-time scaling performance of beam search. Our work provides the first test-time computing guarantee for beam-search decoding algorithms in modern LLM settings.

Self-consistency improves reasoning by sampling multiple independent solution paths and selecting the answer that appears most consistently across them. Existing works have demonstrated the effectiveness of self-consistency, when it is used in self-evaluated post-training (Fadeeva et al., 2025; Liu et al., 2025a; Zhao et al., 2025; Sun et al., 2025a) and test-time computing (Aggarwal et al., 2023; Chen et al., 2023). Cordero-Encinar and Duncan (2025); Feng et al. (2025) and Aeeneh et al. (2024) provided theoretical analysis of the convergence rate of self-consistency methods. Our CF-Beam is related to self-consistency methods in that it uses a self-consistency score to prune beams at intermediate steps.

Appendix B Discussion of Assumptions and Computational Costs

Section titled “Appendix B Discussion of Assumptions and Computational Costs”

We clarify how response uniqueness and prefix competitiveness enter our guarantees, and distinguish the sampling budget from the cost of maintaining and processing candidate prefixes.

Assumption 2 makes the optimal response unique to simplify the path-based presentation. The analysis can accommodate several reward-optimal responses by tracking one that satisfies the required prefix and reward-model error conditions. As seen in the following remark.

Remark 1 (Multiple reasoning trajectories leading to the same answer).
Section titled “Remark 1 (Multiple reasoning trajectories leading to the same answer).”

Multiple reasoning trajectories yielding the same correct answer are a special case of nonunique reward-optimal responses. Let Y⋆(x):={y∈AL:r⋆(x,y)=1}\mathcal{Y}^{\star}(x):=\{y\in\mathcal{A}^{L}:r^{\star}(x,y)=1\} be nonempty, and fix an optimal witness y†=(a_1†,…,a_L†)∈Y⋆(x)y^{\dagger}=(a\_{1}^{\dagger},\ldots,a\_{L}^{\dagger})\in\mathcal{Y}^{\star}(x) with prefixes s_t†:=a_1:t†s\_{t}^{\dagger}:=a\_{1:t}^{\dagger}. Suppose Assumption 3 holds with s_t⋆s\_{t}^{\star} replaced by s_t†s\_{t}^{\dagger}, and ∣r⋆(x,y†)−r^(x,y†)∣≤ϵ_opt(x)|r^{\star}(x,y^{\dagger})-\hat{r}(x,y^{\dagger})|\leq\epsilon\_{\mathrm{opt}}(x). The prefix gap must hold against every distinct competing prefix, including prefixes of other correct trajectories.

Define C_t†(x):=1/π_ref(a_t†∣s_t−1†,x)C\_{t}^{\dagger}(x):=1/\pi\_{\mathrm{ref}}(a\_{t}^{\dagger}\mid s\_{t-1}^{\dagger},x), C_max⁡†(x):=max⁡_tC_t†(x)C\_{\max}^{\dagger}(x):=\max\_{t}C\_{t}^{\dagger}(x), and C‾†(x):=∏_t=1LC_t†(x)\overline{C}^{\dagger}(x):=\prod\_{t=1}^{L}C\_{t}^{\dagger}(x). With oracle thresholds β_t=(1−1/L)/C_t†(x)\beta\_{t}=(1-1/L)/C\_{t}^{\dagger}(x), the guarantees in Theorem 2 and Corollary 1 extend under Assumption 1 and the same sample-size conditions, with the optimal path and its coverage coefficients replaced by those of the witness. The filtering and ranking arguments track this path, and, on its survival event, the selected response y^\hat{y} satisfies r^(x,y^)≥r^(x,y†)\hat{r}(x,\hat{y})\geq\hat{r}(x,y^{\dagger}), so the reward-error argument applies with y†y^{\dagger} as an optimal comparator. This extension does not exploit the aggregate probability mass or shared-prefix structure of all correct trajectories; sharper bounds that do so remain an interesting direction.

B.2 Prefix Competitiveness and Its Relaxation

Section titled “B.2 Prefix Competitiveness and Its Relaxation”

Assumption 3 formalizes alignment between the likelihood of an optimal prefix and the final outcome reward. A correct trajectory can be difficult to sample in full because of limited token-level coverage or a long horizon, while its prefixes still have a likelihood advantage over competing prefixes. This is the regime in which likelihood-based pruning can exploit token-level coverage without sampling the entire trajectory independently.

When the base policy instead assigns higher likelihood to suboptimal prefixes, intermediate pruning can irreversibly discard the optimal trajectory. Proposition 1 exhibits such an instance with a constant failure probability for every sample size. Thus, increasing the sampling budget alone cannot compensate for arbitrary misalignment between policy likelihood and outcome reward. Sequence-level methods such as Best-of-NN or majority voting may be more competitive in these regimes because they postpone selection until complete responses are available (Huang et al., 2024); the relative benefit of beam search depends on the instance.

Remark 2 (Relaxing prefix competitiveness).
Section titled “Remark 2 (Relaxing prefix competitiveness).”

For reward-based CF-Beam, the gap condition can allow a limited number of exceptions. Suppose that, at each depth, at most k−1k-1 distinct competing prefixes violate the gap inequality relative to the optimal prefix, where 1≤k≤b1\leq k\leq b, and every other competing prefix satisfies the same lower bound κ\kappa. If the optimal prefix passes filtering but is pruned, at least b−k+1b-k+1 competitors satisfying the gap inequality must match or exceed its empirical score. Restricting the probability-mass sum in Lemma 5 to these competitors gives the same ranking bound with bb replaced by b−k+1b-k+1. The filtering and selected-output bounds remain unchanged, so Theorem 2 extends with this replacement in the ranking term. We use the top-1 condition in the main text for simplicity. The reward-free final selection in Corollary 2 still requires the top-1 gap: a higher-likelihood suboptimal response could otherwise be selected even with exact scores.

B.3 Sampling Budget and Candidate Processing

Section titled “B.3 Sampling Budget and Candidate Processing”

At each depth, Algorithm 3 samples NN next tokens for each active prefix, applies confidence filtering, and then retains at most bb candidate prefixes. Consequently, ∣B_t∣≤b|\mathcal{B}\_{t}|\leq b and, since the initial beam contains only the empty prefix, the total query budget satisfies B(x)≤N+(L−1)bNB(x)\leq N+(L-1)bN. Before top-bb pruning, the candidate pool at depth tt contains at most N∣B_t−1∣≤bNN|\mathcal{B}\_{t-1}|\leq bN children; confidence filtering can only shrink this pool and introduces no additional branching. Thus, for fixed NN and bb, both the number of sampling queries and the number of processed candidates grow linearly in LL, whereas the full output space has size ∣A∣L|\mathcal{A}|^{L}, which makes exhaustive search intractable (Stahlberg and Byrne, 2019).

These bounds count token-level policy draws, as defined in Section 2. They are not direct measures of neural-network forward passes, wall-clock latency, or KV-cache memory. For instance, when the model is run locally, the NN draws at a common prefix can be generated from a single forward pass, whereas under pure API access each draw may constitute a separate call; actual costs further depend on batching and cache management. Comparisons with tree-search methods such as Tree-of-Thoughts or MCTS-based decoding (Yao et al., 2023; Feng et al., 2023; Wu et al., 2024) therefore require specifying both the search configuration and the cost measure.

We consider the following LLM instance, where 50≤C_i⋆(x):=C⋆(x)≪(∣A∣)1/450\leq C\_{i}^{\star}(x):=C^{\star}(x)\ll{(|\mathcal{A}|)^{1/4}}. For time step t=1t=1, there exists a unique optimal action a⋆_1a^{\star}\_{1} with

π_ref(a_1⋆∣x)=1C⋆(x),\pi\_{\text{ref}}(a\_{1}^{\star}\mid x)=\frac{1}{C^{\star}(x)},

and all other actions a′∈A\{a_1⋆}a^{\prime}\in\mathcal{A}\backslash\{a\_{1}^{\star}\} have equal probability

$$\pi_{\text{ref}}(a^{\prime}x)=\frac{1-1/C^{\star}(x)}{

For time step t=2t=2, conditioned on the optimal prefix a_1⋆a\_{1}^{\star}, the next-step distribution satisfies

$$\pi_{\text{ref}}(a_{2}^{\star}\mid a_{1}^{\star},x)=\frac{1}{C^{\star}(x)},\quad\pi_{\text{ref}}(a_{2}^{\prime}\mid a_{1}^{\star},x)=\frac{1-1/C^{\star}(x)}{\mathcal{A}

where a_2′∈A\{a_2⋆}a\_{2}^{\prime}\in\mathcal{A}\backslash\{a\_{2}^{\star}\}. Otherwise, if conditioned on any suboptimal prefix a_1′≠a_1⋆a\_{1}^{\prime}\neq a\_{1}^{\star}, there exist two actions a⋆_2,1a^{\star}\_{2,1} and a_2,2⋆a\_{2,2}^{\star}, such that

π_ref(a_2,1⋆∣a_1′,x)=π_ref(a_2,2⋆∣a_1′,x)=12,π_ref(a_2′∣a_1′,x)=0,\pi\_{\text{ref}}(a\_{2,1}^{\star}\mid a\_{1}^{\prime},x)=\pi\_{\text{ref}}(a\_{2,2}^{\star}\mid a\_{1}^{\prime},x)=\frac{1}{2},\quad\pi\_{\text{ref}}(a\_{2}^{\prime}\mid a\_{1}^{\prime},x)=0,

where a_2′∈A\{a_2,1⋆,a_2,2⋆}a\_{2}^{\prime}\in\mathcal{A}\backslash\{a\_{2,1}^{\star},a\_{2,2}^{\star}\}. Notice that this constructed π_ref\pi\_{\text{ref}} does not violate our Assumption 3, since π_ref(s⋆_2)=1/(C⋆(x))2≥1/(2(∣A∣−1))>π_ref(s_2′)\pi\_{\text{ref}}(s^{\star}\_{2})=1/(C^{\star}(x))^{2}\geq 1/(2(|\mathcal{A}|-1))>\pi\_{\text{ref}}(s\_{2}^{\prime}) for any s_2′≠s⋆_2s\_{2}^{\prime}\neq s^{\star}\_{2}. For time step t>2t>2, we let π_ref(⋅∣s_t−1,x)\pi\_{\text{ref}}(\cdot|s\_{t-1},x) be any distribution such that Assumption 3 holds.

Under this case, we show that the probability that the optimal prefix will not even be sampled is at least 1/21/2:

Pr⁡(y⋆ is eliminated)\displaystyle\Pr(y^{\star}\text{ is eliminated})≥Pr⁡(y⋆ is eliminated in the first round)\displaystyle\geq\Pr(y^{\star}\text{ is eliminated in the first round})
------------
≥(1−1C⋆(x))N≥(4950)34>0.5.\displaystyle\geq\left(1-\frac{1}{C^{\star}(x)}\right)^{N}\geq\left(\frac{49}{50}\right)^{34}>0.5.

Before proceeding, we define the following events. Let E_1E\_{1} denote the event that the optimal trajectory s⋆s^{\star} is eliminated in the first round, and let E_2E\_{2} denote the event that s⋆s^{\star} is eliminated in the second round. Let B_1\mathcal{B}\_{1} be the top-bb beam (candidate set) retained after the first round, and define B_⋆  :=  { ∣B_1∣=b}B\_{\star}\;:=\;\bigl\{\,|\mathcal{B}\_{1}|=b\}, which implies the event that we sample at least bb distinct trajectories from xx.

By the definition of our events, we have

Pr⁡(s⋆ is eliminated)\displaystyle\Pr(s^{\star}\text{ is eliminated})$\displaystyle=\Pr(E_{1})+\Pr(E_{1}^{c})\Pr(E_{2}E_{1}^{c})$
------------
$\displaystyle\geq\Pr(E_{1})+\Pr(E_{1}^{c})\Pr((E_{2}\cap B_{\star})E_{1}^{c})$
------------
$\displaystyle=\Pr(E_{1})+\Pr(E_{1}^{c})\Pr(B_{\star}E_{1}^{c})\Pr(E_{2}
------------
$\displaystyle\geq\Pr(E_{1})\Pr(B_{\star}E_{1}^{c})\Pr(E_{2}
------------
$\displaystyle\quad+(1-\Pr(E_{1}))\Pr(B_{\star}E_{1}^{c})\Pr(E_{2}
------------
$\displaystyle=\Pr(B_{\star}E_{1}^{c})\Pr(E_{2}

We next bound each of the term correspondingly.

2.1 Bounding Pr⁡(B_⋆∣E_1c)\Pr(B\_{\star}\mid E\_{1}^{c}).

Section titled “2.1 Bounding Pr⁡(B_⋆∣E_1c)\Pr(B\_{\star}\mid E\_{1}^{c})Pr(B_⋆∣E_1c).”

Let

K:=#{samples equal a_1⋆}∼Bin(N,p),p:=π_ref(a_1⋆∣x)=1/C⋆.K:=\#\{\text{samples equal }a\_{1}^{\star}\}\sim\mathrm{Bin}(N,p),\qquad p:=\pi\_{\text{ref}}(a\_{1}^{\star}\mid x)=1/C^{\star}.

We first justify that suboptimal actions are (essentially) all distinct when the action space is large. Conditioned on KK, there are N−KN-K suboptimal draws. Since by our construction, the suboptimal mass is sufficiently spread out (e.g., max⁡_a≠a_1⋆π_ref(a∣x)≤1/(∣A∣−1)\max\_{a\neq a\_{1}^{\star}}\pi\_{\text{ref}}(a\mid x)\leq 1/(|\mathcal{A}|-1)), then by a union bound,

$$\Pr!\left(\exists,\text{a repeated suboptimal action}\mid K\right);\leq;\binom{N-K}{2}\max_{a\neq a_{1}^{\star}}\pi_{\text{ref}}(a\mid x);\leq;\frac{N(N-1)}{2(\mathcal{A}

Hence, under the regime ∣A∣≫N2|\mathcal{A}|\gg N^{2}, the above collision probability is negligible. In the sequel, we work on this high-probability “no-collision” event, so that the N−KN-K suboptimal samples correspond to N−KN-K distinct suboptimal actions.

Step 1: Relating E_1cE\_{1}^{c} and KK. Under the no-collision condition, every suboptimal action appears at most once, and hence has empirical frequency 1/N1/N. If K≥2K\geq 2, then a_1⋆a\_{1}^{\star} appears at least twice and thus has empirical frequency at least 2/N2/N, strictly larger than any suboptimal action. Therefore, a_1⋆a\_{1}^{\star} must be retained in the top-bb set after the first round, i.e.,

{K≥2}⊆E_1c.\{K\geq 2\}\subseteq E\_{1}^{c}.

Step 2: Characterizing B_⋆cB\_{\star}^{c}. Recall B_⋆B\_{\star} is the event that the first-round beam B_1\mathcal{B}\_{1} is fully populated by bb distinct candidates. On the no-collision event, there are exactly N−KN-K distinct suboptimal candidates available. Since one slot is occupied by the optimal prefix (on E_1cE\_{1}^{c}), the beam fails to be fully populated only if there are fewer than b−1b-1 distinct suboptimal candidates, namely,

B_⋆c  ⊆  { N−K<b−1 }.B\_{\star}^{c}\;\subseteq\;\{\,N-K<b-1\,\}.

Consequently,

Pr⁡(B_⋆c∣E_1c)=Pr⁡(B_⋆c∩E_1c)Pr⁡(E_1c)  ≤  Pr⁡(N−K<b−1)Pr⁡(E_1c)  ≤  Pr⁡(N−K<b−1)Pr⁡(K≥2),\Pr(B\_{\star}^{c}\mid E\_{1}^{c})=\frac{\Pr(B\_{\star}^{c}\cap E\_{1}^{c})}{\Pr(E\_{1}^{c})}\;\leq\;\frac{\Pr(N-K<b-1)}{\Pr(E\_{1}^{c})}\;\leq\;\frac{\Pr(N-K<b-1)}{\Pr(K\geq 2)},

where the last inequality follows because {K≥2}⊆E_1c\{K\geq 2\}\subseteq E\_{1}^{c}.

Step 3: Bounding the ratio. If b≤N/2b\leq N/2, then N−K<b−1N-K<b-1 implies K≥N−b+2≥⌈N/2⌉K\geq N-b+2\geq\lceil N/2\rceil. Hence

Pr⁡(B_⋆c∣E_1c)≤Pr⁡(K≥⌈N/2⌉)Pr⁡(K≥2).\Pr(B\_{\star}^{c}\mid E\_{1}^{c})\leq\frac{\Pr(K\geq\lceil N/2\rceil)}{\Pr(K\geq 2)}.

For the numerator, since p<1p<1,

Pr⁡(K≥⌈N/2⌉)=∑_k=⌈N/2⌉N(Nk)pk(1−p)N−k≤∑_k=⌈N/2⌉N(Nk)pk≤pN/2∑_k=0N(Nk)=2NpN/2.\Pr(K\geq\lceil N/2\rceil)=\sum\_{k=\lceil N/2\rceil}^{N}\binom{N}{k}p^{k}(1-p)^{N-k}\leq\sum\_{k=\lceil N/2\rceil}^{N}\binom{N}{k}p^{k}\leq p^{N/2}\sum\_{k=0}^{N}\binom{N}{k}=2^{N}p^{N/2}.

For the denominator, we lower bound Pr⁡(K≥2)\Pr(K\geq 2) by a single term:

Pr⁡(K≥2)≥Pr⁡(K=2)=(N2)p2(1−p)N−2.\Pr(K\geq 2)\geq\Pr(K=2)=\binom{N}{2}p^{2}(1-p)^{N-2}.

Combining the above together yields

Pr⁡(B_⋆c∣E_1c)≤2NpN/2(N2)p2(1−p)N−2=2N(N2)⋅pN2−2(1−p)N−2=:f(N,p).\Pr(B\_{\star}^{c}\mid E\_{1}^{c})\leq\frac{2^{N}p^{N/2}}{\binom{N}{2}p^{2}(1-p)^{N-2}}=\frac{2^{N}}{\binom{N}{2}}\cdot\frac{p^{\frac{N}{2}-2}}{(1-p)^{N-2}}=:f(N,p).

In particular, for any fixed p≤1/50p\leq 1/50, f(N,p)f(N,p) is monotonically decreasing with NN. For any fixed NN, f(N,p)f(N,p) is monotonically increasing with pp. Then we have

f(N,p)≤f(35,p)≤f(35,1/50)≤235(352)⋅(1/50)352−2(49/50)35−2≤5.21×10−19.f(N,p)\leq f(35,p)\leq f(35,1/50)\leq\frac{2^{35}}{\binom{{35}}{2}}\cdot\frac{(1/50)^{\frac{{35}}{2}-2}}{(49/50)^{{35}-2}}\leq 5.21\times 10^{-19}.

As a result

Pr⁡(B_⋆c∣E_1c)≤f(35)≤5.21×10−19.\Pr(B\_{\star}^{c}\mid E\_{1}^{c})\leq f(35)\leq 5.21\times 10^{-19}.

Therefore,

Pr⁡(B_⋆∣E_1c)=1−Pr⁡(B_⋆c∣E_1c)≥1−5.21×10−19≈1.\Pr(B\_{\star}\mid E\_{1}^{c})=1-\Pr(B\_{\star}^{c}\mid E\_{1}^{c})\geq 1-5.21\times 10^{-19}\approx 1.

Interpretation. Under a large action space, suboptimal samples are almost surely all distinct. So the only way for the top-bb beam B_1\mathcal{B}\_{1} to not be fully populated by bb distinct candidates is that the optimal action a_1⋆a\_{1}^{\star} is sampled too many times (so that N−KN-K is too small to provide b−1b-1 distinct suboptimal candidates). Since K∼Bin(N,p)K\sim\mathrm{Bin}(N,p) with small p=1/C⋆p=1/C^{\star}, such a large-deviation event K≥N/2K\geq N/2 has exponentially small probability, leading to Pr⁡(B_⋆∣E_1c)≈1\Pr(B\_{\star}\mid E\_{1}^{c})\approx 1, which implies that we sample at least bb distinct trajectories from xx almost surely.

2.2 Bounding Pr⁡(E_2∣B⋆∩E_1c)\Pr(E\_{2}\mid B^{\star}\cap E\_{1}^{c}).

Section titled “2.2 Bounding Pr⁡(E_2∣B⋆∩E_1c)\Pr(E\_{2}\mid B^{\star}\cap E\_{1}^{c})Pr(E_2∣B⋆∩E_1c).”

For the analysis in this part, we introduce an auxiliary path-likelihood quantity

Q~(s_t)  :=  ∏_i=1tπ^(a_i∣s_i−1,x),\widetilde{Q}(s\_{t})\;:=\;\prod\_{i=1}^{t}\hat{\pi}(a\_{i}\mid s\_{i-1},x),

which differs from the additive score Q(⋅)Q(\cdot) used by the algorithm in Section 3 and is used solely within this proof. We further define the good event E\mathcal{E} as

E:={ Q~(s_2⋆)<14N }∩{∃ at least b suboptimal trajectories s_2′∈S_2 such that Q~(s_2′)≥14N},\mathcal{E}:=\Big\{\,\widetilde{Q}(s\_{2}^{\star})<\frac{1}{4N}\,\Big\}\cap\Big\{\exists\,\text{at least }b\text{ suboptimal trajectories }s\_{2}^{\prime}\in\mathcal{S}\_{2}\text{ such that }\widetilde{Q}(s\_{2}^{\prime})\geq\frac{1}{4N}\Big\},

where S_2\mathcal{S}\_{2} is the set of all trajectories generated by B_1\mathcal{B}\_{1}.

We first control the score of the optimal trajectory under the same conditioning used in this subsection. Let

K_1:=Nπ^(a_1⋆∣x),K_2:=Nπ^(a_2⋆∣a_1⋆,x).K\_{1}:=N\hat{\pi}(a\_{1}^{\star}\mid x),\qquad K\_{2}:=N\hat{\pi}(a\_{2}^{\star}\mid a\_{1}^{\star},x).

The event B⋆∩E_1cB^{\star}\cap E\_{1}^{c} is determined by the first-round samples, whereas K_2K\_{2} is generated from the second-round samples at the optimal prefix. Hence, conditional on K_1K\_{1}, the random variable K_2K\_{2} remains independent of B⋆∩E_1cB^{\star}\cap E\_{1}^{c} and satisfies K_2∼Bin ⁣(N,1/C⋆(x)).K\_{2}\sim\mathrm{Bin}\!\left(N,{1}/{C^{\star}(x)}\right). Moreover,

Q~(s_2⋆)=π^(a_1⋆∣x)π^(a_2⋆∣a_1⋆,x)=K_1K_2N2.\widetilde{Q}(s\_{2}^{\star})=\hat{\pi}(a\_{1}^{\star}\mid x)\hat{\pi}(a\_{2}^{\star}\mid a\_{1}^{\star},x)=\frac{K\_{1}K\_{2}}{N^{2}}.

Therefore, by Markov’s inequality,

$\displaystyle\Pr!\left(\widetilde{Q}(s_{2}^{\star})\geq\frac{1}{4N},\middle,B^{\star}\cap E_{1}^{c}\right)=\Pr!\left(K_{1}K_{2}\geq\frac{N}{4},\middle

It remains to control the conditional expectation in the numerator. Since K_2K\_{2} is independent of the first-round samples and E[K_2]=N/C⋆(x)\mathbb{E}[K\_{2}]=N/C^{\star}(x), we have

E ⁣[K_1K_2∣B⋆∩E_1c]=E ⁣[K_1∣B⋆∩E_1c]NC⋆(x).\mathbb{E}\!\left[K\_{1}K\_{2}\mid B^{\star}\cap E\_{1}^{c}\right]=\mathbb{E}\!\left[K\_{1}\mid B^{\star}\cap E\_{1}^{c}\right]\frac{N}{C^{\star}(x)}.

On the no-collision event considered in Section 2.1, the event E_1cE\_{1}^{c} can only add outcomes with K_1=1K\_{1}=1 beyond the event {K_1≥2}\{K\_{1}\geq 2\}, while the event B⋆B^{\star} only removes outcomes with too many repeated samples of the optimal action. Hence

E ⁣[K_1∣B⋆∩E_1c]≤E ⁣[K_1∣K_1≥2].\mathbb{E}\!\left[K\_{1}\mid B^{\star}\cap E\_{1}^{c}\right]\leq\mathbb{E}\!\left[K\_{1}\mid K\_{1}\geq 2\right].

For a binomial random variable, conditioning on at least two successes is stochastically dominated by adding two deterministic successes to an independent binomial count over the remaining trials. Thus

E ⁣[K_1∣K_1≥2]≤2+NC⋆(x)≤2+C⋆(x)16≤C⋆(x)9,\mathbb{E}\!\left[K\_{1}\mid K\_{1}\geq 2\right]\leq 2+\frac{N}{C^{\star}(x)}\leq 2+\frac{C^{\star}(x)}{16}\leq\frac{C^{\star}(x)}{9},

where the second inequality uses N≤(C⋆(x))2/16N\leq(C^{\star}(x))^{2}/16, and the last one uses C⋆(x)≥50C^{\star}(x)\geq 50. Therefore,

E ⁣[K_1K_2∣B⋆∩E_1c]≤N9,\mathbb{E}\!\left[K\_{1}K\_{2}\mid B^{\star}\cap E\_{1}^{c}\right]\leq\frac{N}{9},

and consequently

$\displaystyle\Pr!\left(\widetilde{Q}(s_{2}^{\star})<\frac{1}{4N},\middle,B^{\star}\cap E_{1}^{c}\right)\geq 1-\frac{4}{9}=\frac{5}{9}.$

Next, we control the second event in E\mathcal{E}. For any suboptimal prefix a∈B_1a\in\mathcal{B}\_{1}, conditioned on B⋆∩E_1cB^{\star}\cap E\_{1}^{c}, its second-step distribution has two possible offspring, s_2,1′=(a,a_2,1⋆)s\_{2,1}^{\prime}=(a,a\_{2,1}^{\star}) and s_2,2′=(a,a_2,2⋆)s\_{2,2}^{\prime}=(a,a\_{2,2}^{\star}), satisfying

π_ref(a_2,1⋆∣a,x)=π_ref(a_2,2⋆∣a,x)=12.\pi\_{\rm ref}(a\_{2,1}^{\star}\mid a,x)=\pi\_{\rm ref}(a\_{2,2}^{\star}\mid a,x)=\frac{1}{2}.

We can bound the probability that both generated trajectories have sufficiently large likelihood as follows:

$\displaystyle\Pr!\left(\widetilde{Q}(s_{2,1}^{\prime})>\frac{1}{4N},\widetilde{Q}(s_{2,2}^{\prime})>\frac{1}{4N},\middle,B^{\star}\cap E_{1}^{c}\right)$
------------
$\displaystyle=\Pr!\left(\hat{\pi}(a_{2,1}^{\star}\mid a,x)\hat{\pi}(a\mid x)>\frac{1}{4N},\hat{\pi}(a_{2,2}^{\star}\mid a,x)\hat{\pi}(a\mid x)>\frac{1}{4N},\middle,B^{\star}\cap E_{1}^{c}\right)$
------------
≥Pr⁡ ⁣(π^(a_2,1⋆∣a,x)>14,π^(a_2,2⋆∣a,x)>14)\displaystyle\geq\Pr\!\left(\hat{\pi}(a\_{2,1}^{\star}\mid a,x)>\frac{1}{4},\hat{\pi}(a\_{2,2}^{\star}\mid a,x)>\frac{1}{4}\right)
------------
=Pr⁡ ⁣(14<π^(a_2,1⋆∣a,x)<34)\displaystyle=\Pr\!\left(\frac{1}{4}<\hat{\pi}(a\_{2,1}^{\star}\mid a,x)<\frac{3}{4}\right)
------------
$\displaystyle=1-\Pr!\left(\left\hat{\pi}(a_{2,1}^{\star}\mid a,x)-\frac{1}{2}\right
------------
≥1−2exp⁡ ⁣(−N8),\displaystyle\geq 1-2\exp\!\left(-\frac{N}{8}\right),

where the first inequality holds because every selected first-step prefix has empirical probability at least 1/N1/N, i.e., π^(a∣x)≥1/N\hat{\pi}(a\mid x)\geq 1/N; the second equality follows from π^(a_2,1⋆∣a,x)+π^(a_2,2⋆∣a,x)=1\hat{\pi}(a\_{2,1}^{\star}\mid a,x)+\hat{\pi}(a\_{2,2}^{\star}\mid a,x)=1; and the last inequality follows from Hoeffding’s inequality applied to Nπ^(a_2,1⋆∣a,x)∼Bin(N,1/2)N\hat{\pi}(a\_{2,1}^{\star}\mid a,x)\sim\mathrm{Bin}(N,1/2).

Then, at the second step, for each such suboptimal prefix s_1∈B_1s\_{1}\in\mathcal{B}\_{1}, let Succ(s_1)\mathsf{Succ}(s\_{1}) denote the event that its two offspring trajectories s_2,1′s\_{2,1}^{\prime} and s_2,2′s\_{2,2}^{\prime} satisfy Q~(s_2,1′)≥1/(4N), Q~(s_2,2′)≥1/(4N).\widetilde{Q}(s\_{2,1}^{\prime})\geq{1}/{(4N)},\ \widetilde{Q}(s\_{2,2}^{\prime})\geq{1}/{(4N)}. By construction,

Pr⁡ ⁣(Succ(s_1)∣B⋆∩E_1c)≥1−2exp⁡ ⁣(−N/8),\Pr\!\left(\mathsf{Succ}(s\_{1})\mid B^{\star}\cap E\_{1}^{c}\right)\geq 1-2\exp\!\left(-{N}/{8}\right),

and these events are independent across different suboptimal prefixes. Hence the number of successful suboptimal prefixes conditioned on B⋆∩E_1cB^{\star}\cap E\_{1}^{c} stochastically dominates

Z∼Bin ⁣(b−1, 1−2exp⁡ ⁣(−N8)).Z\sim\mathrm{Bin}\!\left(b-1,\,1-2\exp\!\left(-\frac{N}{8}\right)\right).

In particular, there exists bb suboptimal trajectories s_2′s\_{2}^{\prime} such that Q~(s_2′)≥1/(4N)\widetilde{Q}(s\_{2}^{\prime})\geq 1/(4N) is implied by {Z≥⌈b/2⌉}\{Z\geq\lceil b/2\rceil\}, and therefore

$\displaystyle\Pr!\left(\exists\text{ at least }b\text{ suboptimal trajectories }s^{\prime}_{2}\text{ with }\widetilde{Q}(s^{\prime}_{2})\geq\frac{1}{4N},\middle,B^{\star}\cap E_{1}^{c}\right)$
------------
≥Pr⁡ ⁣(Z≥⌈b2⌉)=Pr⁡ ⁣(Bin ⁣(b−1, 1−2exp⁡ ⁣(−N8))≥⌈b2⌉).\displaystyle\quad\geq\Pr\!\left(Z\geq\left\lceil\frac{b}{2}\right\rceil\right)=\Pr\!\left(\mathrm{Bin}\!\left(b-1,\,1-2\exp\!\left(-\frac{N}{8}\right)\right)\geq\left\lceil\frac{b}{2}\right\rceil\right).

By Lemma 1 (see Appendix C.1), the above binomial tail probability is nondecreasing along the even subsequence {b=2,4,6,…}\{b=2,4,6,\ldots\} and along the odd subsequence {b=3,5,7,…}\{b=3,5,7,\ldots\}. Consequently,

Pr⁡ ⁣(Bin ⁣(b−1, 1−2exp⁡ ⁣(−N8))≥⌈b2⌉)\displaystyle\Pr\!\left(\mathrm{Bin}\!\left(b-1,\,1-2\exp\!\left(-\frac{N}{8}\right)\right)\geq\left\lceil\frac{b}{2}\right\rceil\right)
------------
≥min⁡ ⁣{Pr⁡ ⁣(Bin ⁣(1, 1−2exp⁡ ⁣(−N8))≥1),Pr⁡ ⁣(Bin ⁣(2, 1−2exp⁡ ⁣(−N8))≥2)}\displaystyle\quad\geq\min\!\left\{\Pr\!\left(\mathrm{Bin}\!\left(1,\,1-2\exp\!\left(-\frac{N}{8}\right)\right)\geq 1\right),\right.\left.\Pr\!\left(\mathrm{Bin}\!\left(2,\,1-2\exp\!\left(-\frac{N}{8}\right)\right)\geq 2\right)\right\}
------------
=(1−2exp⁡ ⁣(−N8))2.\displaystyle\quad=\left(1-2\exp\!\left(-\frac{N}{8}\right)\right)^{2}.

Using a union bound under the conditioning B⋆∩E_1cB^{\star}\cap E\_{1}^{c}, we obtain

Pr⁡ ⁣(E∣B⋆∩E_1c)≥(1−2exp⁡ ⁣(−N8))2−49.\Pr\!\left(\mathcal{E}\mid B^{\star}\cap E\_{1}^{c}\right)\geq\left(1-2\exp\!\left(-\frac{N}{8}\right)\right)^{2}-\frac{4}{9}.

Since N≥35N\geq 35 in Case 2, we have

(1−2exp⁡ ⁣(−N8))2−49≥(1−2exp⁡ ⁣(−358))2−49=0.506\left(1-2\exp\!\left(-\frac{N}{8}\right)\right)^{2}-\frac{4}{9}\geq\left(1-2\exp\!\left(-\frac{35}{8}\right)\right)^{2}-\frac{4}{9}=0.506

Under the good event E\mathcal{E}, there exist at least bb suboptimal trajectories s_2′s\_{2}^{\prime} such that

Q~(s_2⋆)<14N≤Q~(s_2′).\widetilde{Q}(s\_{2}^{\star})<\frac{1}{4N}\leq\widetilde{Q}(s\_{2}^{\prime}).

Therefore, the optimal response is crowded out of the top-bb candidates by bb suboptimal trajectories. Combining this result with the bound of Pr⁡(B⋆∣E_1c)\Pr(B^{\star}\mid E\_{1}^{c}) yields

Pr⁡(s⋆ is eliminated)≥0.5.\Pr(s^{\star}\text{ is eliminated})\geq 0.5.

The proof is completed. ∎

In the subsection, we show that Pr⁡ ⁣(Bin(b−1,p)≥b2)\Pr\!\left(\mathrm{Bin}(b-1,p)\geq\frac{b}{2}\right) is monotone along the odd and even subsequences of bb, respectively. This result is useful in bounding Equation (11) in the proof of Theorem 1.

Lemma 1 (Monotonicity in bb for odd/even subsequences).
Section titled “Lemma 1 (Monotonicity in bbb for odd/even subsequences).”

Let N>30N>30 and let p:=1−4N>12p:=1-\frac{4}{N}>\frac{1}{2}. Define, for integers b≥2b\geq 2,

F(b):=Pr⁡ ⁣(Bin(b−1,p)≥b2),F(b):=\Pr\!\left(\mathrm{Bin}(b-1,p)\geq\frac{b}{2}\right),

where for odd bb the threshold is understood in the usual way: {Bin(b−1,p)≥b/2}={Bin(b−1,p)≥⌈b/2⌉}\{\mathrm{Bin}(b-1,p)\geq b/2\}=\{\mathrm{Bin}(b-1,p)\geq\lceil b/2\rceil\}. Then F(b)F(b) is nondecreasing along the even subsequence {b=2,4,6,…}\{b=2,4,6,\ldots\} and also nondecreasing along the odd subsequence {b=3,5,7,…}\{b=3,5,7,\ldots\}. In particular,

F(2)≤F(4)≤F(6)≤⋯ ,F(3)≤F(5)≤F(7)≤⋯ .F(2)\leq F(4)\leq F(6)\leq\cdots,\qquad F(3)\leq F(5)\leq F(7)\leq\cdots.

Fix p>12p>\frac{1}{2}. We consider the following two cases.

Even bb. Let b=2kb=2k with k≥1k\geq 1 and let S_k∼Bin(2k−1,p)S\_{k}\sim\mathrm{Bin}(2k-1,p). Then F(2k)=Pr⁡(S_k≥k)F(2k)=\Pr(S\_{k}\geq k). We further have

S_k+1=S_k+B_1+B_2,S\_{k+1}=S\_{k}+B\_{1}+B\_{2},

where B_1,B_2∼i.i.d.Bern(p)B\_{1},B\_{2}\stackrel{{\scriptstyle i.i.d.}}{{\sim}}\mathrm{Bern}(p) are independent of S_kS\_{k}. A direct decomposition over S_k∈{k−1,k,≥k+1}S\_{k}\in\{k-1,k,\geq k+1\} gives

F(2k+2)−F(2k)=−(1−p)2Pr⁡(S_k=k)+p2Pr⁡(S_k=k−1).F(2k+2)-F(2k)=-(1-p)^{2}\Pr(S\_{k}=k)+p^{2}\Pr(S\_{k}=k-1).

For S_k∼Bin(2k−1,p)S\_{k}\sim\mathrm{Bin}(2k-1,p),

Pr⁡(S_k=k)Pr⁡(S_k=k−1)=(2k−1k)(2k−1k−1)⋅p1−p=kk⋅p1−p=p1−p.\frac{\Pr(S\_{k}=k)}{\Pr(S\_{k}=k-1)}=\frac{\binom{2k-1}{k}}{\binom{2k-1}{k-1}}\cdot\frac{p}{1-p}=\frac{k}{k}\cdot\frac{p}{1-p}=\frac{p}{1-p}.

Hence Pr⁡(S_k=k−1)=Pr⁡(S_k=k)1−pp\Pr(S\_{k}=k-1)=\Pr(S\_{k}=k)\frac{1-p}{p}. Substituting yields

F(2k+2)−F(2k)=Pr⁡(S_k=k) (1−p) (2p−1)≥0,F(2k+2)-F(2k)=\Pr(S\_{k}=k)\,(1-p)\,(2p-1)\geq 0,

which implies that {F(2k)}_k≥1\{F(2k)\}\_{k\geq 1} is nondecreasing.

Odd bb. Let b=2k+1b=2k+1 with k≥1k\geq 1 and let T_k∼Bin(2k,p)T\_{k}\sim\mathrm{Bin}(2k,p). Then F(2k+1)=Pr⁡(T_k≥k+1)F(2k+1)=\Pr(T\_{k}\geq k+1). We then have T_k+1=T_k+B_1+B_2T\_{k+1}=T\_{k}+B\_{1}+B\_{2} with the same B_1,B_2B\_{1},B\_{2}. Similarly,

F(2k+3)−F(2k+1)=−(1−p)2Pr⁡(T_k=k+1)+p2Pr⁡(T_k=k).F(2k+3)-F(2k+1)=-(1-p)^{2}\Pr(T\_{k}=k+1)+p^{2}\Pr(T\_{k}=k).

For T_k∼Bin(2k,p)T\_{k}\sim\mathrm{Bin}(2k,p),

Pr⁡(T_k=k+1)Pr⁡(T_k=k)=(2kk+1)(2kk)⋅p1−p=kk+1⋅p1−p.\frac{\Pr(T\_{k}=k+1)}{\Pr(T\_{k}=k)}=\frac{\binom{2k}{k+1}}{\binom{2k}{k}}\cdot\frac{p}{1-p}=\frac{k}{k+1}\cdot\frac{p}{1-p}.

Hence, Pr⁡(T_k=k)=Pr⁡(T_k=k+1)k+1k1−pp\Pr(T\_{k}=k)=\Pr(T\_{k}=k+1)\frac{k+1}{k}\frac{1-p}{p}. Therefore,

F(2k+3)−F(2k+1)=Pr⁡(T_k=k+1) (1−p)(k+1kp−(1−p)).F(2k+3)-F(2k+1)=\Pr(T\_{k}=k+1)\,(1-p)\left(\frac{k+1}{k}p-(1-p)\right).

Since p>12p>\frac{1}{2} implies k+1kp≥p>1−p\frac{k+1}{k}p\geq p>1-p, the bracketed term is positive. Hence, F(2k+3)≥F(2k+1)F(2k+3)\geq F(2k+1) for all k≥1k\geq 1. This proves monotonicity on both subsequences. Finally, the assumption N>30N>30 ensures p=1−4N>12p=1-\frac{4}{N}>\frac{1}{2}, and hence the above applies. ∎

We exhibit an instance with horizon L=1L=1 that violates Assumption 3 and bound the survival probability of y⋆y^{\star} via Markov’s inequality.

Construction. Let A={a⋆,a_1,…,a_∣A∣−1}\mathcal{A}=\{a^{\star},a\_{1},\dots,a\_{|\mathcal{A}|-1}\} and define

π_ref(a⋆∣x)=18,π_ref(a_1∣x)=78,π_ref(a_i∣x)=0    for i≥2.\pi\_{\mathrm{ref}}(a^{\star}\mid x)=\tfrac{1}{8},\qquad\pi\_{\mathrm{ref}}(a\_{1}\mid x)=\tfrac{7}{8},\qquad\pi\_{\mathrm{ref}}(a\_{i}\mid x)=0\;\;\text{for }i\geq 2.

Set the ground-truth reward as r⋆(x,a⋆)=1r^{\star}(x,a^{\star})=1 and r⋆(x,a)=0r^{\star}(x,a)=0 for all a≠a⋆a\neq a^{\star}, so that y⋆=a⋆y^{\star}=a^{\star} is the unique optimal response.

Violation of Assumption 3. At depth t=1t=1, the suboptimal prefix s=a_1≠s_1⋆=a⋆s=a\_{1}\neq s\_{1}^{\star}=a^{\star} satisfies

log⁡ ⁣(π_ref(a⋆∣x)π_ref(a_1∣x))=log⁡1/87/8=−log⁡7<0,\log\!\left(\frac{\pi\_{\mathrm{ref}}(a^{\star}\mid x)}{\pi\_{\mathrm{ref}}(a\_{1}\mid x)}\right)=\log\frac{1/8}{7/8}=-\log 7<0,

so no κ>0\kappa>0 can satisfy the prefix-competitiveness condition on this instance.

Survival probability. Fix any N≥1N\geq 1. Let

X⋆:=N π^(a⋆∣x)∼Bin ⁣(N,18),X_1:=N π^(a_1∣x)∼Bin ⁣(N,78).X^{\star}:=N\,\hat{\pi}(a^{\star}\mid x)\sim\mathrm{Bin}\!\big(N,\tfrac{1}{8}\big),\qquad X\_{1}:=N\,\hat{\pi}(a\_{1}\mid x)\sim\mathrm{Bin}\!\big(N,\tfrac{7}{8}\big).

Since a⋆a^{\star} and a_1a\_{1} are the only tokens with positive mass under π_ref(⋅∣x)\pi\_{\mathrm{ref}}(\cdot\mid x), we have X⋆+X_1=NX^{\star}+X\_{1}=N almost surely. With b=1b=1, the algorithm retains the sampled candidate with the largest score Q(a)=Q(s_0)+log⁡π^(a∣x)=log⁡π^(a∣x)Q(a)=Q(s\_{0})+\log\hat{\pi}(a\mid x)=\log\hat{\pi}(a\mid x). Since the logarithm is strictly increasing, this is equivalent to retaining the candidate with the largest empirical frequency π^(a∣x)\hat{\pi}(a\mid x). Hence y⋆=a⋆y^{\star}=a^{\star} is retained in the final beam only if π^(a⋆∣x)≥π^(a_1∣x)\hat{\pi}(a^{\star}\mid x)\geq\hat{\pi}(a\_{1}\mid x), equivalently X⋆≥X_1X^{\star}\geq X\_{1}. Since X⋆+X_1=NX^{\star}+X\_{1}=N, this is equivalent to X⋆≥N/2X^{\star}\geq N/2.

Applying Markov’s inequality to the nonnegative random variable X⋆X^{\star} with E[X⋆]=N/8\mathbb{E}[X^{\star}]=N/8,

Pr⁡ ⁣(X⋆≥N2)  ≤  E[X⋆]N/2  =  N/8N/2  =  14.\Pr\!\left(X^{\star}\geq\tfrac{N}{2}\right)\;\leq\;\frac{\mathbb{E}[X^{\star}]}{N/2}\;=\;\frac{N/8}{N/2}\;=\;\frac{1}{4}.

Consequently,

Pr⁡(y⋆ retained in the final beam)  ≤  Pr⁡ ⁣(X⋆≥N2)  ≤  14,\Pr(y^{\star}\text{ retained in the final beam})\;\leq\;\Pr\!\left(X^{\star}\geq\tfrac{N}{2}\right)\;\leq\;\frac{1}{4},

so the probability of pruning y⋆y^{\star} is at least 1−14=341-\tfrac{1}{4}=\tfrac{3}{4}, completing the proof. ∎

Appendix E Regret Upper Bound: Proof of Theorem 2 and Corollary 2

Section titled “Appendix E Regret Upper Bound: Proof of Theorem 2 and Corollary 2”

E.1 Technical Lemmas: Filtering and Beam Survival

Section titled “E.1 Technical Lemmas: Filtering and Beam Survival”

We first control the distribution of the final output and the probability of filtering out an optimal action. We then bound moments of filtered score differences and use them to control the rank of the optimal prefix. The binomial moment inequalities used below are proved in Lemma 6 in the Auxiliary Lemmas section.

Fix xx throughout this section. As in Definition 2, independently generate an NN-sample histogram at every prefix of depth less than LL and reveal it only if the algorithm visits that prefix. Along a fixed path, these histograms belong to distinct nodes and are independent; paths with shared ancestors still have dependent scores. For a prefix s_t=(a_1,…,a_t)s\_{t}=(a\_{1},\ldots,a\_{t}), write F(s_t):={π^(a_i∣s_i−1,x)≥β_i, i∈[t]}\mathcal{F}(s\_{t}):=\{\hat{\pi}(a\_{i}\mid s\_{i-1},x)\geq\beta\_{i},\ i\in[t]\}. On this event, Q(s_t)=∑_i=1tlog⁡π^(a_i∣s_i−1,x)Q(s\_{t})=\sum\_{i=1}^{t}\log\hat{\pi}(a\_{i}\mid s\_{i-1},x) is finite. Expressions involving inverse empirical probabilities or differences of scores are defined to be zero outside the indicated filtering events. In particular, E_β=F(s_L⋆)\mathcal{E}\_{\beta}=\mathcal{F}(s\_{L}^{\star}). This construction is used only for analysis and does not change the algorithm’s queries.

Lemma 2 (Output probabilities under confidence filtering).
Section titled “Lemma 2 (Output probabilities under confidence filtering).”

For any thresholds β_i∈(0,1]\beta\_{i}\in(0,1] and any fixed y∈ALy\in\mathcal{A}^{L}, the output ybeamy^{\mathrm{beam}} of CF-Beam satisfies

Pr⁡(ybeam=y,E)≤π_ref(y∣x)∏_i=1Lβ_i−1.\Pr(y^{\mathrm{beam}}=y,\mathcal{E})\leq\pi\_{\mathrm{ref}}(y\mid x)\prod\_{i=1}^{L}\beta\_{i}^{-1}.

On E\mathcal{E}, the final beam is nonempty, and any output y=(a_1,…,a_L)y=(a\_{1},\ldots,a\_{L}) has passed filtering along all its edges. Hence

Pr⁡(ybeam=y,E)\displaystyle\Pr(y^{\mathrm{beam}}=y,\mathcal{E})≤Pr⁡(F(y))=∏_i=1LPr⁡(π^(a_i∣s_i−1,x)≥β_i)\displaystyle\leq\Pr(\mathcal{F}(y))=\prod\_{i=1}^{L}\Pr\bigl(\hat{\pi}(a\_{i}\mid s\_{i-1},x)\geq\beta\_{i}\bigr)
------------
≤∏_i=1LE[π^(a_i∣s_i−1,x)]β_i=π_ref(y∣x)∏_i=1Lβ_i−1.\displaystyle\leq\prod\_{i=1}^{L}\frac{\mathbb{E}[\hat{\pi}(a\_{i}\mid s\_{i-1},x)]}{\beta\_{i}}=\pi\_{\mathrm{ref}}(y\mid x)\prod\_{i=1}^{L}\beta\_{i}^{-1}.

The equality uses independence of the histograms along the fixed path, and the inequality follows from Markov’s inequality and unbiasedness of each empirical frequency. The argument does not condition the histograms on the output-selection event. ∎

For β_t=α/C_t⋆(x)\beta\_{t}=\alpha/C\_{t}^{\star}(x) with 0<α<10<\alpha<1,

Pr⁡(E_βc)≤Lexp⁡ ⁣(−N(1−α)22C_max⁡⋆).\Pr(\mathcal{E}\_{\beta}^{c})\leq L\exp\!\left(-\frac{N(1-\alpha)^{2}}{2C\_{\max}^{\star}}\right).

For each tt, the count Nπ^(a_t⋆∣s_t−1⋆,x)N\hat{\pi}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x) has distribution Bin(N,1/C_t⋆(x))\mathrm{Bin}(N,1/C\_{t}^{\star}(x)). Applying the lower-tail Chernoff bound in Lemma 8 with relative deviation 1−α1-\alpha, and then a union bound, gives

Pr⁡(E_βc)\displaystyle\Pr(\mathcal{E}\_{\beta}^{c})≤∑_t=1LPr⁡(Nπ^(a_t⋆∣s_t−1⋆,x)<αNC_t⋆(x))\displaystyle\leq\sum\_{t=1}^{L}\Pr\left(N\hat{\pi}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x)<\frac{\alpha N}{C\_{t}^{\star}(x)}\right)
------------
≤∑_t=1Lexp⁡ ⁣(−N(1−α)22C_t⋆(x))≤Lexp⁡ ⁣(−N(1−α)22C_max⁡⋆).\displaystyle\leq\sum\_{t=1}^{L}\exp\!\left(-\frac{N(1-\alpha)^{2}}{2C\_{t}^{\star}(x)}\right)\leq L\exp\!\left(-\frac{N(1-\alpha)^{2}}{2C\_{\max}^{\star}}\right).

∎

Lemma 4 (Moments of filtered score differences).
Section titled “Lemma 4 (Moments of filtered score differences).”

Let β_i=α/C_i⋆(x)\beta\_{i}=\alpha/C\_{i}^{\star}(x) with 1/2≤α<11/2\leq\alpha<1. For every s_t≠s_t⋆s\_{t}\neq s\_{t}^{\star} and integer 1≤r≤Nα/(4C_max⁡⋆)1\leq r\leq N\alpha/(4C\_{\max}^{\star}),

E ⁣[er(Q(s_t)−Q(s_t⋆))1_F(s_t)∩F(s_t⋆)]≤(π_ref(s_t∣x)π_ref(s_t⋆∣x))rexp⁡ ⁣(3tC_max⁡⋆r2Nα).\mathbb{E}\!\left[e^{r(Q(s\_{t})-Q(s\_{t}^{\star}))}\mathbf{1}\_{\mathcal{F}(s\_{t})\cap\mathcal{F}(s\_{t}^{\star})}\right]\leq\left(\frac{\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}\right)^{r}\exp\!\left(\frac{3tC\_{\max}^{\star}r^{2}}{N\alpha}\right).

For each depth ii, let K_i=⌈Nβ_i⌉≥Nα/C_max⁡⋆K\_{i}=\lceil N\beta\_{i}\rceil\geq N\alpha/C\_{\max}^{\star}, so 2r≤K_i/22r\leq K\_{i}/2. Apply the positive and inverse moment bounds of Lemma 6 with order 2r2r to each edge. Independence along each fixed path yields

E ⁣[e2rQ(s_t)1_F(s_t)]\displaystyle\mathbb{E}\!\left[e^{2rQ(s\_{t})}\mathbf{1}\_{\mathcal{F}(s\_{t})}\right]≤π_ref(s_t∣x)2rexp⁡ ⁣(∑_i=1t(2r)(2r−1)2(K_i−2r+1)),\displaystyle\leq\pi\_{\mathrm{ref}}(s\_{t}\mid x)^{2r}\exp\!\left(\sum\_{i=1}^{t}\frac{(2r)(2r-1)}{2(K\_{i}-2r+1)}\right),
------------
E ⁣[e−2rQ(s_t⋆)1_F(s_t⋆)]\displaystyle\mathbb{E}\!\left[e^{-2rQ(s\_{t}^{\star})}\mathbf{1}\_{\mathcal{F}(s\_{t}^{\star})}\right]≤π_ref(s_t⋆∣x)−2rexp⁡ ⁣(∑_i=1t(2r)(2r+1)2K_i).\displaystyle\leq\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)^{-2r}\exp\!\left(\sum\_{i=1}^{t}\frac{(2r)(2r+1)}{2K\_{i}}\right).

All optimal edge probabilities are positive by the finiteness of C_max⁡⋆C\_{\max}^{\star}. A competing path of true probability zero has zero probability of passing filtering, so its contribution is zero. Cauchy–Schwarz now gives

E ⁣[er(Q(s_t)−Q(s_t⋆))1_F(s_t)∩F(s_t⋆)]\displaystyle\mathbb{E}\!\left[e^{r(Q(s\_{t})-Q(s\_{t}^{\star}))}\mathbf{1}\_{\mathcal{F}(s\_{t})\cap\mathcal{F}(s\_{t}^{\star})}\right]
------------
≤(E[e2rQ(s_t)1_F(s_t)]E[e−2rQ(s_t⋆)1_F(s_t⋆)])1/2\displaystyle\quad\leq\left(\mathbb{E}[e^{2rQ(s\_{t})}\mathbf{1}\_{\mathcal{F}(s\_{t})}]\mathbb{E}[e^{-2rQ(s\_{t}^{\star})}\mathbf{1}\_{\mathcal{F}(s\_{t}^{\star})}]\right)^{1/2}
------------
≤(π_ref(s_t∣x)π_ref(s_t⋆∣x))rexp⁡ ⁣[∑_i=1t((2r)(2r−1)4(K_i−2r+1)+(2r)(2r+1)4K_i)]\displaystyle\quad\leq\left(\frac{\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}\right)^{r}\exp\!\left[\sum\_{i=1}^{t}\left(\frac{(2r)(2r-1)}{4(K\_{i}-2r+1)}+\frac{(2r)(2r+1)}{4K\_{i}}\right)\right]
------------
≤(π_ref(s_t∣x)π_ref(s_t⋆∣x))rexp⁡ ⁣(∑_i=1t3r2K_i)≤(π_ref(s_t∣x)π_ref(s_t⋆∣x))rexp⁡ ⁣(3tC_max⁡⋆r2Nα).\displaystyle\quad\leq\left(\frac{\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}\right)^{r}\exp\!\left(\sum\_{i=1}^{t}\frac{3r^{2}}{K\_{i}}\right)\leq\left(\frac{\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}\right)^{r}\exp\!\left(\frac{3tC\_{\max}^{\star}r^{2}}{N\alpha}\right).

For the penultimate inequality, K_i−2r+1≥K_i/2K\_{i}-2r+1\geq K\_{i}/2 bounds the two terms by (2r2−r)/K_i(2r^{2}-r)/K\_{i} and (r2+r/2)/K_i(r^{2}+r/2)/K\_{i}, respectively. In particular, Cauchy–Schwarz controls the common optimal score and shared-prefix randomness without requiring independent path scores. ∎

Suppose Assumption 3 holds, β_i=α/C_i⋆(x)\beta\_{i}=\alpha/C\_{i}^{\star}(x) with 1/2≤α<11/2\leq\alpha<1, and N≥48C_max⁡⋆κ2max⁡{2,log⁡(2C_max⁡⋆)}N\geq\frac{48C\_{\max}^{\star}}{\kappa^{2}}\max\{2,\log(2C\_{\max}^{\star})\}. Then

Pr⁡(E_β∩E_bc)≤2C_max⁡⋆bexp⁡ ⁣(−κ2N48C_max⁡⋆).\Pr(\mathcal{E}\_{\beta}\cap\mathcal{E}\_{b}^{c})\leq\frac{2C\_{\max}^{\star}}{b}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right).

More precisely, let Z_tZ\_{t} count the filtered nonoptimal prefixes in the full depth-tt tree whose scores are at least Q(s_t⋆)Q(s\_{t}^{\star}), and set Z_t=0Z\_{t}=0 if F(s_t⋆)\mathcal{F}(s\_{t}^{\star}) fails. For every integer m≥1m\geq 1,

Pr⁡(Z_t≥m)≤1m[C_max⁡⋆exp⁡ ⁣(−κ2N48C_max⁡⋆)]t.\Pr(Z\_{t}\geq m)\leq\frac{1}{m}\left[C\_{\max}^{\star}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right)\right]^{t}.(13)

For any admissible integer r≥1r\geq 1 in Lemma 4, each competitor counted by Z_tZ\_{t} contributes at least one to the corresponding likelihood-ratio moment. Since the depth-tt tree is finite, summing the lemma gives

E[Z_t]\displaystyle\mathbb{E}[Z\_{t}]≤∑_s_t≠s_t⋆E ⁣[er(Q(s_t)−Q(s_t⋆))1_F(s_t)∩F(s_t⋆)]\displaystyle\leq\sum\_{s\_{t}\neq s\_{t}^{\star}}\mathbb{E}\!\left[e^{r(Q(s\_{t})-Q(s\_{t}^{\star}))}\mathbf{1}\_{\mathcal{F}(s\_{t})\cap\mathcal{F}(s\_{t}^{\star})}\right]
------------
≤exp⁡ ⁣(3tC_max⁡⋆r2Nα)∑_s_t≠s_t⋆(π_ref(s_t∣x)π_ref(s_t⋆∣x))r\displaystyle\leq\exp\!\left(\frac{3tC\_{\max}^{\star}r^{2}}{N\alpha}\right)\sum\_{s\_{t}\neq s\_{t}^{\star}}\left(\frac{\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}\right)^{r}
------------
≤exp⁡ ⁣(3tC_max⁡⋆r2Nα−(r−1)tκ)∑_s_t≠s_t⋆π_ref(s_t∣x)π_ref(s_t⋆∣x)\displaystyle\leq\exp\!\left(\frac{3tC\_{\max}^{\star}r^{2}}{N\alpha}-(r-1)t\kappa\right)\frac{\sum\_{s\_{t}\neq s\_{t}^{\star}}\pi\_{\mathrm{ref}}(s\_{t}\mid x)}{\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)}
------------
≤[C_max⁡⋆exp⁡ ⁣(−(r−1)κ+3C_max⁡⋆r2Nα)]t.\displaystyle\leq\left[C\_{\max}^{\star}\exp\!\left(-(r-1)\kappa+\frac{3C\_{\max}^{\star}r^{2}}{N\alpha}\right)\right]^{t}.

The third line uses Assumption 3, which implies π_ref(s_t∣x)≤e−tκπ_ref(s_t⋆∣x)\pi\_{\mathrm{ref}}(s\_{t}\mid x)\leq e^{-t\kappa}\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x), and r−1≥0r-1\geq 0. The last line uses total prefix probability at most one and π_ref(s_t⋆∣x)−1=∏_i=1tC_i⋆(x)≤(C_max⁡⋆)t\pi\_{\mathrm{ref}}(s\_{t}^{\star}\mid x)^{-1}=\prod\_{i=1}^{t}C\_{i}^{\star}(x)\leq(C\_{\max}^{\star})^{t}. Thus the sum is controlled by true probability mass rather than by the number of adaptively selected candidates.

Choose r=⌊Nακ/(6C_max⁡⋆)⌋r=\lfloor N\alpha\kappa/(6C\_{\max}^{\star})\rfloor. The sample-size condition and 1/2≤α<11/2\leq\alpha<1, 0<κ≤10<\kappa\leq 1 imply Nακ2/C_max⁡⋆≥48N\alpha\kappa^{2}/C\_{\max}^{\star}\geq 48 and 1≤r≤Nα/(4C_max⁡⋆)1\leq r\leq N\alpha/(4C\_{\max}^{\star}). Using the two bounds on the floor function,

−(r−1)κ+3C_max⁡⋆r2Nα\displaystyle-(r-1)\kappa+\frac{3C\_{\max}^{\star}r^{2}}{N\alpha}≤−Nακ212C_max⁡⋆+2κ≤−Nακ224C_max⁡⋆≤−Nκ248C_max⁡⋆.\displaystyle\leq-\frac{N\alpha\kappa^{2}}{12C\_{\max}^{\star}}+2\kappa\leq-\frac{N\alpha\kappa^{2}}{24C\_{\max}^{\star}}\leq-\frac{N\kappa^{2}}{48C\_{\max}^{\star}}.

The middle inequality follows from Nακ2/C_max⁡⋆≥48≥48κN\alpha\kappa^{2}/C\_{\max}^{\star}\geq 48\geq 48\kappa. Markov’s inequality applied to Z_tZ\_{t} proves (13).

On E_β\mathcal{E}\_{\beta}, if the optimal path is first discarded by beam pruning at depth tt, it is a generated candidate and at least bb other generated candidates have scores at least its score. These candidates are among the full-tree filtered prefixes, so Z_t≥bZ\_{t}\geq b. Counting all ties against the optimal prefix makes this implication valid for any tie-breaking rule. Since the sample-size condition also gives C_max⁡⋆e−Nκ2/(48C_max⁡⋆)≤1/2C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\leq 1/2, a union bound and a geometric sum yield

Pr⁡(E_β∩E_bc)\displaystyle\Pr(\mathcal{E}\_{\beta}\cap\mathcal{E}\_{b}^{c})≤∑_t=1LPr⁡(Z_t≥b)≤1b∑_t=1L[C_max⁡⋆e−Nκ2/(48C_max⁡⋆)]t\displaystyle\leq\sum\_{t=1}^{L}\Pr(Z\_{t}\geq b)\leq\frac{1}{b}\sum\_{t=1}^{L}\left[C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\right]^{t}
------------
≤C_max⁡⋆e−Nκ2/(48C_max⁡⋆)b(1−C_max⁡⋆e−Nκ2/(48C_max⁡⋆))≤2C_max⁡⋆be−Nκ2/(48C_max⁡⋆).\displaystyle\leq\frac{C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}}{b\left(1-C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\right)}\leq\frac{2C\_{\max}^{\star}}{b}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}.

This bounds the intersection with E_β\mathcal{E}\_{\beta} directly; no concentration inequality is applied after conditioning on a future good event. ∎

For L≥2L\geq 2, the threshold multiplier 1−1/L1-1/L lies in [1/2,1)[1/2,1). Applying Lemmas 3 and 5 with α=1−1/L\alpha=1-1/L gives

Pr⁡(Ec)\displaystyle\Pr(\mathcal{E}^{c})=Pr⁡(E_βc)+Pr⁡(E_β∩E_bc)\displaystyle=\Pr(\mathcal{E}\_{\beta}^{c})+\Pr(\mathcal{E}\_{\beta}\cap\mathcal{E}\_{b}^{c})
------------
≤Lexp⁡ ⁣(−N2C_max⁡⋆L2)+2C_max⁡⋆bexp⁡ ⁣(−κ2N48C_max⁡⋆).\displaystyle\leq L\exp\!\left(-\frac{N}{2C\_{\max}^{\star}L^{2}}\right)+\frac{2C\_{\max}^{\star}}{b}\exp\!\left(-\frac{\kappa^{2}N}{48C\_{\max}^{\star}}\right).

On E\mathcal{E}, induction over the depths gives y⋆∈B_Ly^{\star}\in\mathcal{B}\_{L}, so the final selection satisfies r^(x,ybeam)≥r^(x,y⋆)\hat{r}(x,y^{\mathrm{beam}})\geq\hat{r}(x,y^{\star}). On Ec\mathcal{E}^{c}, the regret is at most one because rewards lie in [0,1][0,1]. Consequently,

Reg(x)\displaystyle\mathrm{Reg}(x)≤Pr⁡(Ec)+E ⁣[1_E(r⋆(x,y⋆)−r^(x,y⋆)+r^(x,y⋆)−r^(x,ybeam)\displaystyle\leq\Pr(\mathcal{E}^{c})+\mathbb{E}\!\Bigl[\mathbf{1}\_{\mathcal{E}}\bigl(r^{\star}(x,y^{\star})-\hat{r}(x,y^{\star})+\hat{r}(x,y^{\star})-\hat{r}(x,y^{\mathrm{beam}})
------------
+r^(x,ybeam)−r⋆(x,ybeam))]\displaystyle\hskip 100.00015pt+\hat{r}(x,y^{\mathrm{beam}})-r^{\star}(x,y^{\mathrm{beam}})\bigr)\Bigr]
------------
$\displaystyle\leq\Pr(\mathcal{E}^{c})+\epsilon_{\mathrm{opt}}(x)+\mathbb{E}!\left[\mathbf{1}_{\mathcal{E}}\bigl\hat{r}(x,y^{\mathrm{beam}})-r^{\star}(x,y^{\mathrm{beam}})\bigr
------------
≤Pr⁡(Ec)+ϵ_opt(x)+(∑_y∈ALPr⁡(ybeam=y,E)(r^(x,y)−r⋆(x,y))2)1/2\displaystyle\leq\Pr(\mathcal{E}^{c})+\epsilon\_{\mathrm{opt}}(x)+\left(\sum\_{y\in\mathcal{A}^{L}}\Pr(y^{\mathrm{beam}}=y,\mathcal{E})\bigl(\hat{r}(x,y)-r^{\star}(x,y)\bigr)^{2}\right)^{1/2}
------------
≤Pr⁡(Ec)+ϵ_opt(x)+[(1−1L)−LC‾(x)∑_y∈ALπ_ref(y∣x)(r^(x,y)−r⋆(x,y))2]1/2\displaystyle\leq\Pr(\mathcal{E}^{c})+\epsilon\_{\mathrm{opt}}(x)+\left[\left(1-\frac{1}{L}\right)^{-L}\overline{C}(x)\sum\_{y\in\mathcal{A}^{L}}\pi\_{\mathrm{ref}}(y\mid x)\bigl(\hat{r}(x,y)-r^{\star}(x,y)\bigr)^{2}\right]^{1/2}
------------
≤Pr⁡(Ec)+ϵ_opt(x)+2C‾(x)ϵ_RM2(x).\displaystyle\leq\Pr(\mathcal{E}^{c})+\epsilon\_{\mathrm{opt}}(x)+2\sqrt{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}.

The second inequality uses Assumption 2 and reward maximization. The third is Cauchy–Schwarz with Pr⁡(E)≤1\Pr(\mathcal{E})\leq 1, and the fourth applies Lemma 2. The last inequality follows from Assumption 1 and (1−1/L)−L≤4(1-1/L)^{-L}\leq 4 for integer L≥2L\geq 2. This inequality follows because ulog⁡(1−1/u)u\log(1-1/u) is nondecreasing for u≥2u\geq 2: its derivative is log⁡(1−1/u)+1/(u−1)≥0\log(1-1/u)+1/(u-1)\geq 0 by log⁡(1+v)≤v\log(1+v)\leq v. The distribution comparison is for the joint probabilities Pr⁡(ybeam=y,E)\Pr(y^{\mathrm{beam}}=y,\mathcal{E}), so no normalization by Pr⁡(E)\Pr(\mathcal{E}) is needed. ∎

Each search-error term in (8) is at most δ/2\delta/2 whenever

N≥max⁡{48C_max⁡⋆κ2max⁡{2,log⁡(2C_max⁡⋆)},2C_max⁡⋆L2log⁡2Lδ,48C_max⁡⋆κ2[log⁡4C_max⁡⋆bδ]_+}.N\geq\max\left\{\frac{48C\_{\max}^{\star}}{\kappa^{2}}\max\{2,\log(2C\_{\max}^{\star})\},\quad 2C\_{\max}^{\star}L^{2}\log\frac{2L}{\delta},\quad\frac{48C\_{\max}^{\star}}{\kappa^{2}}\left[\log\frac{4C\_{\max}^{\star}}{b\delta}\right]\_{+}\right\}.

The first term is the sample-size condition in Theorem 2; the other two follow by solving the two exponential inequalities. Since C_max⁡⋆≥1C\_{\max}^{\star}\geq 1, [log⁡(4C_max⁡⋆/(bδ))]_+≤log⁡(4C_max⁡⋆)+[log⁡(1/(bδ))]_+[\log(4C\_{\max}^{\star}/(b\delta))]\_{+}\leq\log(4C\_{\max}^{\star})+[\log(1/(b\delta))]\_{+}, so (9) with a sufficiently large universal constant implies all three requirements. Substitution into (7) proves the corollary. ∎

Apply Lemma 3 with α=1/2\alpha=1/2 to obtain Pr⁡(E_βc)≤Lexp⁡(−N/(8C_max⁡⋆))\Pr(\mathcal{E}\_{\beta}^{c})\leq L\exp(-N/(8C\_{\max}^{\star})). Unlike reward-based selection, the final maximum-score selection must also distinguish y⋆y^{\star} from every remaining competitor. If E_β\mathcal{E}\_{\beta} holds, Z_t<bZ\_{t}<b at every t<Lt<L, and Z_L=0Z\_{L}=0, then the optimal path survives the first L−1L-1 rounds, has strictly larger score than every other filtered complete path, and is selected at the final round. Thus

Reg(x)\displaystyle\mathrm{Reg}(x)≤Pr⁡(ybeam≠y⋆)≤Pr⁡(E_βc)+∑_t=1L−1Pr⁡(Z_t≥b)+Pr⁡(Z_L≥1)\displaystyle\leq\Pr(y^{\mathrm{beam}}\neq y^{\star})\leq\Pr(\mathcal{E}\_{\beta}^{c})+\sum\_{t=1}^{L-1}\Pr(Z\_{t}\geq b)+\Pr(Z\_{L}\geq 1)
------------
≤Lexp⁡ ⁣(−N8C_max⁡⋆)+1b∑_t=1L−1[C_max⁡⋆e−Nκ2/(48C_max⁡⋆)]t+[C_max⁡⋆e−Nκ2/(48C_max⁡⋆)]L\displaystyle\leq L\exp\!\left(-\frac{N}{8C\_{\max}^{\star}}\right)+\frac{1}{b}\sum\_{t=1}^{L-1}\left[C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\right]^{t}+\left[C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\right]^{L}
------------
≤Lexp⁡ ⁣(−N8C_max⁡⋆)+2C_max⁡⋆bexp⁡ ⁣(−Nκ248C_max⁡⋆)+[C_max⁡⋆e−Nκ2/(48C_max⁡⋆)]L.\displaystyle\leq L\exp\!\left(-\frac{N}{8C\_{\max}^{\star}}\right)+\frac{2C\_{\max}^{\star}}{b}\exp\!\left(-\frac{N\kappa^{2}}{48C\_{\max}^{\star}}\right)+\left[C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\right]^{L}.

The first inequality uses bounded rewards and optimal reward one. The next bounds follow from (13) and the same geometric sum as in Lemma 5; final selection is controlled with m=1m=1, while intermediate pruning is controlled with m=bm=b.

For an explicit sufficient sample size, take N≥96(C_max⁡⋆/κ2)log⁡(6LC_max⁡⋆/δ)N\geq 96(C\_{\max}^{\star}/\kappa^{2})\log(6LC\_{\max}^{\star}/\delta). This satisfies the sample-size condition of Lemma 5 and gives C_max⁡⋆e−Nκ2/(48C_max⁡⋆)≤δ/(6L)C\_{\max}^{\star}e^{-N\kappa^{2}/(48C\_{\max}^{\star})}\leq\delta/(6L). The ranking sum is then at most δ/(3L)\delta/(3L), and its final-depth power is at most δ/(6L)\delta/(6L), since b≥1b\geq 1 and δ/(6L)<1\delta/(6L)<1. Also N≥8C_max⁡⋆log⁡(3L/δ)N\geq 8C\_{\max}^{\star}\log(3L/\delta), so the filtering term is at most δ/3\delta/3. Their sum is at most δ\delta, proving the stated sufficient sample complexity. ∎

Fix a horizon LL and an action set A={1,2,…,∣A∣}\mathcal{A}=\{1,2,\dots,|\mathcal{A}|\} with ∣A∣≥log⁡Llog⁡(4/3)+2|\mathcal{A}|\geq\frac{\log L}{\log(4/3)}+2. We construct an instance in which, at each time step t∈[L]t\in[L], there is a unique optimal action along the optimal trajectory. Without loss of generality (by relabeling actions), we denote this optimal action a_t⋆a\_{t}^{\star} by a_t,1a\_{t,1}.

Let s_t−1⋆s\_{t-1}^{\star} be the state reached by following the optimal action sequence up to time t−1t-1 (i.e., the “optimal-prefix” state), and let s_t−1s\_{t-1} denote any state that is not on this optimal prefix. We define a reference policy π_ref(⋅∣s,x)\pi\_{\mathrm{ref}}(\cdot\mid s,x) as follows:

$$\pi_{\mathrm{ref}}(a_{t,1}\mid s_{t-1}^{\star},x)=\frac{1}{\mathcal{A}

and for any off-prefix state s_t−1≠s_t−1⋆s\_{t-1}\neq s\_{t-1}^{\star},

$$\pi_{\mathrm{ref}}(a_{t,i}\mid s_{t-1},x)=\frac{1}{\mathcal{A}

By construction, ∑_i=1∣A∣π_ref(a_t,i∣s_t−1⋆,x)=1\sum\_{i=1}^{|\mathcal{A}|}\pi\_{\mathrm{ref}}(a\_{t,i}\mid s\_{t-1}^{\star},x)=1, and we assume κ′\kappa^{\prime} is a sufficiently small value that will be assigned later. Next, define the true reward r⋆r^{\star} and the estimated reward r^\hat{r} for complete trajectories. Let y⋆y^{\star} denote the unique optimal trajectory induced by choosing a_t,1a\_{t,1} at every step along the optimal prefix, and let y≠y⋆y\neq y^{\star} denote any other trajectory. We set

r⋆(x,y⋆)=1,r⋆(x,y)=1−δ  (y≠y⋆),r^{\star}(x,y^{\star})=1,\qquad r^{\star}(x,y)=1-\delta\ \ (y\neq y^{\star}),

while the reward estimator is misspecified in the opposite direction:

r^(x,y⋆)=1−2δ,r^(x,y)=1−δ  (y≠y⋆),\hat{r}(x,y^{\star})=1-2\delta,\qquad\hat{r}(x,y)=1-\delta\ \ (y\neq y^{\star}),

where δ∈(0,1/2]\delta\in(0,1/2] will be chosen later, which ensures all rewards lie in [0,1][0,1]. This construction satisfies Assumption 3.

Thereby, under this hard instance, if the final top-bb response contains suboptimal responses, the reward model will output the incorrect result with probability one. According to the definition of Regret,

Reg(x)\displaystyle\mathrm{Reg}(x)$\displaystyle=r^{\star}(x,y^{\star})-\mathbb{E}_{y\sim\pi_{\mathrm{beam}}(\cdotx)}[r^{\star}(x,y)]=\delta\pi_{\mathrm{beam}}(\mathcal{Y}^{\prime}

where Y′=Y\{y⋆}\mathcal{Y}^{\prime}=\mathcal{Y}\backslash\{y^{\star}\}. Since we have b≥2b\geq 2 and the reward model will choose a suboptimal response if the final top-bb set contains y∈Y′y\in\mathcal{Y}^{\prime},

$$\pi_{\text{beam}}(\mathcal{Y}^{\prime}x)=1-\Pr(\text{the final top bb only contains }y^{\star}).$$

Providing the lower bound is to providing the upper bound for \Pr(\text{the final top b only contains }y^{\star}).

We next prove \Pr(\text{the final top b only contains }y^{\star})\leq 3/4 by cases, and hence π_beam(Y′∣x)≥1/4\pi\_{\text{beam}}(\mathcal{Y}^{\prime}|x)\geq 1/4 is in a constant order.

Case 1: N≤max⁡{C⋆_t(x)}N\leq\max\{C^{\star}\_{t}(x)\}.

Section titled “Case 1: N≤max⁡{C⋆_t(x)}N\leq\max\{C^{\star}\_{t}(x)\}N≤max{C⋆_t(x)}.”

Under this case, let κ′≤1/∣A∣\kappa^{\prime}\leq 1/|\mathcal{A}|. At the step where C⋆_t(x)=C_max⁡⋆C^{\star}\_{t}(x)=C\_{\max}^{\star}, the probability generating the correct response can be upper bounded by

1−(1−1C⋆_t)N≤1−(1−1C⋆_t)C_t⋆≤3/4.1-\left(1-\frac{1}{C^{\star}\_{t}}\right)^{N}\leq 1-\left(1-\frac{1}{C^{\star}\_{t}}\right)^{C\_{t}^{\star}}\leq 3/4.

where the last inequality follows by C⋆_t=∣A∣κ′∣A∣+1≥2C^{\star}\_{t}=\frac{|\mathcal{A}|}{\kappa^{\prime}\mathcal{|A|}+1}\geq 2.

Therefore, the optimal response y⋆y^{\star} is excluded from the final top-bb candidate set with probability at least 1/41/4, and hence \Pr(\text{the final top b only contains }y^{\star})\leq 3/4.

Case 2.1: {N>max⁡{C⋆_t(x)}\{N>\max\{C^{\star}\_{t}(x)\} and ∃ β_t≥1/C_t⋆(x)}\exists\ \beta\_{t}\geq 1/C\_{t}^{\star}(x)\}.

Section titled “Case 2.1: {N>max⁡{C⋆_t(x)}\{N>\max\{C^{\star}\_{t}(x)\}{N>max{C⋆_t(x)} and ∃ β_t≥1/C_t⋆(x)}\exists\ \beta\_{t}\geq 1/C\_{t}^{\star}(x)\}∃ β_t≥1/C_t⋆(x)}.”

In this case, the optimal trajectory will be eliminated with a constant probability greater than 1/4, since

Pr⁡(Bin(N,1/C⋆_t(x))<Nβ_t)≥Pr⁡(Bin(N,1/C⋆_t(x))<NC⋆_t(x))≥14,\Pr\left(\text{Bin}(N,1/C^{\star}\_{t}(x))<N\beta\_{t}\right)\geq\Pr\left(\text{Bin}(N,1/C^{\star}\_{t}(x))<\frac{N}{C^{\star}\_{t}(x)}\right)\geq\frac{1}{4},

where the last inequality follows from Lemma 12. Thus we exclude the optimal response from the final top bb candidate set with probability at least 1/41/4, and hence \Pr(\text{the final top b only contains }y^{\star})\leq 3/4.

Case 2.2: {N>max⁡_t∈[L]C_t⋆(x)}\{N>\max\_{t\in[L]}C\_{t}^{\star}(x)\} and ∀t, β_t<1/C_t⋆(x)}\forall t,\ \beta\_{t}<1/C\_{t}^{\star}(x)\}.

Section titled “Case 2.2: {N>max⁡_t∈[L]C_t⋆(x)}\{N>\max\_{t\in[L]}C\_{t}^{\star}(x)\}{N>max_t∈[L]C_t⋆(x)} and ∀t, β_t<1/C_t⋆(x)}\forall t,\ \beta\_{t}<1/C\_{t}^{\star}(x)\}∀t, β_t<1/C_t⋆(x)}.”

In this case, every filtering threshold β_t\beta\_{t} lies below the optimal-trajectory probability 1/C_t⋆(x)1/C\_{t}^{\star}(x). Hence, for each t∈[L]t\in[L], there exists some α∈(0,1)\alpha\in(0,1) such that β_t<αC_t⋆(x).\beta\_{t}<\frac{\alpha}{C\_{t}^{\star}(x)}. We choose κ′\kappa^{\prime} so that the probability of any fixed suboptimal next-token choice at the optimal prefix dominates the scaled optimal one, namely

$$\alpha\Bigl(\frac{1}{\mathcal{A}

Equivalently, α π_ref ⁣(a_t⋆∣s_t−1⋆,x)  ≤  π_ref ⁣(a_t,i∣s_t−1⋆,x), ∀i∈{2,…,∣A∣}.\alpha\,\pi\_{\text{ref}}\!\left(a\_{t}^{\star}\mid s\_{t-1}^{\star},x\right)\;\leq\;\pi\_{\text{ref}}\!\left(a\_{t,i}\mid s\_{t-1}^{\star},x\right),\ \forall i\in\{2,\ldots,|\mathcal{A}|\}. Now fix any round tt and consider any suboptimal child s_t′s\_{t}^{\prime} obtained by taking corresponding a_t,ia\_{t,i} with i≥2i\geq 2 from the optimal prefix s_t−1⋆s\_{t-1}^{\star}. Let

$$p:=\pi_{\text{ref}}(a_{t,i}\mid s_{t-1}^{\star},x)=\frac{1}{\mathcal{A}

By the choice of α\alpha and κ′\kappa^{\prime}, we have β_t<α/C_t⋆(x)≤p\beta\_{t}<\alpha/C\_{t}^{\star}(x)\leq p. Therefore, under NN i.i.d. draws, this suboptimal child survives the β_t\beta\_{t}-filtering with constant probability:

Pr⁡ ⁣(Bin(N,p)≥Nβ_t)  ≥  Pr⁡ ⁣(Bin(N,p)>Nβ_t)  ≥  Pr⁡ ⁣(Bin(N,p)>Np)  ≥  14,\Pr\!\left(\mathrm{Bin}(N,p)\geq N\beta\_{t}\right)\;\geq\;\Pr\!\left(\mathrm{Bin}(N,p)>N\beta\_{t}\right)\;\geq\;\Pr\!\left(\mathrm{Bin}(N,p)>Np\right)\;\geq\;\frac{1}{4},

where the last inequality follows from Lemma 11. Consequently, the probability that a single suboptimal child is eliminated at round tt is at most

Pr⁡ ⁣(Bin(N,p)<Nβ_t)≤34.\Pr\!\left(\mathrm{Bin}(N,p)<N\beta\_{t}\right)\leq\frac{3}{4}.

Since b≥2b\geq 2, as long as at least one suboptimal trajectory remains in the beam, the final top-bb set cannot consist solely of y⋆y^{\star} unless all suboptimal trajectories are eliminated at some intermediate round by the β_t\beta\_{t}-filtering (so that the beam collapses to a singleton). Formally, for each t∈[L]t\in[L] define the event

E_t:={at round t, after β_t-filtering, no suboptimal child survives},E:=⋃_t=1LE_t.E\_{t}:=\left\{\text{at round $t$, after $\beta\_{t}$-filtering, \emph{no} suboptimal child survives}\right\},\qquad E:=\bigcup\_{t=1}^{L}E\_{t}.

Then \{\text{the final top-b set contains only }y^{\star}\}\subseteq E, and hence

Pr⁡(the final top-b set contains only y⋆)≤Pr⁡(E)≤∑_t=1LPr⁡(E_t).\Pr(\text{the final top-$b$ set contains only }y^{\star})\leq\Pr(E)\leq\sum\_{t=1}^{L}\Pr(E\_{t}).

Next, fix a round tt and consider the NN draws from the next-token distribution at the optimal prefix s_t−1⋆s\_{t-1}^{\star}. Let (N_t,1,…,N_t,∣A∣)(N\_{t,1},\ldots,N\_{t,|\mathcal{A}|}) denote the resulting multinomial count vector with parameters NN and probabilities (p_t,1,…,p_t,∣A∣)(p\_{t,1},\ldots,p\_{t,|\mathcal{A}|}). Since multinomial counts are negatively associated, and thus satisfy a negative lower-orthant dependence bound Joag-Dev and Proschan (1983):

$$\Pr(E_{t})\leq\Pr!\left(\bigcap_{i=2}^{\mathcal{A}

Moreover, for each i≥2i\geq 2, N_t,i∼Bin(N,p_t,i)N\_{t,i}\sim\mathrm{Bin}(N,p\_{t,i}), and by the previous bound Pr⁡(Bin(N,p_t,i)<Nβ_t)≤3/4\Pr(\mathrm{Bin}(N,p\_{t,i})<N\beta\_{t})\leq 3/4. Therefore, Pr⁡(E_t)≤(34)∣A∣−1.\Pr(E\_{t})\leq\left(\frac{3}{4}\right)^{|\mathcal{A}|-1}. Consequently,

$$\Pr(E)\leq\sum_{t=1}^{L}\Pr(E_{t})\leq L\cdot\left(\frac{3}{4}\right)^{\mathcal{A}

where the last inequality follows from our choice of ∣A∣|\mathcal{A}|, namely ∣A∣≥log⁡Llog⁡(4/3)+2|\mathcal{A}|\geq\frac{\log L}{\log(4/3)}+2.

Taking Case 1, Case 2.1 and Case 2.2 together, \Pr(\text{the final top b only contains }y^{\star})\leq 3/4.

Finally, we specify δ\delta through the notation of reward model error. By the definition of ϵ_RM2\epsilon\_{\text{RM}}^{2}, we have

$$\epsilon_{\text{RM}}^{2}=\mathbb{E}_{y\sim\pi_{\mathrm{ref}}(\cdotx)}\left[\left(r^{*}(x,y)-\hat{r}(x,y)\right)^{2}\right]=\pi_{\text{ref}}(y^{\star}

Therefore, taking δ=C‾(x)ϵ_RM2(x)/2\delta=\sqrt{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}/2, the regret can be lower bounded as

Reg(x)\displaystyle\mathrm{Reg}(x)$\displaystyle=\delta\pi_{\mathrm{beam}}(\mathcal{Y}^{\prime}x)$
------------
\displaystyle=\sqrt{\frac{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}{4}}(1-\Pr(\text{the final top b only contains }y^{\star}))
------------
≥14C‾(x)ϵ_RM2(x)4.\displaystyle\geq\frac{1}{4}\sqrt{\frac{\overline{C}(x)\epsilon\_{\mathrm{RM}}^{2}(x)}{4}}.

The proof is completed. ∎

Let X∼Bin(N,p)X\sim\mathrm{Bin}(N,p) and let K∈{1,…,N}K\in\{1,\ldots,N\}. For every integer 1≤q≤K1\leq q\leq K,

E ⁣[(X/N)q1_{X≥K}]≤pqexp⁡ ⁣(q(q−1)2(K−q+1)).\mathbb{E}\!\left[(X/N)^{q}\mathbf{1}\_{\{X\geq K\}}\right]\leq p^{q}\exp\!\left(\frac{q(q-1)}{2(K-q+1)}\right).

If p>0p>0, then for every integer q≥1q\geq 1,

E ⁣[(Np/X)q1_{X≥K}]≤exp⁡ ⁣(q(q+1)2K),\mathbb{E}\!\left[(Np/X)^{q}\mathbf{1}\_{\{X\geq K\}}\right]\leq\exp\!\left(\frac{q(q+1)}{2K}\right),

where the integrand is zero on {X<K}\{X<K\}.

Write (X)_q=X(X−1)⋯(X−q+1)(X)\_{q}=X(X-1)\cdots(X-q+1). On X≥K≥qX\geq K\geq q, the inequality log⁡(1+u)≤u\log(1+u)\leq u gives

log⁡Xq(X)_q\displaystyle\log\frac{X^{q}}{(X)\_{q}}=∑_j=0q−1log⁡(1+jX−j)≤∑_j=0q−1jX−j≤q(q−1)2(K−q+1),\displaystyle=\sum\_{j=0}^{q-1}\log\left(1+\frac{j}{X-j}\right)\leq\sum\_{j=0}^{q-1}\frac{j}{X-j}\leq\frac{q(q-1)}{2(K-q+1)},
------------
E[(X/N)q1_{X≥K}]\displaystyle\mathbb{E}[(X/N)^{q}\mathbf{1}\_{\{X\geq K\}}]≤eq(q−1)/(2(K−q+1))NqE[(X)_q]=(N)_qNqpqeq(q−1)/(2(K−q+1))\displaystyle\leq\frac{e^{q(q-1)/(2(K-q+1))}}{N^{q}}\mathbb{E}[(X)\_{q}]=\frac{(N)\_{q}}{N^{q}}p^{q}e^{q(q-1)/(2(K-q+1))}
------------
≤pqeq(q−1)/(2(K−q+1)).\displaystyle\leq p^{q}e^{q(q-1)/(2(K-q+1))}.

The factorial-moment identity follows by expressing (X)_q(X)\_{q} as the sum over ordered qq-tuples of distinct Bernoulli trials of the product of their success indicators. This also covers p=0p=0.

For the inverse moment, take p>0p>0. Expanding the binomial probability mass function and substituting y=x+qy=x+q yields

E1(X+1)⋯(X+q)\displaystyle\mathbb{E}\frac{1}{(X+1)\cdots(X+q)}=∑_x=0NN!px(1−p)N−x(x+q)!(N−x)!\displaystyle=\sum\_{x=0}^{N}\frac{N!p^{x}(1-p)^{N-x}}{(x+q)!(N-x)!}
------------
=N!(N+q)!pq∑_y=qN+q(N+qy)py(1−p)N+q−y\displaystyle=\frac{N!}{(N+q)!p^{q}}\sum\_{y=q}^{N+q}\binom{N+q}{y}p^{y}(1-p)^{N+q-y}
------------
=Pr⁡{Bin(N+q,p)≥q}pq(N+1)⋯(N+q)≤1pq(N+1)⋯(N+q).\displaystyle=\frac{\Pr\{\mathrm{Bin}(N+q,p)\geq q\}}{p^{q}(N+1)\cdots(N+q)}\leq\frac{1}{p^{q}(N+1)\cdots(N+q)}.

For p=1p=1, the same identity follows directly from X=NX=N. On X≥KX\geq K, the product ∏_j=1q(1+j/X)\prod\_{j=1}^{q}(1+j/X) is at most exp⁡(q(q+1)/(2K))\exp(q(q+1)/(2K)). Consequently,

E[(Np/X)q1_{X≥K}]\displaystyle\mathbb{E}[(Np/X)^{q}\mathbf{1}\_{\{X\geq K\}}]≤(Np)qeq(q+1)/(2K)E1(X+1)⋯(X+q)\displaystyle\leq(Np)^{q}e^{q(q+1)/(2K)}\mathbb{E}\frac{1}{(X+1)\cdots(X+q)}
------------
≤Nq(N+1)⋯(N+q)eq(q+1)/(2K)≤eq(q+1)/(2K),\displaystyle\leq\frac{N^{q}}{(N+1)\cdots(N+q)}e^{q(q+1)/(2K)}\leq e^{q(q+1)/(2K)},

which proves the inverse-moment bound without a lower bound on pp. ∎

For p,q∈(0,1)p,q\in(0,1), the Bernoulli KL divergence is defined as

KL ⁣(p ∥ q):=plog⁡pq+(1−p)log⁡1−p1−q.\text{KL}\!\left(p\,\middle\|\,q\right):=p\log\frac{p}{q}+(1-p)\log\frac{1-p}{1-q}.

Let X≥0X\geq 0 be a nonnegative random variable with E[X]<∞\mathbb{E}[X]<\infty. Then for any a>0a>0,

P(X≥a)≤E[X]a.\mathbb{P}(X\geq a)\leq\frac{\mathbb{E}[X]}{a}.
Lemma 8 (Chernoff Inequality under Binomial Setting).
Section titled “Lemma 8 (Chernoff Inequality under Binomial Setting).”

Let X_i∼Ber(p)X\_{i}\sim\text{Ber}(p), S=∑_i=1nX_i∼Bin(n,p)S=\sum\_{i=1}^{n}X\_{i}\sim\text{Bin}(n,p), μ=E[S]\mu=\mathbb{E}[S], then ∀δ>0\forall\delta>0,

Pr⁡(S≥(1+δ)μ)≤(eδ(1+δ)1+δ)μ≤exp⁡(−μδ22+δ),\Pr\left(S\geq(1+\delta)\mu\right)\leq\left(\frac{e^{\delta}}{(1+\delta)^{1+\delta}}\right)^{\mu}\leq\exp\left(-\frac{\mu\delta^{2}}{2+\delta}\right),
Pr⁡(S≤(1−δ)μ)≤exp⁡(−μδ22).\Pr\left(S\leq(1-\delta)\mu\right)\leq\exp\left(-\frac{\mu\delta^{2}}{2}\right).

A KL-form Chernoff bound is:

Pr⁡ ⁣(Sn≥α)≤exp⁡ ⁣(−n KL⁡(α∥p))for α>p,\Pr\!\left(\frac{S}{n}\geq\alpha\right)\leq\exp\!\left(-n\,\operatorname{KL}(\alpha\|p)\right)\quad\text{for }\alpha>p,
Pr⁡ ⁣(Sn≤α)≤exp⁡ ⁣(−n KL⁡(α∥p))for α<p,\Pr\!\left(\frac{S}{n}\leq\alpha\right)\leq\exp\!\left(-n\,\operatorname{KL}(\alpha\|p)\right)\quad\text{for }\alpha<p,

where

KL⁡(α∥p)=αlog⁡αp+(1−α)log⁡1−α1−p.\operatorname{KL}(\alpha\|p)=\alpha\log\frac{\alpha}{p}+(1-\alpha)\log\frac{1-\alpha}{1-p}.

Let X_i,1,…,X_i,N∼i.i.d.Ber(π(a_i∣s_i−1,x))X\_{i,1},\dots,X\_{i,N}\stackrel{{\scriptstyle\text{i.i.d.}}}{{\sim}}\mathrm{Ber}(\pi(a\_{i}\mid s\_{i-1},x)) for some π(a_i∣s_i−1,x)∈(0,1)\pi(a\_{i}\mid s\_{i-1},x)\in(0,1), and define π^(a_i∣s_i−1,x)≜1N∑_j=1NX_i,j.\hat{\pi}(a\_{i}\mid s\_{i-1},x)\triangleq\frac{1}{N}\sum\_{j=1}^{N}X\_{i,j}. Then for any ε∈(0,1)\varepsilon\in(0,1),

$$\Pr\left(\left\log\frac{\hat{\pi}(a_{i}\mid s_{i-1},x)}{\pi(a_{i}\mid s_{i-1},x)}\right

By Lemma 8, we have

$$\Pr!\left(\bigl\hat{\pi}(a_{i}\mid s_{i-1},x)-\pi(a_{i}\mid s_{i-1},x)\bigr

That is, with probability at least 1−2exp⁡(−Nπ(a_i∣s_i−1,x)ε23)1-2\exp\left(-\frac{N\pi(a\_{i}\mid s\_{i-1},x)\varepsilon^{2}}{3}\right), we have

(1−ε)π(a_i∣s_i−1,x)≤π^(a_i∣s_i−1,x)≤(1+ε)π(a_i∣s_i−1,x).(1-\varepsilon)\pi(a\_{i}\mid s\_{i-1},x)\leq\hat{\pi}(a\_{i}\mid s\_{i-1},x)\leq(1+\varepsilon)\pi(a\_{i}\mid s\_{i-1},x).

This implies

log⁡π^(a_i∣s_i−1,x)π(a_i∣s_i−1,x)∈[log⁡(1−ε),log⁡(1+ε)].\log\frac{\hat{\pi}(a\_{i}\mid s\_{i-1},x)}{\pi(a\_{i}\mid s\_{i-1},x)}\in[\log(1-\varepsilon),\log(1+\varepsilon)].

Hence,

$$\left\log\frac{\hat{\pi}(a_{i}\mid s_{i-1},x)}{\pi(a_{i}\mid s_{i-1},x)}\right

Therefore,

$$\Pr\left(\left\log\frac{\hat{\pi}(a_{i}\mid s_{i-1},x)}{\pi(a_{i}\mid s_{i-1},x)}\right

∎

Let α∈(0,1)\alpha\in(0,1) and p∈(0,1)p\in(0,1). Then the following two lower bounds hold:

KL(p∥αp)≥(log⁡(1/α)−(1−α))p,\mathrm{KL}(p\|\alpha p)\geq\left(\log(1/\alpha)-(1-\alpha)\right)p,(14)
KL(αp∥p)≥((1−α)−αlog⁡(1/α))p.\mathrm{KL}(\alpha p\|p)\geq\left((1-\alpha)-\alpha\log(1/\alpha)\right)p.(15)

We prove Equations 14 and 15 separately.

Proof of Equation 14. By the definition of Bernoulli KL,

KL(p∥αp)=plog⁡pαp+(1−p)log⁡1−p1−αp=plog⁡1α−(1−p)log⁡1−αp1−p.\mathrm{KL}(p\|\alpha p)=p\log\frac{p}{\alpha p}+(1-p)\log\frac{1-p}{1-\alpha p}=p\log\frac{1}{\alpha}-(1-p)\log\frac{1-\alpha p}{1-p}.

Let u:=(1−α)p1−p>0u:=\frac{(1-\alpha)p}{1-p}>0, then

1−αp1−p=1+u.\frac{1-\alpha p}{1-p}=1+u.

Using log⁡(1+u)≤u\log(1+u)\leq u, we obtain

−(1−p)log⁡1−αp1−p=−(1−p)log⁡(1+u)≥−(1−p)u=−(1−α)p.-(1-p)\log\frac{1-\alpha p}{1-p}=-(1-p)\log(1+u)\geq-(1-p)u=-(1-\alpha)p.

Combining the last display with the expression of KL(p∥αp)\mathrm{KL}(p\|\alpha p) yields

KL(p∥αp)≥(log⁡(1/α)−(1−α))p.\mathrm{KL}(p\|\alpha p)\geq\bigl(\log(1/\alpha)-(1-\alpha)\bigr)p.

Proof of Equation 15. Again by the definition of Bernoulli KL,

KL(αp∥p)=αplog⁡αpp+(1−αp)log⁡1−αp1−p=αplog⁡α+(1−αp)log⁡1−αp1−p.\mathrm{KL}(\alpha p\|p)=\alpha p\log\frac{\alpha p}{p}+(1-\alpha p)\log\frac{1-\alpha p}{1-p}=\alpha p\log\alpha+(1-\alpha p)\log\frac{1-\alpha p}{1-p}.

Let x:=(1−α)p1−p>0x:=\frac{(1-\alpha)p}{1-p}>0, so that

1−αp1−p=1+x.\frac{1-\alpha p}{1-p}=1+x.

Using log⁡(1+x)≥x1+x\log(1+x)\geq\frac{x}{1+x}, we get

(1−αp)log⁡1−αp1−p=(1−αp)log⁡(1+x)≥(1−αp)x1+x.(1-\alpha p)\log\frac{1-\alpha p}{1-p}=(1-\alpha p)\log(1+x)\geq(1-\alpha p)\frac{x}{1+x}.

Note that

x1+x=(1−α)p1−p1+(1−α)p1−p=(1−α)p1−αp.\frac{x}{1+x}=\frac{\frac{(1-\alpha)p}{1-p}}{1+\frac{(1-\alpha)p}{1-p}}=\frac{(1-\alpha)p}{1-\alpha p}.

Hence

(1−αp)x1+x=(1−α)p.(1-\alpha p)\frac{x}{1+x}=(1-\alpha)p.

Therefore,

KL(αp∥p)≥αplog⁡α+(1−α)p=((1−α)−αlog⁡(1/α))p.\mathrm{KL}(\alpha p\|p)\geq\alpha p\log\alpha+(1-\alpha)p=\bigl((1-\alpha)-\alpha\log(1/\alpha)\bigr)p.

This completes the proof. ∎

Let X∼Bin(N,p)X\sim\mathrm{Bin}(N,p) with N≥1N\geq 1 and p∈(0,1)p\in(0,1). If

p≥cN,where c:=ln⁡(4/3)=0.28768…,p\geq\frac{c}{N},\qquad\text{where }c:=\ln(4/3)=0.28768\ldots,

then

Pr⁡ ⁣(X>E[X])≥14.\Pr\!\bigl(X>\mathbb{E}[X]\bigr)\geq\frac{1}{4}.

See Theorem 1 of Pinelis (2021). ∎

Let X∼Bin(N,p)X\sim\mathrm{Bin}(N,p) with N≥1N\geq 1 and p∈(0,1/2]p\in(0,1/2]. Then

Pr⁡ ⁣(X<E[X])=Pr⁡(X<Np)≥14.\Pr\!\bigl(X<\mathbb{E}[X]\bigr)=\Pr(X<Np)\geq\frac{1}{4}.

Let q:=1−p∈[1/2,1)q:=1-p\in[1/2,1) and define Y:=N−XY:=N-X. Then Y∼Bin(N,q)Y\sim\mathrm{Bin}(N,q) and E[Y]=Nq\mathbb{E}[Y]=Nq. Moreover,

{X<Np}  ⟺  {N−X>N−Np}  ⟺  {Y>Nq}  ⟺  {Y>E[Y]},\{X<Np\}\iff\{N-X>N-Np\}\iff\{Y>Nq\}\iff\{Y>\mathbb{E}[Y]\},

so Pr⁡(X<Np)=Pr⁡(Y>E[Y])\Pr(X<Np)=\Pr(Y>\mathbb{E}[Y]).

If N=1N=1, then Y∈{0,1}Y\in\{0,1\} and E[Y]=q∈(1/2,1)\mathbb{E}[Y]=q\in(1/2,1), hence

Pr⁡(Y>E[Y])=Pr⁡(Y=1)=q≥12.\Pr(Y>\mathbb{E}[Y])=\Pr(Y=1)=q\geq\frac{1}{2}.

If N≥2N\geq 2, since q≥1/2q\geq 1/2 and c=ln⁡(4/3)<1/2c=\ln(4/3)<1/2, we have q≥1/2≥c≥c/Nq\geq 1/2\geq c\geq c/N. Thus the condition of Lemma 11 holds for YY, and so

Pr⁡(Y>E[Y])≥14.\Pr(Y>\mathbb{E}[Y])\geq\frac{1}{4}.

Combining both cases yields Pr⁡(X<Np)=Pr⁡(Y>E[Y])≥1/4\Pr(X<Np)=\Pr(Y>\mathbb{E}[Y])\geq 1/4. ∎

Appendix H Experiment Details and Supplemental Experiments

Section titled “Appendix H Experiment Details and Supplemental Experiments”

We compare CF-Beam against four representative test-time methods: (i) Vanilla beam search, which follows the same beam pipeline as CF-Beam but without the confidence-filtering step; (ii) Best-of-NN (Huang et al., 2025), which samples NN responses independently and selects the one with the highest reward; (iii) Majority Voting, which samples NN responses independently and selects the one with the highest frequency; and (iv) Best-of-Majority (Di et al., 2025), which first filters candidates via majority voting (self-consistency) and then chooses the highest-scoring response under an external reward model.

Remark 4 (Oracle CF-Beam and Empirical CF-Beam).
Section titled “Remark 4 (Oracle CF-Beam and Empirical CF-Beam).”

The threshold used in Theorem 2 is

β_t=1−1/LC_t⋆(x)=(1−1L)π_ref(a_t⋆∣s_t−1⋆,x),\beta\_{t}=\frac{1-1/L}{C\_{t}^{\star}(x)}=\Bigl(1-\frac{1}{L}\Bigr)\pi\_{\mathrm{ref}}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x),

which depends on the unknown optimal token probability along the optimal prefix. Therefore, this choice is oracle and is generally not directly implementable in practice. In the experiments, we include this version as Oracle CF-Beam, which serves as a diagnostic reference for the theory-prescribed threshold.

For a practical implementation, we instead use a prefix-adaptive empirical threshold

β_t(s_t−1)=γ p^_max⁡,t(s_t−1),p^_max⁡,t(s_t−1):=max⁡_a∈Aπ^(a∣s_t−1,x),\beta\_{t}(s\_{t-1})=\gamma\,\hat{p}\_{\max,t}(s\_{t-1}),\qquad\hat{p}\_{\max,t}(s\_{t-1}):=\max\_{a\in\mathcal{A}}\hat{\pi}(a\mid s\_{t-1},x),

where γ∈(0,1)\gamma\in(0,1) is a tuning parameter. This rule is motivated by the fact that the oracle threshold is a constant fraction of the optimal token probability. In likelihood-aligned regimes, where the optimal continuation is locally competitive under the reference policy, the optimal token probability is of the same order as the local maximum probability. Thus p^_max⁡,t(s_t−1)\hat{p}\_{\max,t}(s\_{t-1}) provides a scale-adaptive proxy for the unknown quantity 1/C_t⋆(x)1/C\_{t}^{\star}(x), while avoiding the need to know either C_t⋆(x)C\_{t}^{\star}(x) or the optimal token a_t⋆a\_{t}^{\star}.

This empirical rule preserves the main purpose of the oracle threshold: it filters out low-frequency tail tokens whose empirical probabilities are small relative to the local mode, while retaining multiple plausible high-probability continuations. In our experiments, we set γ=0.3\gamma=0.3 and refer to this implementation as Empirical CF-Beam. Figures 3 and 3 show that Empirical CF-Beam achieves performance comparable to, and sometimes slightly better than, Oracle CF-Beam.

In all experiments, we use an LLM simulator specified by the collection of conditional next-token distributions {π_ref(⋅∣s,x)}_s∈A≤L−1\{\pi\_{\text{ref}}(\cdot\mid s,x)\}\_{s\in\mathcal{A}^{\leq L-1}}, which fully characterizes the rollout distribution π_ref(⋅∣x)\pi\_{\text{ref}}(\cdot\mid x) over trajectories y∈ALy\in\mathcal{A}^{L} for a fixed prompt xx. The optimal output is defined as y⋆:=arg⁡max⁡_y∈ALπ_ref(y∣x)y^{\star}:=\arg\max\_{y\in\mathcal{A}^{L}}\pi\_{\text{ref}}(y\mid x). Following the setting of Reinforcement Learning with Verifiable Reward (RLVR), we define the ground-truth reward r⋆(x,y⋆)=1r^{\star}(x,y^{\star})=1 and r⋆(x,y)=0r^{\star}(x,y)=0 for all y∈AL∖{y⋆}y\in\mathcal{A}^{L}\setminus\{y^{\star}\}, and evaluate each algorithm by its accuracy in identifying y⋆y^{\star}. The noisy reward model r^\hat{r} with error level ϵ_RM2=0.01\epsilon\_{\mathrm{RM}}^{2}=0.01 is implemented as symmetric label noise: r^(x,y)\hat{r}(x,y) flips r⋆(x,y)r^{\star}(x,y) independently with probability 0.010.01. For each instance, we run each algorithm for 300300 independent trials and report the average accuracy of returning the correct answer.

We construct a history-dependent token policy π_ref(⋅∣s,x)\pi\_{\text{ref}}(\cdot\mid s,x) over an action set A\mathcal{A} with horizon LL, optimal-suboptimal gap κ′\kappa^{\prime}, and target optimal-trajectory probability p=1C‾(x)∈(0,1)p=\frac{1}{\overline{C}(x)}\in(0,1). The construction ensures: (i) there exists a unique optimal trajectory s⋆_Ls^{\star}\_{L} with π_ref(s⋆_L∣x)=p\pi\_{\text{ref}}(s^{\star}\_{L}|x)=p, and (ii) for every state s_t−1s\_{t-1} at depth t−1t-1, the best action a⋆_t(s_t−1)a^{\star}\_{t}(s\_{t-1}) satisfies the log-gap condition log⁡π_ref(s⋆_t∣x)−log⁡π_ref(s_t∣x)≥7κ′\log\pi\_{\text{ref}}(s^{\star}\_{t}\mid x)-\log\pi\_{\text{ref}}(s\_{t}\mid x)\geq 7\kappa^{\prime} for all s_t≠s⋆_ts\_{t}\neq s^{\star}\_{t}. To be specific, we first generate the optimal trajectory’s distribution {C_t⋆(x)}_t=1L\{C\_{t}^{\star}(x)\}\_{t=1}^{L}, and then generate the suboptimal action’s distribution at each time step t∈[L]t\in[L]. The key steps are illustrated as follows.

Step 1 (optimal path). Since the probability of generating the correct answer using one single rollout is 1/C‾1/\overline{C}, the geometric mean per-step probability along the optimal trajectory is (1/C‾)1/L(1/\overline{C})^{1/L}. To add randomness towards the language model, we draw (ξ_1,…,ξ_L)(\xi\_{1},\ldots,\xi\_{L}) from a zero-sum Gaussian distribution (e.g., ξ~_t∼N(0,σ2)\tilde{\xi}\_{t}\sim\mathcal{N}(0,\sigma^{2}) i.i.d. and ξ_t=ξ~_t−1L∑_j=1Lξ~_j\xi\_{t}=\tilde{\xi}\_{t}-\frac{1}{L}\sum\_{j=1}^{L}\tilde{\xi}\_{j}), and set

log⁡1C_t⋆(x)=1Llog⁡p+ξ_t,t=1,…,L.\log\frac{1}{C\_{t}^{\star}(x)}=\frac{1}{L}\log p+\xi\_{t},\qquad t=1,\ldots,L.

The larger the value of σ2\sigma^{2}, the greater the variability in per-step difficulty.

Step 2 (suboptimal actions distribution). Since the optimal trajectory is set, we now focus on designing the distribution for suboptimal actions over optimal and suboptimal trajectories. First, for any suboptimal trajectories s_t−1≠s_t−1⋆s\_{t-1}\neq s\_{t-1}^{\star}, t∈[L]t\in[L], we assign the probability of generating local best action with π(a_t⋆(s_t−1)∣s_t−1,x)=π(a_t⋆∣s⋆_t−1,x)=1C_t⋆(x)\pi(a\_{t}^{\star}(s\_{t-1})\mid s\_{t-1},x)=\pi(a\_{t}^{\star}\mid s^{\star}\_{t-1},x)=\frac{1}{C\_{t}^{\star}(x)}. Second, for suboptimal actions on both optimal and suboptimal trajectories, we sample their probability mass vector using a Dirichlet distribution:

(π_ref(a∣s_t−1,x))_a∈A∖{a⋆(s_t−1)}∼Dirichlet(α1),\left(\pi\_{\mathrm{ref}}(a\mid s\_{t-1},x)\right)\_{a\in\mathcal{A}\setminus\{a^{\star}(s\_{t-1})\}}\sim\mathrm{Dirichlet}(\alpha\mathbf{1}),

where α\alpha controls the concentration of the suboptimal action distribution. Finally, we normalize the distribution over suboptimal actions such that ∑_a≠a_t⋆(s)π_ref(a∣s,x)=1−1C_t⋆(x)\sum\_{a\neq a\_{t}^{\star}(s)}\pi\_{\mathrm{ref}}(a\mid s,x)=1-\frac{1}{C\_{t}^{\star}(x)} and it does not violate our unique optimal trajectory assumption. Therefore, given the basic parameters ∣A∣|\mathcal{A}|, LL and pp, together with the hyperparameters σ\sigma and α\alpha, we construct next-token distributions π_ref(⋅∣s,x)\pi\_{\mathrm{ref}}(\cdot\mid s,x) for all prefixes ss of length at most L−1L-1, thereby simulating the LLM sampling process.

Figure 3: ∣A∣|\mathcal{A}|=100, LL=10, p=[0.01,0.05,0.3]p=[0.01,0.05,0.3], κ=0.01\kappa=0.01, α=0.5\alpha=0.5, σ=1\sigma=1.

Figure 3: ∣A∣|\mathcal{A}|=100, L∈[2,40]L\in[2,40], p=0.8Lp=0.8^{L}, κ=0.01\kappa=0.01, α=0.1\alpha=0.1, σ=1\sigma=1.

We expand here on the discussion in Section 5 with a finer-grained, per-panel analysis of Figures 3 and 3.

Difficulty experiment (Figure 3). In the hardest setting (p=0.01p=0.01, Figure 2(a)), both Oracle CF-Beam and Empirical CF-Beam achieve substantially higher accuracy than the sequence-level parallel baselines (Best-of-NN, Majority Voting, Best-of-Majority) and Vanilla-Beam, especially under limited budgets. This is precisely the regime where sparse coverage and finite-sample tail fluctuations are most pronounced, and hence where the failure mode identified in Theorem 1 is most amplified. As the problem becomes easier (Figure 2(b)), the performance gap narrows: the sequence-level baselines catch up at moderate-to-large budgets, and the improvement of CF-Beam over Vanilla-Beam becomes more moderate. In the easiest regime (p=0.3p=0.3, Figure 2(c)), most methods achieve comparable performance, and Vanilla-Beam nearly matches CF-Beam once the budget is sufficiently large. These trends suggest that the confidence filter is most beneficial in hard, sparse-coverage instances, while its marginal gain decreases when the base policy is already accurate enough for the optimal prefixes to be reliably sampled. This is also consistent with the gap between the sequence-level coefficient C‾\overline{C} and the worst-step coefficient C_max⁡⋆C\_{\max}^{\star} shown in each panel: as pp increases, this gap becomes less pronounced, reducing the potential advantage of CF-Beam.

Horizon-length experiment (Figure 3). We consider a setting where, at each step, the model selects the correct action with mean probability 0.80.8. As the horizon grows, the accuracy of Best-of-NN, Best-of-Majority, and Majority Voting drops rapidly, whereas the beam-based methods are more robust. Among them, the CF-Beam variants consistently maintain the highest accuracy, indicating that confidence filtering further improves the stability of beam search in long-horizon regimes. This is consistent with our theory, which shows that the dominant sample-complexity term for CF-Beam grows only polynomially in the horizon length LL. In contrast, sequence-level baselines can exhibit exponential dependence on LL, causing their performance to degrade more rapidly as the horizon increases.

Remark 5 (Finite-budget performance of Empirical CF-Beam).
Section titled “Remark 5 (Finite-budget performance of Empirical CF-Beam).”

It may seem counterintuitive that, in Figure 3, Empirical CF-Beam slightly outperforms Oracle CF-Beam. Here, oracle refers to knowledge of the optimal-token probability used to set the threshold; the theory-prescribed choice need not maximize accuracy at every finite budget. Writing p_t⋆:=π_ref(a_t⋆∣s_t−1⋆,x)p\_{t}^{\star}:=\pi\_{\mathrm{ref}}(a\_{t}^{\star}\mid s\_{t-1}^{\star},x), the oracle threshold (1−1/L)p_t⋆(1-1/L)p\_{t}^{\star} leaves a margin of only p_t⋆/Lp\_{t}^{\star}/L below the mean empirical frequency. As LL grows, this shrinking margin makes the filter more sensitive to downward sampling fluctuations. The sufficient condition in Corollary 1 includes N≳C_max⁡⋆L2log⁡(2L/δ)N\gtrsim C\_{\max}^{\star}L^{2}\log(2L/\delta) to control filtering errors, whereas the horizon experiment fixes the total sampling budget and therefore cannot increase the per-prefix sample size at this rate. With γ=0.3\gamma=0.3, the empirical threshold γp^_max⁡,t(s_t−1⋆)\gamma\hat{p}\_{\max,t}(s\_{t-1}^{\star}) can provide a lower cutoff when p^_max⁡,t(s_t−1⋆)\hat{p}\_{\max,t}(s\_{t-1}^{\star}) tracks p_t⋆p\_{t}^{\star}. This reduces the risk of premature elimination, while potentially admitting more suboptimal candidates, and provides a plausible explanation for the observed empirical advantage.

To complement the simulator experiments, we evaluate CF-Beam on a matrix-multiplication task using a pretrained LLM. This experiment examines whether the empirical confidence filter improves response accuracy under a comparable sampling budget when both the reference policy and the reward model are implemented by neural networks.

We evaluate Qwen3-1.7B-Base Yang et al. (2025) on 500500 synthetic 4×44\times 4 integer matrix-multiplication problems. All methods sample from the same reference policy π_ref\pi\_{\mathrm{ref}}, given by the base model at sampling temperature 1.31.3. Completed responses are scored by AceMath-7B-RM (Liu et al., 2025b), which supplies the outcome reward for methods that use reward-based selection. We compare Empirical CF-Beam with the same four baselines used in the simulator experiments: Best-of-NN, Majority Voting, Best-of-Majority, and Vanilla-Beam. Both beam methods follow Algorithm 3, with per-prefix sample size N=12N=12 and beam width b=2b=2. For Empirical CF-Beam, we use the prefix-adaptive threshold β_t(s)=γp^_max⁡,t(s)\beta\_{t}(s)=\gamma\hat{p}\_{\max,t}(s) with γ=0.3\gamma=0.3, as defined in the preceding subsection. We report the accuracy of the final selected response and the sampling budget, using the token-level policy-query accounting defined in the main text.

Table 2: Comparison on 500500 synthetic 4×44\times 4 integer matrix-multiplication problems using Qwen3-1.7B-Base. Beam methods use N=12N=12 and b=2b=2; Empirical CF-Beam uses γ=0.3\gamma=0.3. Budgets are reported in thousands of token-level policy queries.

Best-of-NNMajority VotingBest-of- MajorityVanilla-BeamCF-Beam
Accuracy0.3320.3040.3260.3720.388
Budget (×103\times 10^{3})16.816.816.818.616.2

Table 2 shows that Empirical CF-Beam achieves the highest accuracy among the evaluated methods, reaching 0.3880.388 with a sampling budget of 16.2k16.2\mathrm{k}. This improves on Vanilla-Beam by 1.61.6 percentage points while using a smaller budget (16.2k16.2\mathrm{k} versus 18.6k18.6\mathrm{k}). Relative to the strongest sequence-level baseline, Best-of-NN, CF-Beam improves accuracy by 5.65.6 percentage points, again with a slightly smaller sampling budget. These results provide evidence that confidence filtering can improve the accuracy–budget tradeoff in this LLM setting, consistent with the trends observed in the simulator experiments.

Ablation over the filtering threshold and beam width.

Section titled “Ablation over the filtering threshold and beam width.”

We further vary γ∈{0,0.15,0.3,0.45,0.6,0.75,0.9}\gamma\in\{0,0.15,0.3,0.45,0.6,0.75,0.9\} and b∈{2,4,8}b\in\{2,4,8\} while keeping N=12N=12 fixed. Here, γ=0\gamma=0 disables confidence filtering and recovers Vanilla-Beam. Since the response lengths and reward-model errors depend on the chosen model and task, this ablation focuses on the two algorithmic parameters γ\gamma and bb.

Table 3: Accuracy under different beam widths bb and filtering coefficients γ\gamma on the same LLM task, with N=12N=12. The column γ=0\gamma=0 corresponds to Vanilla-Beam. Bold entries mark the highest accuracy for each beam width.

γ=0\gamma=00.150.150.30.30.450.450.60.60.750.750.90.9
b=2b=20.3720.3780.3880.3720.3180.2920.290
b=4b=40.4820.5120.4720.3920.3740.3300.302
b=8b=80.5360.5500.4800.4340.3640.2920.300

Table 3 shows that the best accuracy is attained at a moderate filtering coefficient: γ=0.3\gamma=0.3 for b=2b=2 and γ=0.15\gamma=0.15 for b=4b=4 and b=8b=8. At each beam width, the best filtered configuration improves on Vanilla-Beam. Larger thresholds lead to substantially lower accuracy, consistent with overly aggressive filtering discarding useful continuations. These observations reflect the tradeoff between removing low-frequency tail candidates and preserving plausible reasoning trajectories. Increasing the beam width also improves the best observed accuracy, from 0.3880.388 at b=2b=2 to 0.5120.512 at b=4b=4 and 0.5500.550 at b=8b=8. This comparison holds the per-prefix sample size fixed; maintaining a wider beam generally requires a larger total sampling budget.