DisCup:用于可控文本生成的鉴别器合作非似然提示微调
DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generation
摘要:
在属性可控的文本生成中,使用超大型的临时语言模型(CLMs)进行快速学习是一种很有前途的方法。然而,香草提示微调往往模仿训练语料库的控制属性以外的特征,导致泛化能力差。此外,它不太能够捕捉不同属性之间的关系,进一步限制了控制性能。在本文中,我们提出了一种新的CTG方法,即DisCup,它结合了属性知识的搜索引擎优化的控制提示,引导冻结CLM产生特定属性的文本。具体地说,冻结CLM模型,能够产生大量的文本,首先被用来产生下一个令牌候选人的基础上的上下文,以确保令牌的多样性进行预测。然后,我们利用属性搜索器从这些候选者中选择期望/不期望的令牌,提供属性间知识。最后,我们通过提示微调的非似然目标来桥接上述两个特性。大量的实验结果表明,DisCup可以实现一个新的国家的最先进的控制性能,同时保持一个高效和高质量的文本生成,只依赖于大约10个虚拟令牌。
英文摘要:
Prompt learning with immensely large Casual Language Models (CLMs) has been shown promising for attribute-controllable text generation (CTG). However, vanilla prompt tuning tends to imitate training corpus characteristics beyond the control attributes, resulting in a poor generalization ability. Moreover, it is less able to capture the relationship between different attributes, further limiting the control performance. In this paper, we propose a new CTG approach, namely DisCup, which incorporates the attribute knowledge of discriminator to optimize the control-prompts, steering a frozen CLM to produce attribute-specific texts. Specifically, the frozen CLM model, capable of producing multitudinous texts, is first used to generate the next-token candidates based on the context, so as to ensure the diversity of tokens to be predicted. Then, we leverage an attribute-discriminator to select desired/undesired tokens from those candidates, providing the inter-attribute knowledge. Finally, we bridge the above two traits by an unlikelihood objective for prompt-tuning. Extensive experimental results show that DisCup can achieve a new state-of-the-art control performance while maintaining an efficient and high-quality text generation, only relying on around 10 virtual tokens.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。