Learning from Bootstrapping and Stepwise Reinforcement Reward: A Semi-Supervised Framework for Text Style Transfer

Zhengyuan Liu, Nancy F. Chen

Introduction

Text Style Transfer (TST) aims to modify specific attributes of a sentence—such as sentiment or formality—while preserving its underlying semantic content. Despite its potential, the field is hindered by a significant data bottleneck. Supervised approaches require large-scale parallel corpora (pairs of sentences with identical meaning but different styles), which are difficult to obtain. Conversely, unsupervised methods, while more flexible, often suffer from training instability, leading to issues like mode collapse or the loss of semantic integrity.

To address these challenges, this research introduces a semi-supervised framework that leverages "bootstrapped" pseudo-parallel data and a novel stepwise reinforcement learning (RL) reward mechanism. This approach allows the model to achieve state-of-the-art results even in low-resource settings.

Methodology

The proposed framework operates in two primary stages: bootstrapping for initial stability and fine-grained reinforcement learning for stylistic precision.

Overview of the proposed semi-supervised TST framework, illustrating the two-stage process of pseudo-parallel sample construction and learning from reinforcement rewards.

1. Bootstrapping with Pseudo-Parallel Data

To initialize the model without human-annotated pairs, the authors construct pseudo-parallel datasets using two distinct strategies:

  • Lexical Matching: Style-specific keywords (e.g., "excellent" vs. "terrible") are identified and removed. The remaining "content spans" are then matched with similar sentences in the target style.
  • Semantic Matching: Unsupervised sentence embeddings (via SimCSE) are utilized to find sentence pairs across different styles that reside in close proximity within a shared semantic space.

2. Stepwise Reinforcement Reward

The core innovation of this work is the transition from coarse-grained to fine-grained feedback. Traditional RL in TST provides a single reward for an entire generated sequence, which can be ambiguous. The authors propose a Stepwise Reinforcement Reward that granulates feedback at the token level.

The Stepwise Reinforcement Reward mechanism, which utilizes multi-head attention weights from a style classifier to derive token-level salient scores for re-weighting rewards.

By analyzing the internal attention weights of a pre-trained style classifier, the model identifies "style markers"—specific words that most strongly signal a particular attribute. The RL reward is then re-weighted token-by-token based on these salience scores, providing the generator (a BART-base model) with precise instructions on which words to modify.

Experimental Evaluation

The framework was evaluated on three major benchmarks: Yelp (sentiment), Amazon (sentiment), and GYAFC (formality).

Key Findings

  • State-of-the-Art Performance: On the Yelp dataset, the "Semantic Pseudo + Reward-Learning" configuration achieved a G2 score (the geometric mean of style accuracy and BLEU) of 71.9, surpassing previous benchmarks like DualRL (68.7) and Direct Rewards (70.0).
  • Data Efficiency: The model demonstrated remarkable efficiency, producing high-quality transfers using only 10% of the available training data on Yelp and Amazon, highlighting its utility for low-resource domains.
  • Linguistic Precision: Probing experiments revealed that the top layers of the style classifier (specifically layers 11 and 12 of RoBERTa-base) provide the most effective information for scoring token importance.

Conclusion

By combining the stability of bootstrapped pseudo-data with the surgical precision of stepwise reinforcement rewards, this framework effectively bridges the gap between supervised and unsupervised TST. Future work may extend this fine-grained reward logic to other controllable generation tasks, such as abstractive summarization and dialogue systems, where nuanced feedback remains a critical bottleneck.

Summary updated

BibTeX
@inproceedings{liu2022learning,
  author = {Zhengyuan Liu and Nancy F. Chen},
  title = {{Learning from Bootstrapping and Stepwise Reinforcement Reward: A Semi-Supervised Framework for Text Style Transfer}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.201},
}
Figure