mlsanityData to 24 Nov 2026

Grammar-as-a-Draft: More Tokens per Speculative Decoding Step on Grammar-Constrained Structured Outputs

arXiv 2611.28349 ↗Submitted 20 Nov 2026Announced 24 Nov 2026cs.CL cs.AIcited by 0

On the map: Efficient LLM inference and serving → Speculative decoding

Abstract (arXiv)

Speculative decoding speeds up generation by letting a lightweight drafter propose tokens that the target model verifies in one forward pass. Under structured outputs (JSON schemas, regular expressions, tool-call formats), the drafter works against a constraint it does not know, so its proposals for keys, delimiters, and indentation are often rejected or invalid, even though the grammar engine already knows the next tokens. We present Grammar-as-a-Drafter (GaaD), which makes the grammar a second drafter. Before each verify step, the scheduler merges the drafter's proposal with grammar-forced tokens (out-degree 1 in the grammar automaton) into one draft row of width K (which can exceed the drafter's proposal length KM): matching tokens are promoted to GRAMMAR, the proposal is truncated where it disagrees, and grammar tokens fill the remaining slots. The verify step accepts GRAMMAR drafts without computing their logits, composing with any drafter without adding kernels or compilation on the critical path. Because grammars fix text rather than tokens, accepting canonical GRAMMAR drafts with probability 1 preserves grammar validity but can shift the output distribution relative to grammar-masked decoding. We implement GaaD in vllm-torchtpu and an independent Rust serving runtime, and evaluate it on TPU v7x with MTP, DFlash, and n-gram drafters on a JSON character-profile benchmark. GaaD raises average acceptance length from 2.06 to 5.43 for MTP (Qwen3.5-0.8B; 1.99 to 5.31 on Qwen3.5-35B-A3B), 1.57 to 4.13 for DFlash, and 1.30 to 3.64 for n-gram (Qwen3-4B), decoding 2.66-2.81x faster at batch size 1 and 1.14-1.70x faster at batch size 64. In the Rust runtime, MTP with GaaD is 2.23x faster on Qwen3.5-0.8B and 2.02x on Qwen3.5-397B-A17B-FP8 (1.22-1.69x at high concurrency). Under mixed traffic, GaaD finishes workloads 1.03-1.23x sooner while modestly raising plain-text TPOT.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Speculative decoding, one of 12 directions in Efficient LLM inference and serving. Builds on 15 of its 23 references that are in the map. Submitted 20 Nov 2026, announced 24 Nov 2026.

Builds on

15 of 23 references.

Closest ancestors · 8

Same direction, newest first

  1. 2026DFlash: Block Diffusion for Flash Speculative Decoding5 Feb
  2. 2025EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test3 Mar
  3. 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decoding3 Feb
  4. 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty26 Jan
  5. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads19 Jan
  6. 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verification16 May
  7. 2023Accelerating Large Language Model Decoding with Speculative Sampling2 Feb
  8. 2022Fast Inference from Transformers via Speculative Decoding30 Nov

Other references · 7

  1. 2025Qwen3 Technical Reportcited by 9,994
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  3. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
  4. 2024Better & Faster Large Language Models via Multi-token Predictioncited by 422
  5. 2023Efficient Guided Generation for Large Language Modelscited by 244
  6. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 112
  7. 2024SynCode: LLM Generation with Grammar Augmentationcited by 74

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Copy-as-Decode: Grammar-Constrained Parallel Prefill for LLM Editing
  2. 2026Oilbird: Training-Free Speculative Decoding with Keys the Verifier Already Computes
  3. 2025Steering Pretrained Drafters during Speculative Decoding
  4. 2026DEdit: Iterative Draft Editing for Speculative Decoding
  5. 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probability
  6. 2026NarrowSpec: Draft Hidden Width Need Not Match the Target in Speculative Decoding
  7. 2023PaSS: Parallel Speculative Sampling
  8. 2026FactorSpec: Serving Exact Relational Constraints as Speculative Drafts