带对比前缀的可控自然语言生成
Controllable Natural Language Generation with Contrastive Prefixes
摘要:
为了指导大型预训练语言模型(LM)的生成,以前的工作集中在直接微调语言模型或利用属性映射。在这项工作中,我们提出了一种新的轻量级框架可控GPT 2生成,它利用一组小的属性特定的向量,称为前缀,引导自然语言的生成。不同于前缀调整,其中每个前缀是独立训练,我们考虑到前缀之间的关系,训练多个前缀同时进行。我们提出了一种新的监督方法和一种非监督方法来训练用于单方面控制的前缀,而这两种方法的组合可以实现多方面控制。单方面和多方面控制的实验结果表明,我们的方法可以引导生成所需的属性,同时保持高的语言质量。
英文摘要:
To guide the generation of large pretrained language models (LM), previous work has focused on directly fine-tuning the language model or utilizing an attribute discriminator. In this work, we propose a novel lightweight framework for controllable GPT2 generation, which utilizes a set of small attribute-specific vectors, called prefixes, to steer natural language generation. Different from prefix-tuning, where each prefix is trained independently, we take the relationship among prefixes into consideration and train multiple prefixes simultaneously. We propose a novel supervised method and also an unsupervised method to train the prefixes for single-aspect control while the combination of these two methods can achieve multi-aspect control. Experimental results on both single-aspect and multi-aspect control show that our methods can guide generation towards the desired attributes while keeping high linguistic quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。