What does Guided decoding mean in inference serving?
Guided decoding constrains generation so emitted text follows a grammar, schema, or other formal rule. Common implementations mask tokens that would make the current prefix invalid. The server compiles a constraint, tracks its state, and filters the next-token choices before sampling. Tokenizer behavior, grammar complexity, and implementation strategy determine overhead.