Contextual Text Style Transfer

04/30/2020
by   Yu Cheng, et al.
0

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 with 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/24/2018

Style Transfer Through Back-Translation

Style transfer is the task of rephrasing the text to contain specific st...
research
10/08/2019

Defective samples simulation through Neural Style Transfer for automatic surface defect segment

Owing to the lack of defect samples in industrial product quality inspec...
research
09/17/2018

Style Transfer Through Multilingual and Feedback-Based Back-Translation

Style transfer is the task of transferring an attribute of a sentence (e...
research
03/25/2022

Semi-Supervised Formality Style Transfer with Consistency Training

Formality style transfer (FST) is a task that involves paraphrasing an i...
research
08/19/2022

Dance Style Transfer with Cross-modal Transformer

We present CycleDance, a dance style transfer system to transform an exi...
research
05/25/2020

Stable Style Transformer: Delete and Generate Approach with Encoder-Decoder for Text Style Transfer

Text style transfer is the task that generates a sentence by preserving ...
research
04/29/2020

Politeness Transfer: A Tag and Generate Approach

This paper introduces a new task of politeness transfer which involves c...

Please sign up or login with your details

Forgot password? Click here to reset