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

属性对齐:控制从预训练的语言模型生成文本

Attribute Alignment: Controlling Text Generation from Pre-trained Language Models

University of California, Davis(加州大学戴维斯分校);Columbia University(哥伦比亚大学)

Dian Yu, Zhou Yu, Kenji Sagae

摘要:

大语言模型受益于大量未标记文本的训练,这使它们具有越来越流畅和多样化的生成能力。然而,使用这些模型来生成考虑目标属性(如情感极性或特定主题)的文本仍然是一个挑战。我们提出了一个简单而灵活的方法来控制文本生成对齐解开属性表示。与最近训练一个正则表达式来扰动属性的标记级别分布的努力相反,我们使用相同的数据来学习对齐函数,以引导预训练的、非控制的语言模型生成具有目标属性的文本,而不改变原始语言模型参数。我们评估了我们的方法的情绪和主题控制的生成,并显示出比以前的方法大的性能增益,同时保持流畅性和多样性。

英文摘要:

Large language models benefit from training with a large amount of unlabeled text, which gives them increasingly fluent and diverse generation capabilities. However, using these models for text generation that takes into account target attributes, such as sentiment polarity or specific topics, remains a challenge. We propose a simple and flexible method for controlling text generation by aligning disentangled attribute representations. In contrast to recent efforts on training a discriminator to perturb the token level distribution for an attribute, we use the same data to learn an alignment function to guide the pre-trained, non-controlled language model to generate texts with the target attribute without changing the original language model parameters. We evaluate our method on sentiment- and topic-controlled generation, and show large performance gains over previous methods while retaining fluency and diversity.

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

↑