betaFeedback

WorksComputer Science

Trajectory-Retrieval Speculative Decoding: When Does a Model's Own History Help?

Abstract

Long chain-of-thought reasoning increases sequential decoding cost while creating a growing history of potentially reusable continuations. We investigate when this history supplies useful drafts and complements an existing drafter. Controlled source comparisons reveal trajectory-specific reuse, motivating our method Trajectory-Local Adaptive Retrieval (TLAR). TLAR retrieves approximately matched continuations from the current trajectory and uses recent verification outcomes to adapt retrieval activation and candidate width. TLAR combines retrieved continuations with model-generated drafts in a shared candidate tree, preserving the target model's output distribution through exact verification. Across code debugging, mathematics, and open-ended writing, our evaluation connects source reuse, incremental acceptance, and execution cost. Combining TLAR with strong retrieval baselines improves token acceptance under matched verification budgets and increases end-to-end throughput over the draft-model baseline. These findings support generated trajectories as runtime memory for adaptive inference.

GitHub: YUYANG0915/tlr

Introduction

Large language models (LLMs) can improve their performance on difficult tasks by generating long chains of thought (CoT) before producing a final answer [43]. Long-CoT reasoning is used in competition mathematics [25, 1, 29], program synthesis and debugging [16, 15], and scientific reasoning [33]. This benefit comes at a cost: a single response may contain thousands of reasoning tokens, as autoregressive models generate these tokens one at a time, each new token can be produced only after the preceding tokens are available [18]. As reasoning traces grow longer, this sequential decoding cost accumulates, making efficient token generation increasingly important for practical long-CoT inference.

A practical goal is to accelerate this process without changing the target model’s output distribution. Recently, speculative decoding does so by using a faster drafter to propose several future tokens, and the target model then verifies in parallel [18, 3]. Most methods use a smaller model or a lightweight prediction head trained to imitate the target model [22, 2]. Currently, some methods extend the same idea from individual tokens to complete reasoning steps [31, 40, 35]. These methods can be effective, but they require an additional trained component. To avoid this requirement, retrieval-based methods construct drafts from existing text. They search the prompt, an external datastore, or tokens already generated by the target model, and use the continuations following a match as draft candidates [10, 8, 13, 30, 19, 26, 4] (Somasundaram et al. 2025). Among these, we focus on the tokens generated earlier in the current trajectory. Similar contexts may appear more than once during long reasoning. When this happens, the tokens that followed an earlier context can be reused as a draft. However, using the current trajectory as a draft source raises three challenges.

Challenge 1: Separating trajectory reuse from common text. Retrieval may succeed because reasoning traces share common text. Different reasoning traces may share common words, symbols, and formatting patterns, allowing retrieval to succeed even when the current history is not used. High acceptance can also result from a model repeating the same text without making progress. A fair test must compare the current trajectory with other retrieval sources while keeping the task, target model, and matching rule unchanged.

Challenge 2: Finding tokens beyond a small draft model. Even if the current trajectory provides useful drafts, a small draft model may already predict the same tokens. In that case, adding retrieval does not increase the number of accepted tokens. So we must compare the combined system with the same small draft model used alone.

Challenge 3: Controlling the cost of retrieval verification. Every retrieved candidate must be verified by the target model which adds computation, while reusable content does not appear at every position in a reasoning trace. An effective method should decide when to use retrieval and how many candidates to verify based only on results observed at earlier positions.

We address these challenges through source comparisons and Trajectory-Local Adaptive Retrieval (TLAR). After defining acceptance and cost in § 2, we compare current history with control sources and another rollout of the same problem in § 3. These observations guide TLAR in § 4: we find approximate context matches in generated history and combine their continuations with SmallDraft in a prefix-sharing tree. We retain the SmallDraft candidate and use earlier verification results to choose when to retrieve and how many candidates to include. Periodic probes check for new useful content, and the target model verifies every proposed token exactly. In § 5, we test added acceptance over SmallDraft, added coverage under shared retrieval-node budgets, and the controller’s gain–cost trade-off separately. We summarize our contributions as follows:

  • Uncovering Trajectory-Specific Reuse. We test when the current history provides more accepted tokens than other sources, and use same-prompt controls to distinguish the effect of the trajectory from that of the problem. The advantage depends on model and task.

  • More Accepted Tokens Within the Same Budget. We measure how many additional tokens the target model accepts when TLAR is combined with a draft model compared with using the same draft model alone. We then combine TLAR with the strongest retrieval baseline under shared verification-node budgets. The union yields more accepted tokens than either source alone, showing the value of trajectory-local candidates within the budget.

  • An Adaptive Retrieval Method. We introduce TLAR, which searches the current trajectory and uses earlier verification results to decide when to retrieve and how many candidates to submit. Experiments across models, tasks, and verification budgets show when this approach is useful and how its gain changes with its cost.

Preliminaries

Speculative Decoding and Token Verification. Given a prompt xx, a target language model M\mathcal{M} generates a token sequence y=(y1,…,yT)\mathbf{y} = (y_1, \ldots, y_T). At position tt, the tokens already generated form the history ht=(y1,…,yt−1)h_t = (y_1, \ldots, y_{t-1}). In speculative decoding, a drafter uses this history to propose a sequence of future tokens c=(c1,…,cL)\mathbf{c} = (c_1, \ldots, c_L). The target model verifies these tokens in one forward pass and accepts the longest prefix that matches (yt,…,yt+L−1)(y_t, \ldots, y_{t+L-1}). We define the accepted length as a(c,t)=max⁡{ℓ:0≤ℓ≤L,c1:ℓ=yt:t+ℓ−1}a(\mathbf{c}, t) = \max\{\ell: 0 \leq\ell\leq L, c_{1:\ell} = y_{t:t+\ell-1}\}. The first figure generate one target sequence y\mathbf{y} for each prompt, and test every drafting method at the same positions in this sequence, so all methods are asked to predict the same next tokens.

Model-Based and Retrieval-Based Drafting. The candidate c\mathbf{c} defined above can be produced in two ways. A model-based drafter uses a smaller language model Mdraft\mathcal{M}_{\mathrm{draft}} to predict the next tokens from the prompt and the current history [22, 2]. Let dtd_t denote its draft at position tt. Its accepted length is asmall(t)=a(dt,t)a_{\mathrm{small}}(t) = a(d_t, t). A retrieval-based drafter constructs candidates from text that is already available [10, 13, 30] (Somasundaram et al. 2025). It searches a text source for a context similar to the current one and uses the tokens following that context as a draft. In this work, we focus on retrieval from the current history hth_t. Let Rt\mathcal{R}_t denote the set of candidates retrieved at position tt. Its accepted length is aretr(t)=max⁡r∈Rta(r,t)a_{\mathrm{retr}}(t) = \max_{\mathbf{r} \in\mathcal{R}_t} a(\mathbf{r}, t), with aretr(t)=0a_{\mathrm{retr}}(t) = 0 when no candidate is retrieved.

Incremental Acceptance and Verification Cost. We now measure whether retrieval adds value beyond the small draft model. We first consider positions where the small draft model fails on its first token, so asmall(t)=0a_{\mathrm{small}}(t) = 0. The recovery rate is R=Pr⁡(aretr(t)≥1∣asmall(t)=0)R = \Pr(a_{\mathrm{retr}}(t) \geq1 \mid a_{\mathrm{small}}(t) = 0). It measures how often retrieval finds at least one correct token when the small draft model fails immediately.

Since recovery does not cover positions where the small draft model predicts some correct tokens but retrieval provides a longer continuation, we define the added accepted tokens at position tt as δ(t)=max⁡{asmall(t),aretr(t)}−asmall(t)\delta(t) = \max\{a_{\mathrm{small}}(t), a_{\mathrm{retr}}(t)\} - a_{\mathrm{small}}(t). The average gain is Δ=1T∑t=1Tδ(t)\Delta= \frac{1}{T}\sum_{t=1}^{T}\delta(t). Retrieval receives credit only when it allows the target model to accept more tokens than the same small draft model used alone. We then measure verification cost by the number of retrieval nodes submitted to the target model. Let Nretr(t)N_{\mathrm{retr}}(t) denote this number at position tt, with Nretr(t)=0N_{\mathrm{retr}}(t) = 0 when retrieval is not used. The average cost is C=1T∑t=1TNretr(t)C = \frac{1}{T}\sum_{t=1}^{T}N_{\mathrm{retr}}(t).

An Exploratory Study

Before testing whether retrieval can improve a small draft model, we first ask whether the current trajectory is a better retrieval source than other available text. We then ask whether any advantage remains when the alternative trajectory comes from the same problem, and whether successful retrieval is spread evenly through generation.

Retrieval and controller settings. The default retrieval configuration uses context length c=4c = 4, mismatch tolerance ϵ=1\epsilon= 1, history threshold τ=512\tau= 512, and continuation depth d=4d = 4. Fixed-width experiments use k=4k = 4. The adaptive controller uses kmin⁡=1k_{\min} = 1, kmax⁡=4k_{\max} = 4, ρmin⁡=0.05\rho_{\min} = 0.05, half-life H=32H = 32, and probe interval P=32P = 32. § 5.4 examines candidate configurations and controller components; Appendix § 10.5 reports the half-life and probe-interval sweeps.

Evaluation Protocol. We keep the target trajectory and acceptance rule fixed and compare four draft sources. Within searches the current generated history. Cross searches another trajectory from the same target model and dataset, restricted to the same available history length. Shuffled searches a block-shuffled version of the current history. Unigram uses token frequencies without matching the current context. Within, Cross, and Shuffled use the same matcher. We report the mean exactly accepted length, EexactE_{\mathrm{exact}}, for Qwen3-8B, Mistral-Small-3.2-24B-Instruct, and Llama-3.1-8B-Instruct.

Finding 1: Current history helps more in code and mathematics. We find higher accepted lengths from Within than from each of the three controls for all three models in code debugging and mathematics (Figure 1). Changing the source changes acceptance even when the target tokens remain fixed. The effect is smaller in open-ended writing: Mistral’s Within advantage becomes smaller, and Qwen does not exceed Unigram. We also retain the Llama repeated-copying audit, since long matches caused by repeated text do not by themselves show useful reuse. These differences limit the claim to the models and tasks in which the source controls support it.

Accepted tokens for code debugging, mathematics, and open-ended writing

Figure 1. Current history outperforms the source controls in code and mathematics, but not consistently in open-ended writing. We compare mean exactly accepted tokens, EexactE_{\mathrm{exact}}, from four sources. Current history (Within) uses the generated prefix. Cross uses another trajectory from the same model and dataset, limited to the same history length. Shuffled uses the current history with its blocks reordered. Unigram uses token frequencies without matching the current context. Panels use separate horizontal scales; Llama mathematics excludes repeated-copying cases (Appendix § 10.3). Exact values appear in Appendix Table 8.

Finding 2: The same problem need not provide the same drafts. Cross changes both the problem and the trajectory. To separate them, we compare two rollouts of each of 24 code-debugging problems with different random seeds. We show the paired source comparisons in Figure 2, comparing own and other history within each panel. Qwen and Mistral favor their own history over the other rollout, while Llama shows the opposite ordering. These paired comparisons support trajectory-specific reuse for Qwen and Mistral, whereas Llama’s reusable drafts appear to depend more on the shared problem than on its own rollout.

Own-history and same-prompt, different-seed retrieval for Qwen3-8B, Mistral-24B, and Llama-3.1-8B

Figure 2. Own-history and same-prompt, different-seed retrieval. Points show mean accepted tokens and bars show 95% bootstrap intervals. Each comparison uses 24 paired problems.

Finding 3: Retrieval success is concentrated at nearby positions. Finally, successful retrieval is not evenly distributed. In the code-debugging retrieval measurements, a hit is more likely after another hit than at an arbitrary position for all three models. Thus, recent verification results provide information about nearby positions. This motivates the running score and periodic probes in § 4. Whether using this information saves enough verification work is a separate question, we tested in § 5.4. Together, these findings motivate searching current history and adapting retrieval during generation. We combine the two sources under target verification in § 4, then measure their added acceptance and cost separately in § 5.

Method: Trajectory-Local Adaptive Retrieval

TLAR adds a controlled history search to SmallDraft, as we show in Figure 3. We describe the method in four parts. First, we find approximate context matches in generated history, rank them by recency, and place their continuations in a prefix-sharing tree (§ 4.1). Next, we track earlier verified retrieval results in a running score (§ 4.2). We use this score, the last retrieval result, and periodic probes to choose when to retrieve and how many candidates to keep (§ 4.3). Finally, we combine these candidates with SmallDraft, remove duplicate prefixes, and verify the resulting tree with the target model (§ 4.4).

Trajectory-Local Adaptive Retrieval diagram

Figure 3. Trajectory-Local Adaptive Retrieval. TLAR uses earlier verification results to decide whether retrieval should run and how many candidates to retrieve from the current history. The retrieved candidates are combined with the SmallDraft candidate and verified by the target model.

Retrieving Candidates from the Current History

At position tt, TLAR searches only the generated history ht=(y1,…,yt−1)h_t = (y_1,\ldots,y_{t-1}). This choice follows from § 3, where the current history provides the strongest control sources in the settings where retrieval is useful. Let ut=(yt−c,…,yt−1)u_t = (y_{t-c},\ldots,y_{t-1}) be the most recent cc tokens. For an earlier position jj, let uj=(yj−c,…,yj−1)u_j = (y_{j-c},\ldots,y_{j-1}) be the context that appeared before yjy_j. TLAR identifies earlier positions whose contexts match the current context within a Hamming distance of ϵ\epsilon and whose next dd tokens are fully contained in the generated history:

Jt={j:c+1≤j≤t−d, dHam(ut,uj)≤ϵ}.(1)\mathcal{J}_t = \{j : c + 1 \le j \le t - d,\ d_{\mathrm{Ham}}(u_t,u_j) \le\epsilon\}. \tag*{(1)}

where dHamd_{\mathrm{Ham}} counts the token differences between two contexts. The value ϵ\epsilon is the largest number of differences allowed. The condition j≤t−dj \le t-d ensures that the continuation (yj,…,yj+d−1)(y_j,\ldots,y_{j+d-1}) is already contained in hth_t. TLAR cannot use current or future target tokens when constructing a candidate. For every j∈Jtj \in\mathcal{J}_t, TLAR takes the next dd historical tokens rj=(yj,…,yj+d−1)r_j = (y_j, \ldots, y_{j+d-1}) as a candidate. Allowing up to ϵ\epsilon context differences prevents small changes in punctuation, formatting, or wording from removing an otherwise useful candidate. Approximate matching is used only to find candidate locations. The retrieved tokens are still accepted using the exact verification rule defined in § 2. TLAR ranks the matching positions by recency and selects the first ktk_t. Their continuations are inserted into a prefix-sharing tree. When two candidates begin with the same tokens, their shared prefix appears only once in the tree. The target model does not need to verify duplicate prefixes. § 4.3 explains how TLAR chooses ktk_t.

Tracking Recent Retrieval Success

Let mt∈{0,1}m_t \in\{0,1\} indicate whether retrieval is attempted at position tt. When mt=1m_t = 1, let zt=I[a^retr(t)≥1]z_t = \mathbb{I}[\hat{a}_{\mathrm{retr}}(t) \ge1] indicate whether the target model accepts at least one retrieved token. TLAR stores these results in a running score ρ^t\hat{\rho}_t, initialized as ρ^1=0\hat{\rho}_1 = 0 and updated after verification:

ρ^t+1={(1−α)ρ^t+αzt,mt=1,(1−α)ρ^t,mt=0.(2)\hat{\rho}_{t+1} = \begin{cases} (1-\alpha)\hat{\rho}_t + \alpha z_t, & m_t = 1, \\ (1-\alpha)\hat{\rho}_t, & m_t = 0. \end{cases} \tag*{(2)}

When retrieval is attempted, the first case adds the latest result to the score. When retrieval is not attempted, the second case gradually reduces the effect of older results. A larger ρ^t\hat{\rho}_t means that retrieval has worked more often at recent positions. The score uses only verification results observed before position tt. It does not require another trained predictor, an external trajectory, or additional target-model outputs. We set α=1−2−1/H\alpha= 1 - 2^{-1/H}, where HH controls how quickly earlier results lose weight. We use H=32H = 32 by default and test other values in § 5.4.

Choosing When and How Much to Retrieve

TLAR uses recent verification feedback to allocate retrieval work along the generated trajectory. The controller first requires ∣ht∣>τ|h_t| > \tau, allowing historical contexts and their continuations to accumulate. Once the history passes this threshold, retrieval activation combines a running success score, the latest observed retrieval outcome, and periodic probes. These signals capture sustained reuse, respond to newly observed success, and discover reuse as generation enters new regions. Let qt∈{0,1}q_t \in\{0,1\} indicate a probe position, and let s(t)<ts(t) < t denote the most recent retrieval attempt, with zs(t)=0z_{s(t)} = 0 before the first attempt. The activation rule is gt=I[∣ht∣>τ]I[ρ^t≥ρmin⁡∨zs(t)=1∨qt=1]g_t = \mathbb{I}[|h_t| > \tau]\mathbb{I}[\hat{\rho}_t \ge\rho_{\min} \lor z_{s(t)} = 1 \lor q_t = 1]. The running score sustains retrieval across regions with repeated success. The latest outcome allows a successful attempt to trigger retrieval at the next decision even while the running score remains below the threshold. During inactive periods, the score decays and periodic probes collect fresh verification feedback. A successful probe can reactivate retrieval as useful continuations become available.

For each active decision, TLAR also allocates a candidate width. At an active non-probe position, it sets kt=clip⁡(⌊kmax⁡ρ^t⌋,kmin⁡,kmax⁡)k_t = \operatorname{clip}(\lfloor k_{\max}\hat{\rho}_t \rfloor, k_{\min}, k_{\max}); at a probe position, it sets kt=kmin⁡k_t = k_{\min}. This rule ties the search breadth to the observed frequency of reuse: lower scores admit fewer historical continuations, while higher scores expand candidate coverage. The selected continuations enter a prefix-sharing tree, so their verification cost also depends on how many prefixes they share. Candidate width controls the proposed work, and the distinct-node count measures the resulting tree size. Activation and width form a feedback loop with target verification. Activation determines when to collect retrieval evidence; width determines how many continuations contribute candidates at that decision. After verification, the observed retrieval outcome updates the score used for subsequent decisions. Section 5.4 evaluates these components through activation and width ablations, probe removal, and parameter sensitivity experiments.

Combining TLAR with SmallDraft

At each position, SmallDraft produces the candidate dtd_t defined in § 2. If gt=1g_t = 1, TLAR also constructs a candidate tree from the current history. If gt=0g_t = 0, the TLAR candidate set is empty. The SmallDraft candidate and the TLAR candidates are inserted into one prefix-sharing tree. Duplicate prefixes are merged before verification, and the target model verifies the resulting tree. After verification, TLAR uses the retrieval result to update ρ^t+1\hat{\rho}_{t+1}. We evaluate the combined system using the recovery rate RR, added accepted tokens Δ\Delta, and verification cost CC defined in § 2.

When TLAR is inactive, we set aretr(t)=0a_{\mathrm{retr}}(t)=0 and Nretr(t)=0N_{\mathrm{retr}}(t)=0. The evaluation measures the complete method, including positions where its controller decides not to retrieve.

Experiments: Utility, Specificity, and Complementarity

Section 3 tests where reusable tokens come from. We now ask whether they add value beyond SmallDraft (RQ1), whether they improve coverage alongside another retrieval source under the same verification budget (RQ2), and how the controller changes gain and verification cost (RQ3). These questions distinguish a useful source from a useful addition to an existing drafter.

Model and Evaluation Settings

We evaluate Qwen3-8B, Mistral-24B, and Llama-3.1-8B-Instruct on 100 code-debugging, 24 mathematical-reasoning, and 24 open-ended-writing problems. SmallDraft is Qwen3-0.6B, Ministral-8B-Instruct-2410, and Llama-3.2-1B-Instruct, respectively. For each target, the offline comparisons use the same SmallDraft predictions and fixed target trajectories. Code debugging is the main setting; the other domains test whether the observed gains extend beyond it. Keeping each target trajectory fixed lets us compare candidate acceptance without changing the target tokens between methods. We do not compare one method’s generated response with a different response from another method. The source controls and same-prompt tests in § 3 answer a different question and are not counted as additional tests of SmallDraft complementarity.

We report additional exactly accepted tokens per position, Δ\Delta, over SmallDraft alone. We first fix the history gate and candidate width, then test the adaptive controller separately. For RQ2, we compare TLAR, the strongest single-source retrieval baseline, and their budgeted union under shared caps of B∈{4,8}B \in\{4, 8\} distinct retrieval nodes per position. Union candidates are merged into one prefix-sharing tree, deduplicated, and pruned to the common node budget. Acceptance comes from offline replay, and node counts describe retrieval-side work. We report 95% bootstrap intervals where available. Appendix § 10.2 records the settings and cost measures, while Appendix § 10.6 reports the completed causal-boundary and event-driven replay audits. Appendix § 11 separately evaluates the complete adaptive union tree under matched end-to-end serving conditions. We keep the three comparisons separate: RQ1 adds retrieval to SmallDraft, RQ2 compares single-source retrieval with a multi-source union under the same verification-node budget, and RQ3 changes TLAR’s controller. Each uses its own matched reference. In particular, a larger accepted-token increment does not by itself show that its verification work is worthwhile.

RQ1: Does Trajectory-Local Memory Complement SmallDraft?

We first test whether retrieval supplies tokens that the same SmallDraft misses. We use 100 code-debugging tasks per model, a fixed 512-token history gate, and k=d=4k=d=4, without adaptive activation or width. We report added accepted length in Table 1; SmallDraft’s own accepted length ee is shown separately. We retain the full node-cost comparison in Appendix § 10.4.§ 1. In Figure 4, we place the source measurements above TLAR’s increment over SmallDraft for the same model and task. The top row asks how much the history supplies in the source test. The bottom row asks how much retrieval adds after SmallDraft’s accepted tokens are already counted and its reference is SmallDraft.

MethodQwenMistralLlama
SmallDraft (ee)2.3833.1482.823
SuffixDecoding (Δ\Delta)0.1280.0260.013
STAND (Δ\Delta)0.1640.0170.011
TLAR (fixed kk; Δ\Delta)0.1710.0250.018
STAND∪TLAR (Δ\Delta)0.2280.0320.026

Table 1. Added acceptance over SmallDraft on code debugging. Bold marks the union, which has the largest increment per model.

Six bar charts comparing accepted tokens from history and extra tokens from fixed-width TLAR over SmallDraft for Qwen3-8B, Mistral-24B, and Llama-3.1-8B

Figure 4. More reuse need not mean more added tokens. For Mistral (middle column), history supplies more accepted tokens in code, but retrieval adds more beyond SmallDraft in mathematics. Top: Within-source EexactE_{\mathrm{exact}} from Section 3. Bottom: fixed-gate, fixed-width TLAR’s increment over the same SmallDraft, Δ=T−1∑t[max⁡(asmall(t),aretr(t))−asmall(t)]\Delta= T^{-1}\sum_t[\max(a_{\mathrm{small}}(t),a_{\mathrm{retr}}(t))-a_{\mathrm{small}}(t)] on fixed target tokens. Code uses 100 tasks; Math and Open use 24 each. Each panel has its own scale.

TLAR adds accepted tokens for all three targets. Its single-method point estimate is highest for Qwen and Llama; SuffixDecoding is slightly higher for Mistral. The uncapped union in Table 1 has the largest accepted-token increment, motivating the matched-budget complementarity test in Section 5.3. The domain comparison shows why source reuse and added acceptance must be tested separately: Mistral gains more over SmallDraft in mathematics than in code, despite stronger source reuse in code.

Open-ended increments remain small for all three targets. A useful history can overlap with what SmallDraft already predicts. The middle column makes the distinction concrete: Mistral has more accepted history tokens in code than in mathematics, but the added tokens over SmallDraft follow the opposite ordering. Thus, choosing where to use retrieval from source acceptance alone can be misleading. We use the matched SmallDraft comparison to measure that added value directly.

RQ2: Does TLAR Improve Coverage Under a Matched Verification Budget?

We next test whether trajectory-local candidates improve coverage when they compete with another retrieval source for the same verification budget. For each target, we compare TLAR, the strongest single-source baseline, and their budgeted union on code debugging. The strongest baseline is STAND for Qwen and Mistral and SuffixDecoding for Llama. All methods receive the same cap of B∈{4,8}B \in\{4, 8\} distinct retrieval nodes per position. For the union, candidates from both sources enter one prefix-sharing tree. Duplicate prefixes are merged, and the tree is pruned to the shared node budget. Ranking uses source-local recency and verification outcomes observed at earlier decoding events. Candidates from both sources compete for the available tree nodes.

Figure 5 shows that the budgeted union achieves the largest accepted-token gain for all three targets at both budgets. At B=4B = 4, its gains over the strongest single-source baseline are 13.7%, 11.5%, and 5.0% for Qwen, Mistral, and Llama, respectively. At B=8B = 8, the corresponding gains are 16.8%, 14.8%, and 4.8%. Trajectory-local candidates improve the composition of the verification tree within the shared node cap. Appendix Table 18 provides the exact point estimates.

Bar charts comparing TLAR, the strongest single-source retriever, and their budgeted union for Qwen3-8B, Mistral-24B, and Llama-3.1-8B

Figure 5. TLAR complements the strongest retrieval baseline under matched verification budgets on code debugging. In each budget group, the bars from left to right represent TLAR (light green), the strongest single-source retriever (blue), and their budgeted union (dark green). Bar heights show point estimates of additional accepted tokens per position over SmallDraft; labels give their values.

The relative improvement is largest for Qwen, followed by Mistral and Llama. This pattern is consistent with the same-prompt source comparison in Section 3: Qwen and Mistral favor their own trajectory, while Llama favors the other rollout. The source comparison and the budgeted union test connect trajectory-specific reuse to added acceptance in the hybrid drafter.

RQ3: How Does Adaptive Retrieval Change Gain and Cost?

We compare the full controller with a fixed gate and width, adaptive activation alone, and a controller without periodic probes, using the same replay and distinct-prefix node counter. We normalize both added acceptance over SmallDraft and nodes by the fixed configuration in Figure 6. Separately, we vary context length, mismatch tolerance, and candidate width over 27 settings per model in Figure 7. This grid measures recovery at SmallDraft first-token misses. For the controller comparison, both quantities equal one for the fixed configuration. A lower node value means less retrieval-side verification work; a lower gain value means fewer additional accepted tokens. Reading both is necessary: lower cost alone can also result from rarely retrieving. The grid instead holds the evaluation rule fixed and changes the candidates, so its highest-gain point is a setting of the same retrieval method. The controller reduces node cost but also gives up accepted tokens. Gain per node improves for Qwen and Llama. Removing probes lowers gain for every model, supporting their role in finding useful content after retrieval becomes inactive. Candidate settings offer a separate trade-off: the default uses fewer nodes than the highest-gain setting in each model’s grid, but recovers fewer tokens. The grid changes available candidates; the controller changes when and how much retrieval is used. We provide exact values and sensitivity tests in Appendix B.

Figure 6. Controller choices change both accepted gain and verification work. Gain is the increment over SmallDraft; nodes are distinct retrieval prefixes. Both are normalized by the fixed-gate, fixed-width replay, not the branch-count costs in Appendix D.1.

Figure 7. Candidate settings change recovered gain and verification work. All 27 combinations of c∈{2,4,8}c \in\{2, 4, 8\}, ϵ∈{0,1,2}\epsilon\in\{0, 1, 2\}, and k∈{2,4,8}k \in\{2, 4, 8\} are shown. Color indicates context length; the circled point is c=4c = 4, ϵ=1\epsilon= 1, k=4k = 4.

At matched verification-node costs, recent-hit feedback yields higher accepted-token increments than random or periodic activation across all three targets. We show further details in Appendix Table 23.

GateQwen3-8BMistral-24BLlama-3.1-8B
Random activation0.096 [0.087, 0.105] 3.806 nodes0.0137 [0.0082, 0.0192] 1.812 nodes0.0053 [0.0025, 0.0081] 0.480 nodes
Fixed periodic0.105 [0.096, 0.114] 3.803 nodes0.0144 [0.0088, 0.0200] 1.819 nodes0.0057 [0.0029, 0.0085] 0.481 nodes
Last-hit gate0.118 [0.109, 0.127] 3.808 nodes0.0157 [0.0099, 0.0215] 1.815 nodes0.0064 [0.0035, 0.0093] 0.483 nodes
Hit EMA (ztz_t; default)0.127 [0.117, 0.137] 3.810 nodes0.0168 [0.0108, 0.0228] 1.817 nodes0.0069 [0.0039, 0.0099] 0.482 nodes
Marginal-gain EMA (δt\delta_t)0.136 [0.126, 0.146] 3.811 nodes0.0176 [0.0115, 0.0237] 1.816 nodes0.0074 [0.0043, 0.0105] 0.482 nodes

Table 23. Controller rewards at matched node cost on code debugging. Each cell gives Δ\Delta with its 95% trajectory interval and distinct retrieval nodes per position.

End-to-end evaluation. We evaluate the complete adaptive union tree from Section 4 for Qwen3-8B/Qwen3-0.6B and Mistral-24B/Mistral-8B on one NVIDIA B200. End-to-end timing includes retrieval, tree construction, prefix deduplication, budgeted verification, controller updates, KV-cache updates, and sampling correction. Relative to the same draft-model baseline, throughput improves by 8.3% and 7.6% for Qwen and 4.1% and 3.5% for Mistral at batch sizes 1 and 32, respectively. Table 2 shows that Qwen’s relative gains increase with output length, reaching 12.4% and 10.8% at 4,096 tokens. Longer generation provides more positions for active retrieval beyond the 512-token gate, helping amortize history-maintenance costs. Appendix G provides execution settings and repeated-run distributions.

Batch 1Batch 32
TokensSmallDraftUnionGainSmallDraftUnionGain
512151.80150.89−0.6%2528.02510.3−0.7%
1,024143.20155.09+8.3%2405.02587.8+7.6%
2,048132.60146.52+10.5%2222.02422.0+9.0%
4,096119.40134.21+12.4%1986.02200.5+10.8%

Table 2. Qwen/B200 throughput (tokens/s) across output lengths. Values are medians of five warmed runs; gains are relative to SmallDraft. At 512 tokens, retrieval is inactive and the difference captures controller/index overhead.

From acceptance to execution efficiency. Throughput depends on both the tokens committed per decoding event and the elapsed time per event. Additional accepted tokens increase progress, while retrieval, tree construction, verification, and memory movement contribute to execution time. Appendix G.4 formalizes this relationship, calculates net time savings from the measured runtimes, and examines the implementation’s resource demands and opportunities for overlap. It also develops a controlled component-evaluation framework linking candidate quality, execution cost, and serving performance, motivating retrieval policies that adapt to both recent reuse and system load.

Related Work

Model-based drafting. Speculative decoding uses a faster drafter to propose tokens and a target model to verify them [18, 3]. EAGLE and Medusa improve proposal quality through trained drafting components [22, 2], while SpecInfer, EAGLE-2, Sequoia, and OPT-Tree improve tree construction and parallel verification [28, 23, 5, 39]. These methods improve how model-generated candidates are produced or verified, but do not test whether the generated trajectory provides a distinct candidate source beyond the same draft model. TLAR addresses this question by measuring the additional accepted tokens supplied by trajectory retrieval after SmallDraft has already proposed its candidates.

Retrieval-based drafting. Retrieval methods obtain candidates from the prompt, external data, or generated text [10, 8, 13, 30] (Somasundaram et al. 2025). STAND exploits redundancy in reasoning trajectories [37], and RASD combines retrieval and model-generated trees before verification [32]. However, aggregate retrieval acceptance does not establish that useful tokens are specific to the current trajectory, and combining retrieval with a draft model does not show whether retrieval contributes candidates the drafter would otherwise miss. TLAR isolates trajectory-specific reuse through cross-trajectory, shuffled-history, and unigram controls, then measures its marginal contribution beyond SmallDraft and retrieval baselines under matched verification budgets.

Adaptive speculative computation. Prior work adapts candidate length, lookahead, or draft-tree structure using predicted acceptance or draft-model confidence [14, 27, 45, 39]. These policies optimize model-generated speculation, but do not use the realized marginal value of trajectory retrieval to decide whether retrieval should run or how many retrieved candidates should be verified. TLAR uses only causally available outcomes from earlier target verification to control later retrieval activation and width. It connects source identification, marginal utility beyond an existing drafter, and feedback-based allocation of verification work in one evaluation.

Conclusion

Generated trajectories serve as runtime memory for speculative decoding. Source comparisons reveal trajectory-specific reuse and temporal locality, motivating TLAR’s retrieval from generated history and adaptation through recent verification feedback. TLAR adds accepted tokens beyond a draft model and complements strong retrieval baselines under shared verification budgets. Its controller adjusts retrieval activation and candidate width to balance acceptance gains with verification cost. The complete adaptive union improves end-to-end throughput, with Qwen’s relative gains increasing over the tested output lengths. These results connect trajectory reuse, candidate complementarity, and adaptive resource allocation to efficient inference.

Ethics Statement

TLAR accelerates language-model inference through reuse of generated text. Exact target-model verification preserves the target distribution, including its potential to produce biased, harmful, or inaccurate content. Deployments should retain appropriate safety safeguards as generation becomes faster. Generated trajectories may contain sensitive information; retrieval buffers should follow the access controls, retention policies, and deletion requirements applied to the original interaction. Our trajectory-local design keeps retrieval within the current generation. Resource use also warrants attention: throughput improvements can reduce execution time for a fixed workload, while energy consumption depends on hardware utilization and deployment scale. Responsible evaluation and release should document experimental conditions and protect sensitive data, credentials.

AI Use Statement

AI-assisted tools were used solely for grammar checking and presentation-quality review, including the identification of sentence fragments, dangling words, and formatting inconsistencies. The authors reviewed and approved every resulting edit and retain full responsibility for the manuscript.

Reproducibility Statement

The appendix documents model checkpoints, evaluation settings, retrieval configurations, verification budgets, controller parameters, and metric definitions. It also describes uncertainty calculations, causal-boundary and distribution-preservation audits, and the hardware, timing protocol, and repeated-run results for end-to-end evaluation. The accompanying anonymized code provides retrieval, candidate-tree construction, verification, adaptive control, and evaluation utilities.

Related Work and Research Motivation

Section 6 places TLAR among speculative decoding methods. We develop that connection through the sequence that motivates the method: longer reasoning creates a decoding workload, speculative verification accelerates token generation, retrieval supplies candidate continuations, and feedback allocates verification work.

Reasoning Length and Decoding Work

Chain-of-thought prompting elicits intermediate reasoning steps [43]. Self-consistency and repeated sampling allocate computation across reasoning paths [41, 1], while test-time scaling extends the amount of reasoning used to produce an answer [29]. These approaches make the execution cost of long trajectories a central inference problem. Acceleration can act at several levels. SpecReason delegates selected reasoning steps using semantic acceptance [31]. Speculative search and speculative chain-of-thought methods organize parallel reasoning exploration [42, 40, 35]; multi-sample speculative decoding shares work across sampled outputs [21]. TLAR acts at the token level, retrieving continuations and applying exact target verification. This choice connects reasoning trajectories to lossless decoding.

Draft Construction and Exact Verification

Blockwise decoding proposes several future tokens and retains a verified prefix [38]. Speculative sampling combines a cheaper drafter with parallel target verification and a sampling correction that preserves the target distribution [18, 3]. Surveys organize the resulting design space around drafting and verification [44].

Medusa introduces prediction heads [2]; EAGLE and its successors use feature prediction and dynamic candidate trees [22, 24]. SpecInfer verifies candidate trees [28], and Sequoia and OPT-Tree optimize tree structure for acceptance and hardware cost [5, 39]. Ouroboros extends drafts phrase by phrase [49]; self-speculation, early exit, and layer skipping reuse the target model’s computation [48, 6]. Lookahead Decoding builds candidates through parallel Jacobi-style iteration [8]. TLAR supplies an additional candidate source to this draft–verify architecture: continuations already present in the generated trajectory.

Text Sources as Draft Memory

LLMA copies and verifies reference spans [46]. REST retrieves from an external datastore [10], PLD+ exploits repeated prompt and generation text [36], RAPID combines retrieval with long-context speculation [4], and NEST uses nearest-neighbor text for generation and attribution [19]. Generated and cached sequences provide another memory source: SuffixDecoding uses suffix-tree statistics [30], SAM-Decoding uses suffix automata [13], Token Recycling reuses candidate transitions [26], and STAND uses stochastic n-gram statistics from reasoning trajectories [37]. These systems motivate a source-level question: which continuations become useful because they belong to the trajectory currently being generated? § 3 addresses this question with cross-trajectory, shuffled-history, unigram, and same-prompt comparisons. § 5.2 and § 5.3 then measure the extra acceptance supplied by that source alongside existing drafters.

Feedback and the Allocation of Verification Work

The benefit of a candidate depends on its acceptance and its verification cost. SpecDec++ predicts acceptance [14]; DISCO adapts lookahead using draft-model signals [27]; EAGLE-2 and DySpec grow trees using draft confidence or distributional information [23, 45]. OPT-Tree and Sequoia optimize expected acceptance and tree cost [39, 5], while token-driven calibration adapts speculation during execution [9].

TLAR uses completed target-verification events to control retrieval activation and width. Periodic probes refresh the signal after retrieval becomes inactive. The controller ablations in Appendix § 10.5 connect this feedback to incremental acceptance, and Appendix § 10.6 specifies how the feedback is generated along the executed decoding path.

Trajectory Structure and the Role of TLAR

ReasonOps identifies recurring reasoning operations [17], and analyses of overthinking describe clustered backtracking [34]. These observations motivate studying structure within a trajectory. TLAR measures that structure through context matches and exactly accepted continuations. Its verifier preserves the target distribution; speculative contrastive decoding and fuzzy speculation explore altered decoding objectives and accuracy–runtime trade-offs [47, 12].

RASD provides a closely related hybrid architecture: it prunes retrieval candidates using draft probabilities and merges retrieval and model-generated trees [32]. Building on retrieval and tree verification, TLAR connects source identification, added acceptance, and feedback-driven resource allocation. Table 3 summarizes how candidate sources and control signals fit together. The remaining appendices follow that experimental chain.

MethodCandidate sourceDraft-tree fusionExact verificationFeedback controlSelection principle
STANDreasoning trajectories—yes—stochastic n-gram sampling
SuffixDecodingcached/generated suffixes—yestree structuresuffix statistics
RASDretrieval databaseyesyes—probability pruning and tree fusion
TLARcurrent trajectoryyesyesyessource isolation and causal budget allocation

Table 3. Candidate sources and control mechanisms in closely related systems. Feedback control uses earlier target-verification outcomes to change later retrieval work. Dashes indicate absent components.

Evaluation Protocol, Metrics, and Implementation

This section supplies the common setup for § 5.1. We first define the tasks and candidate sources, then the acceptance and cost counters, and finally the estimation and implementation procedures. These definitions connect each result table to its reference drafter and evaluated positions.

Models, Tasks, and Experimental Snapshots

The main suite contains 100 code-debugging, 24 mathematical-reasoning, and 24 open-ended-writing problems per target. Target generation uses temperature 0.6, top-pp = 0.95, and a maximum of 4,096 new tokens. Within each target, retrieval comparisons share fixed trajectories and SmallDraft predictions. Table 4 gives the target–draft pairs.

TargetSmallDraft checkpoint
Qwen3-8BQwen/Qwen3-0.6B
Mistral-24Bmistralai/Ministral-8B-Instruct-2410
Llama-3.1-8Bmeta-llama/Llama-3.2-1B-Instruct

Table 4. Target–draft pairs for the offline comparisons and the B200 execution analysis.

Code prompts contain SWE-bench Verified issue descriptions and repository metadata [16]; gold patches and hidden tests remain in the evaluation data. The MATH test problems span algebra, counting/probability, geometry, and number theory [11]. WritingPrompts supplies the open-ended prompts, with reference stories retained as evaluation data [7]. Examples are sorted by canonical identifier and sampled with seed 20260217 before retrieval evaluation. The same-prompt comparison uses two generation seeds for each of 24 code-debugging problems.

Table 5 records the two experimental snapshots. The historical source audit includes DeepSeek and five writing prompts; the main suite includes Mistral and 24 writing prompts. Their roles are source analysis and the expanded utility evaluation, respectively.

SnapshotModelsCodeMathOpenRole
Legacy source auditQwen, DeepSeek, Llama100245nine-cell source diagnostic in Appendix C
Expanded main suiteQwen, Mistral, Llama1002424RQ1–RQ3 and B200 evaluation

Table 5. Experimental snapshots and their roles. Code, Math, and Open give problem counts per target.

Retrieval Sources and Shared Implementations

PLD searches the current prompt. The REST proxy indexes the other prompts in the trace pool, separated by sentinel tokens; a 100-trace pool supplies 99 external prompt entries for each query trajectory. The SAM proxy combines exact history retrieval with this prompt datastore. STAND-style and SuffixDecoding candidates use the common ranking, tree, and verification interfaces summarized in Table 6. This shared implementation supports comparisons of candidate sources under the same evaluation rules.

Displayed labelSearch sourceImplemented componentsEvaluation role
PLDcurrent promptexact n-gram lookup, k=4k = 4, d=4d = 4prompt-source candidate comparison
REST proxyother promptsexternal prompt index, exact context, sentinel boundariesshared-harness prompt-datastore proxy
SAM proxyhistory and other promptsexact suffix lookup and union in the shared treeshared-harness history/datastore proxy
STAND-stylegenerated historystochastic n-gram candidates, common gate and budgetshared-harness STAND-style candidates
SuffixDecodinggenerated/cache suffixesexact suffix candidates and prefix treecommon verifier and budgets; offline accepted-token comparison

Table 6. Retrieval sources and components implemented in the common evaluation harness.

Acceptance, Recovery, and Verification Cost

Following § 2, let Mt=1[asmall(t)=0]M_t = \mathbf{1}[a_{\mathrm{small}}(t) = 0], let gtg_t indicate an active history gate, and let aretr(t)a_{\mathrm{retr}}(t) be the longest exactly accepted retrieval continuation. Let NtN_t count retrieval work under the counter specified for an experiment. The first-token-miss analysis uses

Amiss=∑tMtgt∑tMt,R=∑tMtgt1[aretr(t)≥1]∑tMtgt,A_{\mathrm{miss}} = \frac{\sum_t M_t g_t}{\sum_t M_t}, \qquad R = \frac{\sum_t M_t g_t \mathbf{1}[a_{\mathrm{retr}}(t) \ge1]}{\sum_t M_t g_t},
Gmiss=1T∑tMtgtaretr(t),Cmiss=1T∑tMtgtNt.G_{\mathrm{miss}} = \frac{1}{T}\sum_t M_t g_t a_{\mathrm{retr}}(t), \qquad C_{\mathrm{miss}} = \frac{1}{T}\sum_t M_t g_t N_t.

Here AmissA_{\mathrm{miss}} is the active fraction of draft failures, recorded as active_rate_over_miss. Recovery RR uses active failures as its denominator; GmissG_{\mathrm{miss}} and CmissC_{\mathrm{miss}} average over all evaluated positions. Their ratio measures recovered tokens per verification node.

The hybrid comparison also credits retrieval for extending an accepted SmallDraft prefix. Its acceptance and cost are

Δ=1T∑t[max⁡{asmall(t),gtaretr(t)}−asmall(t)],Chyb=1T∑tgtNt.\Delta= \frac{1}{T}\sum_t \left[\max\{a_{\mathrm{small}}(t), g_t a_{\mathrm{retr}}(t)\} - a_{\mathrm{small}}(t)\right], \qquad C_{\mathrm{hyb}} = \frac{1}{T}\sum_t g_t N_t.

This definition connects candidate usefulness directly to the existing drafter. The fixed-candidate hybrid and static grid count summed branch lengths, including shared prefixes. The adaptive replay, baseline-addition analysis, and budgeted union count distinct prefix nodes. Each gain–cost comparison uses its experiment’s counter. The budgeted comparison gives every method the same maximum of BB distinct retrieval nodes per position.

Uncertainty and Result Provenance

Trajectory-cluster bootstrap resamples trajectory identifiers with replacement, retains all positions from each sampled trajectory, and recomputes the pooled metric. We use 2,000 resamples and report the 2.5th and 97.5th percentiles. This procedure preserves dependence among positions within a trajectory. Same-prompt source comparisons pair the two rollouts by problem identifier.

The tables report experimental measurements. Dagger-marked entries in Table 14 identify updated experimental summaries. The reported acceptance intervals and node-cost summaries accompany the corresponding configurations. Table 18 reports point estimates. Appendix § 11 gives the B200 measurements and repeated-run summaries, including the calculation of paired throughput intervals.

ModelAdded retrieverΔ\DeltaNodes / position
Qwen3-8BSuffixDecoding0.1278 [0.1182, 0.1381]3.3840 [3.1768, 3.5937]
Qwen3-8BSTAND0.1640† [0.1529, 0.1755]4.7635† [4.6361, 4.8879]
Qwen3-8BTLAR0.1709 [0.1606, 0.1809]7.2146 [6.9291, 7.4923]
Qwen3-8BSTAND∪\cupTLAR0.2280 [0.2141, 0.2422]11.9781 [11.5626, 12.3594]
Mistral-24BSuffixDecoding0.0262 [0.0214, 0.0312]3.2738 [2.5212, 4.1417]
Mistral-24BSTAND0.0170† [0.0109, 0.0233]2.1141† [1.7659, 2.4891]
Mistral-24BTLAR0.0253 [0.0189, 0.0324]4.1033 [3.1826, 5.0426]
Mistral-24BSTAND∪\cupTLAR0.0325 [0.0249, 0.0403]6.2174 [4.9751, 7.4900]
Llama-3.1-8BSuffixDecoding0.0130† [0.0090, 0.0173]1.3422† [1.1674, 1.5177]
Llama-3.1-8BSTAND0.0110† [0.0078, 0.0143]0.8609† [0.7485, 0.9717]
Llama-3.1-8BTLAR0.0180† [0.0151, 0.0211]1.4209† [1.2036, 1.6435]
Llama-3.1-8BSTAND∪\cupTLAR0.0260† [0.0225, 0.0298]2.2817† [1.9761, 2.6201]

Table 14. Full fixed-candidate hybrid measurements. Brackets give 95% bootstrap intervals. Dagger-marked cells identify updated experimental summaries, as described in Appendix § 10.2.§ 4.

ModelB=4B = 4 nodesB=8B = 8 nodes
TLARBest singleBudgeted unionTLARBest singleBudgeted union
Qwen3-8B0.1280.1680.1910.1610.1840.215
Mistral-24B0.0220.0260.0290.0250.0270.031
Llama-3.1-8B0.0110.0200.0210.0120.0210.022

Table 18. Point estimates under shared verification-node caps, plotted in Figure 5. Best single is STAND for Qwen and Mistral and SuffixDecoding for Llama. The union combines that source with TLAR.

Implementation Flow

The scripts in Table 7 follow the evaluation pipeline: construct prompts, generate trajectories, record draft predictions, compare candidate sources, and aggregate acceptance and cost. Context matching selects historical locations; the accepted_len routine checks continuation tokens exactly until the first mismatch or depth cap. Appendix F connects this replay computation to incremental history insertion and executed decoding events.

ScriptRole
build_code_debug_pool.pyConstructs the code-debugging prompt pool.
generate_traces.pyGenerates target-model trajectories under the decoding configuration above.
analyze_draft_hits.pyTeacher-forces the small draft model over each trajectory; records hitdraft(t)\mathrm{hit}_{\mathrm{draft}}(t).
analyze_selfcopy.pyComputes within/cross/shuffled/unigram EexactE_{\mathrm{exact}} (§ 3).
analyze_tree_hybrid.pyComputes TLAR and hybrid (TLAR + SmallDraft) accepted lengths per position; evaluates individual retrieval trees.
compare_retrieval_baselines.pyShared retrieval-baseline harness; source of the static grid and union hybrid.
bootstrap_metrics.pyTrajectory-cluster bootstrap over the outputs of the scripts above.
summarize_analysis.pyComputes development-time aggregate summaries.

Table 7. Evaluation scripts and their roles in the data-to-metric pipeline.

Trajectory-Local Reuse and Source Controls

Section 3 asks where reusable continuations originate. We develop the evidence from source comparisons to repetition auditing, same-prompt pairing, and temporal dependence. Each step explains a design choice in TLAR: the memory source, the interpretation of accepted spans, and the feedback signal.

Source Comparisons Across Models and Domains

Table 8 supplies the Qwen, Mistral, and Llama values plotted in Figure 1. Within searches the generated prefix; Cross uses another trajectory with the same available history length; Shuffled reorders history blocks; Unigram uses token frequencies. Within, Cross, and Shuffled share a matching rule, making the source the experimental variable.

Current history yields higher accepted lengths than the controls in code and mathematics. Open-ended writing has smaller accepted lengths and a different ordering for Qwen: Within is 0.0274 and Unigram is 0.0535. The historical Qwen/DeepSeek/Llama snapshot in Table 9 adds the archived intervals and within-to-control ratios. Unigram is the strongest control in all nine cells, and the ratios range from 0.5×0.5\times to 29.4×29.4\times.

ModelWithinCrossShuffledUnigramLift
Code-debugging
Qwen3-8B1.2184 [1.1543, 1.2844]0.0139 [0.0113, 0.0165]0.0161 [0.0139, 0.0187]0.0658 [0.0631, 0.0686]18.5×
DeepSeek-R1-Qwen-7B0.6599 [0.6038, 0.7146]0.0171 [0.0147, 0.0197]0.0109 [0.0092, 0.0128]0.0756 [0.0733, 0.0780]8.7×
Llama-3.1-8B1.0612 [0.8361, 1.3284]0.0046 [0.0022, 0.0080]0.0236 [0.0135, 0.0351]0.0539 [0.0511, 0.0568]19.7×
Mathematical reasoning
Qwen3-8B1.0620 [0.9294, 1.2131]0.0037 [0.0028, 0.0047]0.0155 [0.0119, 0.0196]0.0627 [0.0574, 0.0687]16.9×
DeepSeek-R1-Qwen-7B0.8183 [0.6486, 1.0127]0.0025 [0.0018, 0.0032]0.0142 [0.0106, 0.0187]0.0742 [0.0670, 0.0837]11.0×
Llama-3.1-8B†2.2378 [1.5816, 2.7283]0.0141 [0.0062, 0.0222]0.0539 [0.0187, 0.1165]0.0761 [0.0616, 0.0898]29.4×
Open-ended writing
Qwen3-8B0.0274 [0.0189, 0.0405]0.0016 [0.0005, 0.0027]0.0003 [0.0001, 0.0006]0.0535 [0.0471, 0.0592]0.5×
DeepSeek-R1-Qwen-7B0.1170 [0.0519, 0.1713]0.0084 [0.0021, 0.0169]0.0007 [0.0000, 0.0015]0.0521 [0.0464, 0.0596]2.2×
Llama-3.1-8B0.3283 [0.0675, 0.7089]0.0020 [0.0000, 0.0042]0.0121 [0.0025, 0.0204]0.0561 [0.0480, 0.0682]5.9×

Table 9. Historical source snapshot: mean exactly accepted length and archived 95% bootstrap intervals. Lift is Within divided by Unigram. The measurement cap is 32 tokens. † marks the cleaned Llama mathematics cell after removal of seven flagged trajectories.

Repetition Audit and the Interpretation of Long Matches

Long accepted spans can arise from repeated output loops. To identify this source of acceptance, the historical audit ranks trajectories by EexactE_{\mathrm{exact}} and inspects the ten highest-ranked trajectories per cell, or all five writing trajectories. A trajectory is flagged when its mean is at least five tokens and its maximum match reaches the 32-token measurement cap. A cell is classified as repetition-dominated when over half of the inspected trajectories meet this rule.

DomainModelInspectedFlagged
code-debug100DeepSeek-R1-Qwen-7B100
code-debug100Llama-3.1-8B100
code-debug100Qwen3-8B100
mathDeepSeek-R1-Qwen-7B100
mathLlama-3.1-8B107
mathQwen3-8B100
open-endedDeepSeek-R1-Qwen-7B50
open-endedLlama-3.1-8B50
open-endedQwen3-8B50

Table 10. Historical repetition audit. Counts describe the inspected high-repetition trajectories in each model–domain cell.

The audit flags seven of the ten inspected Llama mathematics trajectories and zero in each other inspected cell. Table 11 gives the task-level values. For example, task 22 repeats the same four-sentence geometric argument more than a dozen times, ending with “∠ABC=180∘−y−90∘=90∘−y\angle ABC = 180^\circ- y - 90^\circ= 90^\circ- y”. This repeated passage produces long exact matches and illustrates why repetition structure is relevant to interpreting retrieval acceptance.

RankTask IDWithin EexactE_{\mathrm{exact}}Flagged
1316.28yes
22216.24yes
3711.67yes
4168.87yes
5186.77yes
645.89yes
765.61yes
883.91no
9103.35no
1022.61no

Table 11. The ten highest-repetition Llama mathematics trajectories. Flagged trajectories are removed when computing the cleaned source mean.

Removing the seven flagged trajectories changes the Llama mathematics source mean from 7.03 to 2.2378. Figure 1 and Table 8 and Table 9 use the cleaned mean. The 32-token source-measurement cap quantifies reuse; TLAR’s depth-four candidate tree evaluates how that reuse supplies a practical draft.

TaskModelWithinCrossShuffledUnigram
Code debuggingQwen3-8B1.21840.01390.01610.0658
Code debuggingMistral-24B2.72660.00690.03260.0585
Code debuggingLlama-3.1-8B1.06120.00460.02360.0539
MathematicsQwen3-8B1.06200.00370.01550.0627
MathematicsMistral-24B1.18880.00390.02680.0713
MathematicsLlama-3.1-8B2.23780.01410.05390.0761
Open-endedQwen3-8B0.02740.00160.00030.0535
Open-endedMistral-24B0.18490.00030.00110.0435
Open-endedLlama-3.1-8B0.32830.00200.01210.0561

Table 8. Source means underlying Figure 1. Entries are exactly accepted tokens; Unigram is the strongest control in each row.

Same-Prompt, Different-Seed Pairing

The next comparison holds the problem fixed and changes the sampled trajectory. Each target has 24 paired problems. Qwen, Mistral and Llama use exact context matching and an alternative-history prefix of the same available length. Each row in Table 12 compares own and other-seed history under that target’s protocol, as plotted in Figure 2.

ModelAlternative sourceWithinOther seed
Qwen3-8BPrefix; exact context2.0814 [1.4340, 2.9241]1.2653 [0.9282, 1.6487]
Mistral-24BPrefix; exact context1.4354 [1.1416, 1.7132]0.8614 [0.6644, 1.1190]
Llama-3.1-8BPrefix; exact context0.8243 [0.3755, 1.4092]1.1134 [0.6498, 1.6673]

Table 12. Same-prompt source comparisons on 24 paired code-debugging problems per model. Brackets give archived 95% intervals; the alternative-source column specifies the matching protocol.

Qwen and Mistral have higher own-history means, while Llama has a higher other-seed mean. Mistral’s paired difference is 0.5740 with interval [0.1060, 1.0065]; the table gives the marginal intervals for each source. These within-model contrasts identify how trajectory identity affects candidate availability and motivate the downstream complementarity tests in Appendix D.

Temporal Dependence as a Control Signal

On code debugging, next-position hit probabilities after a hit are 0.76, 0.86, and 0.81 for Qwen, Mistral, and Llama. The overall probabilities on the same position pairs are 0.46, 0.50, and 0.38. A recent successful retrieval provides information about the next position. (2) compresses this information into a running score, and the probes in Section 4.3 refresh that score as generation moves between regions. Appendix E measures the resulting gain–cost trade-off.

Candidate Complementarity and Verification Budgets

The source tests establish candidate availability. The next question is how those candidates extend an existing drafter. We follow RQ1 with the SmallDraft hybrid comparison, examine domain and draft-miss effects, and then follow RQ2 with a shared-budget comparison against a strong retrieval source.

Acceptance Beyond SmallDraft

Table 13 expands Table 1 with verification cost. The fixed configuration uses a 512-token history gate and k=d=4k = d = 4. The union has the largest increment for each target, and its summed branch cost also increases. Table 14 gives the corresponding intervals and identifies updated experimental summaries using the convention in Appendix B.4.

Table 13: Fixed-candidate hybrid acceptance and cost on 100 code-debugging tasks per target, with a 512-token gate and k=d=4k=d=4. ee is SmallDraft acceptance and Δ\Delta its hybrid increment. Nodes sum branch lengths, including shared prefixes; the union sums both branch costs. Table 14 gives intervals and revision markers.

Added candidatesQwen3-8B Δ\DeltaQwen3-8B nodesMistral-24B Δ\DeltaMistral-24B nodesLlama-3.1-8B Δ\DeltaLlama-3.1-8B nodes
SmallDraft alonee=2.383e=2.383e=3.148e=3.148e=2.823e=2.823
SuffixDecoding0.1283.380.0263.270.0131.34
STAND0.1644.760.0172.110.0110.86
TLAR (fixed kk)0.1717.210.0254.100.0181.42
STAND∪\cupTLAR0.22811.980.0326.220.0262.28

Table 13.

The fixed-candidate TLAR increments are 0.1709, 0.0253, and 0.0180 for Qwen, Mistral, and Llama. Their meaning is incremental: they credit tokens that extend the same SmallDraft’s accepted prefix. The union’s additional acceptance motivates testing how both retrieval sources compete for a common node budget below.

Domain Variation and Draft-Miss Opportunities

Table 15 extends RQ1 to mathematics and writing. Recovery measures success at active first-token misses; GmissG_{\mathrm{miss}} averages that recovery over all positions; Δ\Delta also credits extensions of accepted draft prefixes. For Mistral, source acceptance is higher in code (2.7266) than mathematics (1.1888), while the hybrid increment is higher in mathematics (0.0610) than code (0.0253). This reversal connects source reuse to the coverage already supplied by SmallDraft, as illustrated in Figure 4.

DomainModelRecoveryGmissG_{\mathrm{miss}}Δ\Delta
mathQwen3-8B0.1645 [0.1536, 0.1771]0.0521 [0.0454, 0.0600]0.0942 [0.0817, 0.1095]
mathMistral-24B0.1213 [0.1107, 0.1335]0.0346 [0.0292, 0.0392]0.0610 [0.0516, 0.0691]
mathLlama-3.1-8B0.2718 [0.2336, 0.3056]0.0271 [0.0220, 0.0317]0.0557 [0.0445, 0.0657]
open-endedQwen3-8B0.0141 [0.0094, 0.0209]0.0060 [0.0047, 0.0074]0.0082 [0.0057, 0.0112]
open-endedMistral-24B0.0380 [0.0282, 0.0490]0.0060 [0.0040, 0.0082]0.0104 [0.0066, 0.0145]
open-endedLlama-3.1-8B0.0235 [0.0105, 0.0439]0.0032 [0.0013, 0.0048]0.0057 [0.0021, 0.0088]

Table 15. Mathematics and writing results on 24 problems per domain and target. Brackets give archived 95% bootstrap intervals. Metric definitions appear in Appendix B.3.

Draft failures reveal one route through which retrieval adds value. Table 16 reports their frequency and recovery before and after history gating. Mistral has 11,401 first-token misses over 110,159 positions; 0.4514 of those misses pass the gate. Its recovery rises from 0.0946 over all misses to 0.1069 over gated misses. The gate changes the evaluated set by selecting positions with enough accumulated history.

ModelDraft miss fractionUngated recoveryGated recovery
Qwen3-8B0.207 [0.203, 0.212]0.193 [0.184, 0.202]0.222 [0.212, 0.232]
Mistral-24B0.1035 [0.0991, 0.1082]0.0946 [0.0789, 0.1121]0.1069 [0.0898, 0.1313]
Llama-3.1-8B0.145 [0.139, 0.152]0.051 [0.045, 0.058]0.089 [0.073, 0.106]

Table 16. SmallDraft first-token misses and retrieval recovery on code debugging. Brackets give 95% trajectory-cluster bootstrap intervals.

Expanded cross-domain evaluation. We extend the mathematics and open-ended writing evaluation to 100 problems per domain and target. This expanded evaluation supports the cross-domain findings in RQ1; the full recovery and acceptance breakdown appears here to connect those findings to draft-miss opportunities. Table 17 preserves the domain ordering observed in the original evaluation: all three targets obtain larger acceptance increments in mathematics than in open-ended writing. Within mathematics, Llama achieves the highest recovery rate, while Qwen obtains the largest increment over SmallDraft. Recovery measures retrieval success at active first-token misses.

DomainModelRecoveryGmissG_{\mathrm{miss}}Δ\Delta
MathQwen3-8B0.1682 [0.1628, 0.1741]0.0534 [0.0500, 0.0572]0.0971 [0.0907, 0.1038]
MathMistral-24B0.1187 [0.1134, 0.1248]0.0338 [0.0313, 0.0364]0.0594 [0.0549, 0.0636]
MathLlama-3.1-8B0.2651 [0.2476, 0.2823]0.0264 [0.0239, 0.0288]0.0542 [0.0489, 0.0595]
Open-endedQwen3-8B0.0153 [0.0127, 0.0184]0.0063 [0.0056, 0.0070]0.0087 [0.0073, 0.0102]
Open-endedMistral-24B0.0356 [0.0309, 0.0408]0.0057 [0.0048, 0.0068]0.0098 [0.0079, 0.0118]
Open-endedLlama-3.1-8B0.0251 [0.0184, 0.0329]0.0034 [0.0025, 0.0043]0.0061 [0.0043, 0.0079]

Table 17. Expanded cross-domain evaluation on 100 problems per domain and target. Cells report point estimates with intervals in brackets. Recovery measures success at active draft misses; GmissG_{\mathrm{miss}} measures recovered tokens per position; Δ\Delta measures additional acceptance over SmallDraft. Metric definitions appear in Appendix B.3.

Its contribution across the trajectory also depends on the frequency of these opportunities and the accepted continuation length, while Δ\Delta additionally credits extensions of accepted draft prefixes. The expanded results reinforce the role of the existing drafter’s coverage in determining the value of trajectory-local retrieval.

Complementarity Under Shared Node Caps

Table 18 supplies the point estimates for Figure 5. The strongest single source is STAND for Qwen and Mistral and SuffixDecoding for Llama. Every method receives a cap of B∈{4,8}B \in\{4, 8\} distinct retrieval nodes per position. The union merges the two candidate sources, deduplicates prefixes, and prunes to that cap. Ranking uses source-local recency and completed earlier verification events.

The union has the largest increment in all six comparisons. Relative to the best single source, its gains for Qwen, Mistral, and Llama are 13.7%, 11.5%, and 5.0% at B=4B = 4, and 16.8%, 14.8%, and 4.8% at B=8B = 8. These results connect the source evidence to better candidate composition under a common verification allowance.

Supplementary Candidate-Coverage Analysis

Table 19 identifies the additional continuations supplied by TLAR to individual retrieval baselines. It retains each baseline’s prefixes, then appends previously absent TLAR prefixes up to the larger of the configured width and the baseline prefix count. Acceptance and distinct-node increments are reported together. This construction maps source overlap, while the preceding shared-budget test evaluates competition for the available verification nodes.

ModelBaselineAdded tokens95% intervalAdded nodes
Qwen3-8BPLD0.6341[0.6082, 0.6614]2.3890
Qwen3-8BREST0.6365[0.6097, 0.6623]2.3906
Qwen3-8BSAM-proxy0.1850[0.1798, 0.1900]0.9884
Qwen3-8BSTAND0.0238[0.0225, 0.0250]0.2567
Qwen3-8BSuffix0.1879[0.1829, 0.1928]1.0006
Mistral-24BPLD0.5667[0.4295, 0.7136]1.3207
Mistral-24BREST0.5743[0.4406, 0.7265]1.3314
Mistral-24BSAM-proxy0.1002[0.0862, 0.1156]0.3672
Mistral-24BSTAND0.0200[0.0161, 0.0242]0.1351
Mistral-24BSuffix0.1029[0.0879, 0.1195]0.3828
Llama-3.1-8BPLD0.2023[0.1696, 0.2368]0.5564
Llama-3.1-8BREST0.2022[0.1674, 0.2373]0.5552
Llama-3.1-8BSAM-proxy0.0571[0.0478, 0.0665]0.2213
Llama-3.1-8BSTAND0.0131[0.0100, 0.0165]0.0894
Llama-3.1-8BSuffix0.0586[0.0492, 0.0681]0.2299

Table 19. Supplementary coverage analysis on 100 code-debugging problems per target. Added tokens use the named retrieval baseline as reference; added nodes count the extra distinct prefixes. Baseline candidates are retained before new TLAR prefixes are appended.

PLD and REST have larger increments than the history-based baselines. This pattern relates the value of the added source to the text already searched by the baseline. The next section uses feedback to allocate retrieval work across decoding positions.

Adaptive Retrieval and Verification Cost

RQ3 connects candidate quality to the amount of work spent obtaining accepted tokens. We first vary the candidate set, then the activation policy, and finally the feedback reward. This sequence links the retrieval mechanism in § 4.1 to the controller in § 4.3.

Candidate Settings and the Gain–Cost Frontier

The static grid contains all 27 combinations of c∈{2,4,8}c \in\{2, 4, 8\}, e∈{0,1,2}e \in\{0, 1, 2\}, and k∈{2,4,8}k \in\{2, 4, 8\} per target on 100 code-debugging problems. Depth four and the 512-token gate remain fixed. The 81 archived settings provide the full grid and the within-grid selections in Table 21 and Table 20. Figure 8 shows how context length, tolerance, and width move the gain–cost operating point.

ModelSelection(c,ϵ,k)(c,\epsilon,k)GGCCG/CG/C
Qwen3-8BDefault4,1,40.09331.33440.0699
Qwen3-8BLargest observed gain2,0,80.12932.33560.0554
Qwen3-8BHighest gain per node8,0,20.02120.10430.2034
Mistral-24BDefault4,1,40.01260.17830.0706
Mistral-24BLargest observed gain2,1,80.02161.13080.0191
Mistral-24BHighest gain per node8,0,20.00380.02130.1807
Llama-3.1-8BDefault4,1,40.00630.10030.0624
Llama-3.1-8BLargest observed gain2,1,80.01110.63840.0173
Llama-3.1-8BHighest gain per node8,0,20.00190.01290.1496

Table 20. Selections from the archived static grid. G=GmissG = G_{\mathrm{miss}} measures recovered tokens, C=CmissC = C_{\mathrm{miss}} measures verification cost, and G/CG/C measures efficiency.

Three panels showing candidate settings for Qwen3-8B, Mistral-24B, and Llama-3.1-8B

Figure 8. The 27 candidate settings per model. Green, blue, and pink indicate c=2,4,8c = 2, 4, 8; circles, squares, and triangles indicate ϵ=0,1,2\epsilon= 0, 1, 2. Lines connect k=2,4,8k = 2, 4, 8; the outlined point is (4,1,4)(4, 1, 4). Horizontal axes are logarithmic, and panels use separate scales.

Table 21: Complete static grid. RR is recovery at active draft misses; GG and CC average recovered tokens and verification nodes over all positions. The archived CSV summaries supply the per-setting bootstrap intervals.

(c,ϵ,k)(c,\epsilon,k)Qwen3-8B RRGGCCMistral-24B RRGGCCLlama-3.1-8B RRGGCC
2,0,20.21270.08370.88710.10650.01140.13850.08870.00560.0820
2,0,40.27100.11011.50310.12860.01420.21080.10090.00640.1156
2,0,80.30930.12932.33560.13910.01570.28230.10700.00700.1394
2,1,20.15380.04861.35830.12320.01090.33880.10750.00590.2021
2,1,40.24240.07972.67550.18010.01620.63930.14600.00790.3727
2,1,80.34530.11935.18640.23340.02161.13080.19470.01110.6384
2,2,20.00340.00071.38730.00290.00010.37290.00250.00010.2244
2,2,40.02310.00462.77460.01630.00100.74590.02640.00090.4493
2,2,80.07350.01535.54920.04860.00291.49200.05830.00210.8990
4,0,20.12610.05670.38820.05970.00760.05480.05070.00360.0319
4,0,40.14260.06530.54150.06510.00860.07510.05380.00400.0378
4,0,80.14880.06890.66920.06670.00890.08940.05430.00410.0402
4,1,20.17570.07180.82310.09330.01070.12100.08010.00540.0755
4,1,40.22180.09331.33440.10690.01260.17830.08920.00630.1003
4,1,80.25160.10821.95390.11410.01370.23210.09230.00670.1171
4,2,20.16970.06081.24540.10880.01090.24570.10240.00610.1518
4,2,40.25070.09302.33400.14920.01520.40590.13340.00790.2378
4,2,80.33090.12794.13970.16980.01800.59530.14910.00920.3168
8,0,20.04280.02120.10430.02760.00380.02130.02540.00190.0129
8,0,40.04490.02250.12320.02910.00410.02650.02540.00190.0149
8,0,80.04540.02280.13290.02950.00420.02880.02540.00190.0154
8,1,20.06920.03290.21450.04240.00580.04030.03700.00290.0241
8,1,40.07510.03630.27000.04590.00640.05470.03750.00300.0285
8,1,80.07690.03730.30610.04700.00670.06340.03750.00300.0301
8,2,20.09500.04340.37170.05230.00690.06170.04410.00310.0372
8,2,40.10750.04990.50120.05810.00790.08800.04820.00350.0455
8,2,80.11210.05250.60070.06140.00860.10810.04870.00360.0489

Table 21.

The default uses fewer nodes and recovers fewer tokens than the largest-gain setting. Qwen’s highest-gain configuration yields G=0.1293G = 0.1293 at C=2.3356C = 2.3356; its highest-efficiency configuration yields G=0.0212G = 0.0212 at C=0.1043C = 0.1043. Candidate settings jointly control total recovery and recovery per node.

Activation, Width, and Periodic Probes

The adaptive comparison holds the distinct-prefix counter fixed and measures each policy against the same fixed gate and width. Table 22 reports acceptance and cost, followed by half-life and probe-interval sweeps. Full control reduces both quantities. Gain per node rises for Qwen and Llama; Mistral’s ratio changes from 0.0252/2.691 to 0.0168/1.817.

Table 22: Adaptive replay using the distinct-prefix counter. Half-life sweeps keep P=32P = 32; probe-interval sweeps keep H=32H = 32. Gain is additional acceptance over the same SmallDraft.

SettingQwen3-8B Δ\DeltanodesMistral-24B Δ\DeltanodesLlama-3.1-8B Δ\Deltanodes
Fixed gate and width0.17095.6880.02522.6910.01241.077
Adaptive gate, fixed width0.15995.2720.01952.1490.00900.688
Periodic probes removed0.00790.2580.00550.4390.00160.082
Full controller0.12703.8100.01681.8170.00690.482
H=8H = 80.11763.5440.01631.8490.00800.581
H=16H = 160.12553.7620.01681.8460.00810.555
H=32H = 320.12703.8100.01681.8170.00690.482
H=64H = 640.11893.5670.01571.6140.00540.349
H=128H = 1280.09172.7150.01291.3270.00300.207
P=8P = 80.12923.8650.01942.0580.00870.673
P=16P = 160.13023.9040.01831.9950.00750.576
P=32P = 320.12703.8100.01681.8170.00690.482
P=64P = 640.11953.5920.01511.5860.00480.263
P=128P = 1280.09612.9010.01281.3410.00320.163

Table 22.

Removing periodic probes reduces the increment from 0.1270 to 0.0079 for Qwen, from 0.0168 to 0.0055 for Mistral, and from 0.0069 to 0.0016 for Llama. Probes provide observations that reactivate retrieval after inactive periods. Varying HH changes the persistence of feedback, while varying PP changes how often the controller checks for renewed reuse.

The hit-dependence measurements in Appendix § 10.3.§ 4 motivate recent-outcome feedback. The exponential score in Equation (2) is a constant-memory summary with half-life HH. The archived empirical dependence has a long tail; the sweep over H∈{8,16,32,64,128}H \in\{8, 16, 32, 64, 128\} evaluates several timescales for summarizing it.

Feedback Aligned with Incremental Acceptance

The default reward zt=1[aretr(t)≥1]z_t = 1[a_{\mathrm{retr}}(t) \ge1] records a retrieval hit. A marginal-gain reward directly credits extension beyond SmallDraft:

rt=δt=max⁡{asmall(t),aretr(t)}−asmall(t).r_t = \delta_t = \max\{a_{\mathrm{small}}(t), a_{\mathrm{retr}}(t)\} - a_{\mathrm{small}}(t).

Both rewards become available after verification and inform later events. Gate thresholds are selected using node counts to match the default controller’s cost. Table 23 compares random, periodic, last-hit, hit-EMA, and marginal-gain-EMA activation at those matched costs.

Marginal-gain EMA has the highest point estimate for every target. The progression from random activation to recent-hit feedback and marginal-gain feedback connects the controller’s information to its acceptance objective.

Context Matching Under the Same Controller

Table 24 holds the marginal-gain controller and node budget fixed while changing exact to approximate context matching. The increments rise from 0.121 to 0.136 for Qwen, 0.0162 to 0.0176 for Mistral, and 0.0070 to 0.0074 for Llama. Candidate construction and feedback contribute at successive stages: matching supplies continuations, and the reward guides their use. The causal execution of these stages is specified next.

Causal Construction and Exact Verification

This section supports § 4 by following a decoding event from candidate construction to exact verification and controller feedback. Prefix audits check information availability, the verifier supplies a distributional argument, and event-driven replay evaluates the resulting execution path.

Historical Candidate Construction

For each retrieved continuation, we record query position tt, source position jj, context length cc, and depth dd. The historical boundary is

j+d−1≤t−1.j + d - 1 \le t - 1.

Every continuation token is present in ht=y<th_t = y_{<t} before ranking, pruning, prefix deduplication, and activation. Three checks validate this construction: reconstruction from the explicit prefix, perturbation of all tokens at and after tt, and comparison with an index that inserts tokens after target acceptance.

ModelBoundary violationsCandidate agreementRanking agreementIndex agreement
Qwen3-8B0100.0%100.0%100.0%
Mistral-24B0100.0%100.0%100.0%
Llama-3.1-8B0100.0%100.0%100.0%

Table 25. Historical-boundary audit. Candidate agreement compares the archived replay with explicit-prefix reconstruction; index agreement compares complete-prefix construction with incremental insertion.

Table 25 reports zero boundary violations and 100% candidate, ranking, and index agreement. Candidate sets and controller decisions remain identical under future-token perturbation. The reconstruction rerun in Table 26 is paired with the earlier fixed-width snapshot, whose Llama increment is 0.0124. The updated Llama measurement of 0.0180 is recorded separately in Appendix § 10.2.§ 4.

ModelOriginal Δ\DeltaBoundary-safe Δ\DeltaRelative change
Qwen3-8B0.17090.1680−1.7%-1.7\%
Mistral-24B0.02530.0244−3.6%-3.6\%
Llama-3.1-8B0.01240.0117−5.6%-5.6\%

Table 26. Prefix-reconstruction rerun paired with the earlier fixed-width snapshot. Δ\Delta measures added acceptance over the same SmallDraft.

Exact Tree Verification and Distribution Preservation

At a committed prefix hh, SmallDraft and retrieval supply child-token labels for a prefix-sharing tree. The target distribution is p(⋅∣h)p(\cdot\mid h). The verifier follows this target-coupled procedure:

  1. Evaluate target logits at the candidate tree nodes in one masked forward pass.

  2. Draw x=Fp(⋅∣h)−1(u)x = F^{-1}_{p(\cdot\mid h)}(u) using the next shared uniform uu.

  3. If xx labels a child, commit xx, move to that child, and continue.

  4. Otherwise, commit xx as the correction token and end the event.

At depth dd, the event ends after the dd accepted tree tokens. The reported implementation emits zero bonus tokens. Candidate labels determine which precomputed logits can be reused along the target-sampled path.

Distribution preservation. For a tree constructed from the committed prefix and a sequence of uniforms, the emitted tokens equal those of target ancestral sampling driven by the same uniforms. At the root, both procedures apply the same inverse CDF to the same distribution and uniform, producing the same token. A token outside the tree is committed as a correction and ends the event. A token inside the tree extends both prefixes identically, allowing the argument to repeat at the child. Induction over committed tokens gives equality of the conditional and joint output distributions. Event termination determines the timing of the next target forward pass. □

The implementation audit uses 100 held prefixes and 100 shared-uniform streams per model. Table 27 reports identical complete emitted sequences across 30,000 coupled trials, including correction tokens. This audit connects the verifier’s distributional argument to the implemented tree execution.

ModelCoupled trialsExact sequencesToken mismatchesMax logit error
Qwen3-8B10,000100.0%03.1×10−63.1 \times10^{-6}
Mistral-24B10,000100.0%03.6×10−63.6 \times10^{-6}
Llama-3.1-8B10,000100.0%02.9×10−62.9 \times10^{-6}

Table 27. Target-coupled implementation audit using 100 held prefixes and 100 shared-uniform streams per target. Exact-sequence agreement includes correction tokens.

Event-Driven Replay and Controller Updates

Position-wise replay evaluates candidate availability at each recorded position. Speculative execution advances by accepted blocks. Let sns_n be an executed position and ana_n the accepted tree edges. The next position is

sn+1={sn+an+1,if verification leaves the tree,sn+d,if all d tree edges are accepted.s_{n+1} = \begin{cases} s_n + a_n + 1, & \text{if verification leaves the tree},\\ s_n + d, & \text{if all } d \text{ tree edges are accepted}. \end{cases}

Event-driven replay applies this transition, performs retrieval and controller updates at visited positions, and inserts historical tokens after acceptance. The controller at event nn uses outcomes from completed earlier events. This schedule aligns candidate construction, feedback, and index state with the positions executed by the decoder.

The event-driven increments are 0.1231, 0.0162, and 0.0066 for Qwen, Mistral, and Llama, respectively, with lower node counts than position-wise replay. Each gain changes by less than 6%. comparison connects the offline candidate analysis to an executable adaptive policy. Appendix § 11 then accounts for the serving costs of that complete policy.

ModelPosition-wise replayEvent-driven replay
Δ\DeltaNodes/positionΔ\DeltaNodes/position
Qwen3-8B0.12703.8100.12313.681
Mistral-24B0.01681.8170.01621.751
Llama-3.1-8B0.00690.4820.00660.461

Table 28. Position-wise and event-driven replay. Both use the same SmallDraft reference; event-driven cost counts retrieval nodes at executed verification events.

End-to-End Execution and Length Scaling

§ 5.4 links acceptance and node cost to runtime. The B200 experiments measure the complete adaptive union tree end to end, followed by repeated-run summaries and a length sweep. We present the execution configuration first, then throughput, variation, and amortization as generated history grows. We then connect these outcomes to event-level progress, resource costs, and a controlled systems-evaluation framework (Appendix § 11.§ 4).

Execution Configuration and Target–Draft Pairs

The target–draft pairs are Mistral-24B/Ministral-8B-Instruct-2410 and Qwen3-8B/Qwen3-0.6B on one NVIDIA B200, matching Table 4. Each configuration uses the same 100 code-debugging prompts, 1,024 generated tokens per prompt, precision, KV-cache configuration, and serving engine. The accounting covers lookup, tree construction, deduplication, target verification, controller updates, cache updates, and sampling correction. The execution follows Appendix § 10.6.

Throughput of the Complete Union Tree

Table 29 and Table 30 compare SmallDraft, single-source hybrids, and the budgeted union at batch sizes 1 and 32. The measured union gains are 4.1% and 3.5% for Mistral and 8.3% and 7.6% for Qwen. Qwen’s larger acceptance increment accompanies a larger throughput gain. Mistral’s standalone TLAR gain is 0.2% at batch one, while its union gain is 4.1%, highlighting the role of candidate composition in the complete system.

BatchMethodSecondsTokens/sRelative
1SmallDraft1305.7678.421.000
1STAND + SmallDraft1282.7079.831.018
1TLAR + SmallDraft1303.1878.581.002
1Budgeted STAND∪\cupTLAR + SmallDraft1254.3681.641.041
32SmallDraft81.231260.691.000
32STAND + SmallDraft79.951280.861.016
32TLAR + SmallDraft80.261275.821.012
32Budgeted STAND∪\cupTLAR + SmallDraft78.481304.811.035

Table 29. Mistral/B200 end-to-end measurements. Each row represents 102,400 output tokens. Relative throughput uses SmallDraft at the same batch size.

BatchMethodSecondsTokens/sRelative
1SmallDraft715.08143.201.000
1STAND + SmallDraft686.93149.071.041
1TLAR + SmallDraft675.86151.511.058
1Budgeted STAND∪\cupTLAR + SmallDraft660.26155.091.083
32SmallDraft42.582405.001.000
32STAND + SmallDraft41.222484.401.033
32TLAR + SmallDraft40.472530.101.052
32Budgeted STAND∪\cupTLAR + SmallDraft39.572587.801.076

Table 30. Qwen/B200 end-to-end measurements with the protocol of Table 29. Relative throughput uses the matching SmallDraft control.

Repeated-Run Variation and Paired Summaries

We measure throughput over five warmed runs per configuration. Table 31 and Table 32 preserve those values and their medians. CV is the sample coefficient of variation. Table 33 computes Mistral’s paired percentage gains against SmallDraft and two-sided 95% tt intervals over the five measured pairs; the Qwen table includes the corresponding paired summaries. These calculations summarize the observed variation across repeated runs.

BatchMethodRun 1Run 2Run 3Run 4Run 5MedianCV
1SmallDraft78.4278.1178.6878.2978.5778.420.29%
1STAND + SmallDraft79.9679.5280.1779.8379.6879.830.31%
1TLAR + SmallDraft78.5878.2478.9078.5178.6578.580.30%
1Budgeted union81.8081.2982.0281.6481.4781.640.35%
32SmallDraft1260.691251.801270.401258.201265.701260.690.56%
32STAND + SmallDraft1284.901270.601291.701280.861277.501280.860.62%
32TLAR + SmallDraft1279.801265.401287.101275.821271.601275.820.64%
32Budgeted union1310.201294.601317.501304.811300.301304.810.68%

Table 31. Measured Mistral throughput distribution underlying Table 29. Values are tokens/s. CV is the sample coefficient of variation across the five measured runs.

BatchMethodRun 1Run 2Run 3Run 4Run 5MedianPaired summary
1SmallDraft143.20142.55144.03142.86143.67143.20CV 0.42%
1STAND + SmallDraft149.44148.22150.01149.07148.73149.074.071 [3.643, 4.499]%
1TLAR + SmallDraft151.93150.55152.36151.51150.97151.515.726 [5.215, 6.237]%
1Budgeted union155.62154.08156.41155.09154.71155.098.320 [7.795, 8.846]%
32SmallDraft2405.02389.02422.02398.02413.02405.0CV 0.53%
32STAND + SmallDraft2491.02468.02505.02484.42477.02484.43.313 [2.831, 3.795]%
32TLAR + SmallDraft2538.02509.02551.02530.12520.02530.15.164 [4.598, 5.731]%
32Budgeted union2598.02561.02614.02587.82576.02587.87.564 [6.869, 8.260]%

Table 32. Measured Qwen throughput distribution. Values are tokens/s. The final column gives paired mean gains and 95% tt intervals; SmallDraft rows give CV.

BatchComparison with SmallDraftMean gain95% interval
1STAND + SmallDraft1.808%[1.522, 2.095]%
1TLAR + SmallDraft0.207%[0.111, 0.302]%
1Budgeted union4.119%[3.801, 4.438]%
32STAND + SmallDraft1.566%[1.086, 2.047]%
32TLAR + SmallDraft1.157%[0.639, 1.674]%
32Budgeted union3.498%[2.922, 4.075]%

Table 33. Paired percentage gains calculated from the measured Mistral runs in Table 31. Intervals are two-sided 95% tt intervals over the five pairs.

From Candidate Acceptance to Execution Efficiency

From reusable content to elapsed time. The source, hybrid, and matched-budget comparisons connect reusable content to incremental candidate coverage. Execution adds the time required to produce a fixed output. SwiftEP connects data movement and GPU resource competition to serving performance through buffer fusion and transfer offloading [20]. For TLAR, the corresponding questions concern execution dependencies, resource costs, and their effect on complete-request time.

Let NN be the fixed number of output tokens, and let T0T_0 and T1T_1 be the elapsed times for SmallDraft and the budgeted union. The throughput ratio and fractional time saving are

S=N/T1N/T0=T0T1,RT=T0−T1T0=1−1S.(3)S = \frac{N/T_1}{N/T_0} = \frac{T_0}{T_1}, \qquad R_T = \frac{T_0-T_1}{T_0} = 1 - \frac{1}{S}. \tag*{(3)}

Table 34 calculates these savings directly from the reported durations. Mistral’s 4.1%/3.5% throughput gains correspond to 3.94%/3.39% time savings at batches 1/32; Qwen’s 8.3%/7.6% gains correspond to 7.67%/7.07% time savings. These are net outcomes after drafting, retrieval, verification, and cache management. They quantify the benefit available to the complete system.

TargetBatchT0T_0 (s)T1T_1 (s)Saved (s)RTR_T
Mistral11305.761254.3651.403.94%
Mistral3281.2378.482.753.39%
Qwen1715.08660.2654.827.67%
Qwen3242.5839.573.017.07%

Table 34. Time savings calculated from the measured durations in Table 29 and Table 30. Each row covers 102,400 output tokens. Percentages use the corresponding SmallDraft duration.

Separating progress per event from event cost. For configuration ii, let MiM_i be the number of executed decoding events, Cˉi=N/Mi\bar{C}_i = N/M_i the mean committed tokens across requests per event, and

tˉi=Ti/Mi\bar{t}_i = T_i/M_i the mean elapsed time per event, with prefill amortized across these events. Then

Qi=Cˉitˉi,S=Cˉ1/Cˉ0tˉ1/tˉ0.(4)Q_i = \frac{\bar{C}_i}{\bar{t}_i}, \qquad S = \frac{\bar{C}_1/\bar{C}_0}{\bar{t}_1/\bar{t}_0}. \tag*{(4)}

Committed progress includes accepted candidate tokens and target-sampled correction tokens. The offline acceptance experiments describe candidate coverage at recorded positions; the event-driven execution determines which positions are visited and how many tokens each event commits. More useful candidates can increase Cˉ\bar{C}, while wider verification and memory operations can increase tˉ\bar{t}. Acceleration occurs when the relative increase in committed progress exceeds the relative increase in event cost. This identity specifies the two quantities needed to explain the different Mistral and Qwen runtime gains. Per-event traces supply their separate contributions.

Locating resource costs and overlap. The released implementation constructs history matches and candidate metadata on the CPU and verifies the tree on the GPU. Token IDs, positions, and masks cross the host–device boundary. Batched KV packing and accepted-path extraction move device tensors; unequal trees introduce padding. CPU time, transfer and cache-copy bytes, useful and padded nodes, target-kernel duration, and peak allocated memory provide corresponding resource measurements.

Verification consumes the completed candidate tree, and subsequent retrieval uses committed tokens and observed outcomes. Drafting and history lookup share the same committed prefix, providing an opportunity for concurrent scheduling. A timeline can measure overlap and exposed waiting time. Concurrent GPU operations may compete for bandwidth and compute resources. Critical-path time and resource demand jointly determine the value of overlap; summing component durations counts overlapping intervals multiple times.

A controlled component study. Hold prompts, checkpoints, candidates, precision, and target-sampling streams fixed while varying buffer reuse, metadata packing, KV compaction, and concurrent scheduling separately. Evaluate their combination to measure interactions. Record committed tokens, event count, critical-path duration, and complete-request time alongside resource counters. This design tests the execution cost of a fixed candidate policy. A subsequent width-and-budget sweep jointly measures changes in Cˉ\bar{C} and tˉ\bar{t}.

The length sweep adds a temporal axis: Qwen’s gains change from −0.6%/−0.7% at 512 tokens to 12.4%/10.8% at 4,096 tokens (Table 2). Longer execution creates more history and retrieval-eligible positions. Tracking index size, lookup time, cache traffic, and committed progress would reveal how memory maintenance and reuse develop together.

A framework for runtime-aware retrieval. The resulting framework connects source quality, candidate complementarity, committed progress, critical-path cost, and serving performance. A subsequent controller can combine incremental acceptance with measured event time, memory pressure, and queue load to select retrieval width and verification budget. Its objective is committed tokens per unit time under latency and memory constraints. Evaluation should cross batch size, concurrent-request count, and output length, reporting throughput, first-token and inter-token latency, completion latency, GPU activity, memory bandwidth, CPU time, and peak device memory. Paired repetitions and sampling audits connect efficiency to generation behavior, making each mechanism testable through its effect on the complete inference workload.

Archived Model-Based Drafting Reference

The EAGLE-3 archive (job 40233870) provides a separate model-based reference using 100 code-debugging prompts, 256 output tokens, and five speculative tokens. Qwen vanilla and EAGLE-3 throughput are 13,063.70 and 20,436.75 tokens/s; Llama values are 19,436.63 and 16,721.52 tokens/s. The checkpoints are RedHatAI/Qwen3-8B-Thinking-speculator.eagle3 and yuhuili/EAGLE3-LLaMA3.1-Instruct-8B. These archived point measurements describe that execution configuration. The shared-condition SmallDraft controls in Table 29 and Table 30 define the reference for the TLAR runtime analysis.

Discussion: Trajectory Memory as an Inference Resource

The results connect three properties of generated text: it stores reusable continuations, those continuations can extend an existing drafter, and their value changes during decoding. This connection gives trajectory memory an operational role in inference. The research problem becomes how to identify, select, and verify useful parts of an evolving memory while accounting for the cost of maintaining and accessing it. The source tests, hybrid comparisons, controller ablations, causal audits, and runtime analysis each resolve one part of that problem.

Generation Creates a Memory Whose Value Depends on the Drafter

The source comparisons show that a generated trajectory contains continuations that can be recovered from recurring contexts. The same-prompt comparison adds a more specific observation: changing the rollout of a fixed problem changes the available drafts. Qwen and Mistral favor their own history, while Llama favors the other rollout (Table 12). A mechanistic hypothesis is that choices made during generation—such as notation, local phrasing, and the order of intermediate steps—create a continuation vocabulary that a matching history makes accessible. Paired analyses of these choices would connect the token-level source effect to the structure of reasoning.

The value of this memory is also conditional on what the drafter already supplies. Mistral has stronger source acceptance in code than mathematics, yet its hybrid increment is larger in mathematics (Figure 4). SmallDraft coverage mediates the route from available reuse to additional accepted tokens. This reversal makes incremental coverage a useful design objective for memory-based inference: a memory should be evaluated through the predictions it adds to the system receiving it. A direct next experiment would vary draft-model capacity on fixed target trajectories and measure how source coverage, overlap, and marginal gain change together.

A Verification Budget Makes Candidate Composition Central

The supplementary addition test identifies new accepted continuations from TLAR across retrieval sources (Table 19). The matched-budget test then requires both sources to share a fixed node allowance. Its union gains of 4.8%–16.8% over the strongest single source (Table 18) show the value of composing candidates from different retrieval mechanisms. At B=4B = 4, Qwen’s increment rises from 0.168 to 0.191; at B=8B = 8, it rises from 0.184 to 0.215.

This result motivates selection based on the contribution of a candidate to the tree already chosen. For a fixed target continuation, adding a candidate changes accepted length through the longest accepted path. Two candidates that recover the same prefix overlap in value; a candidate that extends another path changes coverage. Prefix sharing also changes cost, because overlapping paths share verification nodes. Candidate selection couples these two forms of overlap.

An ensuing research direction is to estimate the expected increase in accepted length per added tree node, conditional on the existing draft and retrieval branches. Such a selector could jointly choose the source, continuation depth, and branching width. The two-budget experiment provides an initial evaluation template: hold the node cap fixed, vary the selection rule, and record coverage, prefix sharing, and target latency. This would turn multi-source retrieval into an explicit resource-allocation problem.

Feedback Should Track the Value Added to the Existing System

Temporal dependence supplies a reason to adapt: next-position hit probabilities after a hit exceed the overall probabilities for all three targets (Appendix § 10.3.§ 4). The controller ablations then reveal that the choice of feedback matters. At almost identical node costs, marginal-gain EMA has higher point estimates than hit EMA, which in turn exceeds random activation (Table 23). Qwen progresses from 0.096 under random activation to 0.127 under hit EMA and 0.136 under marginal-gain EMA. The feedback becomes more closely aligned with the hybrid’s acceptance objective along this sequence.

Periodic probes expose a second property of adaptive memory access: the policy affects which outcomes it observes. An inactive retriever obtains its next reuse observation when it probes. Removing probes reduces Qwen’s gain from 0.1270 to 0.0079, with reductions for Mistral and Llama as well (Table 22). Probing is part of information acquisition for the controller. Future policies could allocate probes according to uncertainty about local reuse and compare the recovered gain against the cost of gathering that information. Event-driven replay supplies the execution schedule for this experiment, ensuring that feedback corresponds to completed decoding events.

Exact Verification Supports Flexible Memory Search

Approximate matching and exact acceptance operate at successive stages. The matched-controller comparison shows higher increments with approximate contexts for each target (Table 24); the verifier still commits tokens through the target distribution. The distributional argument and 30,000 coupled trials in Appendix § 10.6.§ 2 connect that rule to the implemented tree. The prefix reconstruction and event-driven audits complete the connection from available history to executed feedback.

ModelExact Δ\DeltaExact nodesApprox. Δ\DeltaApprox. nodes
Qwen3-8B0.121 [0.111, 0.131]3.8070.136 [0.126, 0.146]3.811
Mistral-24B0.0162 [0.0103, 0.0221]1.8140.0176 [0.0115, 0.0237]1.816
Llama-3.1-8B0.0070 [0.0040, 0.0100]0.4810.0074 [0.0043, 0.0105]0.482

Table 24. Exact and approximate context matching under the marginal-gain controller and the same verification-node budget.

This separation creates a useful interface for future retrieval research. Context embeddings, compressed history indexes, and structured references to earlier reasoning steps could be studied as candidate generators feeding the same exact verifier. The research questions become how each representation affects candidate recall, incremental acceptance, lookup latency, and memory use. The existing source controls and shared-budget tests provide a common way to compare those representations while preserving the generation objective.

Longer Reasoning Changes Both the Memory and Its Economics

The static grid shows that the highest total gain and the highest gain per node occur at different settings (Table 20). Runtime adds further costs: lookup, index maintenance, tree construction, and cache updates. The B200 measurements connect those costs to output length. At 512 tokens, controller and index overhead produce changes of −0.6% and −0.7%; at 4,096 tokens, measured gains reach 12.4% and 10.8% (Table 2). The length sweep describes an amortization process as more positions become eligible for retrieval.

Long generation has two linked effects: it creates more history to search and more future decoding work over which to recover memory-access cost. This suggests jointly adapting retention, lookup effort, and verification width as a trajectory grows. A useful next study would measure the age and reuse frequency of retained spans alongside device latency, then evaluate eviction policies against full-history retrieval. Repeating the analysis across target–draft pairs, batch sizes, and hardware would connect memory policy to the actual serving objective of accepted tokens per unit time.

An Evaluation Chain for Memory-Based Inference

The repetition audit gives the broader evaluation framework its first step: inspect what creates a strong reuse statistic. Removing seven looping Llama mathematics trajectories changes source acceptance from 7.03 to 2.2378 (Appendix § 10.3.§ 2). Source identity, task progress, and accepted span length carry complementary information. The hybrid reversal for Mistral adds a second step: measure what the memory contributes beyond the current drafter. Shared-budget unions add resource control, with ablations identify the feedback objective, and causal replay connects the policy to an executable decoder.

Together, these steps provide a reusable methodology for studying inference-time memory: identify the source signal, measure incremental coverage, allocate a common resource budget, validate the execution path, and account for runtime. Future benchmarks can pair these measurements with task outcomes and actual device traces, with documented measurement procedures and reproducible execution settings. Appendix § 11.§ 4 develops this evaluation into a component study that connects candidate coverage, committed progress, critical-path time, and serving performance. The central contribution of this perspective is a connection between reasoning content and computational scheduling. A generated trajectory becomes a resource whose useful continuations can guide the allocation of subsequent inference work.

References

  1. [1]Bradley Brown, Jordan Juravsky, Ryan Ehrlich, Ronald Clark, Quoc V Le, Christopher Ré, and Azalia Mirhoseini. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787, 2024.arxiv.org/abs/2407.21787
  2. [2]Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D Lee, Deming Chen, and Tri Dao. Medusa: Simple lm inference acceleration framework with multiple decoding heads. arXiv preprint arXiv:2401.10774, 2024.arxiv.org/abs/2401.10774
  3. [3]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023.arxiv.org/abs/2302.01318
  4. [4]Guanzheng Chen, Qilong Feng, Jinjie Ni, Xin Li, and Michael Qizhe Shieh. Rapid: Long-context inference with retrieval-augmented speculative decoding. arXiv preprint arXiv:2502.20330, 2025.arxiv.org/abs/2502.20330
  5. [5]Zhuoming Chen, Avner May, Ruslan Svirschevski, Yuhsun Huang, Max Ryabinin, Zhihao Jia, and Beidi Chen. Sequoia: Scalable, robust, and hardware-aware speculative decoding. arXiv preprint arXiv:2402.12374, 2024.arxiv.org/abs/2402.12374
  6. [6]Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich, Basil Hosmer, Bram Wasti, Liangzhen Lai, Anas Mahmoud, Bilge Acun, Saurabh Agarwal, Ahmed Roman, et al. Layerskip: Enabling early exit inference and self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12622–12642, 2024.
  7. [7]Angela Fan, Mike Lewis, and Yann Dauphin. Hierarchical neural story generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 889–898, 2018.arxiv.org/abs/1805.04833
  8. [8]Yichao Fu, Peter Bailis, Ion Stoica, and Hao Zhang. Break the sequential dependency of llm inference using lookahead decoding. In International Conference on Machine Learning, 2024.arxiv.org/abs/2402.02057
  9. [9]Aayush Gautam, Susav Shrestha, and Narasimha Reddy. Token-driven gammatune: Adaptive calibration for enhanced speculative decoding. arXiv preprint arXiv:2504.00030, 2025.arxiv.org/abs/2504.00030
  10. [10]Zhenyu He, Zexuan Zhong, Tianle Cai, Jason Lee, and Di He. Rest: Retrieval-based speculative decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 1582–1595, 2024.
  11. [11]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
  12. [12]Maximilian Holsman, Yukun Huang, and Bhuwan Dhingra. Fuzzy speculative decoding for a tunable accuracy-runtime tradeoff. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 26257–26273, 2025.
  13. [13]Yuxuan Hu, Ke Wang, Xiaokang Zhang, Fanjin Zhang, Cuiping Li, Hong Chen, and Jing Zhang. Sam decoding: Speculative decoding via suffix automaton. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12187–12204, 2025.arxiv.org/abs/2411.10666
  14. [14]Kaixuan Huang, Xudong Guo, and Mengdi Wang. Speedc++: Boosting speculative decoding via adaptive candidate lengths. arXiv preprint arXiv:2405.19715, 2024.arxiv.org/abs/2405.19715
  15. [15]Naman Jain, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. Livecodebench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations, volume 2025, pp. 58791–58831, 2025.
  16. [16]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. Swe-bench: Can language models resolve real-world github issues? In International Conference on Learning Representations, volume 2024, pp. 54107–54157, 2024.arxiv.org/abs/2310.06770
  17. [17]Daniel Lee, Owen Queen, and James Zou. Reasonops: Operator segmentation for llm reasoning traces. arXiv preprint arXiv:2605.29192, 2026.arxiv.org/abs/2605.29192
  18. [18]Yaniv Levithan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International conference on machine learning, pp. 19274–19286. PMLR, 2023.
  19. [19]Minghan Li, Xilun Chen, Ari Holtzman, Beidi Chen, Jimmy Lin, Wen-tau Yih, and Xi V Lin. Nearest neighbor speculative decoding for llm generation and attribution. Advances in Neural Information Processing Systems, 37:80987–81015, 2024a.arxiv.org/abs/2405.19325
  20. [20]Xingyi Li, Yadong Liu, Xiaojie Huang, Yiran Zhang, Shuai Wang, Shangguang Wang, Zhehao Lin, Yinben Xia, Chang Yu, Qihang Liu, Xuan Zhang, Hao Lu, Xiang Li, Zekun He, Yachen Wang, and Xianneng Zou. SwiftEP: Accelerating MoE inference with buffer fusion and TMA offloading. In 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI 26), pp. 1073–1089. USENIX Association, 2026a. URL https://www.usenix.org/conference/nsdi26/presentation/li-xingyi.
  21. [21]Yiwei Li, Jiayi Shi, Shaoxiong Feng, Peiwen Yuan, Xinglin Wang, Yueqi Zhang, Ji Zhang, Chuyi Tan, Boyuan Pan, Yao Hu, et al. Speculative decoding for multi-sample inference. In EMNLP (Findings), pp. 12523–12533, 2025.
  22. [22]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle: Speculative sampling requires rethinking feature uncertainty. arXiv preprint arXiv:2401.15077, 2024b.arxiv.org/abs/2401.15077
  23. [23]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-2: Faster inference of language models with dynamic draft trees. In Proceedings of the 2024 conference on empirical methods in natural language processing, pp. 7421–7432, 2024c.arxiv.org/abs/2406.16858
  24. [24]Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. Eagle-3: Scaling up inference acceleration of large language models via training-time test. Advances in Neural Information Processing Systems, 38:136737–136756, 2026b.arxiv.org/abs/2503.01840
  25. [25]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, volume 2024, pp. 39578–39601, 2024.arxiv.org/abs/2305.20050
  26. [26]Xianzhen Luo, Yixuan Wang, Qingfu Zhu, Zhiming Zhang, Xuanyu Zhang, Qing Yang, and Dongliang Xu. Turning trash into treasure: Accelerating inference of large language models with token recycling. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6816–6831, 2025.arxiv.org/abs/2408.08696
  27. [27]Jonathan Mamou, Oren Pereg, Daniel Korat, Moshe Berchansky, Nadav Timor, Moshe Wasserblat, and Roy Schwartz. Dynamic speculation lookahead accelerates speculative decoding of large language models. arXiv preprint arXiv:2405.04304, 2024.arxiv.org/abs/2405.04304
  28. [28]Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, et al. SpecInfer: Accelerating generative large language model serving with tree-based speculative inference and verification. arXiv preprint arXiv:2305.09781, 2023.DOI
  29. [29]Niklas Muennighoff, Zitong Yang, Weijia Shi, Xiang Lisa Li, Li Fei-Fei, Hannah Hajishirzi, Luke Zettlemoyer, Percy Liang, Emmanuel Candès, and Tatsunori B Hashimoto. s1: Simple test-time scaling. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 20286–20332, 2025.arxiv.org/abs/2501.19393
  30. [30]Gabriele Oliaro, Zhihao Jia, Daniel Campos, and Aurick Qiao. Suffixdecoding: Extreme speculative decoding for emerging ai applications. Advances in Neural Information Processing Systems, 38:126326–126354, 2026.arxiv.org/abs/2411.04975
  31. [31]Rui Pan, Yinwei Dai, Zhihao Zhang, Gabriele Oliaro, Zhihao Jia, and Ravi Netravali. Spereason: Fast and accurate inference-time compute via speculative reasoning. Advances in Neural Information Processing Systems, 38:12730–12749, 2026.arxiv.org/abs/2504.07891
  32. [32]Guofeng Quan, Wenfeng Feng, Chuzhan Hao, Guochao Jiang, Yuewei Zhang, and Hao Henry Wang. Rasd: Retrieval-augmented speculative decoding. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 6167–6177, 2025.arxiv.org/abs/2503.03434
  33. [33]David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpq: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.arxiv.org/abs/2311.12022
  34. [34]Navid Rezazadeh and Arash Gholami Davoodi. The shape of overthinking: Backtracking bursts in long reasoning traces. arXiv preprint arXiv:2605.27965, 2026.arxiv.org/abs/2605.27965
  35. [35]Junhan Shi, Yijia Zhu, Zhenning Shi, Dan Zhao, Qing Li, and Yong Jiang. SpecCoT: Accelerating chain-of-thought reasoning through speculative exploration. In Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 24405–24415, November 2025.DOI
  36. [36]Shwetha Somsundaram, Anirudh Phukan, and Apoorv Saxena. Pld+: Accelerating llm inference by leveraging language model artifacts. In Findings of the Association for Computational Linguistics: NAACL 2025, pp. 6090–6104, 2025.
  37. [37]Woomin Song, Saket Dingliwal, Sai Muralidhar Jayanthi, Bhavana Ganesh, Jinwoo Shin, Aram Galstyan, and Sravan Babu Bodapati. Accelerated test-time scaling with model-free speculative sampling. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 30611–30624, 2025.DOI
  38. [38]Mitchell Stern, Noam Shazeer, and Jakob Uszkoreit. Blockwise parallel decoding for deep autoregressive models. Advances in Neural Information Processing Systems, 31, 2018.arxiv.org/abs/1811.03115
  39. [39]Jikai Wang, Yi Su, Juntao Li, Qingrong Xia, Zi Ye, Xinyu Duan, Zhefeng Wang, and Min Zhang. Opt-tree: Speculative decoding with adaptive draft tree structure. Transactions of the Association for Computational Linguistics, 13:188–199, 2025a.
  40. [40]Jikai Wang, Juntao Li, Jianye Hou, Yan Bowen, Lijun Wu, and Min Zhang. Efficient reasoning for llms through speculative chain-of-thought. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 1541–1553, 2026.arxiv.org/abs/2504.19095
  41. [41]Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022.arxiv.org/abs/2203.11171
  42. [42]Zhihai Wang, Jie Wang, Jilai Pan, Xilin Xia, Huiling Zhen, Mingxuan Yuan, Jianye Hao, and Feng Wu. Accelerating large language model reasoning via speculative search. arXiv preprint arXiv:2505.02865, 2025b.arxiv.org/abs/2505.02865
  43. [43]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824–24837, 2022.arxiv.org/abs/2201.11903
  44. [44]Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang, Yongqi Li, Tao Ge, Tianyu Liu, Wenjie Li, and Zhifang Sui. Unlocking efficiency in large language model inference: A comprehensive survey of speculative decoding. Findings of the Association for Computational Linguistics: ACL 2024, pp. 7655–7671, 2024.arxiv.org/abs/2401.07851
  45. [45]Yunfan Xiong, Ruoyu Zhang, Yanzeng Li, and Lei Zou. Dyspec: Faster speculative decoding with dynamic token tree structure. World Wide Web, 28(3):36, 2025.
  46. [46]Nan Yang, Tao Ge, Liang Wang, Binxing Jiao, Daxin Jiang, Linjun Yang, Rangan Majumder, and Furu Wei. Inference with reference: Lossless acceleration of large language models. arXiv preprint arXiv:2304.04487, 2023.
  47. [47]Hongyi Yuan, Keming Lu, Fei Huang, Zheng Yuan, and Chang Zhou. Speculative contrastive decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 56–64, 2024.arxiv.org/abs/2311.08981
  48. [48]Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, and Sharad Mehrotra. Draft & verify: Lossless large language model acceleration via self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11263–11282, 2024.
  49. [49]Weilin Zhao, Yuxiang Huang, Xu Han, Wang Xu, Chaojun Xiao, Xinrong Zhang, Yewei Fang, Kaihuo Zhang, Zhiyuan Liu, and Maosong Sun. Ouroboros: Generating longer drafts phrase by phrase for faster speculative decoding. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 13378–13393, 2024.

Paper details

vlnc:W_drjvum2p
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC0-1.0
Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI-assisted tools

View statement
Looking for related papers…
Contents