Diffusion Guided Language Modeling

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lovelace, Justin, Kishore, Varsha, Chen, Yiwei, Weinberger, Kilian Q.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914905686278144
author Lovelace, Justin
Kishore, Varsha
Chen, Yiwei
Weinberger, Kilian Q.
author_facet Lovelace, Justin
Kishore, Varsha
Chen, Yiwei
Weinberger, Kilian Q.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_04220
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Diffusion Guided Language Modeling
Lovelace, Justin
Kishore, Varsha
Chen, Yiwei
Weinberger, Kilian Q.
Computation and Language
Machine Learning
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.
title Diffusion Guided Language Modeling
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2408.04220