Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling
7 Apr · Benjamin Lipkin, Benjamin LeBrun, Jacob Hoover Vigly +9 · arXiv:2504.05410
The dominant approach to generating from language models subject to some constraint is locally constrained decoding (LCD), incrementally sampling tokens at each time step such that the constraint is never violated. Typically, this is achieved through token masking: looping over the vocabulary and excluding non-conforming tokens. There are two important problems with this approach. (i) Evaluating the constraint on…