inference/research
verifiedhigh · 0.90updated 2026-10-03

Efficient Guided Generation for Large Language Models

paper

Fields

id
sources/flop2-guided-generation
Publisher
arXiv (Willard, Louf; Outlines / Normal Computing)
Kind
paper
Published
2023-07-19
Accessed
2026-10-03
notes
Formalizes text generation as transitions between the states of a finite-state machine, allowing an index to be constructed over the model's vocabulary so that grammar-constrained decoding becomes a per-token mask rather than per-token generation-and-test. The abstract's framing - an index over the vocabulary, transitions between FSM states - is the basis for the grammar-mask flop record and for why the cost scales with vocabulary size, not with model size.

Notes

Formalizes text generation as transitions between the states of a finite-state machine, allowing an index to be constructed over the model's vocabulary so that grammar-constrained decoding becomes a per-token mask rather than per-token generation-and-test. The abstract's framing - an index over the vocabulary, transitions between FSM states - is the basis for the grammar-mask flop record and for why the cost scales with vocabulary size, not with model size.

Cross-references

This record references no other records.