Click:基于序列似然对比学习的可控文本生成
Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning
AI总结:
本文提出 Click,通过序列似然对比损失和似然排序样本构建策略,在不修改架构的情况下提升语言模型的可控文本生成效果。
摘要:
控制语言模型以避免生成具有不良属性的文本(例如有毒语言和不自然的重复),一直是一个重要但具有挑战性的问题。我们提出用于可控文本生成的 Click,它无需修改模型架构,并便于训练后模型开箱即用。该方法对序列似然采用对比损失,从根本上降低负样本(即具有不良属性的生成结果)的生成概率。它还采用一种新颖的基于似然排序的策略,从模型生成结果中构建对比样本。在语言去毒、情感引导和减少重复任务上,我们表明 Click 优于可控文本生成的强基线,并证明了 Click 样本构建策略的优越性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。