potentialpaper

Conditional Deontics over Terminals: A Mildly Context-Sensitive Formal Grammar for Constrained Decoding

Jiacheng Zhang, Ayesha Khatun, Steven Bethard

ARR 2026 January

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Constrained decoding researchers have recently thought to extend context-free constrainers to context-sensitive constraints such as matching selected columns to tables in text-to-sql.

This is challenging, because context-sensitivity is achieved by cross referencing different subtrees in the syntactic structure, which is only partially available during LLM generation.

Recent frameworks such as IterGen gain some context sensitivity but with drawbacks including the need for expensive backtracking or speculative lookahead of LLM, overly permissive semantics risking over-constrain, and complication in interfacing with works on improving running speed such as XGrammar.

To address these concerns, we propose a new mildly-context-sensitive formal grammar called Conditional Deontics over Terminals (CDoT).

Its incremental parser has O(n^3) time complexity each step and allows for GPU acceleration, compared to the O(n^8) of mildly context-sensitive tree-adjoining grammars and the O(n^2) of context-free grammars.

This new formal grammar is strong enough to implement the unit propagation algorithm, which we employ to assist an LLM during solving of a logical puzzle called "Knight and Knave", achieving substantially improved performance at reduced output token budget.

We also evaluate on the traditional constrained decoding evaluation task of text-to-sql.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
19 Sep 2025ICLR 2026submittedICLR 2026Withdrawn—[1]
6 Jan 2026ARR 2026 JanuarysubmittedARR 2026 JanuaryUnder review—[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…