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

通过LLMs与多方式交互的注意力掩码实现无监督文本风格迁移

Unsupervised Text Style Transfer via LLMs and Attention Masking with Multi-way Interactions

East China Normal University(华东师范大学);Alibaba Group(阿里巴巴集团)

Lei Pan, Yunshi Lan, Yang Li, Weining Qian

AI总结:

本文针对无监督文本风格迁移,提出将LLMs与注意力掩码方法进行四种多方式交互,实验表明先提示后注意力掩码修订的组合持续优于基线及有监督系统,并在两个数据集上取得新SOTA。

摘要:

无监督文本风格迁移(UTST)已成为自然语言处理(NLP)领域中的一项关键任务,其目标是在不改变句子语义、句法或其他属性的情况下,将句子的某一种风格特征转换为另一种风格。由于本质上缺乏平行文本配对,该任务尤其具有挑战性。在现有的UTST方法中,注意力掩码方法和大语言模型(LLMs)被认为是两种开创性的方法。然而,它们分别存在生成不流畅句子和改变原始内容的缺陷。本文研究了能否有效结合这两种方法。我们提出了四种交互方式:具有调优顺序的流水线框架;从LLMs到注意力掩码模型的知识蒸馏;利用构建的平行示例进行上下文学习。我们通过实验表明,这些多方式交互可以在风格强度、内容保留和文本流畅性等特定方面提升基线模型。实验还证明,简单地先进行提示,再进行基于注意力掩码的修订,能够持续优于其他系统,包括有监督的文本风格迁移系统。在Yelp-clean和Amazon-clean数据集上,该方法分别将此前最佳平均指标提高了0.5和3.0个绝对百分点,并取得了新的SOTA结果。

英文摘要:

Unsupervised Text Style Transfer (UTST) has emerged as a critical task within the domain of Natural Language Processing (NLP), aiming to transfer one stylistic aspect of a sentence into another style without changing its semantics, syntax, or other attributes. This task is especially challenging given the intrinsic lack of parallel text pairings. Among existing methods for UTST tasks, attention masking approach and Large Language Models (LLMs) are deemed as two pioneering methods. However, they have shortcomings in generating unsmooth sentences and changing the original contents, respectively. In this paper, we investigate if we can combine these two methods effectively. We propose four ways of interactions, that are pipeline framework with tuned orders; knowledge distillation from LLMs to attention masking model; in-context learning with constructed parallel examples. We empirically show these multi-way interactions can improve the baselines in certain perspective of style strength, content preservation and text fluency. Experiments also demonstrate that simply conducting prompting followed by attention masking-based revision can consistently surpass the other systems, including supervised text style transfer systems. On Yelp-clean and Amazon-clean datasets, it improves the previously best mean metric by 0.5 and 3.0 absolute percentages respectively, and achieves new SOTA results.

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

↑