← all papers · overview

Grammar-aligned Decoding

Abstract

Large Language Models (LLMs) struggle with reliably generating highly structured outputs, such as program code, mathematical formulas, or well-formed markup. Constrained decoding approaches mitigate this problem by greedily restricting what tokens an LLM can output at each step to guarantee that the output matches a given constraint. Specifically, in grammar-constrained decoding (GCD), the LLM's o

Related papers

Ranked by semantic similarity — how closely each paper's abstract matches this one (100% = near-identical topic).