New 'Grammar-as-a-Draft' method speeds up LLM structured output generation
Researchers introduced Grammar-as-a-Draft (GaaD), an optimization technique for speculative decoding that incorporates grammar constraints directly into the drafting phase. By merging forced grammar tokens with model proposals, it significantly increases the acceptance rate of tokens in structured output tasks like JSON generation.