Paper deep dive
Goose: Anisotropic Speculation Trees for Training-Free Speculative Decoding
Tao Jin, Phuong Minh Nguyen, Naoya Inoue
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 95%
Last extracted: 4/3/2026, 12:17:37 AM
Summary
Goose is a training-free speculative decoding framework that optimizes inference speed by constructing anisotropic speculation trees. It exploits the acceptance rate heterogeneity between context-matched tokens (high acceptance) and statistical transition tokens (low acceptance) by organizing them into a deep spine with wide branches. This structure achieves 1.9-4.3x lossless speedup, outperforming balanced-tree baselines by 12-33%.
Entities (5)
Relation Signals (3)
Goose â combines â Prompt Lookup Decoding
confidence 95% · Goose... builds an adaptive spine treeâa deep chain of high-acceptance context-matched tokens with wide branches of low-acceptance alternatives
Goose â combines â Token Recycling
confidence 95% · Goose... builds an adaptive spine tree... with wide branches of transition alternatives forking from every spine node.
Goose â improves â Speculative Decoding
confidence 95% · Goose achieves 1.9-4.3x lossless speedup, outperforming balanced-tree baselines
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Speculative decoding accelerates large language model inference by drafting multiple candidate tokens and verifying them in a single forward pass. Candidates are organized as a tree: deeper trees accept more tokens per step, but adding depth requires sacrificing breadth (fallback options) under a fixed verification budget. Existing training-free methods draft from a single token source and shape their trees without distinguishing candidate quality across origins. We observe that two common training-free token sources - n-gram matches copied from the input context, and statistical predictions from prior forward passes - differ dramatically in acceptance rate (~6x median gap, range 2-18x across five models and five benchmarks). We prove that when such a quality gap exists, the optimal tree is anisotropic (asymmetric): reliable tokens should form a deep chain while unreliable tokens spread as wide branches, breaking through the depth limit of balanced trees. We realize this structure in GOOSE, a training-free framework that builds an adaptive spine tree - a deep chain of high-acceptance context-matched tokens with wide branches of low-acceptance alternatives at each node. We prove that the number of tokens accepted per step is at least as large as that of either source used alone. On five LLMs (7B-33B) and five benchmarks, GOOSE achieves 1.9-4.3x lossless speedup, outperforming balanced-tree baselines by 12-33% under the same budget.
Tags
Links
- Source: https://arxiv.org/abs/2604.02047v1
- Canonical: https://arxiv.org/abs/2604.02047v1
Trouble viewing inline? Open PDF directly â
Full Text
63,513 characters extracted from source content.
Expand or collapse full text
Goose: Anisotropic Speculation Trees for Training-Free Speculative Decoding Tao Jin1 Phuong Minh Nguyen1 Naoya Inoue1 1Japan Advanced Institute of Science and Technology (JAIST) morgan, phuongnm, naoya-i@jaist.ac.jp Corresponding author. Abstract Speculative decoding accelerates large language model inference by drafting multiple candidate tokens and verifying them in a single forward pass. Candidates are organized as a tree: deeper trees accept more tokens per step, but adding depth requires sacrificing breadth (fallback options) under a fixed verification budget. Existing training-free methods draft from a single token source and shape their trees without distinguishing candidate quality across origins. We observe that two common training-free token sourcesân-gram matches copied from the input context, and statistical predictions from prior forward passesâdiffer dramatically in acceptance rate (âŒ6Ă 6Ă median gap, range 22â18Ă18Ă across five models and five benchmarks). We prove that when such a quality gap exists, the optimal tree is anisotropic (asymmetric): reliable tokens should form a deep chain while unreliable tokens spread as wide branches, breaking through the depth limit of balanced trees. We realize this structure in Goose, a training-free framework that builds an adaptive spine treeâa deep chain of high-acceptance context-matched tokens with wide branches of low-acceptance alternatives at each node. We prove that the number of tokens accepted per step is at least as large as that of either source used alone. On five LLMs (7Bâ33B) and five benchmarks, Goose achieves 1.91.9â4.3Ă4.3Ă lossless speedup, outperforming balanced-tree baselines by 1212â33%33\% under the same budget. 1 Introduction Speculative decoding (Leviathan et al., 2023; Chen et al., 2023) accelerates autoregressive LLM inference by letting a drafter propose several candidate tokens at once; the target model then verifies all of them in a single forward pass, accepting correct guesses at no extra cost while keeping the output provably identical to standard decoding (lossless; Leviathan et al., 2023). The simplest draft is a single chain: efficient when the drafter is accurate, but a single rejection loses the entire continuation. Tree-structured speculation (Miao et al., 2024; Cai et al., 2024) hedges this risk by proposing multiple candidates organized as a tree; a tree attention mask restricts each candidateâs attention to its ancestors, letting the target model score every root-to-leaf path in one forward pass. We call the resulting structureâcandidates plus maskâthe draft tree; designing a good one amounts to allocating a fixed node budget B between depth (longer paths) and breadth (more fallback alternatives). Among training-free methods, three representative approaches illustrate the design spaceâand its limits. Token Recycling (TR; Luo et al., 2025) retrieves statistically likely next tokens from the target modelâs own logits, producing breadth-heavy imbalanced trees that hedge broadly at each depth. Prompt Lookup Decoding (PLD; Saxena, 2023) copies n-gram-matched continuations from the input context, producing a deep chain accepted at high ratesâbut with no fallback when the match breaks or is absent. Sequoia (Chen et al., 2024) optimizes the depthâbreadth trade-off via dynamic programming under a source-blind acceptance model that assigns acceptance probabilities by position aloneâunable to distinguish high- from low-acceptance sources when both are available. This source-blind assumption forfeits a key structural advantage once both sources coexist. We measure that context-matched (PLD) tokens are accepted 22â18Ă18Ă more often than transition (TR) tokens (median âŒ6Ă 6Ă across five models and five benchmarks; SectionË3). This acceptance heterogeneity suggests placing high-acceptance tokens along a deep spine and attaching low-acceptance tokens as wide branches at every spine node, so the spine pushes depth while branches provide fallback when the spine breaks early. We instantiate this insight in Goose, a training-free framework that builds an adaptive spine tree (FigureË1): a deep chain of context-matched tokens with wide branches of transition alternatives forking from every spine node. A unified greedy walk verifies the entire tree in one forward pass. We prove that the spine treeâs expected yieldâthe number of accepted tokens per cycleâis at least as large as that of either source used alone (PropositionË4), and design runtime adaptations that maintain this property in the boundary cases where one source is absent or dominant (SectionË4.3). Our contributions: 1. We formalize acceptance heterogeneity between two training-free token sources and prove that the optimal tree is anisotropicâallocating depth to reliable tokens and breadth to unreliable onesâbreaking through the depth ceiling of single-source trees (SectionË3). 2. We design a confidence-adaptive, training-free tree construction that combines PLD and TR into a single spine tree with a non-degradation guarantee on expected yield (SectionË4). 3. Experiments on five models (7Bâ33B) across five benchmarks show 1.91.9â4.3Ă4.3Ă lossless speedup, outperforming isotropic-tree baselines by 1212â33%33\% under equal node budgets (TableË2). 2 Related Work Speculative decoding (Leviathan et al., 2023; Chen et al., 2023; Stern et al., 2018) accelerates autoregressive LLM inference by guessing multiple future tokens and verifying them in a single forward pass; Xia et al. (2024) provide a comprehensive survey. A key extension is tree-structured verification (Miao et al., 2024; Cai et al., 2024): candidates are organized into a tree and checked simultaneously, after which the longest accepted path is selected and one bonus token is appended. Draft-model methods. Representative approaches include EAGLE (Li et al., 2024b; a), which trains feature-level draft heads, and Medusa (Cai et al., 2024), which attaches parallel prediction heads; EAGLE-3 (Li et al., 2025) replaces feature prediction with direct token prediction and multi-layer feature fusion, achieving up to âŒ6.5Ă 6.5Ă speedup. All such methods (Miao et al., 2024; Kim et al., 2023; Zhou et al., 2023, inter alia) require per-model training or auxiliary models, limiting deployment flexibility. Training-free methods. Training-free drafters avoid auxiliary models entirely by mining candidate tokens from data already available at inference time. The simplest strategy copies tokens from the input context (Yang et al., 2023) or from the modelâs own prior output via n-gram matching (Saxena, 2023); such copies are cheap but limited to recurring patterns. A broader class retrieves candidates from external datastoresâREST (He et al., 2024) uses a suffix array, while Lookahead Decoding (Fu et al., 2024) constructs n-grams on the fly through parallel Jacobi iterations. Other methods refine token selection (Somasundaram et al., 2025; Le et al., 2025) or reuse the modelâs own early layers (Zhang et al., 2024; Elhoushi et al., 2024). All the above improve which tokens to draftâbetter candidates or wider coverage. Goose asks a different question: given candidates from sources with very different acceptance rates, how should the verification tree be shaped? These two directions are orthogonal; better token selection would further widen the acceptance gap that the spine tree exploits. Tree topology optimization. Sequoia (Chen et al., 2024) formalizes the depthâbreadth trade-off introduced above. Under Sequoiaâs positional acceptance assumption, the probability of accepting a token depends only on its rank among siblingsâall sources share a single acceptance vector regardless of origin. When the model is further simplified to a single uniform acceptance rate, the DP reduces to a balanced k-ary tree; we call such uniform-rate trees isotropic and use them as baselines in SectionË5.3. In SectionË3 we extend Sequoiaâs framework to two sources with different acceptance rates, yielding a qualitatively different optimal shape. EAGLE-2 (Li et al., 2024a) prunes low-confidence branches via the draft headâs per-token scores, growing deeper along well-predicted paths; this adapts the shape to within-drafter quality variation but requires a trained head and lacks optimality guarantees. TR (Luo et al., 2025) applies a similar principle within its transition lookup table: higher-ranked candidates receive more children than lower-ranked ones, producing non-uniform trees without training. Despite producing non-uniform trees, these methods optimize within a single draft source, so the quality differences they exploit remain within-source. Goose exploits a qualitatively different axis: the cross-source gap between context-matched and transition tokens (22â18Ă18Ă; SectionË3). Extending Sequoiaâs DP to this heterogeneous setting yields an anisotropic optimumâreliable tokens form a deep chain, unreliable ones spread as wide branchesâconfirmed by 12â33% gains (TableË2). 3 Optimal Topology under Heterogeneous Acceptance The optimal tree shape follows directly from the acceptance asymmetry between the two draft sources. We build on Sequoiaâs framework (Chen et al., 2024), which models each draft token as independently accepted with a source-independent probability and optimizes the tree via dynamic programming; we extend the model to two sources with different acceptance rates. This section formalizes that asymmetry, derives the expected yield of the spine tree (PropositionË1), proves that branches should be concentrated near the root (PropositionË2), and shows that the resulting tree strictly dominates any single-source alternative (PropositionË3). Heterogeneous acceptance model. Following this model, we associate each draft source with a per-token acceptance probability: psp_s for context-matched (spine) tokens and ptp_t for transition tokens, with ps>ptp_s>p_t. Each spine token is modeled as independently accepted with probability psp_s; consecutive tokens are positively correlated in practice, but this only makes the bound in EquationË1 tighter (correlation concentrates mismatches at earlier positions). To ground the model, we measure acceptance rates from greedy verification logs across all five models and five benchmarks (FigureË5). The empirical spine acceptance p^s p_s (fraction of context-matched draft tokens accepted by the target model) ranges from 0.070.07 to 0.600.60 (median 0.210.21), while the empirical transition acceptance p^t p_t lies in 0.03âââ0.050.03--0.05 (median 0.0330.033), yielding a heterogeneity ratio p^s/p^t p_s/ p_t of 2Ă2Ă to 18Ă18Ă (median â6Ăâ 6Ă); see FigureË5 for per-benchmark and per-model details. Key quantities. Before stating the main results, we fix notation. The spine consists of m context-matched tokens forming a linear chain; at each spine node i (0â€iâ€mâ10†i†m-1), wiw_i transition candidates fork off as branches. The total number of candidatesâspine plus all branchesâis bounded by the node budget B (i.e., m+âiwiâ€Bm+ _iw_i†B). Let Ï denote the number of tokens accepted in one verification cycleâthe compression ratio in standard terminology (Chen et al., 2024; Leviathan et al., 2023)âso the expected yield is â[Ï]E[Ï]. We also define two recurring terms. Given wiw_i branch candidates at spine node i, each accepted independently with probability ptp_t, the probability that at least one is correct is Ïi= 1â(1âpt)wi _i\;=\;1-(1-p_t)^w_i. Intuitively, Ïi _i grows quickly with wiw_i even when ptp_t is small: a handful of low-quality candidates collectively provide a reasonable chance of continuing the path. Each accepted branch token can itself be extended into a chain of further transition tokens, forming a subtree of maximum depth D (measured from the branching point; D=6D=6 in all experiments). Because every successive token in the subtree is independently accepted with probability ptp_t, the probability that the chain reaches at least depth k is ptkp_t^k. Summing over all possible depths gives the expected extension length: âÂŻ=âk=1Dâ1ptk=ptâ(1âptDâ1)/(1âpt) \;=\; _k=1^D-1p_t^k\;=\;p_t(1-p_t^D-1)/(1-p_t), which ranges from 0 (when ptâ0p_tâ 0) to Dâ1D-1 (when ptâ1p_tâ 1). We now bound â[Ï]E[Ï] via the indicator random variable (IRV) decomposition (Leviathan et al., 2023; Chen et al., 2024): the expected accepted token count equals the sum over all tree depths of the probability that the accepted path reaches and accepts that depth. Proposition 1 (Spine Tree Expected Yield). Under the heterogeneous model with spine length mâ„1mâ„ 1 and branch widths wii=0mâ1\w_i\_i=0^m-1 (total budget m+âiwiâ€Bm+ _iw_i†B), the expected accepted path length satisfies: â[Ï]â„âi=1mpsiâspine+âi=0mâ1psiâ(1âps)âÏiâ(1+âÂŻ)âcontinuation synergy+ 1E[Ï]\;â„\; _i=1^mp_s^i_ spine\;+\; _i=0^m-1p_s^i(1-p_s)\, _i\,(1+ )_ continuation synergy\;+\;1 (1) with Ïi _i and âÂŻ as defined above. The bound is tight when the branches are independent chains. Proof sketch. We use the indicator random variable (IRV) technique of Leviathan et al. (2023); Chen et al. (2024): write â[Ï]E[Ï] as a sum over tree depths, each term being the probability that the accepted path reaches and accepts that depth. For each spine depth iâ1,âŠ,miâ\1,âŠ,m\, define Ii=â[all i spine tokens accepted]I_i=1[all $i$ spine tokens accepted]; by independence, â[Ii]=psiE[I_i]=p_s^i, yielding the first termâthe expected yield of the pure PLD spine (wi=0w_i=0). For the synergy term, each factor has a concrete meaning: psiâ(1âps)p_s^i(1-p_s) is the probability the spine breaks exactly at depth i+1i+1 (first i tokens accepted, next rejected); Ïi _i is the probability at least one branch at node i succeeds; and (1+âÂŻ)(1+ ) is the expected token contribution of a successful branchâ11 for the branch token itself, and âÂŻ for the expected subsequent chain extension. Summing over i=0,âŠ,mâ1i=0,âŠ,m-1 covers every spine-failure event at which a branch provides a continuation. The final +1+1 is the bonus token: the target modelâs greedy output at the last accepted position, guaranteed by the speculative-decoding protocol (Leviathan et al., 2023); deeper sub-branching within branches would only add further contributions, so Eq. 1 is a lower bound. Full derivation in SectionËE.1. ⥠Since the spine tree includes both the pure PLD chain (m=Bm=B, all wi=0w_i=0) and a near-pure TR tree (m=1m=1) as special cases, its yield never falls below either standalone strategy; psâ1p_sâ1 recovers pure spine, psâptp_sâp_t recovers isotropic. In practice, the spine ratio adapts via an exponential moving average of the acceptance rate (SectionË4.3). Proposition 2 (Optimal Branch Allocation). The allocation wiâ\w_i^*\ maximizing the synergy term under total branch budget Bt=BâmB_t=B-m satisfies: wiâ=w0ââ|lnâĄps||lnâĄ(1âpt)|â iw_i^*\;=\;w_0^*\;-\; | p_s|| (1-p_t)|· i (2) where w0âw_0^* is set by the budget constraint âwi=BtÎŁ w_i=B_t. The allocation decreases linearly with depthâdeeper nodes are reached less often (psip_s^i decays exponentially)âand the slope |lnâĄps|/|lnâĄ(1âpt)|| p_s|/| (1-p_t)| equalizes the marginal value of one extra branch across positions. The proof follows from Lagrange multipliers; see SectionËE.2. In practice, we approximate the linear schedule with a 1/i1/i harmonic rule (AlgorithmË1) that preserves the monotone-decreasing shape without estimating acceptance rates. Empirically, Ï is robust to allocation choices (FigureË4b). Remark (independence approximation). Propositions 1â2 assume independence; positive intra-chain correlation concentrates mismatches earlier, making the allocation conservativeâempirical gains in TableË2 confirm the model captures most available synergy (SectionËD.4). Proposition 3 (Spine Tree Dominance). For acceptance rates ps>pt>0p_s>p_t>0 and any budget B large enough that the spine contains at least two nodes (Bâ„m+2Bâ„ m+2, practically Bâ„10Bâ„ 10 for ps/ptâ„8p_s/p_tâ„ 8), the spine tree with optimally allocated branches (Eq. 2) achieves strictly higher expected yield than the best single-source isotropic tree of the same budget: â[Ïspineâ]>â[Ïisoâ]whenever âps>pt.E[ _ spine^*]\;>\;E[ _ iso^*] p_s>p_t. (3) The gap increases monotonically with ps/ptp_s/p_t and vanishes as psâptp_sâ p_t. Proof sketch. Start from the optimal single-rate tree of budget B (the best uniform-rate tree under Sequoiaâs framework (Chen et al., 2024)), where every token has rate ptp_t. Upgrade one token per depth from ptp_t to ps>ptp_s>p_t, creating a spine. At each modified depth d, the probability of at least one accepted candidate increases by (psâpt)â(1âpt)wdâ1>0(p_s-p_t)(1-p_t)^w_d-1>0âa strictly positive improvement propagating through the yield; optimizing allocation (PropositionË2) adds further gains. When psâptp_sâ p_t, the upgrade vanishes, recovering the isotropic baseline. Full proof in SectionËE.3. ⥠4 Method: Goose Figure 1: Speculation-tree topologies (B fixed). (a) PLD spine (linear). (b) EAGLE-2 pruned tree. (c) Isotropic (uniform-rate) tree. (d) Goose anisotropic spine tree (spine ratio adapts per cycle; SectionË4.3). Figure 2: Goose pipeline overview. From anchor ., Stage 1 draws from a unified candidate pool: context matching produces the spine (blue), the adjacency table supplies branches (orange). Stage 2 verifies all candidates via one LLM forward pass. Stage 3 selects the longest accepted path via a greedy walk, discovering spine continuation: â2ââ\,â\,â)â extends beyond the spine mismatch, yielding 8 tokens per call. Goose follows the standard speculative-decoding loop (Cai et al., 2024)âgenerate candidates, verify them in one forward pass, accept the longest correct pathâbut reshapes the candidate tree into a single asymmetric structure that combines two complementary token sources (FigureË1d). Each decoding cycle begins from an anchor token, the last token accepted in the previous cycle, and proceeds in three stages (FigureË2). Stage 1âBuild spine tree. Goose assembles a candidate pool from two sources. Context matching (PLD) retrieves a continuation from previously generated text, forming a deep chain called the spine; the adjacency tableâour bigram extension of TRâs adjacency matrix (SectionË4.1)âsupplies statistically likely alternatives that fork from spine nodes as branches. BuildSpineTree allocates the node budget B between spine and branches (SectionË4.1), then packs all candidates into a single sequence with a tree attention maskâa modified causal mask that lets each node attend only to its root-to-node ancestors, so all paths can be verified in one forward pass. Stage 2âVerify and harvest. One LLM forward pass scores every candidate. All logitsâincluding those at rejected branchesâare harvested into the adjacency table, and the accepted prefix updates the PLD context index, enriching both sources for future cycles. Stage 3âSelect longest correct path. A greedy walk identifies the longest path verified as correct by the target model (SectionË4.2); the last accepted token becomes the anchor of the next cycle. The tree shape is not fixed: when context-match confidence is high, Goose skips tree construction and verifies the PLD chain linearly (bypass mode; SectionË4.3); when no context match exists, the spine vanishes and the full budget forms a TR-only tree. The asymmetric topology enables a unique synergy called spine continuation: when a mismatch occurs on the spine, a branch at that point can extend the accepted pathârecovering tokens that neither source alone could have found. To illustrate, consider generating self.calc.eval(data, flag, 2) when earlier output contains ...eval(data, flag, 1) (FigureË2). Context matching yields a spine eval ( data , flag , 1 ); the model accepts the first six tokens but rejects 1 (correct: 2). A TR branch proposes 2; the greedy walk continues to ), recovering 8 accepted tokens versus 6 from a pure spine. Across benchmarks, spine continuation recovers additional tokens at mismatch points. Two refinements improve candidate quality (ablated in TableË2): when multiple n-gram lengths return the same first token, Goose treats the prediction as high-confidence and extends the spine aggressively; and the adjacency table is upgraded from unigram to bigram conditioning, sharpening branch predictions. The complete decode loop is in AlgorithmË2 (Appendix). 4.1 Spine Tree Construction Tree construction. Given the anchor token and node budget B, one parameter controls the budget split: the spine ratio r, which sets what fraction of B goes to spine nodes (adapted online; SectionË4.3). Construction proceeds in four steps (AlgorithmË1, Appendix): (1) lay the spineâallocate up to Bâ rB·r nodes as a linear chain of context-matched tokens; (2) add root branchesâattach the top adjacency-table alternatives at the root, using a share (1âÏ)(1-Ï) of the remaining budget (spine-branch ratio Ï=0.5Ï=0.5 by default); (3) add spine branchesâdistribute the remaining share Ï across spine nodes, with wider branches near the root and narrower ones deeper, approximating the optimal allocation derived in PropositionË2; (4) extend all branches recursively via the adjacency table up to a maximum depth of 6. As introduced above, the adjacency table conditions on the two most recent tokens rather than TRâs original single-token lookup (Luo et al., 2025), improving prediction accuracy. 4.2 Unified Verification and Non-Degradation The spine tree implicitly contains all candidate paths; verification requires only a single greedy walk. Greedy walk with source priority. Starting at the root, the walk advances to a child whose draft token matches the modelâs most likely output; when multiple children match, source priority (PLD >> TR) selects the deeper-reaching child. The walk terminates when no child matches, and the accepted path falls into one of three categories: (a) Pure PLD (all spine nodes, equivalent to standalone context-match), (b) Spine continuation (spine followed by a TR branch at the mismatch pointâthe synergy unique to the spine tree), or (c) Pure TR (root branch only, equivalent to standalone transition). No multi-path bookkeeping is needed; the greedy walk automatically discovers the longest accepted path. At termination, the target model samples one additional bonus token from its distribution at the last accepted position, following the standard speculative-decoding guarantee (Leviathan et al., 2023). Proposition 4 (Non-Degradation Guarantee). For any node budget B, the spine treeâs expected yieldâthe expected number of tokens accepted per cycleâis at least as large as that of standalone context matching or standalone transition-tree decoding, each given the full budget B. Proof sketch. (i) Context matching is input-determined: standalone PLD with budget B produces a chain of at most |||d| tokens (bounded by the match length, not B), leaving the remaining budget unused. In Goose, these tokens are preserved in fullâshort matches (||<8|d|<8) fit within âBârâ Br even at the minimum spine ratio, while long matches trigger the bypass mode (SectionË4.3). The spine tree fills the unused slots with branches, so its accepted path is at least as long. (i) Compared with a standalone transition tree, the spine replaces some breadth nodes with a depth chain of context-matched tokens. Because context-matched tokens have higher acceptance probability, this swap can only maintain or increase the expected path length; the formal proof is in PropositionË3. When no context match is available, the spine vanishes and the full budget forms a transition tree, recovering the baseline exactly. ⥠Remark. The guarantee above holds for expected yield (tokens accepted per verification call), not directly for wall-clock time. Moreover, parts (i) and (i) rely on runtime adaptationsâthe minimum spine ratio, bypass mode, and graceful fallback described in SectionË4.3ârather than on the tree topology alone. These mechanisms handle the boundary cases (very long matches, absent matches) that a fixed tree shape cannot cover; the ablation in TableË2 quantifies their individual contributions. The greedy walk is formalized in AlgorithmË3; the full decoding loop, including tree construction and logit harvesting, is in AlgorithmË2 (Appendix). 4.3 Confidence-Adaptive Topology Not every cycle benefits equally from tree construction. Goose uses a continuous PLD confidence signal to modulate tree shape, ranging from a full spine tree down to a simple linear chain. Confidence signal. Goose queries context matching with multiple n-gram lengths 3,4,5\3,4,5\. Confidence is a function of two indicators: (i) consensusâat least two n-gram lengths return continuations that agree on the first token, and (i) chain lengthâlong matches (8 or more tokens) indicate high PLD acceptance. When confidence is high, the tree reduces to a deep linear chain: tree construction is skipped entirely and the spine is verified as a single linear sequence, saving branch-building overheadâwe call this the bypass mode. This largely eliminates hard-coded routing heuristics while preserving the expected-yield guarantee of PropositionË4. Concretely, the spine ratio r is adjusted each cycle based on an exponential moving average (EMA) of the PLD acceptance rate p^s p_s. When the running average is highâindicating that context matches are frequently acceptedâr increases toward 0.50, deepening the spine; when the average is low, r decreases toward 0.15, shifting budget to TR branches. This adaptation converges within 3â5 cycles; full details (smoothing coefficient, tier boundaries) are in SectionËC.3. 5 Experiments 5.1 Setup Models, hardware, and datasets. We evaluate five instruction-tuned models spanning 7Bâ33B parameters: Vicuna-7B/13B/33B (Zheng et al., 2023), Llama-3-8B-Instruct (Meta AI, 2024), and Qwen3-8B (Yang et al., 2025), all in FP16. The 7Bâ13B models run on a single NVIDIA A40 (48 GB); Vicuna-33B runs on 2ĂA100-40GB. We evaluate on five benchmarks spanning code, math, and dialogue: HumanEval (Chen et al., 2021), MBPP (Austin et al., 2021), ClassEval (Du et al., 2023), GSM8K (Cobbe et al., 2021), and MT-Bench (Zheng et al., 2023)âranging from high repetition (code templates) to low repetition (open dialogue). Dataset sizes and generation lengths are listed in TableË4. Batch size 1; seed 0. Baselines and metrics. AR (standard autoregressive), standalone PLD (Saxena, 2023), standalone TR (Luo et al., 2025) (using its default imbalanced BFS tree with unigram adjacency), Lookahead Decoding (Fu et al., 2024), REST (He et al., 2024), and EAGLE-2 (Li et al., 2024a) (draft-head method; Vicuna-7B, Llama-3-8B, Vicuna-13B using official heads). For the topology comparison (SectionË5.3), we evaluate Isotropic(k): a uniform-rate k-ary tree with kâ3,5kâ\3,5\ and the same node budget, derived from Sequoiaâs framework but using Gooseâs draft source. All methods use greedy decoding and produce identical output (lossless). We do not compare with EAGLE-3 (Li et al., 2025), whose substantially larger draft model makes iso-budget comparison nontrivial. We report Ï (compression ratio: mean tokens accepted per verification call; cf. SectionË3), tok/s (wall-clock throughput), and Speedup (tok/s vs. AR); all hyperparameters are fixed across datasets and models (node budget B=60B=60, max branch depth D=6D=6, top-K=10K=10 adjacency candidates, spine-branch ratio Ï=0.5Ï=0.5; full list in SectionËC.3). During the first few cycles, the adjacency table is empty; Goose gracefully degrades to pure PLD (or AR if no context match exists) and populates the table from the resulting logits. 5.2 Main Results Figure 3: Wall-clock speedup over autoregressive (AR) decoding across five models and five benchmarks. All methods are lossless (greedy decoding, identical output). Speedup values for Goose are annotated above each bar. Full per-benchmark results including compression ratio (Ï) are reported in TableË3. â Vicuna-33B runs on 2ĂA100-40GB; all others on a single A40. FigureË3 summarizes the main results. Goose achieves 1.9â4.3Ă lossless speedup across all five models, consistently outperforming every training-free baseline. Speedup varies predictably with acceptance heterogeneity: ClassEval (repetitive templates) yields up to 4.3Ă; MT-Bench (open dialogue) still reaches 1.9â2.9Ă, confirming that TR branches alone contribute meaningful acceleration. One outlier: on Llama-3-8B GSM8K, near-verbatim repetition inflates speedup to 7.5Ă (Ï=9.25Ï=9.25); all other 24 settings fall within the 1.9â4.3Ă speedup range. Among training-free baselines, standalone PLD averages 1.4â2.3Ă speedup and standalone TR reaches 2.0â2.9Ă; Goose exceeds both by combining them in a single verification tree. Lookahead Decoding and REST achieve lower Ï than Goose due to a narrower candidate pool and suffix-array overhead, respectively. Comparison with EAGLE-2. EAGLE-2âs trained draft head yields higher Ï (TableË3), but its per-step latency offsets the advantage: Goose outperforms EAGLE-2 on Llama-3-8B (4.1Ă vs. 2.4Ă), matches on Vicuna-7B (2.9Ă vs. 2.9Ă), while EAGLE-2 leads on Vicuna-13B (2.8Ă vs. 3.3Ă). As a training-free method, Goose also covers models lacking draft heads (Qwen3-8B, Vicuna-33B). 5.3 Anisotropic vs. Isotropic Topology and Ablation Table 1: Compression ratio Ï for spine vs. isotropic trees (budget B=60B=60). Î3 _3: relative gain over Iso(3). Table 2: Ablation on Qwen3-8B (Ï). Each row removes one design choice; ÎÂŻ : macro-averaged relative change. Model Dataset Spine (Ours) Iso(3) Iso(5) _3 L3-8B ClassEval 4.89 3.67 3.60 +33% HumanEval 4.11 3.32 3.27 +24% MT-Bench 3.50 2.76 2.76 +27% Q3-8B ClassEval 5.19 3.97 3.92 +31% GSM8K 3.87 3.00 3.01 +29% HumanEval 2.78 2.49 2.51 +12% MBPP 3.20 2.73 2.77 +17% MT-Bench 3.51 2.81 2.81 +25% Average 3.88 3.09 3.08 +25.4% Config. HE GS MB CE MT ÂŻ Goose (Ours) 2.78 3.87 3.20 5.19 3.51 â Idea 1: Anisotropic topology (§4.1) w/o spine branches 2.71 3.70 3.10 5.03 3.46 â-2.9% w/o bigram adjacency 2.69 3.66 3.11 5.01 3.38 â-3.7% Idea 2: Confidence-adaptive budget (§4.3) w/o consensus bypass 2.77 3.83 3.05 4.60 3.22 â-5.1% w/o context-match spine 2.68 3.76 3.11 5.00 3.37 â-3.4% Control w/o PLD tokens (shape kept) 2.77 3.88 3.21 5.19 3.54 ++0.2% TableË2 confirms the prediction of SectionË3: the spine tree wins all 8 settings by 12â33%, with gains tracking ps/ptp_s/p_t (we report Llama-3-8B and Qwen3-8B as architecturally distinct representatives; Vicuna variants show similar trends). Iso(k=5k=5) performs similarly to Iso(k=3k=3), showing that the isotropic regime itselfânot kâis the bottleneck. Ablation analysis. TableË2 isolates each design idea by removing one component at a time on Qwen3-8B. The Control row replaces all PLD spine tokens with TR-sourced tokens while keeping the anisotropic shape intact; Ï changes by only +0.2%+0.2\%, showing that tree shape matters more than token source identity for the topology gains in TableË2. Idea 1 (Anisotropic topology). Removing spine branches (â2.9%-2.9\%) or bigram adjacency (â3.7%-3.7\%) each degrades Ï, confirming that the advantage requires both branch placement and transition quality. Idea 2 (Confidence-adaptive budget). Consensus bypass is the largest contributor (â5.1%-5.1\%, up to â11.4%-11.4\% on ClassEval): when all n-gram lengths agree on a long continuation, Goose extends the spine directly without tree construction. Removing the spine (â3.4%-3.4\%) shows the PLD signal itself is essential; topology and adaptation are complementary. To complement the ablation, we trace the additive path from TR-only isotropic to full Goose on Qwen3-8B (MT-Bench Ï): 2.81 â 3.20 (++14%, spine) â 3.37 (++5%, bigram) â 3.51 (++4%, bypass), cumulative ++25%. 5.4 Analysis Figure 4: (a) Gooseâs mean Ï decomposed into the best standalone baseline maxâĄ(ÏPLD,ÏTR) ( _ PLD, _ TR) (gray) and the synergy gain from the spine-tree topology (green); the gain ranges from +16%+16\% (Vicuna-13B) to +45%+45\% (Llama-3-8B). (b) Hyperparameter sensitivity (Qwen3-8B): each panel sweeps one parameter; Ï plateaus at Bâ„60Bâ„60 and Dâ„6Dâ„6, and varies by fewer than 0.6 Ï units across r and Ï. Source decomposition and synergy. FigureË4a decomposes each modelâs mean Ï into the best standalone baseline maxâĄ(ÏPLD,ÏTR) ( _ PLD, _ TR) and the synergy gain from the spine-tree topology. The synergy ratio (ÏGoose/maxâĄ(ÏPLD,ÏTR) _ Goose/ ( _ PLD, _ TR)) exceeds 1.0 on all 25 settings (average 1.24Ă), with spine continuation contributing 12â44% of accepted tokens on Llama-3-8B. The source split varies by task, consistent with per-task adaptation; even on the weakest datasets, per-model average Ï exceeds 2.9Ă2.9Ă (SectionËD.3). Tree construction adds negligible CPU overhead (<<1% of wall-clock time) with <<7 MB memory footprint. 6 Discussion and Conclusion We introduced the spine tree, an anisotropic draft-tree topology that exploits acceptance heterogeneity among training-free draft sources. Goose achieves 1.9â4.3Ă lossless speedup across five models and five benchmarks, outperforming isotropic baselines by 12â33% (TableË2) and matching or exceeding EAGLE-2 wall-clock speed on two of three modelsâentirely training-free. The advantage scales with ps/ptp_s/p_t, consistent with PropositionË3. Limitations. All experiments use batch size 1; in batched settings, amortized verification cost may reduce the relative benefit of tree-based speculation. The adjacency table grows with vocabulary size (<<7 MB in our experiments); for very large vocabularies (>>200K tokens), pruning or hashing may be needed. Our analysis assumes greedy decoding; extending to sampling-based verification (Leviathan et al., 2023) is left for future work. Future directions. The anisotropic framework generalizes to any pair of draft strategies with heterogeneous acceptance rates; substituting a draft head (EAGLE-3 (Li et al., 2025)) for transitions or adding a third source could widen the gap further. Extending the spine tree to batched serving and integrating KV-cache compression are promising next steps. References J. Austin, A. Odena, M. Nye, M. Bosma, H. Michalewski, D. Dohan, E. Jiang, C. Cai, M. Terry, Q. Le, and C. Sutton (2021) Program synthesis with large language models. arXiv preprint arXiv:2108.07732. Cited by: §5.1. T. Cai, Y. Li, Z. Geng, H. Peng, J. D. Lee, D. Chen, and T. Dao (2024) Medusa: simple LLM inference acceleration framework with multiple decoding heads. In Proceedings of the 41st International Conference on Machine Learning (ICML), Cited by: §1, §2, §2, §4. C. Chen, S. Borgeaud, G. Irving, J. Lespiau, L. Sifre, and J. Jumper (2023) Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318. Cited by: §1, §2. M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. d. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, et al. (2021) Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374. Cited by: §5.1. Z. Chen, A. May, R. Svirschevski, Y. Huang, M. Ryabinin, Z. Jia, and B. Chen (2024) Sequoia: scalable and robust speculative decoding. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §E.3, §1, §2, §3, §3, §3, §3, §3. K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. (2021) Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §5.1. X. Du, M. Liu, K. Wang, H. Wang, J. Liu, Y. Chen, J. Feng, C. Sha, X. Peng, and Y. Lou (2023) ClassEval: a manually-crafted benchmark for evaluating LLMs on class-level code generation. arXiv preprint arXiv:2308.01861. Cited by: §5.1. M. Elhoushi, A. Shrivastava, D. Liskovich, B. Hosmer, B. Wasti, L. Lai, A. Mahmoud, B. Acber, S. Agrawal, A. Roman, et al. (2024) LayerSkip: enabling early-exit inference and self-speculative decoding. arXiv preprint arXiv:2404.16710. Cited by: §2. Y. Fu, P. Bailis, I. Stoica, and H. Zhang (2024) Break the sequential dependency of LLM inference using lookahead decoding. arXiv preprint arXiv:2402.02057. Cited by: §2, §5.1. Z. He, Z. Zhong, T. Cai, J. D. Lee, and D. He (2024) REST: retrieval-based speculative decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), Cited by: §2, §5.1. S. Kim, K. Mangalam, S. Moon, J. Malik, M. W. Mahoney, A. Gholami, and K. Keutzer (2023) Speculative decoding with big little decoder. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §2. N. Le, T. D. Do, and L. Nguyen (2025) SPECTRA: faster large language model inference with optimized internal and external speculation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 14015â14034. External Links: Link, Document Cited by: §2. Y. Leviathan, M. Kalman, and Y. Matias (2023) Fast inference from transformers via speculative decoding. In Proceedings of the 40th International Conference on Machine Learning (ICML), p. 19274â19286. Cited by: §E.1, §1, §2, §3, §3, §3, §4.2, §6. Y. Li, F. Wei, C. Zhang, and H. Zhang (2024a) EAGLE-2: faster inference of language models with dynamic draft trees. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP), Cited by: §2, §2, §5.1. Y. Li, F. Wei, C. Zhang, and H. Zhang (2024b) EAGLE: speculative sampling requires rethinking feature uncertainty. In Proceedings of the 41st International Conference on Machine Learning (ICML), Cited by: §2. Y. Li, F. Wei, C. Zhang, and H. Zhang (2025) EAGLE-3: scaling up inference acceleration of large language models via training-time test. arXiv preprint arXiv:2503.01840. Cited by: §2, §5.1, §6. X. Luo, Y. Wang, Q. Zhu, Z. Zhang, X. Zhang, Q. Yang, and D. Xu (2025) 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), p. 6816â6831. Cited by: §1, §2, §4.1, §5.1. Meta AI (2024) The llama 3 herd of models. arXiv preprint arXiv:2407.21783. Cited by: §5.1. X. Miao, G. Oliaro, Z. Zhang, X. Cheng, Z. Wang, Z. Zhang, R. Y. Y. Wong, A. Zhu, L. Yang, X. Shi, C. Shi, Z. Chen, D. Arfeen, R. Abhyankar, and Z. Jia (2024) SpecInfer: accelerating large language model serving with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), Cited by: §1, §2, §2. A. Saxena (2023) Prompt lookup decoding. Note: https://github.com/apoorvumang/prompt-lookup-decoding Cited by: §1, §2, §5.1. S. Somasundaram, A. Phukan, and A. Saxena (2025) PLD+: accelerating LLM inference by leveraging language model artifacts. In Findings of the Association for Computational Linguistics: NAACL 2025, p. 6075â6089. Cited by: §2. M. Stern, N. Shazeer, and J. Uszkoreit (2018) Blockwise parallel decoding for deep autoregressive models. Advances in Neural Information Processing Systems (NeurIPS). Cited by: §2. H. Xia, Z. Yang, Q. Dong, P. Wang, Y. Li, T. Ge, T. Liu, W. Li, and Z. Sui (2024) Unlocking efficiency in large language model inference: a comprehensive survey of speculative decoding. In Findings of ACL, Cited by: §2. A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. (2025) Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §5.1. N. Yang, T. Ge, L. Wang, B. Jiao, D. Jiang, L. Yang, R. Majumder, and F. Wei (2023) Inference with reference: lossless acceleration of large language models. arXiv preprint arXiv:2304.04487. Cited by: §2. J. Zhang, J. Wang, H. Li, L. Shou, K. Chen, G. Chen, and S. Mehrotra (2024) 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), p. 11263â11282. Cited by: §2. L. Zheng, W. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, Z. Lin, Z. Li, D. Li, E. P. Xing, H. Zhang, J. E. Gonzalez, and I. Stoica (2023) Judging LLM-as-a-judge with MT-Bench and chatbot arena. In Advances in Neural Information Processing Systems (NeurIPS), Vol. 36, p. 46595â46623. Cited by: §5.1. Y. Zhou, K. Lyu, A. S. Rawat, A. K. Menon, A. Rostamizadeh, S. Kumar, J. Kagy, and R. Agarwal (2023) DistillSpec: improving speculative decoding via knowledge distillation. arXiv preprint arXiv:2310.08461. Cited by: §2. Appendix A Full Main Results Table 3: Full main results. Speedup (Spd): wall-clock tok/s ratio vs. AR. Ï: compression ratio (tokens per forward call). Bold: best per column. All methods produce identical output (lossless). Shaded rows denote methods requiring per-model training. â Vicuna-33B evaluated on NVIDIA A100 (2Ă40GB); all other models on A40. ClassEval GSM8K HumanEval MBPP MT-Bench Avg. Model Method Spd Ï Spd Ï Spd Ï Spd Ï Spd Ï Spd Vicuna-7B AR 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 PLD 2.34 2.50 1.43 1.46 1.74 1.78 1.59 1.62 1.47 1.48 1.71 TR 2.58 3.29 2.46 2.96 2.53 3.06 2.41 2.86 2.19 2.60 2.43 Lookahead 2.27 2.41 1.63 1.67 1.72 1.77 1.75 1.78 1.58 1.60 1.79 REST 1.68 1.73 1.17 1.19 1.16 1.17 1.05 1.05 1.08 1.08 1.23 EAGLE-2 3.14 5.50 2.73 4.51 2.99 5.02 2.92 4.83 2.53 4.21 2.86 Goose (Ours) 3.58 4.64 2.67 3.23 2.97 3.63 2.84 3.40 2.42 2.88 2.90 Llama-3-8B AR 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 PLD 2.30 2.49 4.04 4.18 1.92 2.01 1.67 1.72 1.67 1.72 2.32 TR 2.87 3.64 3.68 4.52 2.79 3.40 2.60 3.11 2.29 2.82 2.85 Lookahead 2.35 2.57 2.59 2.80 1.98 2.08 1.79 1.86 1.73 1.80 2.09 REST 1.33 1.35 1.06 1.07 1.13 1.14 1.01 1.01 1.05 1.05 1.12 EAGLE-2 2.58 5.29 2.75 5.52 2.46 4.95 2.41 4.83 1.92 3.85 2.42 Goose (Ours) 3.82 4.89 7.46 9.25 3.36 4.11 3.00 3.61 2.84 3.50 4.10 Qwen3-8B AR 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 PLD 2.50 2.61 1.65 1.71 1.31 1.36 1.45 1.50 1.67 1.73 1.72 TR 3.77 4.50 2.60 3.03 2.18 2.55 2.43 2.81 2.44 2.86 2.68 Lookahead 2.42 2.42 1.93 1.88 1.52 1.47 1.75 1.68 1.78 1.74 1.88 REST 1.22 1.14 1.21 1.16 1.19 1.12 1.11 1.04 1.11 1.03 1.17 Goose (Ours) 4.28 5.19 3.23 3.87 2.34 2.78 2.70 3.20 2.92 3.51 3.09 Vicuna-13B AR 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 PLD 2.34 2.47 1.33 1.36 1.62 1.66 1.49 1.51 1.35 1.36 1.63 TR 2.71 3.34 2.56 3.02 2.49 2.94 2.40 2.78 2.12 2.46 2.46 Lookahead 2.14 2.26 1.58 1.62 1.73 1.78 1.64 1.67 1.47 1.49 1.71 REST 1.61 1.66 1.18 1.21 1.19 1.20 1.04 1.04 1.11 1.11 1.23 EAGLE-2 3.62 6.03 3.18 4.98 3.34 5.24 3.41 5.30 2.78 4.33 3.27 Goose (Ours) 3.68 4.59 2.66 3.14 2.84 3.37 2.66 3.11 2.30 2.67 2.83 Vicuna-33Bâ AR 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 1.00 PLD 1.85 1.99 1.29 1.33 1.36 1.40 1.27 1.30 1.14 1.15 1.38 TR 1.97 2.62 2.14 2.63 1.97 2.37 1.95 2.29 1.72 2.01 1.95 Lookahead 1.86 2.02 1.49 1.55 1.56 1.56 1.51 1.49 1.26 1.23 1.54 REST 1.48 1.54 1.14 1.18 1.18 1.16 1.08 1.05 1.09 1.05 1.19 Goose (Ours) 2.80 3.69 2.53 3.10 2.37 2.83 2.35 2.74 1.87 2.15 2.38 TableË3 reports compression ratio (Ï) and wall-clock speedup (Spd) for all five models across five benchmarks. Goose achieves the highest average speedup on four of five models; EAGLE-2 leads on Vicuna-13B thanks to its trained draft head but is unavailable for Qwen3-8B and Vicuna-33B. The per-benchmark Ï values are the ground truth for the synergy analysis in SectionËD.2. Appendix B Algorithm Details B.1 Spine Tree Construction Algorithm 1 BuildSpineTree 1:Anchor token tat_a; PLD draft chain =(d1,âŠ,dm)d=(d_1,âŠ,d_m) 2:Adjacency table A; node budget B; max depth D 3:Spine ratio râ(0,1)râ(0,1); spine-branch ratio Ïâ(0,1)Ïâ(0,1) 4:Spine tree T with â€B†B nodes and tree attention mask 5: 6:bsâminâĄ(m,âBârâ)b_sâ (m,\, Br ) âł PLD spine node count 7:brââ(Bâ1âbs)â(1âÏ)âb_râ (B-1-b_s)(1-Ï) âł Root-level branch count 8:bÏâBâ1âbsâbrb_Ïâ B-1-b_s-b_r âł Spine-level branch count 9: 10:d0âtad_0â t_a âł Anchor as spine root 11:for i=1i=1 to bsb_s do âł Step 1: lay PLD spine 12: Add did_i as child of diâ1d_i-1 13:end for 14: 15:Attach top-brb_r successors from â(ta)A(t_a) to root âł Step 2: root branches 16: 17:for i=1i=1 to bsb_s do âł Step 3: spine branches (harmonic decay) 18: aiââbÏâ 1/iâj=1bs1/jâa_iâ b_Ï· 1/i _j=1^b_s1/j âł Allocation for spine node did_i 19: Attach top-aia_i successors from â(di)A(d_i) to did_i 20:end for 21: 22:BFS-extend all branch leaves through A up to depth D âł Step 4 23:return T Duplicate entries (e.g., spine continuation di+1d_i+1 already present in â(di)A(d_i)) are excluded during attachment to avoid redundant nodes. The BFS extension in Step 4 is a standard breadth-first expansion: starting from each branch leaf, it greedily appends top-scoring successors from A up to depth D within the remaining budget. B.2 Decoding Loop Algorithm 2 Goose Decoding Loop 1:Target model âłM; prompt x; max tokens N 2:Budget B; spine-branch ratio Ï; max depth D; bypass threshold âbyp _byp; adjacency width K 3:Generated tokens y, identical to autoregressive output 4: 5:Build context index from x; init adjacency table A with top-K width 6:âââłâ() (x); update A with top-K entries per position from â 7:tancâargâmaxâĄââ[â1]t_ancâ *arg\,max [-1]; p^sâ0.3 p_sâ 0.3 âł Running estimate of spine acceptance psp_s 8:while ||<N|y|<N and not EOS do 9: (,c)âContextMatchâ()(d,c)â ContextMatch(y) âł Draft chain d; consensus flag c 10: if â â dâ and (||â„âbyp|d|â„ _byp or c) then 11: (acc,b)â(y_acc,\,b)â linear-verify d with âłM âł Bypass: high-confidence PLD 12: else if â â dâ or A has successors for tanct_anc then 13: râSpineRatioTierâ(p^s)râ SpineRatioTier( p_s) âł Adaptive spine ratio (SectionË4.3) 14: âTâ BuildSpineTree(tanc,,,r,B,Ï,Dt_anc,d,A,r,B,Ï,D) 15: (acc,b)â(y_acc,\,b)â UnifiedGreedyWalk(âł,M,T) 16: else 17: bâargâmaxâĄâłâ(tanc)bâ *arg\,max\,M(t_anc); accââ y_accâ âł AR fallback 18: end if 19: Update A from all logits of this cycle âł Including rejected branches 20: Update p^s p_s via EMA; tancâbt_ancâ b; append accâ„by_acc\|b to y 21:end while Goose routes each cycle by source availability and confidence (SectionË4.3): (1) high-confidence or long context match triggers linear bypass; (2) any draft source available triggers the spine tree with unified greedy walk verification; (3) no source available triggers AR fallback. When only transitions (no context match) are available, =â d= and the tree degenerates to a TR-only tree; when only a context match is available, the tree reduces to a linear chainâboth are special cases that preserve the expected-yield guarantee of PropositionË4. ContextMatch (called at line 5 of AlgorithmË2) is a standard n-gram lookup: given the generated sequence and a set of query lengths 3,4,5\3,4,5\, it finds the longest matching prefix in the context, copies the continuation as the draft chain d, and returns a consensus flag c (true iff â„2â„ 2 matches agree on the first continuation token). B.3 Unified Greedy Walk Verification Algorithm 3 UnifiedGreedyWalk: Verification with Source Priority 1:Model âłM; spine tree T (nodes tagged PLD or TR) 2:Accepted token list; bonus token b 3:âââłâ() (T) with tree attention mask âł Single forward pass 4:x^iâargâmaxâĄâi x_iâ *arg\,max _i for each node i âł Greedy prediction per node 5: 6:vârootv ; accepted â[]â[] 7:while v has children in T do 8: if â PLD-child vâČv of v: â[vâČ]=x^vT[v ]= x_v then âł Priority 1: spine 9: accepted.append(vâČv ); vâvâČvâ v ; continue 10: end if 11: if â TR-child vâČv of v: â[vâČ]=x^vT[v ]= x_v then âł Priority 2: branch 12: accepted.append(vâČv ); vâvâČvâ v ; continue 13: end if 14: break âł No child matches 15:end while 16: 17:bâx^vbâ x_v âł Bonus token from last accepted position 18:return accepted, b At each tree node, the walk checks PLD (spine) children before TR (branch) childrenâgiving priority to the high-acceptance source. Once the walk transitions from spine to branch, it cannot return, producing the âspine continuationâ path described in SectionË4.2. The walk naturally yields the longest accepted path and covers all three outcome categories: pure PLD (spine only), spine continuation (PLD prefix then TR suffix), or pure TR (root branch only). Appendix C Implementation and Setup C.1 Implementation Details This section provides the full engineering details summarized in SectionË4.3. Dense GPU bigram adjacency table. The adjacency table A (SectionË4.1) is implemented as a two-tier GPU-native structure. Tier 1 (Unigram): Two dense tensors of shape |V|ĂK|V|ĂK on GPU store, respectively, the token IDs and logit-derived scores of the top-K successors for each vocabulary token; lookup is Oâ(1)O(1) with no CPU transfer. Tier 2 (Bigram): A hash table mapping (tiâ1,ti)âŠtop-âK(t_i-1,t_i) -K successors, exploiting the fact that two-token context substantially sharpens predictions (e.g., successors of f after def are much more predictable than f alone). Confidence-aware branch width. Branch width scales with the transition score in A: each successorâs allocated children (from the 1/i1/i harmonic schedule in Step 3 of AlgorithmË1) are further modulated by its score relative to its siblings, and successors whose score falls below 0.01 are pruned entirely. This focuses the node budget on high-confidence successors while keeping the total tree size within B. Aggressive logit harvesting. Every forward passâs logitsâincluding rejected branches and prefillâare harvested into the adjacency table via a batched topk (<<200,”s overhead), populating A substantially faster than the verified-positions-only strategy used in prior work. C.2 Datasets and Model Details Table 4: Benchmark details. Benchmark Domain Samples Max tokens HumanEval Code 164 512 MBPP Code 500 512 ClassEval Code 100 512 GSM8K Math 1,319 1,024 MT-Bench Dialogue 80 1,024 C.3 Hyperparameters and Experimental Setup Table 5: All hyperparameters (fixed across datasets and models). Parameter Value Context match n-gram lengths 3,4,53,4,5 Max spine continuation 20 Transition top-K 10 Tree node budget B 60 Max tree depth 6 Min score threshold 0.01 Spine-branch ratio Ï 0.5 EMA smoothing coefficient 0.3 Spine ratio tiers (r)(r) p^s<0.2â0.15 p_s<0.2â0.15, <0.4â0.30<0.4â0.30, â„0.4â0.50â„0.4â0.50 Linear bypass threshold 8 tokens Table 6: Hardware and software configuration. Item Specification GPU (7Bâ13B) NVIDIA A40 (48 GB GDDR6) GPU (33B) 2ĂA100-PCIE-40GB (80 GB total) CUDA Toolkit 12.8 PyTorch 2.9.1+cu128 Transformers 4.57 (Hugging Face) Precision FP16 (float16) Appendix D Extended Experimental Analysis D.1 Acceptance Heterogeneity Figure 5: Acceptance heterogeneity across five benchmarks. (a) Mean p^s p_s and p^t p_t per benchmark (averaged over 5 models); the ratio NĂNĂ above each bar pair quantifies the gap. (b) Heterogeneity ratio p^s/p^t p_s/ p_t per modelĂbenchmark (25 settings). D.2 Synergy and Acceptance Rate Analysis The synergy ratio ÏGoose/maxâĄ(ÏPLD,ÏTR) _ Goose/ ( _ PLD, _ TR) exceeds 1.0 on every model (range 1.16â1.45Ă, mean 1.24Ă), confirming that the gain is a consistent structural phenomenon across all 25 settings. GSM8K achieves the highest per-benchmark synergy (2.05) due to repetition-induced Ï inflation (see SectionËD.3); excluding this outlier, synergy ranges from 1.16 to 1.34. D.3 Cross-Task Robustness Figure 6: (a) Ï across four A40 models and five datasets grouped by Gooseâs affinity. CV below each column shows cross-model coefficient of variation. (b) Per-model mean Ïeq5/Ïiso _eq5/ _iso across 25 settings; all bars exceed 1.0, confirming spine dominance (Pearson r=0.91r=0.91). Strong-affinity datasets (ClassEval, GSM8K) share repetitive structureâclass templates or chain-of-thought boilerplateâyielding high PLD-path acceptance. Weak-affinity datasets (MBPP, MT-Bench) contain shorter, less repetitive outputs that favor the TR-path, yet still achieve Ï>2.6ĂÏ>2.6Ă. The cross-model CV is below 14% for four of five datasets: GSM8K is the exception (CV==58.5%) because Llama-3-8B exhibits degenerate repetition loops on arithmetic tasks, inflating its Ï to 9.25âan anomaly that disappears when that single model is excluded (CV drops to 11.7%). Overall, the strong/weak gap is moderate (mean 4.82 vs. 3.24, ratio 1.49Ă; the strong-affinity mean is lifted by the Llama-3-8B GSM8K outlier noted above), showing that Goose degrades gracefully rather than collapsing on unfavorable inputs. D.4 Prompt-Level Variance Across all 25 modelĂdataset settings, median Ï tracks the mean closely (Pearson r>0.98r>0.98) and the IQR stays within 0.50.5â2.3Ă2.3Ă for 23 of 25 cases. The two exceptionsâLlama-3-8B/GSM8K and Qwen3-8B/ClassEvalâare traced to degenerate repetition loops that inflate Ï; excluding the top 5% of prompts reduces their IQR to levels consistent with other settings. Overall, the tight IQR confirms that Gooseâs gains are broadly distributed across prompts rather than driven by outliers. Appendix E Theoretical Proofs and Verification E.1 Proof of Proposition 1 (Spine Tree Expected Yield) Proof. We use the indicator random variable (IRV) decomposition introduced for speculative decoding by Leviathan et al. [2023]. For each position in the speculation tree, let I=â[the accepted path reaches and accepts this position]I=1[the accepted path reaches and accepts this position]. Since Ï=âpositionsIÏ= _positionsI (plus the bonus token), linearity of expectation gives â[Ï]=âPrâĄ[I=1]+1E[Ï]=ÎŁ [I=1]+1. Spine positions (d=1,âŠ,md=1,âŠ,m). Spine position d is reached and accepted iff all d spine tokens along the chain are accepted. Under the i.i.d. acceptance model, PrâĄ[I=1]=psd [I=1]=p_s^d. Summing: â[spine]=âd=1mpsdE[spine]= _d=1^mp_s^d. Branch positions at node i (i=0,âŠ,mâ1i=0,âŠ,m-1). A branch subtree at node i is entered iff (a) all i preceding spine tokens are accepted (probability psip_s^i) and (b) the (i+1)(i+1)-th spine token is rejected (probability 1âps1-p_s). Given entry, the branch token (depth offset j=0j=0) is accepted with probability Ïi=1â(1âpt)wi _i=1-(1-p_t)^w_i. For j=1,âŠ,Dâ1j=1,âŠ,D-1, each subsequent chain token is accepted independently with probability ptp_t, so depth offset j is reached and accepted with probability Ïiâ ptj _i· p_t^j. Summing over all offsets within the branch subtree: â[branch at node âiâŁentry]=âj=0Dâ1Ïiâptj=Ïiâ(1+âj=1Dâ1ptj)=Ïiâ(1+âÂŻ),E[branch at node i ]= _j=0^D-1 _i\,p_t^j= _i\! (1+ _j=1^D-1p_t^j )= _i(1+ ), where âÂŻ=âj=1Dâ1ptj = _j=1^D-1p_t^j as defined in the main text. Here the â11â accounts for the branch token itself, and âÂŻ for the expected subsequent chain extension. Multiplying by the entry probability and summing over all spine nodes: â[synergy]=âi=0mâ1psiâ(1âps)âÏiâ(1+âÂŻ).E[synergy]= _i=0^m-1p_s^i(1-p_s)\, _i\,(1+ ). Combining. Adding the spine contribution, the synergy contribution, and the +1+1 bonus token: â[Ï]â„âi=1mpsi+âi=0mâ1psiâ(1âps)âÏiâ(1+âÂŻ)+ 1.E[Ï]\;â„\; _i=1^mp_s^i\;+\; _i=0^m-1p_s^i(1-p_s)\, _i\,(1+ )\;+\;1. The inequality holds because branches are modeled as independent linear chains; any deeper sub-branching within a branchâabsent in this setupâwould only add further contributions, confirming the lower-bound direction. The bound is tight when each branch subtree is an independent linear chain with no further sub-branching. â E.2 Proof of Optimal Branch Allocation Proof. Let Î=âi=0mâ1psiâ(1âps)âÏiâ(1+âÂŻ) = _i=0^m-1p_s^i(1-p_s)\, _i\,(1+ ) denote the synergy term in EquationË1, with Ïi=1â(1âpt)wi _i=1-(1-p_t)^w_i. The marginal synergy of adding one branch at position i is: âÎâwi=psiâ(1âps)â(1âpt)wiâlnâĄ11âptâ(1+âÂŻ). â â w_i=p_s^i(1-p_s)(1-p_t)^w_i\, \! 11-p_t\,(1+ ). At optimality under the constraint âwi=BtÎŁ w_i=B_t, all marginals must be equal: psiâ(1âpt)wi=ÎŒp_s^i(1-p_t)^w_i=ÎŒ for a Lagrange constant ÎŒ. Taking logarithms: iâlnâĄps+wiâlnâĄ(1âpt)=lnâĄÎŒi p_s+w_i (1-p_t)= ÎŒ, which gives wi=w0â|lnâĄps||lnâĄ(1âpt)|â iw_i=w_0- | p_s|| (1-p_t)|· i, i.e., linearly decreasing with depth. The intercept w0w_0 is set by âi=0mâ1wi=Bt _i=0^m-1w_i=B_t. â E.3 Proof of Anisotropic Dominance Proof. Let the total node budget be B and define ps>pt>0p_s>p_t>0. Step 1 (Replacement lemma). Consider any tree T of budget B where every candidate token has acceptance probability ptp_t. At depth d, let wdw_d denote the number of candidates; the probability of advancing past depth d is qd=1â(1âpt)wdq_d=1-(1-p_t)^w_d. Replace one of the wdw_d candidates with a spine token of acceptance psp_s: qdâČ= 1â(1âps)â(1âpt)wdâ1=qd+(psâpt)â(1âpt)wdâ1.q_d \;=\;1-(1-p_s)(1-p_t)^w_d-1\;=\;q_d\;+\;(p_s-p_t)\,(1-p_t)^w_d-1. Since ps>ptp_s>p_t and (1âpt)wdâ1>0(1-p_t)^w_d-1>0, we have qdâČ>qdq_d >q_d. The expected yield of any tree is Y=âd=1Dâj=1dqj+1Y= _d=1^D _j=1^dq_j+1, which is strictly increasing in each qjq_j. Hence YâČ>Y >Y: replacing one branch token with a spine token at any single depth strictly improves yield. Step 2 (Constructing a dominating spine tree). Start from the optimal isotropic tree isoâT_iso^* of budget Bâthe best uniform-rate tree under Sequoiaâs framework [Chen et al., 2024]âwhich maximizes Y over all trees using a single source at rate ptp_t. Let D be its maximum depth. For d=1,âŠ,minâĄ(m,D)d=1,âŠ, (m,D), apply Step 1 along a single root-to-leaf path, replacing one ptp_t-token per depth with a psp_s-spine token. The budget is unchanged (B), but each replaced depth has qdâČ>qdq_d >q_d, so: Yspine>Yisoâ.Y_spine\;>\;Y_iso^*. This spine tree is a feasible (not necessarily optimal) instantiation of PropositionË1. Step 3 (Optimization improves further). Reallocating branch budget according to PropositionË2 can only increase the yield: Yspineââ„Yspine>YisoâY_spine^*â„ Y_spine>Y_iso^*. Step 4 (Gap monotonicity). The per-depth gain (psâpt)â(1âpt)wdâ1(p_s-p_t)(1-p_t)^w_d-1 increases linearly in (psâpt)(p_s-p_t), so YspineââYisoâY_spine^*-Y_iso^* is monotonically increasing in ps/ptp_s/p_t (with ptp_t fixed) and vanishes as psâptp_sâ p_t. This is confirmed empirically: the spine advantage in TableË2 correlates with the per-benchmark ps/ptp_s/p_t ratio. â E.4 Numerical Verification of the Yield Bound We verify the yield lower bound of PropositionË1 against measured compression ratios across all five target models and five benchmarks (25 settings). For each setting we extract p^s p_s and p^t p_t from the logged spine and branch statistics, estimate the average tree shape (m,B)(m,B) from tree_diag, and compute three quantities: (i) Ïeq5 _eq5, the lower bound from Eq. 1 with the optimal linear allocation of PropositionË2; (i) Ïiso _iso, the yield of an isotropic tree with fan-out 3 and the same budget using only ptp_t; (i) Ïmeas _meas, the measured average accepted tokens per cycle. The bound is valid (Ïeq5â€Ïmeas _eq5†_meas) in all 25 modelĂdataset settings, confirming that PropositionË1 provides a correct lower bound. The bound is conservative (median Ïeq5/Ïmeasâ38% _eq5/ _measâ 38\%), which is expected: the theory does not account for the consensus bypass mechanism (SectionË4.3) or multi-cycle warm-start effects, both of which raise the effective acceptance rate in practice. More importantly, Ïeq5>Ïiso _eq5> _iso in all 25 settings (median ratio â1.52Ăâ 1.52Ă), empirically confirming the dominance result of PropositionË3. The gain correlates strongly with the heterogeneity ratio p^s/p^t p_s/ p_t (Pearson r=0.91r=0.91), consistent with the monotonicity predicted by Step 4 of the proof (SectionËE.3). FigureË6 visualizes the per-model dominance ratio.