Lossless decoding at 2.9× greedy speed on Hindi (Devanagari) and 4.9× on Hindi (ITRANS), measured end to end

Output is identical to greedy decoding on every document in every system. Frozen Llama-3.2-1B with three look-ahead draft heads.

Speed-up over greedy decoding, end to end, 16 verified tokens per round. About 120 held-out documents × 64 new tokens per condition, {{SEEDS}}, drafting from a 4,352-token shortlist.

{{ROWS}}
ConditionChain of 3 draftsTreeTree + 5 copied tokensTree + 8 copied tokensTree + 12 copied tokensLow-looping documentsGreedy, ms per wordBest, ms per word

Chain: one draft per head. Tree: the 16 most confident draft nodes. Copied tokens: if the last two or more tokens occurred earlier, that many verified tokens are the ones that followed.

What it shows

  • Lossless in practice. Every system reproduces greedy output token for token.
  • The copied branch is the speed gain. In Devanagari, 2.9× with 12 copied tokens against 1.85× for the chain.
  • The tree alone is not faster than the chain. Its 29% more tokens per pass are spent on a longer backbone pass.
  • Romanized Hindi goes from slowest to fastest. 87% to 89% of its continuation tokens repeat the prompt (Devanagari 55%, English 13%).

Where the time of one round goes

Hindi (Devanagari), seed 0, tree + 12 copied tokens, 16 verified tokens, ms per round.

Draft the tree (3 heads, shortlist)2.1
Suffix lookup for the copied branch0.03
Build inputs and attention mask0.40
Backbone pass over 17 tokens and argmax23.3
Accept the path, update the cache1.8
One round, 4.42 tokens27.6
Greedy decoding, 1 token18.1

Limits of the measurement

One GTX 1080 Ti, fp32, batch size 1, a Python decoder, greedy decoding, 64 new tokens after a 256-token prompt.

Greedy decoding with a 1B model loops. Low-looping: tree + 12 copied tokens on documents where at most 10% of the continuation repeats itself (44 to 65 per condition). In romanized Hindi the continuation largely restates the prompt, which is what the copied tokens exploit.

Compute. 3 × GTX 1080 Ti (11 GB) + 1 × Quadro P6000 (24 GB), fp32. Timing: 10 to 34 min per run on one idle GTX 1080 Ti, peak 5.9 GB. Heads: 15 runs × 10M tokens, 6 to 8 h each, 350 to 465 tokens/s, peak 8.8 GB.