כתבה
arXiv cs.LG ·
Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments
תקציר מקורי באנגליתarXiv:2607.18357v1 Announce Type: cross Abstract: Large language models now write a growing share of the world's code, increasingly inside agents and serving systems that compile, execute, or dispatch generated code without line-by-line review. This works well for mainstream languages but remains brittle for low-resource programming surfaces such as domain-specific languages, custom library APIs, and command-line tools. Even under grammar-constrained decoding, a model can still produce references invalid in the current environment: a buffer never declared, a column absent from the schema, a function the library does not provide, or an unsupported CLI option. This paper introduces decode-time grammars: grammar fragments instantiated during generation from a runtime environment Gamma. A regi
קרא במקור המקורי
arxiv.org
פתח כתבה מקורית