Overview

Constrained decoding guides a model toward outputs that obey requirements such as a JSON schema, grammar, API specification, code constraints, or permitted label set. Common approaches use finite automata, parsers, tries, and token masking, while search, sampling, verification, and diffusion-based methods handle more complex or global constraints. These techniques can make outputs reliably valid and improve task-specific measures, but validity alone does not ensure correct meaning or successful tool use. A central tension is how to enforce constraints without distorting the model’s probabilities, hindering reasoning, or creating failures when constraints are incomplete.

Latest papers

CardsList

67 papers16 papers in the last four weeks, up 300% on the four weeks before. 0.1% of all new papers.

  1. Suffix-Constrained Greedy Search Algorithms for Causal Language Models

    Mar 1, 2026Ayoub Hammal, Pierre Zweigenbaum, Caio CorroConstrained Generative ModelingConstrained Decoding

  2. Vectorizing the Trie: Efficient Constrained Decoding for LLM-based Generative Retrieval on Accelerators

    Feb 26, 2026Zhengyang Su, Isay Katsman, Yueqi Wang +10Constrained DecodingGenerative Retrieval

  3. Small LLMs for Medical NLP: a Systematic Analysis of Few-Shot, Constraint Decoding, Fine-Tuning and Continual Pre-Training in Italian

    Feb 19, 2026Pietro Ferrazzi, Mattia Franzin, Alberto Lavelli +1Small Language ModelsClinical NLP

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

    Feb 8, 2026Avinash Reddy, Thayne T. Walker, James S. Ide +1Constrained Generative ModelingConstrained Decoding

  5. Anchored Decoding: Provably Reducing Copyright Risk for Any Language Model

    Feb 6, 2026Jacqueline He, Jonathan Hayase, Wen-tau Yih +3Constrained DecodingLanguage Model Decoding

  6. Strategies for Span Labeling with Large Language Models

    Jan 23, 2026Danil Semin, Ondřej Dušek, Zdeněk KasnerConstrained DecodingLanguage Model Decoding

  7. Grammar-Aligned Decoding

    May 31, 2024Kanghee Park, Jiayu Wang, Taylor Berg-Kirkpatrick +2Constrained Generative ModelingConstrained Decoding