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

基于提示的文本风格迁移编辑方法

Prompt-Based Editing for Text Style Transfer

Alberta Machine Intelligence Institute (Amii)(阿尔伯塔机器智能研究所(Amii));University of Alberta(阿尔伯塔大学)

Guoqing Luo, Yu Tong Han, Lili Mou, Mauajama Firdaus

AI总结:

本文提出一种基于提示的编辑方法,将文本风格迁移的生成问题转化为分类问题,通过词级编辑搜索最大化风格得分,在三个基准上大幅超越参数多20倍的现有系统。

摘要:

近年来,提示方法已被探索用于文本风格迁移,其中使用文本提示来查询预训练语言模型,以自回归方式逐词生成风格迁移后的文本。然而,这种生成过程可控性较差,且早期的预测错误可能影响后续的词预测。在本文中,我们提出了一种基于提示的编辑方法用于文本风格迁移。具体来说,我们提示预训练语言模型进行风格分类,并利用分类概率计算风格得分。然后,我们通过词级编辑执行离散搜索,以最大化针对风格迁移任务的综合评分函数。通过这种方式,我们将基于提示的生成问题转化为分类问题,这是一个无需训练的过程,并且比句子的自回归生成更具可控性。在我们的实验中,我们在三个风格迁移基准数据集上进行了自动和人工评估,结果表明我们的方法大幅优于参数多20倍的最先进系统。额外的实证分析进一步证明了我们方法的有效性。

英文摘要:

Prompting approaches have been recently explored in text style transfer, where a textual prompt is used to query a pretrained language model to generate style-transferred texts word by word in an autoregressive manner. However, such a generation process is less controllable and early prediction errors may affect future word predictions. In this paper, we present a prompt-based editing approach for text style transfer. Specifically, we prompt a pretrained language model for style classification and use the classification probability to compute a style score. Then, we perform discrete search with word-level editing to maximize a comprehensive scoring function for the style-transfer task. In this way, we transform a prompt-based generation problem into a classification one, which is a training-free process and more controllable than the autoregressive generation of sentences. In our experiments, we performed both automatic and human evaluation on three style-transfer benchmark datasets, and show that our approach largely outperforms the state-of-the-art systems that have 20 times more parameters. Additional empirical analyses further demonstrate the effectiveness of our approach.

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

↑