适应非并行Author风格化重写的语言模型
Adapting Language Models for Non-Parallel Author-Stylized Rewriting
摘要:
鉴于最近的进展,在语言建模中使用基于transformer的神经模型和积极的兴趣,在生成风格化的文本,我们提出了一种方法,利用泛化能力的语言模型重写输入文本的目标作者的风格。我们提出的方法采用预训练的语言模型,通过使用级联编码器-解码器框架中的去噪自动编码器(DAE)损失对作者特定的语料库进行微调来生成作者风格化的文本。通过对DAE损失进行优化,我们的模型可以在不依赖并行数据的情况下学习作者风格的细微差别,这是该领域以前相关工作的严重限制。为了评估我们的方法的有效性,我们提出了一个语言动机的框架来量化生成的文本的风格对齐目标作者在词汇,句法和表面水平。评估框架是可解释的,因为它导致了关于模型的几个见解,并且是自包含的,因为它不依赖于外部分类器,例如情感或形式分类器。定性和定量评估表明,所提出的方法重写输入文本与目标风格更好地对齐,同时保留原始内容比国家的最先进的基线。
英文摘要:
Given the recent progress in language modeling using Transformer-based neural models and an active interest in generating stylized text, we present an approach to leverage the generalization capabilities of a language model to rewrite an input text in a target author's style. Our proposed approach adapts a pre-trained language model to generate author-stylized text by fine-tuning on the author-specific corpus using a denoising autoencoder (DAE) loss in a cascaded encoder-decoder framework. Optimizing over DAE loss allows our model to learn the nuances of an author's style without relying on parallel data, which has been a severe limitation of the previous related works in this space. To evaluate the efficacy of our approach, we propose a linguistically-motivated framework to quantify stylistic alignment of the generated text to the target author at lexical, syntactic and surface levels. The evaluation framework is both interpretable as it leads to several insights about the model, and self-contained as it does not rely on external classifiers, e.g. sentiment or formality classifiers. Qualitative and quantitative assessment indicates that the proposed approach rewrites the input text with better alignment to the target style while preserving the original content better than state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。