The DOI matches its DataCite record; 12 of the 21 references it cites were found in a registry or an index.
Efficient Guided Generation for Large Language Models
Open accessAbstract
In this article we show how the problem of neural text generation can be constructively reformulated in terms of transitions between the states of a finite-state machine. This framework leads to an efficient approach to guiding text generation with regular expressions and context-free grammars by allowing the construction of an index over a language model's vocabulary. The approach is model agnostic, allows one to enforce domain-specific knowledge and constraints, and enables the construction of reliable interfaces by guaranteeing the structure of the generated text. It adds little overhead to the token sequence generation process and significantly outperforms existing solutions. An implementation is provided in the open source Python library Outlines
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 1×
“We are concerned with the problem of generating sequences of tokens from a large language model (LLM) [Vaswani et al., 2017, Radford et al., 2019] that conform to regular expressions or context-free grammars (CFGs).”
BackgroundNeural Machine Translation of Rare Words with Subword Units
Sennrich, R., Haddow, B., & Birch, A. (2016) · Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p16-1162 · Cited by 974 · cited 2×
“The vocabularies, V, are composed of strings from a fixed alphabet [Sennrich et al., 2015] and N is often on the order of 104 or larger.”
BackgroundDille, G. E. (1930) · doi:10.1177/002205743011202012 · Cited by 802
PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models
Scholak, T., Schucher, N., & Bahdanau, D. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.779 · Cited by 407 · cited 1×
“…output usable under rigid formatting requirements that are either hard or costly to capture through fine-tuning alone [Beurer-Kellner et al., 2023, Scholak et al., 2021, Poesia et al., 2022a, Rabinovich et al., 2017, Weng, 2021, Dong et al., 2023, Poesia et al., 2022b, Geng et al., 2023, Wang et…”
BackgroundAbstract Syntax Networks for Code Generation and Semantic Parsing
Rabinovich, M., Stern, M., & Klein, D. (2017) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/p17-1105 · Cited by 368 · cited 1×
“…under rigid formatting requirements that are either hard or costly to capture through fine-tuning alone [Beurer-Kellner et al., 2023, Scholak et al., 2021, Poesia et al., 2022a, Rabinovich et al., 2017, Weng, 2021, Dong et al., 2023, Poesia et al., 2022b, Geng et al., 2023, Wang et al., 2023].”
BackgroundGrammar Prompting for Domain-Specific Language Generation with Large Language Models
Wang, B.-L., Wang, Z., Wang, X.-Z., Cao, Y., Saurous, R. A., & Kim, Y. (2023) · Neural Information Processing Systems · doi:10.48550/arxiv.2305.19234 · Cited by 144 · cited 1×
“…under rigid formatting requirements that are either hard or costly to capture through fine-tuning alone [Beurer-Kellner et al., 2023, Scholak et al., 2021, Poesia et al., 2022a, Rabinovich et al., 2017, Weng, 2021, Dong et al., 2023, Poesia et al., 2022b, Geng et al., 2023, Wang et al., 2023].”
BackgroundPrompting Is Programming: A Query Language for Large Language Models
Beurer-Kellner, L., Fischer, M., & Vechev, M. (2023) · Proceedings of the ACM on Programming Languages · doi:10.1145/3591300 · Cited by 117
Synchromesh: Reliable code generation from pre-trained language models
Poesia, G., Polozov, O., Le, V., Tiwari, A., Soares, G., Meek, C., & Gulwani, S. (2022) · arXiv · doi:10.48550/arxiv.2201.11227 · Cited by 72 · cited 1×
“…under rigid formatting requirements that are either hard or costly to capture through fine-tuning alone [Beurer-Kellner et al., 2023, Scholak et al., 2021, Poesia et al., 2022a, Rabinovich et al., 2017, Weng, 2021, Dong et al., 2023, Poesia et al., 2022b, Geng et al., 2023, Wang et al., 2023].”
BackgroundSequential Monte Carlo Steering of Large Language Models using Probabilistic ProgramsPreprint
Lew, A. K., Zhi‐Xuan, T., Grand, G., & Mansinghka, V. K. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2306.03081 · Cited by 71
Gasser, U., & Mayer-Schönberger, V. (2024) · doi:10.2307/jj.6605394 · Cited by 29
Research works printed but not linked: 1
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
Cited by
Sorted by citations
Items 201–268 of 268
GRID: Grammar-Railed Decoding for Enterprise SQL Generation
Arjmandi, M. (2026) · arXiv.org · doi:10.48550/arxiv.2607.11951
“Outlines [1] reformulated guided generation as FSM state transitions with a vocabulary index, extending to CFGs via lexer-aware scanning over parser states—the paper whose problem statement and formal register this work parallels, and an explicit inspiration for GRID’s design.”
Graph-Constrained Policy Learning for Extreme Clinical Code PredictionPreprint
Singh, A., Torres, S., Shakeel, K., & Bukhari, S. A. C. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2607.11954
“The environment validates every ID against the set of children just presented; invalid IDs are rejected, which realizes the constrained-decoding principle of restricting generation to a valid candidate set [19] at the level of tool arguments.”
LLM-powered reasoning in agent-based modeling
Moon, S., Maguire, D. D., Spannaus, A., Tuccillo, J., Alam, M., Seal, S. K., Gounley, J., & Hanson, H. A. (2026) · arXiv.org · doi:10.48550/arxiv.2607.06757
“We use the recently developed Outlines framework to obtain structured output in a yes/no format [35].”
Influence of Prompt Engineering on Small Language Models for Guarded Query RoutingPreprint
Šléher, R., Brach, W., Košťál, K., & Poech, L. G. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2607.24801
“But the benefit comes with a catch: In GQR, the model must return one of a few exact labels, which entails a structured-output and instruction-following problem [47, 42].”
InfluentialPhan, N., & Son, H. (2026) · SCIENTIFIC JOURNAL OF TAN TRAO UNIVERSITY · doi:10.51453/3093-3706/2026/1475
“Email: sjttu@tqu.edu.vn To thoroughly address formatting vulnerabilities, the constrained decoding technique is applied directly at the inference layer using GBNF (GGML Backus-Naur Form) grammar sampling [21].”
Phan, N., & Son, H. (2026) · SCIENTIFIC JOURNAL OF TAN TRAO UNIVERSITY · doi:10.51453/3093-3706/2026/1466
“Similarly, advanced interaction frameworks like Outlines [28] or LMQL [31] also use regular expressions and FSM mechanisms to coerce output shapes.”
"Don't Say It!": Constraints, Compliance, and Communication when Language Models Play Taboo
Candussio, S., Padovani, F., Scalena, D., & Nissim, M. (2026) · arXiv.org · doi:10.48550/arxiv.2607.00601
“Beyond prompting, a more direct approach to output control is logit masking, i.e. forcing forbidden token probabilities to −∞ at every decoding step, as implemented in frameworks such as that proposed by Willard and Louf [15] and its predecessors Hokamp and Liu [16].”
Edge AI Integration Architecture for the Internet of Things
Alkanalka, D., Seçen, M., Yalçın, N., Yıldız, H. E., Çimenoğlu, E., Helvacıoğlu, T., & Keküllüoğlu, D. (2026) · Signal Processing and Communications Applications Conference · doi:10.1109/siu71813.2026.11636549
Deterministic Validation for Reliable LLM-Based Causal Knowledge Extraction
Foss, D. T. (2026) · International Conference on Electrical, Computer and Energy Technologies (ICECET) · doi:10.1109/icecet65726.2026.11632715
“Guidance [12] and Out-lines [11] enforce structural validity during token sampling by restricting generation to valid JSON or other schemas.”
Arslan, M. (2026) · arXiv.org · doi:10.48550/arxiv.2608.20397
“Constrained decoding [20]–[22] underlies the FSM/JSON masking used for argument generation.”
Kumar, A., D’souza, A., Shet, D. S., Aroza, J. A., & Bhat, N. (2026) · IEEE International Conference on Edge Computing and Communications (EDGE) · doi:10.1109/edge72783.2026.00040
“Willard and Louf [14] demonstrated efficient implementations of grammar-constrained decoding with little latency overhead.”
CASD: A Contract-Aware Speculative Decoding Method for Constrained Output Generation
Tian, F.-W., Wu, S.-Y., Chen, C., Li, Z., Liu, G.-Q., & Dou, W.-C. (2026) · 2026 IEEE International Conference on Software Services Engineering (SSE) · doi:10.1109/sse72781.2026.00040
“While this approach ensures valid output formats, existing methods typically enforce formal grammars by applying global vocabulary masking at every decoding step [17], [18].”
TVDM-LLM: Schema-Aware Natural Language Querying for Transportation Surveillance Video Databases
Chen, X., & Zhang, C. (2026) · IEEE International Conference on Information Reuse and Integration (IRI) · doi:10.1109/iri69576.2026.00111
“Outlines [23] is used to support this pattern for transformer-based LLMs.”
ToxiREX: A Dataset on Toxic REasoning in ConteXt
Schouten, S. F., Markov, I., & Vossen, P. (2026) · arXiv.org · doi:10.48550/arxiv.2606.27981
“To make this work, a sampling strategy is used that masks tokens which would produce invalid outputs (Willard and Louf 2023).”
Minimality of Random Moore Automata under Prefix-Dependent Congruences
Carrasco, M., & Yovine, S. (2026) · arXiv.org · doi:10.48550/arxiv.2606.20454
“Moreover, in applications such as constrained PDFA learning and constrained or grammar-guided generation for large language models [6, 13, 14], the continuations available for comparison may be restricted by constraints imposed by the generation procedure.”
STAGE: Source-grounded Text-to-JSON Artifact GEneration
Ahn, S., Son, G.-J., & Yu, Y. (2026) · arXiv.org · doi:10.48550/arxiv.2606.20072
“This was followed by methods like constrained decoding [Scholak et al., 2021, Willard and Louf, 2023, Dong et al., 2025] and structured-output APIs [Qin et al., 2024, Patil et al., 2024], aiming for strict schema compliance.”
Giagnorio, A., Martin-Lopez, A., & Bavota, G. (2026) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2026.3703553
“In Section IV we address this limitation.”
Beyond Perplexity: UTF-8 Validity in Byte-aware Language Models
Moon, S., Oba, D., Ma, Y., Hiraoka, T., & Okazaki, N. (2026) · arXiv.org · doi:10.48550/arxiv.2606.14122
“Constrained decoding methods (Koo et al., 2024; Willard & Louf, 2023; Cognetta & Okazaki, 2025) can guarantee V strict = 1 .”
Rodríguez, A., Pozanco, A., & Borrajo, D. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2606.14831
“…constraints — from foundational work on incremental parsing for auto-regressive generation [ 44 ], to modern grammar-compilation approaches [ 45 ], to higher-level query languages that integrate constrained decoding into prompt programming [ 46 ] — prevent the model from emitting forbidden…”
Beyond training: engineering vision-language models for immediate disaster assessment
Schwarz, F., Schwarz, K. D., Creutzburg, R. M., Tashkan, D., & Aranda, D. A. (2026) · Multimodal Image Exploitation and Learning · doi:10.1117/12.3100583
“Outlines 52 formalised efficient guided generation as finite-state machine augmentation of the sampler, and LMQL 53 embedded constraint specification in a query language.”
Kanazawa, R., Hidaka, K., Miyamoto, T., Kato, T., Ando, T., Wang, C., Jiang, D., Fujita, N., Saitoh, S., Kondo, A., et al. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2606.08545 · Cited by 1
“Outlines, XGrammar, and vLLM structured outputs provide constrained generation based on regular expressions, JSON schemas, context-free grammars, and related formalisms[9, 29, 30].”
Manoharan, S., Nallusamy, D., Kumar, S., & Wu, H. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2606.05781
“Constrained decoding [10] enforces syntactic validity but not semantic correctness.”
Varkey, S., Galvankar, S., & Choi, S. (2026) · Silicon Valley Cybersecurity Conference · doi:10.1109/svcc69905.2026.11642255
RO: Reliable Orchestration of LLM Programs via Deterministic-Generative Separation
Jha, S. (2026) · 2026 56th Annual IEEE International Conference on Dependable Systems and Networks - Supplemental Volume (DSN-S) · doi:10.1109/dsn-s70715.2026.00052
“The validate step itself is mechanism-agnostic: constrained decoding [15], rewrite models, or repeated sampling [16] all satisfy the contract.”
Learning the Error Patterns of Language ModelsPreprint
Kim, J., Berg-Kirkpatrick, T., & D’Antoni, L. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.28328
“Constrained decoding has many advantages: ( i ) modern implementations are highly efficient [6, 40], ( ii ) grammars can be reused among different LLMs, and ( iii ) it guarantees that produced samples are accepted by the grammar.”
Evolving and Detecting Multi-Turn Deception using Geometric Signatures
Kumar, S., & Cummings, M. L. (2026) · arXiv.org · doi:10.48550/arxiv.2605.27671
“This was achieved using Outlines constrained generation[26].”
Kozachok, A., Bakaev, A. A., Kozachok, A., Магомедов, Ш., & Noev, A. N. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2605.25835
“Works by Willard & Louf [13] and Geng et al. [14] describe grammar-constrained decoding (GCD), where invalid tokens are excluded at inference time.”
SonicSampler: Unified Tile-Aware Kernels for LLM Sampling and Speculative VerificationPreprint
Ponnusamy, P., Sahni, S., Wang, J., & Dao, T. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2607.20475
“Sampling is not merely a post-processing detail; rather, it governs output diversity, controllability, and structural validity (Holtzman et al., 2020; Zhu et al., 2023; Willard and Louf, 2023; Dong et al., 2025).”
Rath, P. K. (2026) · arXiv.org · doi:10.48550/arxiv.2607.18254
“The Outlines/llguidance backend used for C1+C2 [22] is fixed across all SmolLM2 cells.”
InfluentialNCO: A Versatile Plug-in for Handling Negative Constraints in Decoding
Jin, H., & Han, Y.-S. (2026) · arXiv.org · doi:10.48550/arxiv.2605.10065
“Guidance-style systems such as Outlines [29] and later FSM-based frameworks [4, 10] make grammar and regex constraints practical for modern LLM inference.”
Zhao, H.-Q. (2026) · arXiv.org · doi:10.48550/arxiv.2605.07507
“10: return S This auto-generation mechanism achieves two critical objectives identified in the prompt engineering literature [5,7]: it enforces strict JSON output formatting to maximize parseability, and it provides field-level schema specification to reduce hallucination and improve extraction…”
InfluentialThe Impact of Ontology Structure in the Performance of RAG Systems: a Medical Use Case
Lin, D., Riquelme-García, A., Fernández-breis, J., & Anderson, P. (2026) · Conference on Algebraic Informatics · doi:10.1109/cai68641.2026.11536252
“To help improve performance, we constrain the model to generate structured text using the Python library Outlines [7].”
Measuring Tradeoffs in Multi-Agent Models: a Case Study in Shipping Cost Calculation
Ryser, A., Rosso, P., Audiffren, J., Ruffieux, S., Goetschmann, P., & Cudré-Mauroux, P. (2026) · Swiss Conference on Data Science · doi:10.1109/sds70563.2026.00040
“Importantly, the sub-agents have access to their associated tool (similarly to the single-agent architecture), and are able to communicate with each other through structured output [9] – the output of each LLM is constrained to follow a precise JSON-based grammar.”
Proactive Dialogue Model with Intent PredictionPreprint
Luo, Y. (2026) · arXiv.org · doi:10.48550/arxiv.2604.27379
“Discovering the intent vocabulary has been studied through unsupervised clustering of utterance embeddings [33, 34] and, more recently, through LLM-in-the-loop cluster evaluation and naming [12, 35], which support the iterative discovery of high-quality intents.”
Query2Diagram: Answering Developer Queries with UML Diagrams
Baryshnikov, O., Alekseev, A., & Nikolenko, S. I. (2026) · arXiv.org · doi:10.48550/arxiv.2604.23816
“We used LLaMA-Factory [47] and incorporated Unsloth [19] for fast token streaming and Outlines [45] to impose the JSON schema as a constrained grammar, guaranteeing syntactically valid graphs even for small models.”
LLM StructCore: Schema-Guided Reasoning Condensation and Deterministic Compilation
Zabolotnii, S. W. (2026) · arXiv.org · doi:10.48550/arxiv.2604.20560
“SGR [1] is an architectural pattern that constrains an LLM to produce typed, schema-conformant outputs via structured output or constrained decoding [3, 14], turning domain knowledge into executable data contracts.”
Compliance-Aware Generative AI for Life Insurance Document Synthesis: A Reference Architecture
Siddhu, H. S., Pappu, K., & Thanvi, Y. S. (2026) · 2026 International Conference on Artificial Intelligence, Systems, and Emerging Technologies (ICAISET) · doi:10.1109/icaiset66439.2026.11541931
“Complementary approaches include constrained decoding to enforce output structure [9] and multi-stage verifier cascades for high-stakes applications [10].”
Symbolizer: Symbolic Model-Free Task Planning With VLMs
Azirar, S., Ajanović, Z., & Blum, H. (2026) · IEEE Robotics and Automation Letters · doi:10.1109/lra.2026.3726377
“Insummary, our contributions are: (cid:2) A robust method for grounding symbolic representations and goals from image or textual description using VLMs. (cid:2) Extensive experimental evaluation and ablation studies demonstrating the effectiveness of the proposed approach.”
Agyemang, J. O., Agyare, M., Kobbinah, M., Agbugblah, N., & Addo, P. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2604.16736 · Cited by 1
“Outlines [29] uses finite-state machines to guide to-ken sampling; LMQL [7] provides a query language for constrained outputs; SGLang [34] offers efficient structured generation with parallelism.”
Agyemang, J. O., Kponyo, J. J., Amponsah, E., Boakye, G., & Agyekum, K. (2026) · arXiv.org · doi:10.48550/arxiv.2604.12301
“A more capable local model or constrained-decoding support [22] would likely reduce this failure rate, but at the 3B scale T6 is unreliable enough that we recommend against enabling it without output-format validation.”
Modeling Copilots for Text-to-Model Translation
Kadıoğlu, S., Uppuluri, K., & Singirikonda, A. (2026) · arXiv.org · doi:10.48550/arxiv.2604.12955
“Willard et al. reformulate neural text generation as transitions between finite-state machine states (Willard and Louf 2023).”
Amalgam: Hybrid LLM-PGM Synthesis Algorithm for Accuracy and Realism
Kapenekakis, A., Thomsen, B., Hose, K., & Albano, M. (2026) · arXiv.org · doi:10.48550/arxiv.2603.27254
“Then, we implement the sampling phase by integrating the LLM inference framework “Llama.cpp” under the library “llama-cpp-python” and use the library “outlines” (Willard & Louf, 2023) to perform grammar-based generation.”
Johnson, W., & Lee, C. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2604.02367
“…2020); the output budget is minimal (a single JSON label), eliminating the output token dynamics that dominate inference cost for generative tasks (Willard and Louf, 2023; Zheng et al., 2024b); and SLMs can be self-hosted on commodity GPUs, avoiding API dependencies and data-residency concerns.”
LSTM-Based Large Language Model for Text-to-Text Generation
Kyaw, N. N., Mitra, P., Sinha, G. R., & Thwe, P. M. (2026) · International Conferences on Computing Advancements · doi:10.1109/icca69280.2026.11485794
“Willard et al. [13] introduced an efficient approach to guiding large language model text generation using regular expressions and context-free grammars, allowing for structured and domain-specific text generation with minimal overhead.”
How to Take a Memorable Picture? Empowering Users with Actionable Feedback
Laiti, F., Talon, D., Staiano, J., & Ricci, E. (2026) · Computer Vision and Pattern Recognition · doi:10.48550/arxiv.2602.21877
“To ensure structured outputs, we adopt the outlines library [59] for constrained decoding (see Supp.”
Continuous Diffusion Models Can Obey Formal SyntaxPreprint
Kim, J., Berg-Kirkpatrick, T., & D’Antoni, L. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2602.12468
“…decoding (GCD) (Geng et al., 2023) and its many implementations (Guidance Contributors, 2023; Park et al., 2025; Ugare et al., 2024; Willard & Louf, 2023) enforce syntactic constraints for autoregressive models by filtering out tokens that are guaranteed to eventually result in a…”
Arvan, M., Feinstein, R. T., Rudin, N. J., & Nichols, M. (2026) · JMIR Research Protocols · doi:10.2196/91647
“Second, structured generation via constrained decoding forces outputs for assertion polarity, temporal anchor, and relation type into a fixed schema, eliminating the open-ended-label class of hallucinations [45,46].”
McCann, K., Wright, D. S., Alvarez, E. V., Sullivan, J. C., Cantrell, K., & Hauser, R. G. (2026) · Transfusion · doi:10.1111/trf.70061
Efficient translation of HTML to JSON for enhanced web content production
Stefano, A. D., Fadda, M., Marini, C., Ramzan, F., & Recupero, D. R. (2026) · Multimedia tools and applications · doi:10.1007/s11042-026-21232-7
“For example, other email design platforms such as Stripo 18 , Mailchimp 19 , or Unlayer 20 employ either HTML-based editing or their own proprietary JSON models; our method could facilitate cross-platform template migration, reducing vendor lock-in and enabling interoperability between editors.”
NewsScope: Schema-Grounded Cross-Domain News Claim Extraction with Open Models
Pandya, N. (2025) · arXiv.org · doi:10.48550/arxiv.2601.08852
“Constraining LLM outputs to follow specific schemas has gained attention for reliability (Willard and Louf, 2023).”
Multiple Schema-Conformant Declarative Code Generation
Kammakomati, M., & Tamilselvam, S. G. (2025) · International Conference on Automated Software Engineering · doi:10.1109/ase63991.2025.00344
“4) Constrained Decoder Tool: We use outlines [15].”
A Context-Aware Intelligent Tutoring Framework for Grammar Modeling Using Large Language Models
Daberao, L. C. (2025) · 2025 IEEE Conference on Pervasive and Intelligent Computing (PICom) · doi:10.1109/picom68402.2025.00034
“[19] improves LLM generation by restricting the output during decoding.”
A Matter of Representation: Towards Graph-Based Abstract Code Generation
Iskandar, N., Bedri, H., & Tsen, A. (2025) · arXiv.org · doi:10.48550/arxiv.2510.13163
When it Comes to Scientific Information Extraction and LLMs, Less is More
Shaik, S., Blaiszik, B. J., & Tchoua, R. (2025) · Conference on AI, Science, Engineering, and Technology (AIxSET) · doi:10.1109/aixset65682.2025.00020
“To enforce schema-constrained generation, we employ Outlines [27], a framework that guarantees that LLM outputs adhere to predefined formats.”
Play by the Type Rules: Inferring Constraints for LLM Functions in Declarative ProgramsPreprint
Glenn, P., Samuel, A., & Liu, D. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2509.20208
“These constraints are typically encoded via regular expressions or context-free grammars, and optimized decoding engines have emerged for deriving and applying masks (Willard & Louf, 2023; Geng et al., 2023; Park et al., 2025; Dong et al., 2024; Guidance, 2023).”
Thißen, M., Tran, T. N. D., Ratsch, B. E., Schönbein, B. J., Trapp, U., Egner, B., Piat, R., & Hergenröther, E. (2025) · Computer Science Research Notes · doi:10.24132/csrn.2025-3
“Using this schema and prompt, we apply guided decoding [Wil23] to ensure that the LLM generates only valid region and condition indices.”
Lall, S., Farrell, C., Pathanjaly, H., Pavic, M., Chezhian, S., & Asai, M. (2025) · arXiv.org · doi:10.48550/arxiv.2509.08150
“We use constraint decoding [Willard and Louf, 2023] to limit the space of possible outputs to one of the elements in X .”
Constraint Discovery for Structured Generation via LLM-Guided SMT Inference
Karmarkar, H., Agrawal, S., Pagar, S. G., Joshi, V., Verma, S., & Paul, N. (2025) · IEEE International Conference on Software Maintenance and Evolution · doi:10.1109/icsme64153.2025.00059
“Outlines [7] frames constrained generation as a deterministic traversal over grammar-induced automata, enabling linear-time decoding under regular or context-free grammars.”
Upravitelev, M., Schoppa, N., Krauß, C., An, T.-S., Do, B., & Abdul, A. M. (2025) · ECEI 2025 · doi:10.3390/engproc2025103018
“A common approach for these strategies biases the probabilities of the tokens in an LLM vocabulary so that restricted tokens have their probabilities set to zero when checking the previously sampled tokens with the defined grammar [7].”
Representing Prompting Patterns with PDL: Compliance Agent Case Study
Vaziri, M., Mandel, L., Watanabe, Y., Kitahara, H., Hirzel, M., & Sailer, A. (2025) · arXiv.org · doi:10.48550/arxiv.2507.06396
“PDL types are seamlessly integrated with constrained decoding (Willard & Louf, 2023) in platforms and models that support it, to ensure the shape of the output.”
Guided Decoding and Its Critical Role in Retrieval-Augmented Generation
Uğur, Ö., Yılmaz, M., Şavirdi, E., Ezerceli, Ö., Huseyni, M. E., Taş, S., & Bayraktar, R. (2025) · Signal Processing and Communications Applications Conference (SIU) · doi:10.1109/siu66497.2025.11111950
“One notable approach is Outlines, proposed in [3], which leverages finite-state machines (FSMs) to guide text generation efficiently, ensuring compliance with regular grammars while maintaining computational scalability.”
LLMs in the Generation of Seismic Alert Communiqués
Peña-Cáceres, O., Silva-Marchan, H., Espinoza-Nima, R., More-More, M., Chauca-Claros, M., & Yáñez-Palacios, J. F. (2025) · Qubahan Academic Journal · doi:10.48161/qaj.v5n2a1400
“Studies such as those by Kim Dam-yul [37] and Ayoub et al. have also evidenced [38] that it is problematic to rely on automated systems, especially when making critical decisions affecting public safety.”
Towards Lighter and Robust Evaluation for Retrieval Augmented GenerationPreprint
Ispas, A.-R., Simon, C.-E., Caspani, F., & Guigue, V. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2503.16161
“In this work, we will perform constrained generation with the help of the Outlines library Willard & Louf (2023).”
An Agentic AI System for Context-Grounded and Deterministic Failure Triage in Data Pipelines
Marineni, M. (2026) · IEEE Access · doi:10.1109/access.2026.3697110
“The LLM is provided with the full alert context and execution artifacts and is required to follow strict reasoning and output constraints, including production schema immutability, conservative remediation rules, and structured JSON-only output [37], [38].”
Trust-Aware Orchestration Architecture for LLM-Assisted Workflows in Multi-Tenant Enterprise Systems
Leburu, N. (2026) · IEEE Access · doi:10.1109/access.2026.3706063
Diagnosing Candidate Quality Bottlenecks in RL-Guided LLM Code Repair
Zhang, J.-J., & Noh, G. (2026) · IEEE Access · doi:10.1109/access.2026.3727158
“Structured-output and guided-generation research studies how language models can be constrained to emit outputs that satisfy regular expressions, grammar, or other structural requirements [21].”
Dutulescu, A., Iorga, D., Mihăilescu, M.-E., Mihai, D., Năstase, V.-I., Weisz, S., Carabaș, M., & Dascălu, M. (2026) · IEEE Access · doi:10.1109/access.2026.3728165
“One option is to enforce structure externally through constrained decoding [37], [38].”
Type-Constrained Code Generation with Language Models
Mündler, N., He, J., Wang, H., Sen, K., Song, D., & Vechev, M. (2025) · arXiv · doi:10.48550/arxiv.2504.09246
Metadata
- Authors
- Willard, B. T., & Louf, R.
- ORCID
- Louf, Rémi
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2307.09702
- OpenAlex
- W4385014449
- Cited by
- 27
- References
- 21
- Citations by year
- 2026: 7 · 2025: 12 · 2024: 7 · 2023: 1
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- arXiv (Cornell University) (submittedVersion, cc-by)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
- Keywords
- large language models, finite automata, regular expressions, context-free grammars, domain-specific constraints
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review