MSSRNet: Manipulating Sequential Style Representation for Unsupervised Text Style Transfer

Yazheng Yang, Zhou Zhao, Qi Liu · DOI

Introduction

Unsupervised text style transfer (TST) aims to alter the stylistic attributes of a sentence—such as sentiment or formality—while preserving its core semantic content, without relying on parallel corpora. Traditional approaches often struggle with "coarse-grained" control because they attempt to compress the entire style of a sentence into a single, fixed-size vector.

The Bottleneck: Fixed-Sized Representations

A significant limitation in existing TST models is the use of global style vectors. Style is rarely distributed uniformly across a sentence; specific words often carry more stylistic weight than others. For instance, in the phrase "really a fun place," the words "really" and "fun" are primary style markers, whereas "place" is neutral. Forcing these distinct intensities into a single vector can lead to the loss of content or ineffective style conversion.

Comparison between fixed-sized vector representation and the proposed sequential representation.

MSSRNet: Sequential Style Manipulation

To address these issues, the authors propose MSSRNet (Manipulating Sequential Style Representation Network). The core innovation is the Sequential Style Representation, where the model generates a sequence of style vectors corresponding to each token in the input text. This allows for word-level granularity in style adjustment.

Core Components

  1. Style Generator & Content Encoder: The model disentangles style and content by producing a sequence of style vectors and a separate content representation.
  2. Teacher-Student Learning: To stabilize the training of high-dimensional representations, a pre-trained style classifier acts as a "Teacher," guiding the "Student" Style Generator to produce accurate stylistic features.
  3. Dual Discriminators: A Style Discriminator ensures the quality of the generated vectors, while a Text Discriminator validates the final output's adherence to the target style.
The MSSRNet architecture for target style transfer, showing the fusion of content and target style representations.

Experimental Results

MSSRNet was evaluated on benchmark datasets including Yelp, IMDb, and a multi-dimensional Sentiment-Formality dataset. It achieved state-of-the-art results:

  • Accuracy: Reached 95.6% on Yelp and 91.3% on IMDb, significantly outperforming baselines like StyTrans and DGST.
  • Content Preservation: Maintained high BLEU scores, indicating superior retention of original meaning.
  • Fluency: Achieved the lowest Perplexity (PPL) scores, producing more natural-sounding text.
  • Multi-Style Transfer: Successfully balanced multiple style dimensions with 89.9% accuracy on the Sentiment-Formality task.

Conclusion

By treating style as a sequence rather than a point in space, MSSRNet provides the fine-grained control necessary for high-quality text style transfer. Future work may extend this sequential representation approach to other domains, such as unsupervised neural machine translation, to better preserve semantic nuances during cross-lingual transformation.

Summary updated

BibTeX
@inproceedings{yang2023mssrnet,
  author = {Yazheng Yang and Zhou Zhao and Qi Liu},
  title = {{MSSRNet: Manipulating Sequential Style Representation for Unsupervised Text Style Transfer}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599438},
}
Figure