[Paper Review] Style Transformer: Unpaired Text Style Transfer without Disentangled Latent Representation
This paper proposes Style Transformer, a novel text style transfer model that bypasses disentangled latent representations by leveraging the self-attention mechanism of Transformers. Unlike prior methods relying on adversarial disentanglement, it directly transfers style while preserving content through attention-enhanced encoder-decoder architecture, achieving state-of-the-art content preservation on two benchmark datasets.
Disentangling the content and style in the latent space is prevalent in unpaired text style transfer. However, two major issues exist in most of the current neural models. 1) It is difficult to completely strip the style information from the semantics for a sentence. 2) The recurrent neural network (RNN) based encoder and decoder, mediated by the latent representation, cannot well deal with the issue of the long-term dependency, resulting in poor preservation of non-stylistic semantic content. In this paper, we propose the Style Transformer, which makes no assumption about the latent representation of source sentence and equips the power of attention mechanism in Transformer to achieve better style transfer and better content preservation.
Motivation & Objective
- To address the limitations of disentangled latent representations in unpaired text style transfer, particularly poor content preservation and difficulty in capturing long-range dependencies.
- To eliminate the need for adversarial training to enforce disentanglement, which often fails to fully remove style from content representations.
- To improve content preservation by leveraging the full contextual modeling capability of the Transformer architecture instead of fixed-size latent vectors.
- To enable more effective style transfer by allowing the decoder to attend to the full input sequence via self-attention, rather than relying on a compressed latent code.
- To demonstrate that end-to-end training with attention mechanisms can outperform models requiring explicit disentanglement of content and style.
Proposed method
- Proposes a Transformer-based encoder-decoder architecture that directly models input and output sequences using multi-head self-attention, avoiding the use of a fixed-size latent vector.
- Employs a novel training objective combining self-reconstruction, cycle reconstruction, and adversarial loss to preserve content and control style without disentanglement.
- Uses a discriminator that trains on a mixture of real sentences and generated sentences to provide style supervision and prevent mode collapse.
- Introduces cycle reconstruction loss to encourage the model to retain semantic content by reconstructing the original input after style transfer and reverse transfer.
- Applies self-reconstruction loss to ensure the model can generate fluent, coherent sentences from the input.
- Utilizes multi-head attention in both encoder and decoder to capture long-range dependencies and improve contextual modeling.
Experimental results
Research questions
- RQ1Can a Transformer-based model achieve better content preservation in unpaired text style transfer without relying on disentangled latent representations?
- RQ2Does the use of self-attention and full-sequence attention in the decoder improve content retention compared to RNN-based models with fixed-size latent codes?
- RQ3How do different training components—self-reconstruction, cycle reconstruction, and adversarial loss—affect model performance and stability?
- RQ4Can a model trained without explicit disentanglement still achieve high-quality style transfer and content preservation?
- RQ5What is the relative contribution of real vs. generated samples in discriminator training for style control?
Key findings
- Style Transformer achieves the highest content preservation performance on both Yelp and Amazon datasets, with a BLEU score of 20.3 on the multi-class setting and 17.1 on the conditional setting.
- The model significantly outperforms previous state-of-the-art methods in content preservation, demonstrating the effectiveness of avoiding disentangled latent representations.
- Ablation studies show that removing the cycle reconstruction loss leads to a substantial drop in BLEU score (from 20.3 to 8.7), confirming its critical role in preserving input semantics.
- The discriminator loss is essential: without it, the model degenerates into copying the input sentence, achieving only 3.3% style accuracy.
- Using only real sentences in the discriminator leads to poor style control (20.7% accuracy), while using only generated sentences maintains reasonable performance, showing that generated samples are crucial for style supervision.
- The self-reconstruction loss is necessary for generating fluent outputs; disabling it causes the model to collapse into generating only a single word.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.