Suffix-Constrained Greedy Search Algorithms for Causal Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are powerful tools that have found applications beyond human-machine interfaces and chatbots. Beside free-form generation, there has been an interest in constrained generation, a setting where LLMs are constrained to generate well-formed outputs with respect to the language defined by a formal grammar. Although appealing, this setting may be over restrictive for downstream applications. For example, many LLM tasks require the model to reason freely before generating its final response in a specific format. In this work, we introduce suffix-constrained generation, a constrained generation setting in which only the end of the response is constrained by a grammar, a scenario that is not supported by existing constrained generation methods. We introduce several suffix-constrained generation algorithms that are based on greedy search. We experiment on several datasets, and show that our approach allows to guarantee suffix constraints without having a negative impact on results, and even improving them in many settings.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 29 of its 62 references that are in the map. First posted on arXiv 1 Mar 2026.
Builds on
29 of 62 references.
References · 29
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Let's Verify Step by Stepcited by 3,598
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2023Large Language Models are not Fair Evaluatorscited by 1,050
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
17 more
- 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 146
- 2025Preference Leakage: A Contamination Problem in LLM-as-a-judgecited by 119
- 2016Guided Open Vocabulary Image Captioning with Constrained Beam Searchcited by 105
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 99
- 2024An Empirical Study of LLM-as-a-Judge for LLM Evaluation: Fine-tuned Judge Model is not a General Substitute for GPT-4cited by 90
- 2024Let Me Speak Freely? A Study on the Impact of Format Restrictions on Performance of Large Language Modelscited by 90
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
- 2025One Token to Fool LLM-as-a-Judgecited by 56
- 2024Measuring and Controlling Instruction (In)Stability in Language Model Dialogscited by 51
- 2025CRANE: Reasoning with constrained LLM generationcited by 38
- 2025Rating Roulette: Self-Inconsistency in LLM-As-A-Judge Frameworkscited by 37
- 2024Adaptable Logical Control for Large Language Modelscited by 30
- 2024JuStRank: Benchmarking LLM Judges for System Rankingcited by 27
- 2023Prompting or Fine-tuning? A Comparative Study of Large Language Models for Taxonomy Constructioncited by 18
- 2025Efficient Beam Search for Large Language Models Using Trie-Based Decodingcited by 10
- 2025AdapTrack: Constrained Decoding without Distorting LLM's Output Intentcited by 3
- 2025Prompt engineering and framework: implementation to increase code reliability based guideline for LLMscited by 1
Built on by
Not cited yet.