arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.07276cs.CLcs.LG
收藏

分类器是可控文本生成的更好专家

Classifiers are Better Experts for Controllable Text Generation

Tinkoff(Tinkoff公司)

Askhat Sitdikov, Nikita Balagansky, Daniil Gavrilov, Alexander Markov

摘要:

本文提出了一种简单的方法,基于加权logits与自由形式的分类器,即CAIF抽样可控的文本生成。使用任意文本分类器,我们调整语言模型的logits的一小部分,并引导文本生成朝向或远离分类器预测。我们进行了毒性避免和情绪控制任务的实验,结果表明,所提出的方法显着优于最近的PPLM,GeDi,和DExperts的PPL和任务准确性指标的基础上生成的文本的外部分类。此外,与其他方法相比,它更容易实现和调优,并且限制和要求显著减少。

英文摘要:

This paper proposes a simple method for controllable text generation based on weighting logits with a free-form classifier, namely CAIF sampling. Using an arbitrary text classifier, we adjust a small part of a language model's logits and guide text generation towards or away from classifier prediction. We experimented with toxicity avoidance and sentiment control tasks and showed that the proposed method significantly outperforms recent PPLM, GeDi, and DExperts on PPL and task accuracy metrics based on the external classifier of generated texts. In addition, compared to other approaches, it is easier to implement and tune and has significantly fewer restrictions and requirements.

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

↑