arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.07343cs.CLcs.LG
收藏

用于风格迁移的替换语言模型

Replacing Language Model for Style Transfer

Tencent AI Lab(腾讯AI实验室);Columbia University(哥伦比亚大学)

Pengyu Cheng, Ruineng Li

AI总结:

提出用于文本风格迁移的替换语言模型 RLM,结合自回归与非自回归生成,并通过 token 级风格-内容解耦提升风格控制和迁移效果。

摘要:

我们提出了替换语言模型(RLM),这是一个用于文本风格迁移(TST)的序列到序列语言建模框架。我们的方法以自回归方式将源句子中的每个 token 替换为具有相似含义但采用目标风格的文本片段。新片段通过非自回归掩码语言模型生成,该模型能够更好地保留被替换 token 的局部上下文含义。这种 RLM 生成方案汇集了自回归模型的灵活性与非自回归模型的准确性,弥合了句子级和词级风格迁移方法之间的差距。为了更精确地控制生成风格,我们在 RLM 的隐藏表示上进行了 token 级风格-内容解耦。在真实世界文本数据集上的实验结果表明,与其他 TST 基线相比,RLM 具有有效性。代码位于 https://github.com/Linear95/RLM。

英文摘要:

We introduce replacing language model (RLM), a sequence-to-sequence language modeling framework for text style transfer (TST). Our method autoregressively replaces each token of the source sentence with a text span that has a similar meaning but in the target style. The new span is generated via a non-autoregressive masked language model, which can better preserve the local-contextual meaning of the replaced token. This RLM generation scheme gathers the flexibility of autoregressive models and the accuracy of non-autoregressive models, which bridges the gap between sentence-level and word-level style transfer methods. To control the generation style more precisely, we conduct a token-level style-content disentanglement on the hidden representations of RLM. Empirical results on real-world text datasets demonstrate the effectiveness of RLM compared with other TST baselines. The code is at https://github.com/Linear95/RLM.

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

↑