arXiv AI

The Hidden Cost of Structured Generation in LLMs: Draft-Conditioned Constrained Decoding

arXiv:2603. 03305v2 Announce Type: replace-cross 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.

arXiv AI
Nov 2

Specification-Guided Generation for Large Language Models

The paper introduces a specification-guided decoding framework that blends large language model generation with symbolic reasoning to enforce formal specifications during output generation. It offers a forward-only variant that guarantees compliance by construction and a backtracking variant that revises earlier choices when later constraints become unsatisfiable. The approach is model-agnostic, requires no retraining, and improves compliance on configuration and constraint-solving benchmarks while reducing repeated inference compared to rejection sampling.

By Alessandro Previti, Konstantinos Vandikas, Mario Alviano, Mats Carlsson, Albin Larsson Forsberg, Alexandros Nikou, Athanasios Karapantelakis, Aneta Vulgarakis
arXiv AI
Oct 23

Metamodel-Guided LLM Decoding for Consistent DSL Generation

The paper introduces MeMoDecode, a decoding framework that enforces both concrete and abstract syntax as well as well‑formedness constraints for domain‑specific languages (DSLs) during large language model generation. By mapping generated text to partial metamodel instances and retrying from the last consistent snapshot, MeMoDecode guarantees consistency without sacrificing alignment metrics. Experiments on four DSLs and six open‑weight LLMs show a 23% average improvement over unconstrained decoding and an 8% improvement over grammar‑constrained decoding, with modest runtime overhead.

By Boqi Chen, Aren A. Babikian, Jos\'e Antonio Hern\'andez L\'opez
arXiv Machine Learning
Oct 8

Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds

The paper introduces the Expected Decoding Rounds (EDR) objective, a theoretical framework that models speculative decoding as a Markov reward process and directly optimizes the number of decoding rounds. EDR weights local rejection costs by state occupancies, eliminating auxiliary hyperparameters and enabling unbiased stochastic optimization via temporal‑difference gradients. Applying EDR to fine‑tune state‑of‑the‑art draft models (DSpark and DFly) improves mean accepted length and outperforms prior training objectives across nine benchmarks in math reasoning, code generation, and chat.

By Yunxiao Zhao, Changxiao Cai
arXiv AI
Oct 27

Constrained Decoding: Harmful or Beneficial? Revisiting Its Impact on LLM Performance

The paper investigates whether constrained decoding harms or helps large language model (LLM) performance. It introduces a taxonomy of three constraint types—format, validity, and reasoning—and shows that suitable constraints can preserve or even improve performance by eliminating invalid paths. Experiments across multiple model families reveal that perceived performance drops are mainly due to non-equivalent prompting and output formats, while validity constraints boost reliability and reasoning constraints can enhance accuracy when they guide beneficial reasoning trajectories.

By Ngoc Trinh Hung Nguyen, Alonso Silva, Armen Aghasaryan, Mehwish Alam
Hugging Face Trending Papers
5d ago

Efficient and Robust Drafting with Multi-Token Prediction

Efficient and Robust Drafting with Multi-Token Prediction introduces a Multi-Token Prediction (MTP) architecture that enhances speculative decoding for Large Language Models. The design centers on a single shared drafting head and includes target activation injection, zero-copy KV-cache cross-attention, and clustered vocabulary projection to reduce compute and memory overhead. Experiments with the Gemma 4 family demonstrate speedups of up to 3.1× for server‑side setups and 2.3× on H100 or 2.2× on a smartphone GPU, while parameter‑efficient fine‑tuning further reduces target forward passes by up to 1.83×.

arXiv AI
Oct 27

T2D: Target-to-Draft Model Pruning & Adaptation for Efficient Speculative Decoding

The paper introduces T2D, a framework that prunes and adapts a target large language model into a draft model optimized for both inference latency and alignment with the target model’s outputs. By formulating draft model design as an optimization problem, T2D achieves up to 92% pruning while maintaining high speculative decoding performance across multiple target model families and domains. The resulting draft models can also be integrated with other speculative decoding techniques to yield additional gains.

By Shahriar Kabir Nahin, Xiao Ye, Muhao Chen, Ben Zhou, Anshuman Chhabra
arXiv Computation and Language
Oct 12

Contextual Correction of Parallel Draftsfor Speculative Decoding

The paper introduces DCOCO (DFlash Contextual Corrector), a lightweight mechanism that restores intra-block dependencies in speculative decoding by evaluating multiple candidate tokens for contextual compatibility across adjacent draft positions. DCOCO maintains parallel drafting while enabling contextually informed token selection at low additional cost. Across multiple verifier backbones and benchmarks, DCOCO achieves the highest average throughput, delivering speedups of up to 6.6× over vanilla decoding and outperforming competing methods by 6–23% under concurrent serving loads.

By Roy Eisenstadt, Harel Lidar, Tal Gonen, Omer Luxembourg, Itamar Zimerman, Lior Wolf, Eli David, Ilan Naiman