# Grammar-as-a-Draft triples acceptance length for structured AI output

> The new method lets a grammar act as a second drafter, raising average accepted token runs from about 2 to over 5 and speeding decoding up to 2.8×.

Oossa · 2026-11-24 · https://oossa.com/en/grammar-as-a-draft-triples-acceptance-length-for-structured-ai-output

Researchers introduce Grammar-as-a-Draft, a technique that lets a grammar fill in forced tokens alongside a speculative drafter. The combined draft is verified without extra compute, letting the system accept longer token runs.

It speeds up decoding by up to 2.81× at batch size 1 on TPU hardware.

## The facts

- Acceptance length rose from 2.06 to 5.43 tokens on a JSON benchmark.
- Decoding became up to 2.81× faster at batch size 1.

## Why it matters

It lets developers generate valid structured outputs faster, though real‑world latency improvements are still unknown.

## What it means for you

If you use an API that generates JSON or other structured data, the new approach could cut the time each request takes, though the exact latency gain for your service isn’t measured yet.

**Our take:** The method shows a clear efficiency gain for grammar‑constrained generation, but practical benefits will depend on how quickly developers adopt the required runtime changes.

## Sources & references

1. [Grammar-as-a-Draft: More Tokens per Speculative Decoding Step on Grammar-Constrained Structured Outputs](https://arxiv.org/abs/2611.28349) – arXiv, 2026-11-24

Last updated: 2026-11-24
