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

扩散引导的语言建模

Diffusion Guided Language Modeling

Cornell University(康奈尔大学)

Justin Lovelace, Varsha Kishore, Yiwei Chen, Kilian Q. Weinberger

AI总结:

本文提出用引导扩散模型生成潜在提议来引导自回归语言模型,在保持流畅性的同时实现即插即用的属性控制,并在多个基准数据集上优于以往方法。

摘要:

当前的语言模型在文本生成方面表现出卓越的能力。然而,在许多应用中,人们希望对生成语言的属性(如情感或毒性)进行控制——理想情况下应针对每个具体用例和目标受众进行定制。对于自回归语言模型,现有的引导方法容易在生成过程中出现级联的解码错误,从而降低性能。相比之下,文本扩散模型可以很容易地通过例如一个简单的线性情感分类器进行引导——但它们的困惑度明显高于自回归方法。在本文中,我们使用一个受引导的扩散模型来生成潜在提议,从而引导自回归语言模型生成具有所需属性的文本。我们的模型继承了自回归方法无与伦比的流畅性以及扩散方法的即插即用灵活性。我们表明,在广泛的基准数据集上,该模型优于以往的即插即用引导方法。此外,在我们的框架中控制一个新属性只需训练一个逻辑回归分类器。

英文摘要:

Current language models demonstrate remarkable proficiency in text generation. However, for many applications it is desirable to control attributes, such as sentiment, or toxicity, of the generated language -- ideally tailored towards each specific use case and target audience. For auto-regressive language models, existing guidance methods are prone to decoding errors that cascade during generation and degrade performance. In contrast, text diffusion models can easily be guided with, for example, a simple linear sentiment classifier -- however they do suffer from significantly higher perplexity than auto-regressive alternatives. In this paper we use a guided diffusion model to produce a latent proposal that steers an auto-regressive language model to generate text with desired properties. Our model inherits the unmatched fluency of the auto-regressive approach and the plug-and-play flexibility of diffusion. We show that it outperforms previous plug-and-play guidance methods across a wide range of benchmark data sets. Further, controlling a new attribute in our framework is reduced to training a single logistic regression classifier.

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

↑