NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unpaired Sentiment-to-Sentiment Translation: A Cycled Reinforcement Learning Approach

Jingjing Xu, Xu Sun, Qi Zeng, Xiaodong Zhang, Xuancheng Ren, Houfeng Wang, Wenjie Li

Abstract

Sentiment-to-sentiment translation aims to modify the sentiment of a sentence while preserving its semantic content. A major challenge in this task is the lack of parallel training data. This paper proposes a cycled reinforcement learning framework that explicitly separates emotional expressions from semantic content through a "neutralization-emotionalization" loop. By treating the neutral core as an intermediate state, the model significantly improves content preservation, achieving over a 10x increase in BLEU scores compared to previous state-of-the-art methods on benchmark datasets like Yelp and Amazon.

Introduction

The primary goal of sentiment-to-sentiment translation is to flip the sentiment of a sentence (e.g., from negative to positive) without altering its underlying meaning. For instance, "The service was rude" should ideally be translated to "The service was excellent."

Existing approaches often struggle due to the absence of parallel datasets where the same content is expressed with different sentiments. Previous attempts to "disentangle" sentiment from content in latent vector spaces often resulted in messy, uninterpretable representations. This frequently led to models losing the original topic entirely—for example, changing "The food is delicious" into a generic positive statement about a different topic like "What a great movie." The authors argue that explicit boundaries between sentiment and content are necessary to modify one without destroying the other.

Methodology

The proposed framework utilizes a Cycled Reinforcement Learning approach consisting of two collaborative modules: a Neutralization Module and an Emotionalization Module.

The architecture of the proposed framework, showing the Neutralization Module filtering emotional words and the Emotionalization Module reconstructing or translating the sentiment.

Neutralization and Emotionalization

  1. Neutralization Module ($N_\theta$): Acts as a filter to identify and remove emotional words (e.g., "delicious", "terrible"), extracting the "neutral" semantic core.
  2. Emotionalization Module ($E_\phi$): A bi-decoder that takes the neutral core and adds the target sentiment (positive or negative) back in.

Cycled Training and Reinforcement Learning

Since parallel data is unavailable, the model employs a reconstruction loop. For a given sentence, the model first neutralizes it and then forces the Emotionalization module to reconstruct the original sentence. To perform translation, the model is then tasked with adding the opposite sentiment.

Because word deletion is a discrete operation, the authors use Policy Gradient (REINFORCE). The Neutralization module is rewarded based on:

  • Sentiment Confidence: Whether the final output matches the target sentiment.
  • BLEU Score: The degree to which the original non-emotional content is preserved.

Experimental Results

The model was evaluated on the Yelp Review and Amazon Food Review datasets, focusing on short, single-sentence reviews with high sentiment confidence.

Comparison of the proposed method against baselines (CAAE and MDAL) on Yelp and Amazon datasets across Accuracy, BLEU, and G-score metrics.

The results demonstrate a significant leap in performance, particularly in content preservation. On the Yelp dataset, the BLEU score improved from 1.64 (MDAL) to 22.46. Similarly, on the Amazon dataset, it rose from 0.56 to 14.06. The G-score, which represents the geometric mean of accuracy and BLEU, nearly quadrupled compared to the best baseline. Human evaluations further confirmed that the proposed method maintains much higher semantic similarity than previous models.

Conclusion

This work highlights that explicit neutralization is far more effective for content preservation than implicit latent space disentanglement. By treating neutrality as a physical intermediate state, the model successfully protects the "who, what, and where" of a sentence during sentiment translation. Future work may address implicit sentiment, sarcasm, and fine-grained control over sentiment intensity.

Summary updated

BibTeX
@inproceedings{xu2018unpaired,
  author = {Jingjing Xu and Xu Sun and Qi Zeng and Xiaodong Zhang and Xuancheng Ren and Houfeng Wang and Wenjie Li},
  title = {{Unpaired Sentiment-to-Sentiment Translation: A Cycled Reinforcement Learning Approach}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-1090},
}
Figure