DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Experts
Preprint
Abstract
Despite recent advances in natural language generation, it remains challenging to control attributes of generated text. We propose DExperts: Decoding-time Experts, a decoding-time 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.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- On the Dangers of Stochastic Parrots2021
- Measurement and Fairness2021
- Plug-and-Play Conversational Models2020
- Transformers: State-of-the-Art Natural Language Processing2020
- Towards Controllable Biases in Language Generation2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- Social Bias Frames: Reasoning about Social and Power Implications of Language2020
- Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks2020
- Social Biases in NLP Models as Barriers for Persons with Disabilities2020
- Image-Based Recommendations on Styles and Substitutes2015