Saved in:
Bibliographic Details
Main Authors: Reddy, Avinash, Walker, Thayne T., Ide, James S., Bedi, Amrit Singh
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.03305
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908864865107968
author Reddy, Avinash
Walker, Thayne T.
Ide, James S.
Bedi, Amrit Singh
author_facet Reddy, Avinash
Walker, Thayne T.
Ide, James S.
Bedi, Amrit Singh
contents Large language models (LLMs) are increasingly used to generate executable outputs, JSON objects, and API calls, where a single syntax error can make the output unusable. Constrained decoding enforces validity token-by-token via masking and renormalization, but it can distort generation when the model assigns low probability mass to valid continuations, pushing decoding toward locally valid yet semantically incorrect trajectories. We propose \emph{Draft-Conditioned Constrained Decoding (DCCD)}, a simple two-step, training-free inference procedure that decouples semantic planning from structural enforcement: an unconstrained draft is generated first, and constrained decoding is then applied, conditioned on this draft, to guarantee validity. We analyze DCCD through a KL-projection view, showing that draft conditioning increases feasible mass and reduces the cumulative "projection tax" induced by hard constraints, with an optional best-of-$K$ draft selection. Across structured reasoning benchmarks, DCCD improves strict structured accuracy by up to +24 percentage points over standard constrained decoding (e.g., 15.2\% to 39.0\% on GSM8K with a 1B model), and enables smaller model pairs to match or exceed much larger constrained baselines, yielding substantial gains in parameter efficiency.
format Preprint
id arxiv_https___arxiv_org_abs_2603_03305
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Draft-Conditioned Constrained Decoding for Structured Generation in LLMs
Reddy, Avinash
Walker, Thayne T.
Ide, James S.
Bedi, Amrit Singh
Computation and Language
Artificial Intelligence
Machine Learning
Large language models (LLMs) are increasingly used to generate executable outputs, JSON objects, and API calls, where a single syntax error can make the output unusable. Constrained decoding enforces validity token-by-token via masking and renormalization, but it can distort generation when the model assigns low probability mass to valid continuations, pushing decoding toward locally valid yet semantically incorrect trajectories. We propose \emph{Draft-Conditioned Constrained Decoding (DCCD)}, a simple two-step, training-free inference procedure that decouples semantic planning from structural enforcement: an unconstrained draft is generated first, and constrained decoding is then applied, conditioned on this draft, to guarantee validity. We analyze DCCD through a KL-projection view, showing that draft conditioning increases feasible mass and reduces the cumulative "projection tax" induced by hard constraints, with an optional best-of-$K$ draft selection. Across structured reasoning benchmarks, DCCD improves strict structured accuracy by up to +24 percentage points over standard constrained decoding (e.g., 15.2\% to 39.0\% on GSM8K with a 1B model), and enables smaller model pairs to match or exceed much larger constrained baselines, yielding substantial gains in parameter efficiency.
title Draft-Conditioned Constrained Decoding for Structured Generation in LLMs
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2603.03305