Sign inGet started
Paper · arXiv

The Alignment Problem in Constrained Code Generation

Large Language Models (LLMs) have demonstrated strong capabilities in code generation, but their outputs frequently contain syntax or type errors that result in compilation failures. Constrained decoding has been proposed as a solution to mitigate compilation errors by construction, improving functional correctness as a byproduct. However, previous works overlook a critical aspect of constrained decoding: the alignment between constrainer (e.g., types), language model and the target specification language (e.g., TypeScript). Misalignment is caused by the constrainer being incomplete--rejecting programs that belong to the target--or unsound--allowing programs that are not part of the targe...

AuthorsMatteo Biagiola, Jahrim Gabriele Cesario, Luca Di Grazia et al.
Primary categorycs.SE
Published19 June 2026
Last updated at source19 June 2026
cs.SEcs.LGcs.PL
Embed this entry
<iframe src="https://silytics.si/embed/item/b3561fac-e404-4c6f-a453-f1dd16fd9b41" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.