Skip to main content
QUICK REVIEW

[Paper Review] VAE based Text Style Transfer with Pivot Words Enhancement Learning

Haoran Xu, Sixing Lu|arXiv (Cornell University)|Dec 6, 2021
Speech Recognition and SynthesisComputer Science5 citations
TL;DR

This paper proposes VT-STOWER, a VAE-based text style transfer model that jointly learns content and style distributions using variational autoencoders and external style embeddings, with a novel pivot words masking mechanism to enhance style transfer accuracy. The method enables flexible style strength control via learnable weights and achieves state-of-the-art performance on sentiment, formality, and code-switching transfer tasks, including the first application of style transfer to Hindi-Hinglish code-switching.

ABSTRACT

Text Style Transfer (TST) aims to alter the underlying style of the source text to another specific style while keeping the same content. Due to the scarcity of high-quality parallel training data, unsupervised learning has become a trending direction for TST tasks. In this paper, we propose a novel VAE based Text Style Transfer with pivOt Words Enhancement leaRning (VT-STOWER) method which utilizes Variational AutoEncoder (VAE) and external style embeddings to learn semantics and style distribution jointly. Additionally, we introduce pivot words learning, which is applied to learn decisive words for a specific style and thereby further improve the overall performance of the style transfer. The proposed VT-STOWER can be scaled to different TST scenarios given very limited and non-parallel training data with a novel and flexible style strength control mechanism. Experiments demonstrate that the VT-STOWER outperforms the state-of-the-art on sentiment, formality, and code-switching TST tasks.

Motivation & Objective

  • To address the challenge of low-resource, non-parallel text style transfer by leveraging unsupervised learning with variational autoencoders and external style embeddings.
  • To improve style transfer accuracy by introducing a pivot words masking mechanism that highlights words decisive for style transfer.
  • To enable flexible control over style strength through adjustable style weights, allowing adaptation to diverse TST scenarios.
  • To extend text style transfer to the underexplored code-switching task, particularly Hindi-Hinglish, using a unified framework.
  • To demonstrate generalization and robustness on low-resource datasets, especially in maintaining fluency while achieving high transfer accuracy.

Proposed method

  • VT-STOWER employs a two-stage training process: first pre-training a VAE on content reconstruction, then fine-tuning with style-aware objectives.
  • The model uses variational autoencoders to learn a continuous, disentangled latent space for content and style, enabling smooth interpolation and generation.
  • External style embeddings are used to represent target styles, allowing the model to condition generation on specific style attributes.
  • A pivot words masking mechanism is introduced, where importance scores derived from BERT attention heads identify style-determining words for enhanced learning.
  • Style strength is controlled via a learnable weight $ w $ in the latent space, which modulates the contribution of target style embeddings to the latent vector $ z' $.
  • The model is trained with a reconstruction loss, a content reconstruction loss, and a style reconstruction loss, with the pivot word scores used to guide attention during training.

Experimental results

Research questions

  • RQ1Can a VAE-based framework jointly model content and style distributions in text style transfer with minimal parallel data?
  • RQ2How does pivot words masking improve the accuracy and fluency of text style transfer without relying on parallel training pairs?
  • RQ3To what extent can style strength be flexibly controlled via a learnable weight parameter in the latent space?
  • RQ4Can the proposed method generalize to low-resource, non-parallel style transfer tasks such as code-switching?
  • RQ5How does the model perform on benchmark tasks like sentiment and formality transfer compared to state-of-the-art methods?

Key findings

  • VT-STOWER achieves 95.9% transfer accuracy on the sentiment transfer task with a style weight of 2.5, significantly outperforming prior methods.
  • The model maintains a reasonable BLEU score of 20.85 and PPL of 32.8 at high style strength, indicating a balance between accuracy and fluency.
  • On the code-switching transfer task, VT-STOWER achieves 87.4% accuracy and 15.6 BLEU, outperforming a random replacement baseline (1.02% accuracy) and a MUSE-based translation method.
  • The pivot words masking mechanism improves transfer accuracy by focusing on key style-determining words, such as 'comfortable and welcome' in sentiment and 'ur' in formality transfer.
  • Importance score analysis confirms that the model learns to attend to words with high stylistic significance, such as informal pronouns or code-switched content.
  • The model generalizes well to low-resource settings, achieving strong performance even with only 7K sentences in the code-switching dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.