NAST: A Non-Autoregressive Generator with Word Alignment for Unsupervised Text Style Transfer

06/04/2021
by   Fei Huang, et al.
0

Autoregressive models have been widely used in unsupervised text style transfer. Despite their success, these models still suffer from the content preservation problem that they usually ignore part of the source sentence and generate some irrelevant words with strong styles. In this paper, we propose a Non-Autoregressive generator for unsupervised text Style Transfer (NAST), which alleviates the problem from two aspects. First, we observe that most words in the transferred sentence can be aligned with related words in the source sentence, so we explicitly model word alignments to suppress irrelevant words. Second, existing models trained with the cycle loss align sentences in two stylistic text spaces, which lacks fine-grained control at the word level. The proposed non-autoregressive generator focuses on the connections between aligned words, which learns the word-level transfer between styles. For experiments, we integrate the proposed generator into two base models and evaluate them on two style transfer tasks. The results show that NAST can significantly improve the overall performance and provide explainable word alignments. Moreover, the non-autoregressive generator achieves over 10x speedups at inference. Our codes are available at https://github.com/thu-coai/NAST.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/14/2022

Replacing Language Model for Style Transfer

We introduce replacing language model (RLM), a sequence-to-sequence lang...
research
10/02/2020

Cycle-Consistent Adversarial Autoencoders for Unsupervised Text Style Transfer

Unsupervised text style transfer is full of challenges due to the lack o...
research
08/13/2018

Language Style Transfer from Sentences with Arbitrary Unknown Styles

Language style transfer is the problem of migrating the content of a sou...
research
06/05/2019

A Hierarchical Reinforced Sequence Operation Method for Unsupervised Text Style Transfer

Unsupervised text style transfer aims to alter text styles while preserv...
research
10/14/2021

Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer

Adversarial attacks and backdoor attacks are two common security threats...
research
08/31/2023

Unsupervised Text Style Transfer with Deep Generative Models

We present a general framework for unsupervised text style transfer with...
research
10/10/2021

Enhance Long Text Understanding via Distilled Gist Detector from Abstractive Summarization

Long text understanding is important yet challenging in natural language...

Please sign up or login with your details

Forgot password? Click here to reset