Abstract: Text Style Transfer (TST) requires a delicate balance between style accuracy, meaning preservation, and fluency. STAMP (Style TrAnsfer with Multi-iteration Preference Optimization) addresses these challenges by combining a pseudo-parallel supervised fine-tuning phase with an iterative preference optimization process. By re-introducing "hope-and-fear" sampling and dynamic reward weighting, STAMP achieves state-of-the-art performance on diverse style benchmarks while significantly reducing training time compared to previous top-tier models.
Introduction
Researchers from USC’s Information Sciences Institute have introduced STAMP, a framework that significantly advances the field of text style transfer. By reviving "hope-and-fear" sampling—a technique originally developed for statistical machine translation—and integrating it with modern iterative preference optimization, STAMP achieves superior results in style strength and meaning preservation while being more training-efficient than existing baselines.
The Challenge of Style Transfer
Text Style Transfer involves rewriting a sentence to match a target style (e.g., converting casual speech to Shakespearean prose) while keeping the original meaning intact. This task is a complex balancing act between three often-conflicting goals: Target Style Strength, Meaning Preservation, and Fluency.
The field has historically faced two major hurdles:
- Lack of Parallel Data: There is a scarcity of "gold standard" pairs where the exact same sentence is written in two different styles.
- Optimization Gaps: Standard training objectives often fail to correlate with human-centric metrics. While modern techniques like Direct Preference Optimization (DPO) help, they often struggle to balance multiple rewards simultaneously without degrading one of them.
The STAMP Framework
STAMP addresses these issues through a robust two-phase training pipeline that combines supervised learning with iterative refinement.
1. Supervised Fine-Tuning (SFT) Phase
To overcome the lack of parallel data, STAMP utilizes a "pseudo-parallel" generation method. The researchers use a general paraphraser to strip style from a sentence, followed by an "inverse" model to add the target style. This creates a synthetic dataset that provides the model with a solid foundational understanding of the target styles before the optimization phase.
2. Multi-iteration Preference Optimization (PO) Phase
This phase introduces the core innovations of STAMP:
- Hope-and-Fear Sampling: Borrowed from machine translation research, this strategy selects contrastive pairs for training. The "hope" sample is a generated rewrite with high reward and high model probability; the "fear" sample has high model probability but low reward. This teaches the model to avoid "reachable" bad outputs.
- Dynamic Weighted Reward: To prevent the model from sacrificing fluency for style strength, STAMP uses a weighted product of metrics. It dynamically adjusts the exponents based on the frequency of "reversed" scores (where a lower-ranked sample beats a higher-ranked one in a specific sub-metric) during training.
Key Results
The researchers evaluated STAMP on the Corpus of Diverse Styles (CDS) and Grammarly’s Yahoo Answers Formality Corpus (GYAFC).
STAMP outperformed all baselines, including STEER, ASTRAPOP, and GPT-3.5 (5-shot):
- Superior Performance: On the CDS dataset, STAMP achieved an aggregate score of 0.474, significantly higher than the previous state-of-the-art, STEER (0.395).
- Efficiency: STAMP reached performance parity with the STEER model in just 43% of the training time on CDS and 82% on GYAFC.
- Qualitative Excellence: Case studies showed that STAMP accurately adopted archaic style markers (like "'tis" and "o'er") without hallucinating extra content or losing the original meaning.
Conclusion and Future Work
STAMP demonstrates that "old-school" sampling strategies can yield significant gains when applied to modern LLM preference optimization. By iteratively updating the reference model and employing dynamic rewards, STAMP sets a new performance ceiling for style transfer. Future work will focus on addressing model "peakiness"—a tendency to over-prioritize certain high-probability tokens—and developing even more robust reward models to capture the nuances of human style.
Summary updated