Metraipolis › archive › dc_d5b157314200
Making Grid Beam Search Less Greedy — arXiv:2609.39368
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.39368
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T13:13:46.972Z
- SHA-256 of the archived text
164a84d585ab185a2c9b84fbc3d555505f7ca0bf3ce5f853663ec6586c439a14- Stable URL of this page
https://metraipolis.com/documento/dc_d5b157314200
How to cite
Making Grid Beam Search Less Greedy — arXiv:2609.39368 — arXiv (en), https://arxiv.org/abs/2609.39368 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d5b157314200 (Metraipolis archive dc_d5b157314200, sha256 164a84d585ab185a2c9b84fbc3d555505f7ca0bf3ce5f853663ec6586c439a14)
BibTeX
@misc{dcd5b157314200,
title = {Making Grid Beam Search Less Greedy — arXiv:2609.39368},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.39368},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d5b157314200; sha256 164a84d585ab185a2c9b84fbc3d555505f7ca0bf3ce5f853663ec6586c439a14},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.39368. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
A common formalism for constraining the output of autoregressive text generation models involves lexical constraints, words or phrases which are required to occur in the generated text. DFA-constrained beam search and grid beam search are two widely used paradigms for decoding from autoregressive models while enforcing lexical constraints. As the former approach requires a number of forward passes exponential in the number of constraint tokens, it is often dispreferred to the latter, which requires only linearly many forward calls. However, while grid beam search achieves an exponential speedup, it does so in a manner which does not treat all of the constraints equally. In this paper, we demonstrate that grid beam search is biased to incorporate easier-to-satisfy constraints first, leaving harder constraints to the end of the sequence. This contrasts with DFA-constrained beam search, which exhibits no such bias. To address this shortcoming, we propose fair grid beam search, a modification to grid beam search which avoids this bias while still requiring only linearly many forward passes. Experimentally, we confirm grid beam search's bias on two constrained generation tasks, finding significant differences in how it orders constraint tokens as compared to DFA-constrained beam search and fair grid beam search. Furthermore, we find that fair grid beam search not only fixes grid beam search's bias, but finds higher-probability strings in the process. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-01 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.39368 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T12:44:51.815Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).