arXiv Computation and Language By Jialiang Sun, Kuldeep Meel

Provably Tractable NFA-Constrained Language Generation via HMMs

Read the original on arXiv Computation and Language →

The paper introduces NFA-LM, a polynomial‑time method for generating language model outputs that satisfy nondeterministic finite automaton (NFA) constraints. It leverages recent results that the #NFA counting problem admits a fully polynomial randomized approximation scheme, providing theoretical guarantees under mild assumptions. Experiments demonstrate that NFA‑LM produces high‑quality outputs efficiently while keeping approximation error bounded.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computation and Language.

arXiv Computation and Language
3d ago

Making Grid Beam Search Less Greedy

arXiv:2609.39368v1 Announce Type: new Abstract: A common formalism for constraining the output of autoregressive text generation models involves lexical constraints, words or phrases which are requir...

By Sean Papay, Roman Klinger
arXiv AI
Jun 4

Constrained Adaptive Rejection Sampling

arXiv:2510. 01902v2 Announce Type: replace Abstract: Language Models (LMs) are increasingly used in applications where generated outputs must satisfy strict semantic or syntactic constraints.

By Pawe{\l} Parys, Sairam Vaidya, Taylor Berg-Kirkpatrick, Loris D'Antoni