Abstract
The dominant approach to unsupervised "style transfer" in text is based on the idea of learning a latent representation, which is independent of the attributes specifying its "style". In this paper, we show that this condition is not necessary and is not always met in practice, even with domain adversarial training that explicitly aims at learning such disentangled representations. We thus propose a new model that controls several factors of variation in textual data where this condition on disentanglement is replaced with a simpler mechanism based on back-translation. Our method allows control over multiple attributes, like gender, sentiment, product type, etc., and a more fine-grained control on the trade-off between content preservation and change of style with a pooling operator in the latent space. Our experiments demonstrate that the fully entangled model produces better generations, even when tested on new and more challenging benchmarks comprising reviews with multiple sentences and multiple attributes.
Introduction
Unsupervised text style transfer aims to alter the "style" of a sentence—such as flipping the sentiment of a review—while preserving its core "content." Traditionally, researchers have relied on disentanglement: forcing a model to learn a latent representation that contains only content, stripped of style markers. This is typically achieved via adversarial training, where an encoder attempts to fool a style discriminator.
However, this paper challenges the necessity and reality of disentanglement. The authors argue that adversarial training is often unstable and, more importantly, fails to actually strip style information from the latent space.
The Disentanglement Myth
The authors provide empirical evidence that even when adversarial training appears successful (i.e., the discriminator is "fooled"), the style information remains present. By training a separate classifier on the "disentangled" latent vectors after the adversarial training is complete, they found that style could still be recovered with high accuracy.
This suggests that the decoder, not the lack of style in the latent vector, is responsible for the transformation. If the decoder is conditioned properly on a target style, it can effectively "overwrite" the original style information present in an entangled latent vector.
Methodology: Embracing Entanglement
Instead of complex adversarial loops, the proposed model relies on two robust pillars:
- Denoising Auto-Encoding (DAE): The model learns to reconstruct original sentences from corrupted inputs (e.g., word shuffling or dropping), ensuring fluency and content preservation.
- Back-Translation (BT): The model generates a "pseudo-parallel" sentence in a target style and then attempts to reconstruct the original sentence from this generated version. This creates a self-supervised loop for learning style transformations.
Multiple Attribute Control
The model can condition on a vector of multiple attributes (e.g., sentiment, gender, and category) simultaneously. This is achieved by averaging the embeddings of target attributes and feeding the result to the decoder. This allows for complex transformations, such as changing a negative male review of an Asian restaurant into a positive female review of a Mexican restaurant.
Latent Representation Pooling
A temporal max-pooling layer on the encoder acts as a "control knob." Adjusting the pooling window size allows users to navigate the trade-off between literal content preservation (small window) and significant stylistic change (large window), providing a practical tool for fine-tuning model behavior without retraining.
Experimental Results
The model was evaluated on standard benchmarks like SYelp and new, more complex datasets like FYelp (Full Yelp reviews with three attributes) and Amazon product reviews.
Qualitative Performance
The model demonstrates a sophisticated ability to handle diverse attributes, from sentiment to demographic signatures like age and gender, as seen in social media content benchmarks.
Quantitative Success
- State-of-the-Art: On the SYelp benchmark, the model achieved 87% sentiment accuracy while maintaining high BLEU scores, outperforming previous baselines like DAR and CAE.
- Human Preference: In A/B testing, human evaluators preferred this model's outputs over the best baseline (DeleteAndRetrieve) by a margin of 54.4% to 20.8%.
- Multi-Attribute Control: On the FYelp dataset, the model successfully maintained ~88% sentiment accuracy even while simultaneously changing restaurant categories and author gender.
Conclusion
This work demonstrates that disentanglement is not a prerequisite for effective text style transfer. By embracing entangled representations and utilizing back-translation, the authors provide a simpler, more stable, and more powerful framework for multi-attribute control. While automatic metrics remain imperfect and societal biases in training data require careful handling, this approach sets a new standard for controllable text generation.
Summary updated