mlsanityData to 14 Oct 2026

Guaranteed Generation from Large Language Models

arXiv 2410.06716 ↗First posted 9 Oct 2024cs.CLcited by 7

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  6. 2023Mistral 7Bcited by 3,164
  7. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
  8. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  9. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  10. 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 759
  11. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
  12. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
26 more
  1. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
  2. 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
  3. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  4. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  5. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 237
  6. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  7. 2023Controlled Decoding from Language Modelscited by 135
  8. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 129
  9. 2023Aligning Language Models with Preferences through f-divergence Minimizationcited by 120
  10. 2020A Distributional Approach to Controlled Text Generationcited by 119
  11. 2023Amortizing intractable inference in large language modelscited by 97
  12. 2022On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgettingcited by 82
  13. 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
  14. 2023Tractable Control for Autoregressive Language Generationcited by 65
  15. 2020Limitations of Autoregressive Models and Their Alternativescited by 55
  16. 2024Transfer Q Star: Principled Decoding for LLM Alignmentcited by 48
  17. 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
  18. 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
  19. 2021Controlling Conditional Language Models without Catastrophic Forgettingcited by 32
  20. 2022DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generationcited by 30
  21. 2024Adaptable Logical Control for Large Language Modelscited by 30
  22. 2024HyperCLOVA X Technical Reportcited by 18
  23. 2019Distributional Reinforcement Learning for Energy-Based Sequential Modelscited by 17
  24. 2024AdvisorQA: Towards Helpful and Harmless Advice-seeking Question Answering with Collective Intelligencecited by 12
  25. 2023disco: a toolkit for Distributional Control of Generative Modelscited by 3
  26. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 3.

7 papers.