~/talk

Type-Constrained Code Generation with Language Models

Talkat PLDI 2025 · 2025-06-16..06-20· [ai-assisted-development]
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Introduces a type-constrained decoding method that integrates an incremental type checker into token-level LLM decoding using prefix automata plus a search over inhabitable types to ensure generated TypeScript is well typed in one forward pass. Implements finite bounds on the type-reachability graph, supports many TypeScript features, and ships reusable artifacts. Evaluated on HumanEval and MBPP with models up to ~32B, cutting compilation errors by over half (50–60%+) and producing several percentage points of functional-correctness improvement, especially large (≈80%) gains in repair mode.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06LLM code vs type systems
  3. 2:29Type systems in decoding
  4. 3:34Incremental type checking demo
  5. 6:45Automaton for type checker
  6. 8:51Visualizing automaton
  7. 11:41Type inhabitation problem
  8. 13:29Benefits and manual construction
  9. 14:13Evaluation setup
  10. 15:59Results on correctness
  11. 17:02Limitations and future support
  12. 18:05Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.