Introduction
Text style transfer typically involves modifying specific attributes of a sentence while maintaining its core semantic meaning. While sentiment flipping (e.g., positive to negative) is a common benchmark, politeness transfer introduces a unique challenge. Unlike polarized attributes, "non-polite" sentences are often neutral rather than impolite. Standard "delete-and-replace" strategies fail here because politeness is frequently additive, requiring the insertion of stylistic markers like "Could you please" rather than the replacement of existing words.
Methodology: The Tag and Generate Pipeline
To address the limitations of existing models, this paper proposes a two-stage Tag and Generate pipeline. This approach separates the identification of stylistic positions from the generation of specific tokens, enhancing both performance and interpretability.
- The Tagger: This component identifies where stylistic attributes should be placed. For polarized tasks, a Replace-Tagger swaps style-specific words with a
[TAG]token. For politeness, an Add-Tagger learns to insert[TAG]tokens into neutral sentences at positions where polite phrases are likely to occur. - The Generator: A Transformer-based model processes the style-agnostic tagged sentence, replacing
[TAG]tokens with contextually appropriate words for the target style.
Experimental Setup
The authors introduced the Enron Politeness Dataset, a large-scale resource comprising 1.39 million sentences from the Enron email corpus, labeled with politeness scores. Additionally, a hand-curated Action-Directive Test Set of 800 requests was used to evaluate the model's ability to transform workplace communication. The model was also benchmarked on five other style transfer tasks, including sentiment, gender, and political slant.
Key Results
The "Tag and Generate" approach significantly outperformed state-of-the-art models across multiple dimensions. In the politeness task, the model achieved a BLEU-self score of 70.44, a substantial improvement over the previous best (DRG) at 11.83, demonstrating superior content preservation.
Human evaluations further confirmed these findings, with the proposed model receiving higher ratings for grammaticality, meaning preservation, and transfer accuracy. Qualitatively, the model successfully employed complex linguistic strategies, such as using counterfactual modals ("Could you...") and introductory apologies ("Sorry..."), which baseline models often failed to capture.
Conclusion
The Tag and Generate framework provides a robust solution for additive style transfer tasks like politeness. By creating a human-readable intermediate representation through tagging, the model offers greater transparency than traditional "black-box" latent space methods. Future work may involve developing universal taggers that adapt across diverse cultural and linguistic contexts.
Summary updated