Transforming Delete, Retrieve, Generate Approach for Controlled Text Style Transfer
About
Text style transfer is the task of transferring the style of text having certain stylistic attributes, while preserving non-stylistic or content information. In this work we introduce the Generative Style Transformer (GST) - a new approach to rewriting sentences to a target style in the absence of parallel style corpora. GST leverages the power of both, large unsupervised pre-trained language models as well as the Transformer. GST is a part of a larger `Delete Retrieve Generate' framework, in which we also propose a novel method of deleting style attributes from the source sentence by exploiting the inner workings of the Transformer. Our models outperform state-of-art systems across 5 datasets on sentiment, gender and political slant transfer. We also propose the use of the GLEU metric as an automatic metric of evaluation of style transfer, which we found to compare better with human ratings than the predominantly used BLEU score.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Sentiment Analysis | Yelp Reviews (Out-of-domain) | Accuracy84.5 | 13 | |
| Sentiment Analysis | Semeval Task B Twitter 2017 (Out-of-domain) | Accuracy72.5 | 10 | |
| Sentiment Analysis | Amazon Reviews (Out-of-domain) | Accuracy77.2 | 10 | |
| Text editing | Yelp (test) | Sentiment Accuracy81 | 9 | |
| Text editing | Amazon (test) | Sentiment Accuracy62 | 8 | |
| Semantics preservation | IMDB | CTC Score46.8 | 7 | |
| Semantics preservation | AMAZON | CTC Score0.472 | 7 | |
| Semantics preservation | Yahoo | CTC Score45.8 | 7 | |
| Style Transfer | Yelp | Accuracy82 | 7 | |
| Style Transfer | AMAZON | Accuracy60.45 | 7 |