[KongchangAI]
ConceptGrammar-constrained decoding

Grammar-Constrained Decoding

A technique that uses a formal grammar to mask grammatically invalid tokens in real time during autoregressive generation. By maintaining an incremental parser to compute the next-token mask, it ensures that the output strictly conforms to the grammar.

Source Articles