Language Models Need Some Space: On the Sensitivity of Constrained Decoding to Completeness
The widespread adoption of language models for code generation makes the enforcement of formal guarantees on their outputs ever more important. Recent constrained decoding techniques are promising, but when applied to practical programming languages they typically face a trade-off between soundness and completeness, either permitting some invalid programs or rejecting some valid ones. We argue that invalid programs should be excluded entirely, yet find that overly restrictive acceptance criteria can significantly impair a model’s ability to follow human intent and generate functionally correct code. We attribute this degradation to a mismatch between the model’s internal representation of the language and the constrained language induced by the formal guarantees. To better align the two, we propose reducing variability through training-set preprocessing, language design, or neural architecture design.
I am a PhD student in the Programming Group at the University of St. Gallen. I am primarily working on optimizations for theorem provers. I am also interested in formal methods for AI.
Wed 1 JulDisplayed time zone: Brussels, Copenhagen, Madrid, Paris change
11:00 - 12:30 | ECOOP AITO SRC Presentations (invitation only)Student Research Competition at I.1.03 Chair(s): João Costa Seco NOVA-LINCS; Nova University of Lisbon, Jens Nicolay Vrije Universiteit Brussel, Christophe Scholliers Universiteit Gent, Quentin Stiévenart Université du Québec à Montréal | ||
11:00 22mTalk | Agent-driven assistance for accurate programming feedback Student Research Competition Guillaume Steveny Université Catholique de Louvain, Belgium | ||
11:22 22mTalk | Delta Vector Clocks for Pure Operation-based CRDTs Student Research Competition Thomas Vandermotten Vrije Universiteit Brussel | ||
11:45 22mTalk | Phoenix: Language-Driven Auto-Vectorisation Student Research Competition Jonas Sys Ghent University and Vrije Universiteit Brussel | ||
12:07 22mTalk | Language Models Need Some Space: On the Sensitivity of Constrained Decoding to Completeness Student Research Competition Jahrim Gabriele Cesario University of St. Gallen Pre-print | ||