An Invariant Learning Characterization of Controlled Text Generation
Not on the map. Why?
Abstract (arXiv)
Controlled generation refers to the problem of creating text that contains stylistic or semantic attributes of interest. Many approaches reduce this problem to training a predictor of the desired attribute. For example, researchers hoping to deploy a large language model to produce non-toxic content may use a toxicity classifier to filter generated text. In practice, the generated text to classify, which is determined by user prompts, may come from a wide range of distributions. In this paper, we show that the performance of controlled generation may be poor if the distributions of text in response to user prompts differ from the distribution the predictor was trained on. To address this problem, we cast controlled generation under distribution shift as an invariant learning problem: the most effective predictor should be invariant across multiple text environments. We then discuss a natural solution that arises from this characterization and propose heuristics for selecting natural environments. We study this characterization and the proposed method empirically using both synthetic and real data. Experiments demonstrate both the challenge of distribution shift in controlled generation and the potential of invariance methods in this setting.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 60 of its 72 references that are in the map. First posted on arXiv 31 May 2023.
Builds on
60 of 72 references.
References · 60
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2019Invariant Risk Minimizationcited by 1,854
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
38 more
- 2020In Search of Lost Domain Generalizationcited by 1,054
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
- 2015Causal inference using invariant prediction: identification and confidence intervalscited by 536
- 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
- 2020Underspecification Presents Challenges for Credibility in Modern Machine Learningcited by 496
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
- 2019On Measuring Social Biases in Sentence Encoderscited by 398
- 2015Return of Frustratingly Easy Domain Adaptationcited by 391
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2016SeqGAN: Sequence Generative Adversarial Nets with Policy Gradientcited by 376
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 337
- 2019Measuring Bias in Contextualized Word Representationscited by 276
- 2017Toward Controlled Generation of Textcited by 272
- 2021Annotators with Attitudes: How Annotator Beliefs And Identities Bias Toxic Language Detectioncited by 264
- 2020The Risks of Invariant Risk Minimizationcited by 262
- 2021Towards Causal Representation Learningcited by 209
- 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 207
- 2019Gender Bias in Contextualized Word Embeddingscited by 203
- 2020Social Biases in NLP Models as Barriers for Persons with Disabilitiescited by 182
- 2017Deep Learning for Hate Speech Detection in Tweetscited by 180
- 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
- 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 178
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2017Invariant Causal Prediction for Nonlinear Modelscited by 140
- 2021On Calibration and Out-of-domain Generalizationcited by 134
- 2017Domain Adaptation by Using Causal Inference to Predict Invariant Conditional Distributionscited by 126
- 2021Detoxifying Language Models Risks Marginalizing Minority Voicescited by 107
- 2020A Review of Single-Source Deep Unsupervised Visual Domain Adaptationcited by 96
- 2019Evaluating the Underlying Gender Bias in Contextualized Word Embeddingscited by 94
- 2020Exploring Controllable Text Generation Techniquescited by 55
- 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 55
- 2022A Causal Lens for Controllable Text Generationcited by 45
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2023: 1; 2024: 6; 2025: 0; 2026: 2.
9 papers.
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25
- 2024Text Generation: A Systematic Literature Review of Tasks, Evaluation, and Challengescited by 18
- 2026Evaluating Alignment of Behavioral Dispositions in LLMscited by 7
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Modelscited by 1
- 2024Actor Identification in Discourse: A Challenge for LLMs?cited by 1
- 2024Multi-environment Topic Modelscited by 1
- 2024Linguistically-Controlled Paraphrase Generationcited by 1
- 2024First Place Solution of 2023 Global Artificial Intelligence Technology Innovation Competition Track 1cited by 0
- 2026Towards Context-Invariant Safety Alignment for Large Language Modelscited by 0
- 2026Towards Context-Invariant Safety Alignment for Large Language Models20 May 2026
- 2026Evaluating Alignment of Behavioral Dispositions in LLMs11 Feb 2026
- 2024Linguistically-Controlled Paraphrase Generation31 Oct 2024
- 2024Multi-environment Topic Models31 Oct 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024
- 2024First Place Solution of 2023 Global Artificial Intelligence Technology Innovation Competition Track 11 Jul 2024
- 2024Text Generation: A Systematic Literature Review of Tasks, Evaluation, and Challenges24 May 2024
- 2024Actor Identification in Discourse: A Challenge for LLMs?1 Feb 2024
- 2023Automatic Construction of a Korean Toxic Instruction Dataset for Ethical Tuning of Large Language Models30 Nov 2023