Politeness Transfer: A Tag and Generate Approach

Aman Madaan, Amrith Setlur, Tanmay Parekh, Barnabás Póczos, Graham Neubig, Yiming Yang, Ruslan Salakhutdinov, Alan W. Black, Shrimai Prabhumoye

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 two-stage Tag and Generate pipeline, illustrating the Add-Tagger and Replace-Tagger variants followed by the Generator stage.
  1. 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.
  2. 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.

Quantitative results comparing the proposed model (OURS) against baselines (CAE, BST, DRG) across three style transfer tasks.

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

BibTeX
@inproceedings{madaan2020politeness,
  author = {Aman Madaan and Amrith Setlur and Tanmay Parekh and Barnabás Póczos and Graham Neubig and Yiming Yang and Ruslan Salakhutdinov and Alan W. Black and Shrimai Prabhumoye},
  title = {{Politeness Transfer: A Tag and Generate Approach}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.169},
}
Figure