Skip to main content

Showing 1–1 of 1 results for author: Melcer, D

Searching in archive cs. Search in all archives.
.
  1. arXiv:2402.17988  [pdf, other

    cs.PL cs.LG cs.SE

    Constrained Decoding for Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammars

    Authors: Daniel Melcer, Nathan Fulton, Sanjay Krishna Gouda, Haifeng Qian

    Abstract: Large Language Models are powerful tools for program synthesis and advanced auto-completion, but come with no guarantee that their output code is syntactically correct. This paper contributes an incremental parser that allows early rejection of syntactically incorrect code, as well as efficient detection of complete programs for fill-in-the-middle (FItM) tasks. We develop Earley-style parsers that… ▽ More

    Submitted 27 February, 2024; originally announced February 2024.

    Comments: 20 pages, Code available at https://github.com/amazon-science/incremental-parsing