mlsanityData to 7 Oct 2026

A Plug-and-Play Method for Controlled Text Generation

arXiv 2109.09707 ↗First posted 20 Sep 2021cs.CL cs.AIcited by 55

Not on the map. Why?

Abstract (arXiv)

Large pre-trained language models have repeatedly shown their ability to produce fluent text. Yet even when starting from a prompt, generation can continue in many plausible directions. Current decoding methods with the goal of controlling generation, e.g., to ensure specific words are included, either require additional models or fine-tuning, or work poorly when the task at hand is semantically unconstrained, e.g., story generation. In this work, we present a plug-and-play decoding method for controlled language generation that is so simple and intuitive, it can be described in a single sentence: given a topic or keyword, we add a shift to the probability distribution over our vocabulary towards semantically similar words. We show how annealing this distribution can be used to impose hard constraints on language generation, something no other plug-and-play method is currently able to do with SOTA language generators. Despite the simplicity of this approach, we see it works incredibly well in practice: decoding from GPT-2 leads to diverse and fluent sentences while guaranteeing the appearance of given guide words. We perform two user studies, revealing that (1) our method outperforms competing methods in human evaluations; and (2) forcing the guide words to appear in the generated text has no impact on the fluency of the generated text.

Key facts. Cited by 55 papers in the map (data through 7 Oct 2026). Builds on 29 of its 46 references that are in the map. First posted on arXiv 20 Sep 2021.

Builds on

29 of 46 references.

References · 29

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  4. 2016Pointer Sentinel Mixture Modelscited by 2,992
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  6. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  7. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  8. 2018Hierarchical Neural Story Generationcited by 1,182
  9. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
  10. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  11. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  12. 2019Neural Text Generation with Unlikelihood Trainingcited by 489
17 more
  1. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
  2. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
  3. 2016SeqGAN: Sequence Generative Adversarial Nets with Policy Gradientcited by 375
  4. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
  5. 2016How NOT To Evaluate Your Dialogue System: An Empirical Study of Unsupervised Evaluation Metrics for Dialogue Response Generationcited by 356
  6. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
  7. 2018Plan-And-Write: Towards Better Automatic Storytellingcited by 232
  8. 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 181
  9. 2018Learning to Write with Cooperative Discriminatorscited by 119
  10. 2018Correcting Length Bias in Neural Machine Translationcited by 119
  11. 2020If beam search is the answer, what was the question?cited by 114
  12. 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 93
  13. 2020MEGATRON-CNTRL: Controllable Story Generation with External Knowledge Using Large-Scale Language Modelscited by 74
  14. 2020Sparse Text Generationcited by 24
  15. 2015Backward and Forward Language Modeling for Constrained Sentence Generationcited by 9
  16. 2013Keyphrase Cloud Generation of Broadcast Newscited by 7
  17. 2021Changing the Mind of Transformers for Topically-Controllable Language Generationcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 17; 2023: 15; 2024: 13; 2025: 7; 2026: 3.

55 papers.

Sort:

By area:

  1. 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
  2. 2022SSD-LM: Semi-autoregressive Simplex-based Diffusion Language Model for Text Generation and Modular Controlcited by 191
  3. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
  4. 2022Pretrained Language Models for Text Generation: A Surveycited by 121
  5. 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
  6. 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
  7. 2022Of Human Criteria and Automatic Metrics: A Benchmark of the Evaluation of Story Generationcited by 73
  8. 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
  9. 2022DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generationcited by 46
  10. 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlocited by 45
  11. 2022Tuning Language Models as Training Data Generators for Augmentation-Enhanced Few-Shot Learningcited by 36
  12. 2024Gradient-Based Language Model Red Teamingcited by 33
38 more
  1. 2023Controllable Mixed-Initiative Dialogue Generation through Promptingcited by 32
  2. 2023Elastic Weight Removal for Faithful and Abstractive Dialogue Generationcited by 29
  3. 2023Mixture of Soft Prompts for Controllable Data Generationcited by 23
  4. 2022Open-world Story Generation with Structured Knowledge Enhancement: A Comprehensive Surveycited by 21
  5. 2023Learning to Simulate Natural Language Feedback for Interactive Semantic Parsingcited by 19
  6. 2022Integrating Vectorized Lexical Constraints for Neural Machine Translationcited by 9
  7. 2023Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studiocited by 9
  8. 2024Two Heads Are Better Than One: Integrating Knowledge from Knowledge Graphs and Large Language Models for Entity Alignmentcited by 8
  9. 2024Generalists vs. Specialists: Evaluating LLMs on Highly-Constrained Biophysical Sequence Optimization Taskscited by 8
  10. 2022"What makes a question inquisitive?" A Study on Type-Controlled Inquisitive Question Generationcited by 7
  11. 2023Speaking the Language of Your Listener: Audience-Aware Adaptation via Plug-and-Play Theory of Mindcited by 7
  12. 2024Large Language Models can be Strong Self-Detoxifierscited by 7
  13. 2024Creativity in AI: Progresses and Challengescited by 7
  14. 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilitiescited by 7
  15. 2023Plug-and-Play Document Modules for Pre-trained Modelscited by 6
  16. 2023Emotion-Conditioned Text Generation through Automatic Prompt Optimizationcited by 6
  17. 2024Paired Autoencoders for Likelihood-free Estimation in Inverse Problemscited by 6
  18. 2024FreeCtrl: Constructing Control Centers with Feedforward Layers for Learning-Free Controllable Text Generationcited by 6
  19. 2023ZeroGen: Zero-shot Multimodal Controllable Text Generation with Multiple Oraclescited by 5
  20. 2022Uniform Complexity for Text Generationcited by 4
  21. 2022DICTDIS: Dictionary Constrained Disambiguation for Improved NMTcited by 4
  22. 2022PCFG-based Natural Language Interface Improves Generalization for Controlled Text Generationcited by 4
  23. 2023P^3SUM: Preserving Author's Perspective in News Summarization with Diffusion Language Modelscited by 4
  24. 2024Harnessing the Plug-and-Play Controller by Promptingcited by 4
  25. 2023Text-Only Training for Visual Storytellingcited by 3
  26. 2024DECIDER: A Dual-System Rule-Controllable Decoding Framework for Language Generationcited by 2
  27. 2024Continuous Language Model Interpolation for Dynamic and Controllable Text Generationcited by 2
  28. 2025Portable Reward Tuning: Towards Reusable Fine-Tuning across Different Pretrained Modelscited by 2
  29. 2023Variator: Accelerating Pre-trained Models with Plug-and-Play Compression Modulescited by 1
  30. 2024Kahaani: A Multimodal Co-Creative Storytelling Systemcited by 1
  31. 2024A Lightweight Multi Aspect Controlled Text Generation Solution For Large Language Modelscited by 1
  32. 2025Mimicking How Humans Interpret Out-of-Context Sentences Through Controlled Toxicity Decodingcited by 1
  33. 2025FLIP Reasoning Challengecited by 1
  34. 2025Learning to Align: Addressing Character Frequency Distribution Shifts in Handwritten Text Recognitioncited by 1
  35. 2022Efficient and Training-Free Control of Language Generationcited by 0
  36. 2022Topic-Controllable Summarization: Topic-Aware Evaluation and Transformer Methodscited by 0
  37. 2023Cascaded Beam Search: Plug-and-Play Terminology-Forcing For Neural Machine Translationcited by 0
  38. 2023Label Agnostic Pre-training for Zero-shot Text Classificationcited by 0

50 most cited of 55 All 55 (JSON)