Abstract
Language style transfer—the task of altering stylistic attributes like sentiment or politeness while preserving core content—is fundamentally limited by a lack of parallel training data. This paper reframes the problem as an unsupervised machine translation (UMT) task. By combining a Statistical Machine Translation (SMT) initialization phase with iterative Neural Machine Translation (NMT) training guided by a style classifier, the proposed framework achieves state-of-the-art results in both style accuracy and content preservation across multiple benchmarks.
The Challenge of Style Transfer
The primary challenge in language style transfer is the absence of parallel corpora. We rarely find datasets where the same underlying thought is expressed in two different styles (e.g., "The food was nasty" vs. "The food was great"). Previous attempts often utilized adversarial autoencoders to "disentangle" style from content in a latent space, but these methods frequently struggle to change the style effectively or produce garbled sentences that lose the original meaning.
This research asks: Can we treat style transfer like translating between two languages that just happen to share most of their vocabulary? By viewing different styles as distinct "languages," the authors adapt techniques from unsupervised machine translation to bridge the gap without parallel data.
Methodology
The authors propose a two-stage pipeline designed to provide a stable training signal in the absence of ground-truth pairs.
Stage 1: Model Initialization (SMT Warm-up)
Since no parallel data exists, the process begins by constructing a word-to-word transfer table. This table is built using word embedding similarity (identifying words with similar grammatical roles) and style-preference information (identifying words that appear significantly more often in one style). For instance, "nasty" and "great" might share similar embeddings but have opposite style preferences. This table, combined with style-specific language models, powers a Statistical Machine Translation (SMT) system that generates an initial, noisy "pseudo-parallel" corpus.
Stage 2: Iterative Back-Translation (NMT Refinement)
The noisy data from the SMT stage is used to pre-train two Neural Machine Translation (NMT) models (Source $\rightarrow$ Target and Target $\rightarrow$ Source). The models then undergo iterative back-translation: the Source $\rightarrow$ Target model generates a synthetic translation, which then serves as the "ground truth" to train the Target $\rightarrow$ Source model, and vice versa.
Stage 3: The Style Classifier as a Quality Gate
To prevent the NMT models from simply copying the input or drifting away from the target style, a pre-trained style classifier provides a "reward" signal. If a generated sentence is not recognized by the classifier as belonging to the target style, the model is penalized. This ensures that the stylistic transfer actually occurs while the NMT's attention mechanism focuses on preserving content-neutral words.
Key Results
The proposed method was evaluated on sentiment transfer (Yelp and Amazon reviews) and stylistic captioning. It significantly outperformed previous state-of-the-art baselines like CrossAligned and TemplateBased models:
- Accuracy: On the Yelp dataset, the model achieved 96.6% style transfer accuracy, surpassing the previous benchmark of ~90%.
- Content Preservation: The model reached a BLEU score of 22.79 on Yelp, indicating superior preservation of original meaning compared to other high-accuracy models.
- Human Evaluation: In blind tests, human raters preferred the proposed model's outputs (based on style, content, and fluency) 33-37% of the time, whereas the next best model was preferred only 22-23% of the time.
Conclusion
By treating style transfer as unsupervised machine translation, this work provides a robust framework that avoids the pitfalls of latent-space disentanglement. The use of SMT as a "warm-up" provides a stable foundation that NMT can then refine through iterative back-translation. Future work will focus on developing more nuanced automatic evaluation metrics and applying the framework to complex stylistic attributes that require structural rather than just lexical changes.
Summary updated