Guaranteed Generation from Large Language Models
Not on the map. Why?
Abstract (arXiv)
As large language models (LLMs) are increasingly used across various applications, there is a growing need to control text generation to satisfy specific constraints or requirements. This raises a crucial question: Is it possible to guarantee strict constraint satisfaction in generated outputs while preserving the distribution of the original model as much as possible? We first define the ideal distribution - the one closest to the original model, which also always satisfies the expressed constraint - as the ultimate goal of guaranteed generation. We then state a fundamental limitation, namely that it is impossible to reach that goal through autoregressive training alone. This motivates the necessity of combining training-time and inference-time methods to enforce such guarantees. Based on this insight, we propose GUARD, a simple yet effective approach that combines an autoregressive proposal distribution with rejection sampling. Through GUARD's theoretical properties, we show how controlling the KL divergence between a specific proposal and the target ideal distribution simultaneously optimizes inference speed and distributional closeness. To validate these theoretical concepts, we conduct extensive experiments on two text generation settings with hard-to-satisfy constraints: a lexical constraint scenario and a sentiment reversal scenario. These experiments show that GUARD achieves perfect constraint satisfaction while almost preserving the ideal distribution with highly improved inference efficiency. GUARD provides a principled approach to enforcing strict guarantees for LLMs without compromising their generative capabilities.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 38 of its 53 references that are in the map. First posted on arXiv 9 Oct 2024.
Builds on
38 of 53 references.
References · 38
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2023Mistral 7Bcited by 3,164
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 759
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
26 more
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 237
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
- 2023Controlled Decoding from Language Modelscited by 135
- 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 129
- 2023Aligning Language Models with Preferences through f-divergence Minimizationcited by 120
- 2020A Distributional Approach to Controlled Text Generationcited by 119
- 2023Amortizing intractable inference in large language modelscited by 97
- 2022On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgettingcited by 82
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2020Limitations of Autoregressive Models and Their Alternativescited by 55
- 2024Transfer Q Star: Principled Decoding for LLM Alignmentcited by 48
- 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
- 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
- 2021Controlling Conditional Language Models without Catastrophic Forgettingcited by 32
- 2022DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generationcited by 30
- 2024Adaptable Logical Control for Large Language Modelscited by 30
- 2024HyperCLOVA X Technical Reportcited by 18
- 2019Distributional Reinforcement Learning for Energy-Based Sequential Modelscited by 17
- 2024AdvisorQA: Towards Helpful and Harmless Advice-seeking Question Answering with Collective Intelligencecited by 12
- 2023disco: a toolkit for Distributional Control of Generative Modelscited by 3
- 2023Commercialized Generative AI: A Critical Study of the Feasibility and Ethics of Generating Native Advertising Using Large Language Models in Conversational Web Searchcited by 3
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 3.
7 papers.
- 2024InfAlign: Inference-aware language model alignmentcited by 35
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attributioncited by 14
- 2025On the Limits of Test-Time Compute: Sequential Reward Filtering for Better Inferencecited by 6
- 2025Whatever Remains Must Be True: Filtering Drives Reasoning in LLMs, Shaping Diversitycited by 3
- 2026Binary Rewards and Reinforcement Learning: Fundamental Challengescited by 1
- 2025Learning to Reason in LLMs by Expectation Maximizationcited by 0
- 2026Provable Test-Time Scaling for Beam Search in LLM Reasoningcited by 0
- 2026Provable Test-Time Scaling for Beam Search in LLM Reasoning29 Sep 2026
- 2026Binary Rewards and Reinforcement Learning: Fundamental Challenges4 May 2026
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attribution8 Feb 2026
- 2025Learning to Reason in LLMs by Expectation Maximization23 Dec 2025
- 2025Whatever Remains Must Be True: Filtering Drives Reasoning in LLMs, Shaping Diversity5 Dec 2025
- 2025On the Limits of Test-Time Compute: Sequential Reward Filtering for Better Inference4 Dec 2025
- 2024InfAlign: Inference-aware language model alignment27 Dec 2024