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.
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.
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