Abstract
Unsupervised text style transfer (TST) aims to alter specific attributes of a sentence while preserving its core content. However, existing models often fail to maintain invariant properties such as sentence length, pronouns, and proper nouns, leading to a "fidelity gap." This paper presents a novel framework that incorporates cooperative contrastive and classification losses into an Adversarially Regularized Autoencoder (ARAE) architecture. By regularizing the latent space to respect these identity constraints, the proposed model achieves higher-fidelity generation across multiple domains, including sentiment and political slant transfer.
Introduction
Text style transfer involves modifying a source sentence to exhibit a target attribute (e.g., changing sentiment from negative to positive) while keeping the underlying meaning intact. Due to the scarcity of parallel datasets, unsupervised methods are the standard approach. Despite their success in style conversion, these models frequently lose "identity" markers—specific names, pronouns, or sentence structures—that should remain unchanged.
Methodology: Cooperative Training
The core of this work is the ARAE_seq2seq model, an adaptation of the Adversarially Regularized Autoencoder. To bridge the fidelity gap, the authors introduce Cooperative Training, which utilizes two auxiliary losses to structure the latent space:
- Cooperative Contrastive Learning: This loss encourages the encoder to map sentences with similar constraints (e.g., similar lengths or syntactic patterns) to nearby regions in the latent space, regardless of their style or domain.
- Cooperative Classification: An auxiliary classifier predicts constraints from latent vectors. Unlike standard adversarial training, both the encoder and the GAN's critic are trained to minimize this classification error, aligning their objectives to preserve structural information.
Experimental Evaluation
The model was evaluated on three benchmark datasets: Yelp Reviews (sentiment), IMDb Movie Reviews (sentiment), and Political Slant (Democratic vs. Republican). A multi-attribute dataset involving food domains (Asian vs. Mexican) was also used to test simultaneous attribute changes.
Performance was measured using the AGG metric, which combines transfer accuracy, fluency, and semantic similarity. The proposed model (ARAE_seq2seq + CLF + CONTRA) showed significant gains, notably increasing the IMDb AGG score from 19.9 to 28.1 compared to the baseline.
Results and Discussion
The inclusion of cooperative losses allows the model to "shape" the latent space based on lexical and syntactic features. This ensures that the decoder produces outputs that are not only stylistically correct but also faithful to the source's structural identity. Key findings include:
- Constraint Maintenance: The model significantly outperformed baselines in preserving sentence length and personal pronouns, as evidenced by superior F-scores across all tested domains.
- Cooperation over Competition: Aligning sub-networks on auxiliary tasks proved more effective for constraint preservation than pure minimax adversarial training.
- Domain-Agnostic Encoding: Tying encoder weights across domains helped extract style-independent features essential for content preservation.
Conclusion
This research demonstrates that explicit regularization of the latent space through cooperative losses can effectively address the fidelity gap in unsupervised text style transfer. While challenges remain in scaling these techniques to Transformer-based architectures and more complex linguistic constraints, this framework provides a robust foundation for high-fidelity, attribute-preserving text generation.
Summary updated