Efficient and Asymptotically Unbiased Constrained Decoding for Large Language Models
In real-world applications of large language models, outputs are often required to be confined: selecting items from predefined product or document sets, generating phrases that comply with safety standards, or conforming to specialized formatting styles. To control the generation, constrained decod…