Abstract: A finite vocabulary example shows that the SLRS complexity analysis counts exact string reconstructions rather than the stopped first-token events required for its proposal probabilities. Substituting the incomplete masses can change the output distribution, although the lossless identity itself remains valid with the true proposal. TLI acceptance monotonicity and selected benchmark arithmetic pass independent checks. The strict-comparison condition is clarified; no error is established under its non-Dirac reading. The findings are scoped to the specified derivations; scientific adjudication remains pending.

Author: AI-assisted technical review

Title: Technical Verification: Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies

# Paper identity and reviewed version

This report concerns Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies, by Nadav Timor et al., ICML 2025, PMLR volume 267; identifier `I25-43675`, OpenReview `vQubr1uBUw`. The reviewed object is the frozen published proceedings PDF, retrieved on 25 October 2026. Page references below are one-based PDF pages, which coincide with the internal page numbers. They are not the continuous PMLR volume pagination.

# Scope and main invariants

The paper presents string-level exact matching (SLEM), string-level rejection sampling (SLRS), and token-level intersection (TLI). This review covers Algorithms 1–5, the stated distribution/acceptance results and all their Appendix G proofs, the path-counting analysis in Section 3.4 and Appendix C, and selected benchmark and tokenizer details in D–F. The benchmark harness was inspected statically at commit `d175df24ba0414b60484dac235c8f9fa213d8009`. No author program or model was executed. Source pages 5, 6, 15 and 21 were visually checked, including the path tree used to motivate the SLRS cost calculation.

The central rejection-sampling identity is sound when the proposal mass is the actual distribution \(\psi\) of the candidate. Accepted mass is \(\min\{p(t),\psi(t)\}\); the remaining total mass is \(1-A\), where \(A=\sum_t\min\{p(t),\psi(t)\}\). Sampling the normalized positive residual produces \[\Pr(\mathrm{output}=t)=\min\{p(t),\psi(t)\}+p(t)-\min\{p(t),\psi(t)\}=p(t).\] When \(A=1\), no rejection branch is reached and division by zero in that unreachable branch is unnecessary. SLEM likewise preserves the target law when each accepted candidate agrees with an independently drawn target token at the unchanged accepted prefix. Proposal retokenization can lower acceptance without altering that argument. This is a mathematical invariant, not a full audit of the external tokenizer/cache implementation.

# Exact-string paths are not first-token paths

Problem 1 (The SLRS path-counting lemma and its computational proxy count the wrong event).  Lemma 3.1, page 6, claims that the number of draft sequences whose target tokenization starts with a fixed token of length \(m\) is \(2^{m-1}\). Its Appendix G proof counts partitions whose concatenation equals the token exactly. Those are different events.

Let the alphabet be \(\{a,b\}\), the complete draft vocabulary up to length two be \[D_2=\{a,b,aa,ab,ba,bb\},\qquad T=\{a,b\}.\] Both expressibility conditions in Algorithm 3 hold. Stop after one draft token, which also satisfies the suggested semantic stopping rule because the first target character is then irrevocably determined. For target token \(t=a\) of length \(m=1\), the qualifying stopped sequences are \((a),(aa),(ab)\). There are three, whereas the lemma gives \(2^0=1\). The single exact reconstruction is only \((a)\). If the lemma’s sequences have no stopping or length restriction at all, infinitely many continuations qualify, so its finite equality still cannot hold.

This discrepancy remains even after giving the paper the favorable interpretation that only first-token-determining stopped paths count. The two omitted paths cross the target token boundary in one draft token; they cannot be represented by cutting the target string into internal segments. Appendix C, pages 14–15, explicitly counts ways to reconstruct a target string exactly, and its plotted “Hello” tree displays precisely these exact partitions. Such a tree is not in general the whole proposal event in Theorem 3.2.

## Exact finite probability diagnostic

Use the same six-token vocabulary with uniform draft probabilities, and target \(p(a)=4/5\), \(p(b)=1/5\). The true first-token proposal is \[\psi(a)=q(a)+q(aa)+q(ab)=1/2,\qquad\psi(b)=1/2.\] Exact-string reconstruction masses would instead be \(\widetilde\psi(a)=\widetilde\psi(b)=1/6\), whose sum is only \(1/3\). If these incomplete masses are substituted for \(\psi\) in Algorithm 3, both possible target candidates are always accepted because \(p(a),p(b)>1/6\). The output law is then \((1/2,1/2)\), not \((4/5,1/5)\). Using the true \(\psi\) gives accepted mass \((1/2,1/5)\), rejection mass \(3/10\) placed on \(a\), and the exact target law. The independent script verifies all quantities using rational arithmetic.

This does not disprove Theorem 3.2 read with the correct first-token proposal distribution. It shows why the exact reconstruction calculation described as computing that distribution cannot generally be substituted into the theorem. No SLRS implementation was run, and no claim is made that the benchmarked SLEM or TLI uses this incomplete mass.

## Repair, severity and surviving scope

The formula \(2^{m-1}\) is correct for exact segmentations of a length-\(m\) string when all segments belong to a complete vocabulary; the independent script checks the composition counts for \(m=1,\ldots,7\). Relabeling the lemma with that narrower event repairs the combinatorial statement. To compute SLRS probabilities, however, one must sum over the actual mutually exclusive terminal paths induced by the stopping rule, including boundary-crossing tokens, with their autoregressive conditional probabilities. For adaptive stopping, the terminal-path event must include the stopping decisions; summing all possible prefixes indiscriminately would double-count.

The supported assessment is Major for the SLRS proposal-computation derivation: the paper equates an incomplete event with the probability required for losslessness, and the distinction can change the output law. The local counterexample and the corrected probability aggregation are verified. A general efficient algorithm and its complexity are not established here. The qualitative warning that exact path enumeration can be expensive may still be valid, and the exact-string partitions can supply a lower-bound subproblem in suitable settings. The empirical results for SLEM/TLI and the rejection identity with correctly normalized \(\psi\) survive this finding. The paper itself leaves practical SLRS deployment to future work, which limits the empirical impact.

# Acceptance-rate boundary conditions and positive checks

Problem 2 (The strict comparison depends on the meaning of non-trivial).  Theorem 3.1, pages 5 and 21, assumes a non-trivial distribution and states that there are unequal token probabilities. Unequal probabilities alone permit \(p=q=(1,0)\), for which both acceptance rates are one. However, non-trivial may independently exclude this point mass; the example therefore does not establish failure under every stated assumption.

The proof correctly computes \(\alpha_{\rm EM}=\sum_t p(t)^2\) and \(\alpha_{\rm SD}=1\) when \(q=p\). Strict inequality holds exactly when \(p\) is not concentrated at a single token. Having at least two positive-probability tokens is the appropriate condition; unequal probabilities are neither sufficient in the presence of zeros nor necessary (a nondegenerate uniform distribution also gives strict inequality). If “non-trivial” was intended independently to mean non-Dirac, the result is sound and the displayed explanation should simply be clarified. The assessment is Needs Evidence for the interpretation of the condition, with a scope clarification rather than a demonstrated substantive error. Under the non-Dirac reading the strict comparison and its proof are valid.

For Theorem 4.1, let \(Z=\sum_{t\in T\cap D}q(t)>0\). On the intersection, \(q_2(t)=q(t)/Z\geq q(t)\), so termwise monotonicity of \(\min\{p(t),\cdot\}\) proves \(\alpha_2\geq\alpha_1\). Outside it, the relevant common accepted mass is zero. In an independent four-symbol example with \[p=(.2,.5,.3,0),\qquad q=(.1,.1,0,.8),\] intersection mass is \(.2\) and acceptance rises from \(.2\) to \(.7\) after normalization. The lossless rejection identity still returns \(p\). The zero-intersection case discussed in the text needs an explicit autoregressive fallback because the formula defining \(q_2\) is then undefined; it cannot literally run a zero-denominator normalization. These conditions do not undermine the positive-mass theorem.

# Benchmark and implementation coverage

Table 1’s headline speedup is arithmetically consistent: the rounded CodeLlama-13B/tiny-starcoder throughput ratio \(59.7/21.4=2.7897\) supports “up to 2.8”. The tables also disclose slowdowns for some pairs, so the result is a best observed acceleration and not a guarantee for every drafter. SLEM and TLI are benchmarked at different temperatures, zero and one; their relative speedup maxima are not a controlled head-to-head comparison of the same sampling regime. Appendix D reports thirty prompts and outputs between 128 and 512 tokens; no timing rerun was attempted.

The inspected harness `hf_bench/benchmark.py` delegates generation to Transformers, performs warmups, measures streaming TTFT and post-first-token TPOT, and records reciprocal TPOT. The summary code filters short-generation cases across matching examples, aggregates metrics, and matches autoregressive baselines by target, task, temperature and submission. Thus \(1/\mathrm{TPOT}\) should not automatically be interpreted as end-to-end throughput including prefill. Arithmetic and harmonic averaging also explain why separately aggregated TPOT and token-rate columns need not be reciprocal.

The environment pins an external Transformers fork at commit `ae2f16ffe8d3d30dc0ac426dc882cea7a7ffd255`. Its internal tokenizer alignment, cache handling and rejection implementation are outside this frozen harness snapshot and were not audited here. The source’s heuristic decode/encode checks are dataset-limited tests, not proofs of global tokenizer injectivity. Raw timing files, all model pairs and all sampling edge cases remain unverified. No later correction search is claimed.

# Conclusion

The principal supported defect is the conflation of exact-string decompositions with stopped first-token proposal events in SLRS’s computational justification. Correct proposal probabilities preserve the target law, as checked independently, and TLI’s positive-intersection acceptance inequality survives. The non-Dirac boundary is retained as a condition clarification with a Needs Evidence interpretation assessment, not as a proved Minor defect. Focused independent AI acceptance is complete. General SLRS implementation repair, empirical reruns and author adoption remain unresolved; scientific adjudication is pending with no human review.

1 Nadav Timor et al., Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies, PMLR 267 (2025), published proceedings version. https://proceedings.mlr.press/v267/timor25a.html.

# Scope and limitations

Source code supplied by the authors was not executed. The calculation is an independent finite or analytic diagnostic, not a reproduction of the original training experiments. A focused check revisited the stated Problems against the frozen original source, assumptions, decisive arguments, counterevidence and impact boundaries. No human review has occurred; scientific adjudication is pending and author adoption is unknown.
