删除,复制,生成:情感和风格转移的简单方法
Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer
摘要:
我们考虑文本属性转换的任务:转换句子以改变特定属性(例如,情感)同时保留其与属性无关的内容(例如,将“屏幕大小刚刚好”更改为“屏幕太小”)。我们的训练数据仅包括用其属性标记的句子(例如,肯定或否定),而不是仅在属性上不同的句子对,因此我们必须学会以无监督的方式将属性与属性无关的内容分开。以前使用对抗方法的工作一直难以产生高质量的输出。在本文中,我们提出了更简单的方法,其动机是观察到文本属性通常由独特的短语标记(例如,“太小”)。我们最强的方法通过删除与句子的原始属性值相关联的短语来提取内容词,检索与目标属性相关联的新短语,并使用神经模型将这些流畅地组合成最终输出。在人类评估方面,我们最好的方法比以前最好的系统多22%的输入生成语法和适当的响应,平均超过三个属性转移数据集:改变Yelp上评论的情绪,改变亚马逊上评论的情绪,改变图像标题,使其更浪漫或幽默。
英文摘要:
We consider the task of text attribute transfer: transforming a sentence to alter a specific attribute (e.g., sentiment) while preserving its attribute-independent content (e.g., changing "screen is just the right size" to "screen is too small"). Our training data includes only sentences labeled with their attribute (e.g., positive or negative), but not pairs of sentences that differ only in their attributes, so we must learn to disentangle attributes from attribute-independent content in an unsupervised way. Previous work using adversarial methods has struggled to produce high-quality outputs. In this paper, we propose simpler methods motivated by the observation that text attributes are often marked by distinctive phrases (e.g., "too small"). Our strongest method extracts content words by deleting phrases associated with the sentence's original attribute value, retrieves new phrases associated with the target attribute, and uses a neural model to fluently combine these into a final output. On human evaluation, our best method generates grammatical and appropriate responses on 22% more inputs than the best previous system, averaged over three attribute transfer datasets: altering sentiment of reviews on Yelp, altering sentiment of reviews on Amazon, and altering image captions to be more romantic or humorous.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。