Skip to main content
QUICK REVIEW

[Paper Review] Draft-Conditioned Constrained Decoding for Structured Generation in LLMs

Avinash Reddy, Thayne T. Walker|arXiv (Cornell University)|Feb 8, 2026
Topic ModelingComputer Science0 citations
TL;DR

DCCD introduces a two-step, training-free inference method that first generates an unconstrained draft and then performs constrained decoding conditioned on that draft, improving strict structured accuracy and parameter efficiency across model sizes and constraint types.

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" 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.

Motivation & Objective

  • Understand how hard constraints distort structured generation under standard constrained decoding.
  • Propose a two-step, draft-conditioned approach to increase feasible mass before constraint enforcement.
  • Quantify improvements in strict structured accuracy and parameter efficiency across model scales and constraint types.
  • Evaluate test-time scaling and draft-based selection strategies.
  • Provide reproducible code and insights into when and why DCCD helps.

Proposed method

  • Model-agnostic two-step inference: draft generation (unconstrained) followed by draft-conditioned constrained decoding.
  • KL-projection perspective to analyze constraint-induced distortion and feasible mass.
  • Define draft-conditioned feasible mass and two-model composition (draft model and projector model).
  • Algorithm 1: generate K drafts, compute constrained decoding conditioned on each draft, select the best by cumulative log feasible mass.
  • Optional best-of-K draft selection to improve robustness.
  • Empirical evaluation on GSM8K, MATH500, GSM-Symbolic, FOLIO with JSON schemas, grammars, and prover-checked forms.

Experimental results

Research questions

  • RQ1Does DCCD improve strict structured accuracy over prompting-based methods and standard constrained decoding across model sizes?
  • RQ2Can DCCD achieve better parameter efficiency via two-model compositions compared to single-model constrained decoding?
  • RQ3How does test-time sampling (drafts) affect performance and scaling of DCCD relative to constrained decoding?
  • RQ4Is the improvement consistent across diverse constraint types (JSON schemas, expression grammars, prover-checked forms) and reasoning benchmarks?

Key findings

  • DCCD consistently improves strict structured accuracy across model scales (1B–14B) and constraint types compared to CP, CF, and CD.
  • DCCD enables parameter-efficient model compositions that outperform larger single-model constrained baselines, showing better accuracy per parameter.
  • Test-time sampling of drafts yields greater gains for DCCD than repeating constraint-based sampling, with increasing benefits up to a point.
  • DCCD increases response confidence distributions and reduces projection tax, especially in low-capacity models.
  • Across datasets, e.g., GSM8K with a 1B model improves from 15.24% to 39.0% strict accuracy under JSON constraints; 1.5B model improves from 49.36% to 73.92%.
  • DCCD’s two-model approach allows smaller models to match or exceed much larger constrained baselines, demonstrating substantial parameter efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.