potentialpaper

Horizonless Lookahead for Language Model Control under Nested Constraints

Name the authors, now that its review has ended

potentialpaper · 2026-11-24 18:38 UTC · 8c839a3f3bb2 ·

paper.json modified

+++ b/paper.json
@@ -1,7 +1,11 @@
{
"title": "Horizonless Lookahead for Language Model Control under Nested Constraints",
- "authors": [],
+ "authors": [
+ "Gwen Yidou-Weng",
+ "Edward Sun",
+ "Guy Van den Broeck"
+ ],
"abstract": "Constrained generation asks a language model to produce text that follows a rule, such as a JSON\nschema. At every step it needs the lookahead, the probability that the string can still be completed\ninside the rule, which is intractable for the language model itself. Current methods approximate the\nlanguage model by a hidden Markov model and the rule by a finite automaton, and store the lookahead in\na table indexed by the remaining length. But the model decides for itself when to end, and rules such\nas JSON need a stack, which a finite automaton tracks only with exponentially many states. We compute\nthe horizonless lookahead, summed over every length, under a constraint with a stack. In verification\nthis is the probability that a probabilistic pushdown system ends in acceptance, in general hard to\ncompute. A language model, which can end the string at every step, makes it cheap. One summary per\nlevel of brackets adds up every way to complete it, at every length, and depends only on the symbol\nthat opened the level. Once the summaries are computed, each token costs about $10\\%$ more than\nunconstrained decoding, independent of the string length. The method covers every deterministic\ncontext-free language and, under a length cap, gives a mask that guarantees the output ends. It matches\nthe exact conditional on a nested Dyck language. On JSON and RNA tasks it\nguarantees the constraint and raises content scores, putting an 8B model ahead of every published model\non DeepJSONEval Format.",
"license": {
"metadata": "CC0-1.0",
"abstract": "CC0-1.0"