Draft-Conditioned Constrained Decoding for Structured Generation in LLMs
Avinash Reddy, Thayne T. Walker, James S. Ide, Amrit Singh Bedi

TL;DR
This paper introduces Draft-Conditioned Constrained Decoding (DCCD), a novel inference method that improves structured output validity in large language models by decoupling semantic planning from structural enforcement, leading to higher accuracy and efficiency.
Contribution
DCCD is a training-free, two-step decoding approach that enhances structured generation in LLMs by conditioning constrained decoding on an initial unconstrained draft, reducing errors and improving parameter efficiency.
Findings
DCCD improves strict structured accuracy by up to +24 percentage points.
It enables smaller models to match or outperform larger constrained models.
DCCD reduces the projection tax and increases feasible solution space.
Abstract
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"…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Adversarial Robustness in Machine Learning · Explainable Artificial Intelligence (XAI)
