Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Critic-Guided Decoding for Controlled Text Generation

About

Steering language generation towards objectives or away from undesired content has been a long-standing goal in utilizing language models (LM). Recent work has demonstrated reinforcement learning and weighted decoding as effective approaches to achieve a higher level of language control and quality with pros and cons. In this work, we propose a novel critic decoding method for controlled language generation (CriticControl) that combines the strengths of reinforcement learning and weighted decoding. Specifically, we adopt the actor-critic framework to train an LM-steering critic from non-differentiable reward models. And similar to weighted decoding, our method freezes the language model and manipulates the output token distribution using called critic, improving training efficiency and stability. Evaluation of our method on three controlled generation tasks, namely topic control, sentiment control, and detoxification, shows that our approach generates more coherent and well-controlled texts than previous methods. In addition, CriticControl demonstrates superior generalization ability in zero-shot settings. Human evaluation studies also corroborate our findings.

Minbeom Kim, Hwanhee Lee, Kang Min Yoo, Joonsuk Park, Hwaran Lee, Kyomin Jung• 2022

Related benchmarks

TaskDatasetResultRank
Sentiment Control Language GenerationIMDB
Perplexity12.97
14
Topic control language generationTopic Control On-domain topics GPT2 (test)
Success Rate94
8
Topic control language generationGPT2 Topic Control Zero-shot topics
Success Rate73
1
Showing 3 of 3 rows

Other info

Follow for update