Contextual Text Style Transfer

被引:0
|
作者
Cheng, Yu [1 ]
Gan, Zhe [1 ]
Zhang, Yizhe [2 ]
Elachqar, Oussama [2 ]
Li, Dianqi [3 ]
Liu, Jingjing [1 ]
机构
[1] Microsoft Dynam 365 AI Res, Redmond, WA 98052 USA
[2] Microsoft Res, Redmond, WA USA
[3] Univ Washington, Seattle, WA 98195 USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We introduce a new task, Contextual Text Style Transfer - translating a sentence into a desired style with its surrounding context taken into account. This brings two key challenges to existing style transfer approaches: ( i) how to preserve the semantic meaning of target sentence and its consistency with surrounding context during transfer; (ii) how to train a robust model with limited labeled data accompanied by context. To realize high-quality style transfer with natural context preservation, we propose a Context-Aware Style Transfer (CAST) model, which uses two separate encoders for each input sentence and its surrounding context. A classifier is further trained to ensure contextual consistency of the generated sentence. To compensate for the lack of parallel data, additional self-reconstruction and back-translation losses are introduced to leverage non-parallel data in a semi-supervised fashion. Two new benchmarks, Enron-Context and Reddit-Context, are introduced for formality and offensiveness style transfer. Experimental results on these datasets demonstrate the effectiveness of the proposed CAST model over state-of-the-art methods across style accuracy, content preservation and contextual consistency metrics.(1)
引用
收藏
页数:10
相关论文
共 50 条
  • [1] Artistic Text Style Transfer
    Wang, Xinhao
    Yang, Shuai
    Wang, Wenjing
    Liu, Jiaying
    [J]. IEEE SIGNAL PROCESSING MAGAZINE, 2022, 39 (06) : 10 - 17
  • [2] Evaluating Style Transfer for Text
    Mir, Remi
    Felbo, Bjarke
    Obradovich, Nick
    Rahwan, Iyad
    [J]. 2019 CONFERENCE OF THE NORTH AMERICAN CHAPTER OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS: HUMAN LANGUAGE TECHNOLOGIES (NAACL HLT 2019), VOL. 1, 2019, : 495 - 504
  • [3] Medical image processing with contextual style transfer
    Xu, Yin
    Li, Yan
    Shin, Byeong-Seok
    [J]. HUMAN-CENTRIC COMPUTING AND INFORMATION SCIENCES, 2020, 10 (01)
  • [4] Domain Adaptive Text Style Transfer
    Li, Dianqi
    Zhang, Yizhe
    Gan, Zhe
    Cheng, Yu
    Brockett, Chris
    Sun, Ming-Ting
    Dolan, Bill
    [J]. 2019 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING AND THE 9TH INTERNATIONAL JOINT CONFERENCE ON NATURAL LANGUAGE PROCESSING (EMNLP-IJCNLP 2019): PROCEEDINGS OF THE CONFERENCE, 2019, : 3304 - 3313
  • [5] Survey on Text Style Transfer Research
    Chen, Ke-Jia
    Fei, Zi-Yang
    Chen, Jing-Qiang
    Yang, Zi-Nong
    [J]. Ruan Jian Xue Bao/Journal of Software, 2022, 33 (12): : 4668 - 4687
  • [6] Arbitrary Portuguese text style transfer
    da Costa, Pablo Botton
    Paraboni, Ivandre
    [J]. LINGUAMATICA, 2023, 15 (02): : 19 - 36
  • [7] A Method for Scene Text Style Transfer
    Zhou, Gaojing
    Wang, Lei
    Liu, Xi
    Zhou, Yongsheng
    Zhang, Rui
    Wei, Xiaolin
    [J]. DOCUMENT ANALYSIS SYSTEMS, 2020, 12116 : 559 - 571
  • [8] Style Transfer in Text: Exploration and Evaluation
    Fu, Zhenxin
    Tan, Xiaoye
    Peng, Nanyun
    Zhao, Dongyan
    Yan, Rui
    [J]. THIRTY-SECOND AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTIETH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / EIGHTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2018, : 663 - 670
  • [9] Text Style Transfer with Contrastive Transfer Pattern Mining
    Han, Jingxuan
    Wang, Quan
    Zhang, Licheng
    Chen, Weidong
    Song, Yan
    Mao, Zhendong
    [J]. PROCEEDINGS OF THE 61ST ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, ACL 2023, VOL 1, 2023, : 7914 - 7927
  • [10] Incorporating Multiscale Contextual Loss for Image Style Transfer
    Li, Pan
    Zhao, Lei
    Xu, Duanqing
    Lu, Dongming
    [J]. 2018 IEEE 3RD INTERNATIONAL CONFERENCE ON IMAGE, VISION AND COMPUTING (ICIVC), 2018, : 241 - 245