使用反向注意和条件层归一化增强文本风格转换中的内容保持
Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalization
摘要:
文本样式转换旨在改变样式(例如,一个句子,同时保持它的内容。一种常见的方法是将给定的句子映射到没有样式的内容表示,并且内容表示被馈送到具有目标样式的解码器。以往的风格过滤方法都是在token级别上完全删除具有风格的token,从而导致内容信息的丢失。在本文中,我们提出了通过隐式地去除每个标记的反向注意的样式信息来增强内容保存,从而保留内容。此外,我们在构建目标样式表示时融合了内容信息,使其相对于内容是动态的。该方法在传递样式的过程中,不仅建立了与样式无关的内容表示,而且建立了与内容相关的样式表示。实证结果表明,我们的方法优于国家的最先进的基线的内容保存方面的大幅度。此外,它在风格转移的准确性和流畅性方面也具有竞争力。
英文摘要:
Text style transfer aims to alter the style (e.g., sentiment) of a sentence while preserving its content. A common approach is to map a given sentence to content representation that is free of style, and the content representation is fed to a decoder with a target style. Previous methods in filtering style completely remove tokens with style at the token level, which incurs the loss of content information. In this paper, we propose to enhance content preservation by implicitly removing the style information of each token with reverse attention, and thereby retain the content. Furthermore, we fuse content information when building the target style representation, making it dynamic with respect to the content. Our method creates not only style-independent content representation, but also content-dependent style representation in transferring style. Empirical results show that our method outperforms the state-of-the-art baselines by a large margin in terms of content preservation. In addition, it is also competitive in terms of style transfer accuracy and fluency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。