arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.10938cs.CL
收藏

用于受控文本生成的批评引导解码

Critic-Guided Decoding for Controlled Text Generation

Seoul National University(首尔国立大学);NAVER AI Lab(NAVER人工智能实验室);University of Richmond(里士满大学)

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

摘要:

引导语言生成朝向目标或远离不期望的内容一直是利用语言模型(LM)的长期目标。最近的工作表明,强化学习和加权解码的有效方法,以实现更高水平的语言控制和质量的利弊。在这项工作中,我们提出了一种新的批评解码方法控制语言生成(CriticControl),结合了强化学习和加权解码的优势。具体来说,我们采用演员批评的框架训练LM转向评论家从不可微的奖励模型。类似于加权解码,我们的方法冻结了语言模型,并使用所谓的评论家操纵输出令牌分布,提高训练效率和稳定性。我们的方法上的三个控制生成任务,即主题控制,情绪控制和解毒的评估表明,我们的方法比以前的方法产生更多的连贯性和良好的控制文本。此外,CriticControl在zero-shot设置中展示了卓越的泛化能力。人体评估研究也证实了我们的发现。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑