Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning
Zheng, Chujie, Ke, Pei, Zhang, Zheng, Huang, Minlie
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jun-5-2023
- Country:
- Arctic Ocean > Barents Sea (0.04)
- Asia
- China > Beijing
- Beijing (0.04)
- Middle East > Palestine (0.04)
- China > Beijing
- Europe
- North America > United States
- California > San Francisco County
- San Francisco (0.04)
- Connecticut > New Haven County
- New Haven (0.04)
- California > San Francisco County
- Pacific Ocean (0.04)
- Genre:
- Research Report (1.00)
- Industry:
- Government > Military
- Navy (0.68)
- Leisure & Entertainment (1.00)
- Media > Music (0.67)
- Government > Military
- Technology: