Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning
Preprint
Abstract
It has always been an important yet challenging problem to control language models to avoid generating texts with undesirable attributes, such as toxic language and unnatural repetition. We introduce Click for controllable text generation, which needs no modification to the model architecture and facilitates out-of-the-box use of trained models. It employs a contrastive loss on sequence likelihood, which fundamentally decreases the generation probability of negative samples (i.e., generations with undesirable attributes). It also adopts a novel likelihood ranking-based strategy to construct contrastive samples from model generations. On the tasks of language detoxification, sentiment steering, and repetition reduction, we show that Click outperforms strong baselines of controllable text generation and demonstrate the superiority of Click's sample construction strategy.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- AugESC: Dialogue Augmentation with Large Language Models for Emotional Support Conversation2023
- The CRINGE Loss: Learning what language not to model2023
- Director: Generator-Classifiers For Supervised Language Modeling2022
- Red Teaming Language Models with Language Models2022
- SimCSE: Simple Contrastive Learning of Sentence Embeddings2021
- Recipes for Building an Open-Domain Chatbot2021
- DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Experts2021
- FUDGE: Controlled Text Generation With Future Discriminators2021
- Bot-Adversarial Dialogue for Safe Conversational Agents2021
- Momentum Contrast for Unsupervised Visual Representation Learning2020