Saved in:
Bibliographic Details
Main Authors: Yu, Sangwon, Lee, Changmin, Lee, Hojin, Yoon, Sungroh
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2311.07430
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914829768327168
author Yu, Sangwon
Lee, Changmin
Lee, Hojin
Yoon, Sungroh
author_facet Yu, Sangwon
Lee, Changmin
Lee, Hojin
Yoon, Sungroh
contents Controlled text generation is very important for the practical use of language models because it ensures that the produced text includes only the desired attributes from a specific domain or dataset. Existing methods, however, are inapplicable to black-box models or suffer a significant trade-off between controlling the generated text and maintaining its fluency. This paper introduces the Score-based Progressive Editor (ScoPE), a novel approach designed to overcome these issues. ScoPE modifies the context at the token level during the generation process of a backbone language model. This modification guides the subsequent text to naturally include the target attributes. To facilitate this process, ScoPE employs a training objective that maximizes a target score, thoroughly considering both the ability to guide the text and its fluency. Experimental results on diverse controlled generation tasks demonstrate that ScoPE can effectively regulate the attributes of the generated text while fully utilizing the capability of the backbone large language models. Our codes are available at \url{https://github.com/ysw1021/ScoPE}.
format Preprint
id arxiv_https___arxiv_org_abs_2311_07430
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Controlled Text Generation for Black-box Language Models via Score-based Progressive Editor
Yu, Sangwon
Lee, Changmin
Lee, Hojin
Yoon, Sungroh
Computation and Language
Controlled text generation is very important for the practical use of language models because it ensures that the produced text includes only the desired attributes from a specific domain or dataset. Existing methods, however, are inapplicable to black-box models or suffer a significant trade-off between controlling the generated text and maintaining its fluency. This paper introduces the Score-based Progressive Editor (ScoPE), a novel approach designed to overcome these issues. ScoPE modifies the context at the token level during the generation process of a backbone language model. This modification guides the subsequent text to naturally include the target attributes. To facilitate this process, ScoPE employs a training objective that maximizes a target score, thoroughly considering both the ability to guide the text and its fluency. Experimental results on diverse controlled generation tasks demonstrate that ScoPE can effectively regulate the attributes of the generated text while fully utilizing the capability of the backbone large language models. Our codes are available at \url{https://github.com/ysw1021/ScoPE}.
title Controlled Text Generation for Black-box Language Models via Score-based Progressive Editor
topic Computation and Language
url https://arxiv.org/abs/2311.07430