DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Experts
Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A. Smith, Yejin Choi
Abstract
Despite recent advances in natural language generation, it remains challenging to control attributes of generated text. We propose DEX-PERTS: Decoding-time Experts, a decodingtime method for controlled text generation that combines a pretrained language model with "expert" LMs and/or "anti-expert" LMs in a product of experts. Intuitively, under the ensemble, tokens only get high probability if they are considered likely by the experts and unlikely by the anti-experts. We apply DEXPERTS to language detoxification and sentiment-controlled generation, where we outperform existing controllable generation methods on both automatic and human evaluations. Moreover, because DEXPERTS operates only on the output of the pretrained LM, it is effective with (anti-)experts of smaller size, including when operating on GPT-3. Our work highlights the promise of tuning small LMs on text with (un)desirable attributes for efficient decoding-time steering.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
141 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Plug and Play Language Models: A Simple Approach to Controlled Text Generation cites The Curious Case of Neural Text Degeneration
- QUARK: Controllable Text Generation with Reinforced Unlearning cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- QUARK: Controllable Text Generation with Reinforced Unlearning cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- QUARK: Controllable Text Generation with Reinforced Unlearning cites Language Models are Few-Shot Learners
- QUARK: Controllable Text Generation with Reinforced Unlearning cites The Curious Case of Neural Text Degeneration
- Fine-Grained Human Feedback Gives Better Rewards for Language Model Training cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Fine-Grained Human Feedback Gives Better Rewards for Language Model Training cites QUARK: Controllable Text Generation with Reinforced Unlearning
- Fine-Grained Human Feedback Gives Better Rewards for Language Model Training cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Diffusion-LM Improves Controllable Text Generation cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Diffusion-LM Improves Controllable Text Generation cites Language Models are Few-Shot Learners
- Diffusion-LM Improves Controllable Text Generation cites The Curious Case of Neural Text Degeneration
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites Language Models are Few-Shot Learners
- Generating Training Data with Language Models: Towards Zero-Shot Language Understanding cites The Curious Case of Neural Text Degeneration
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing cites QUARK: Controllable Text Generation with Reinforced Unlearning
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing cites RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing cites Language Models are Few-Shot Learners
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites Plug and Play Language Models: A Simple Approach to Controlled Text Generation
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models cites The Curious Case of Neural Text Degeneration
- Language Models are Few-Shot Learners cites The Curious Case of Neural Text Degeneration
Cited by top-tier papers141
- Diffusion-LM Improves Controllable Text GenerationXiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang et al.NeurIPS 2022 · 1,546 citations
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive CritiquingZhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen et al.ICLR 2024 · 699 citations
- Fine-Grained Human Feedback Gives Better Rewards for Language Model TrainingZeqiu Wu, Yushi Hu, Weijia Shi, Nouha Dziri et al.NeurIPS 2023 · 516 citations
- Generating Training Data with Language Models: Towards Zero-Shot Language UnderstandingYu Meng, Jiaxin Huang, Yu Zhang, Jiawei HanNeurIPS 2022 · 309 citations
- QUARK: Controllable Text Generation with Reinforced UnlearningXiming Lu, Sean Welleck, Jack Hessel, Liwei Jiang et al.NeurIPS 2022 · 290 citations
Builds on11
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi et al.EMNLP Findings 2020 · 692 citations
Related papers
- PREADD: Prefix-Adaptive Decoding for Controlled Text GenerationJonathan Pei, Kevin Yang, Dan KleinACL Findings 2023 · 3 citations
- Critic-Guided Decoding for Controlled Text GenerationMinbeom Kim, Hwanhee Lee, Kang Min Yoo, Joonsuk Park et al.ACL Findings 2023 · 9 citations
- GeDi: Generative Discriminator Guided Sequence GenerationBen Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar et al.EMNLP Findings 2021 · 219 citations
- Improving Controllable Text Generation with Position-Aware Weighted DecodingYuxuan Gu, Xiaocheng Feng, Sicheng Ma, Jiaming Wu et al.ACL Findings 2022 · 12 citations
- Language Model Detoxification in Dialogue with Contextualized Stance ControlJing Qian, Xifeng YanEMNLP Findings 2022
