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

基于Prefix-Tuning的无监督文本风格迁移

Prefix-Tuning Based Unsupervised Text Style Transfer

Peking University(北京大学);Guangming Laboratory(光明实验室);Tencent(腾讯)

Huiyu Mai, Wenhao Jiang, Zhihong Deng

AI总结:

本文提出一种基于Prefix-Tuning的无监督文本风格迁移方法,通过构建共享、风格和内容三种前缀并结合递归策略,有效提升了模型性能并超越了现有基线。

摘要:

无监督文本风格迁移旨在训练一个生成模型,在不使用任何平行数据的情况下改变输入句子的风格,同时保留其内容。在本文中,我们利用强大的预训练大型语言模型,并提出了一种新的基于prefix-tuning的无监督文本风格迁移方法。我们构建了三种不同的前缀,即shared prefix、style prefix和content prefix,分别用于编码任务特定信息、目标风格以及输入句子的内容信息。与先前工作使用的embeddings相比,所提出的前缀能为模型提供更丰富的信息。此外,我们在风格迁移过程中采用了一种递归使用语言模型的策略。该策略为输入句子与GPT-2之间的交互提供了更有效的方式,帮助模型构建更具信息量的前缀,从而有助于提升性能。在知名数据集上的评估表明,我们的方法优于state-of-the-art基线。为了更深入地理解所提出的方法,我们还提供了消融实验的结果、分析以及人类的主观评估。

英文摘要:

Unsupervised text style transfer aims at training a generative model that can alter the style of the input sentence while preserving its content without using any parallel data. In this paper, we employ powerful pre-trained large language models and present a new prefix-tuning-based method for unsupervised text style transfer. We construct three different kinds of prefixes, i.e., \textit{shared prefix, style prefix}, and \textit{content prefix}, to encode task-specific information, target style, and the content information of the input sentence, respectively. Compared to embeddings used by previous works, the proposed prefixes can provide richer information for the model. Furthermore, we adopt a recursive way of using language models in the process of style transfer. This strategy provides a more effective way for the interactions between the input sentence and GPT-2, helps the model construct more informative prefixes, and thus, helps improve the performance. Evaluations on the well-known datasets show that our method outperforms the state-of-the-art baselines. Results, analysis of ablation studies, and subjective evaluations from humans are also provided for a deeper understanding of the proposed method.

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

↑