arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2010.03802cs.CLcs.LG
收藏

TextSETTR:Few-Shot文本样式提取和可调目标样式恢复

TextSETTR: Few-Shot Text Style Extraction and Tunable Targeted Restyling

University of Rochester(罗切斯特大学);Google Research(谷歌研究院);Stanford University(斯坦福大学)

Parker Riley, Noah Constant, Mandy Guo, Girish Kumar, David Uthus, Zarana Parekh

摘要:

我们提出了一种新的方法来解决文本风格迁移的问题。与以前的方法需要样式标记的训练数据,我们的方法利用现成的未标记的文本,依靠在相邻的句子之间的风格的隐式连接,并使用标记的数据只在推理时间。我们调整T5(Raffel等人,2020),一个强大的预训练文本到文本模型,从文本中提取样式向量,并使用它来调节解码器以执行样式传输。由于我们的无标签训练产生了一个对风格的许多方面进行编码的风格向量空间,因此我们将传输转换为“目标重新造型”向量操作,这些操作调整输入的特定属性,同时保留其他属性。我们证明,在未标记的亚马逊评论数据上进行训练,即使与完全在标记数据上训练的模型相比,也会产生一个在情感转移方面具有竞争力的模型。此外,将我们的新方法应用于未标记的Web文本的多样化语料库,导致单个模型能够沿着风格的多个维度(方言,情感,正式,礼貌,情感)进行转移,尽管没有额外的训练,并且在推理时只使用少数样本。

英文摘要:

We present a novel approach to the problem of text style transfer. Unlike previous approaches requiring style-labeled training data, our method makes use of readily-available unlabeled text by relying on the implicit connection in style between adjacent sentences, and uses labeled data only at inference time. We adapt T5 (Raffel et al., 2020), a strong pretrained text-to-text model, to extract a style vector from text and use it to condition the decoder to perform style transfer. As our label-free training results in a style vector space encoding many facets of style, we recast transfers as "targeted restyling" vector operations that adjust specific attributes of the input while preserving others. We demonstrate that training on unlabeled Amazon reviews data results in a model that is competitive on sentiment transfer, even compared to models trained fully on labeled data. Furthermore, applying our novel method to a diverse corpus of unlabeled web text results in a single model capable of transferring along multiple dimensions of style (dialect, emotiveness, formality, politeness, sentiment) despite no additional training and using only a handful of exemplars at inference time.

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

↑