mlsanityData to 14 Oct 2026

Controllable Text Generation with Language Constraints

arXiv 2212.10466 ↗First posted 20 Dec 2022cs.CLcited by 18

Not on the map. Why?

Abstract (arXiv)

We consider the task of text generation in language models with constraints specified in natural language. To this end, we first create a challenging benchmark Cognac that provides as input to the model a topic with example text, along with a constraint on text to be avoided. Unlike prior work, our benchmark contains knowledge-intensive constraints sourced from databases like Wordnet and Wikidata, which allows for straightforward evaluation while striking a balance between broad attribute-level and narrow lexical-level controls. We find that even state-of-the-art language models like GPT-3 fail often on this task, and propose a solution to leverage a language model's own internal knowledge to guide generation. Our method, called CognacGen, first queries the language model to generate guidance terms for a specified topic or constraint, and uses the guidance to modify the model's token generation probabilities. We propose three forms of guidance (binary verifier, top-k tokens, textual example), and employ prefix-tuning approaches to distill the guidance to tackle diverse natural language constraints. Through extensive empirical evaluations, we demonstrate that CognacGen can successfully generalize to unseen instructions and outperform competitive baselines in generating constraint conforming text.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 25 of its 39 references that are in the map. First posted on arXiv 20 Dec 2022.

Builds on

25 of 39 references.

References · 25

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  6. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  7. 2022Red Teaming Language Models with Language Modelscited by 1,026
  8. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  9. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
  10. 2022Galactica: A Large Language Model for Sciencecited by 744
  11. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
  12. 2019Neural Text Generation with Unlikelihood Trainingcited by 503
13 more
  1. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  2. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  3. 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
  4. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
  5. 2022Generating Sequences by Learning to Self-Correctcited by 277
  6. 2019A Survey of Reinforcement Learning Informed by Natural Languagecited by 154
  7. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  8. 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 149
  9. 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 107
  10. 2018Mapping Instructions to Actions in 3D Environments with Visual Goal Predictioncited by 101
  11. 2022The CRINGE Loss: Learning what language not to modelcited by 39
  12. 2020Safe Reinforcement Learning with Natural Language Constraintscited by 23
  13. 2021Constrained Text Generation with Global Guidance -- Case Study on CommonGencited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 9; 2024: 4; 2025: 4; 2026: 1.

18 papers.

Sort:

By area:

  1. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 175
  2. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
  3. 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 70
  4. 2023Can Large Language Models Understand Real-World Complex Instructions?cited by 69
  5. 2024CFBench: A Comprehensive Constraints-Following Benchmark for LLMscited by 67
  6. 2023Prompt Engineering a Prompt Engineercited by 53
  7. 2023Controlled Text Generation via Language Model Arithmeticcited by 51
  8. 2023Inference-Time Policy Adapters (IPA): Tailoring Extreme-Scale LMs without Fine-tuningcited by 33
  9. 2024From Complex to Simple: Enhancing Multi-Constraint Complex Instruction Following Ability of Large Language Modelscited by 27
  10. 2025LLM Probability Concentration: How Alignment Shrinks the Generative Horizoncited by 26
  11. 2023FollowEval: A Multi-Dimensional Benchmark for Assessing the Instruction-Following Capability of Large Language Modelscited by 12
  12. 2023Improving Seq2Seq Grammatical Error Correction via Decoding Interventionscited by 8
6 more
  1. 2024Controllable Text Generation in the Instruction-Tuning Eracited by 7
  2. 2023Unlocking Anticipatory Text Generation: A Constrained Approach for Large Language Models Decodingcited by 4
  3. 2025Semantic Probabilistic Control of Language Modelscited by 4
  4. 2025UltraGen: Extremely Fine-grained Controllable Generation via Attribute Reconstruction and Global Preference Optimizationcited by 1
  5. 2025Towards Efficient and Effective Alignment of Large Language Modelscited by 0
  6. 2026Large Language Models Can Follow Instructions, But Not Many at Once: Phase Transitions in Compositional Constraint Satisfactioncited by 0