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

TL;DR

This paper introduces "politeness transfer," the task of making sentences more polite while preserving their original meaning. They propose a novel "tag and generate" pipeline that achieves state-of-the-art results in content preservation and comparable or better style transfer accuracy across multiple tasks, including politeness.

What Problem Does This Paper Address?

Politeness is a crucial aspect of social interaction, influencing communication in various contexts like emails, organizational settings, and everyday conversations. While its importance is recognized, defining and transferring politeness as a distinct style in text has been challenging. Unlike sentiment analysis, where clear positive and negative poles exist, politeness is more nuanced, influenced by culture, language, and social dynamics. Existing style transfer methods often struggle with tasks where one of the styles is less clearly defined or neutral, such as converting non-polite (or neutral) sentences to polite ones. This paper aims to bridge this gap by introducing a new task, a large dataset, and a robust model for politeness transfer.

Methods

The core of the proposed solution is a "tag and generate" pipeline. This approach consists of two main stages:

  1. Tagger: This module takes an input sentence and identifies stylistic attributes. For tasks like politeness transfer, where the source style might be neutral, the tagger adds special [TAG] tokens to indicate where politeness markers should be inserted. For tasks with clearly defined styles (e.g., sentiment), it can replace existing style markers with [TAG] tokens. This stage aims to create a "style-invariant" representation of the sentence's content. The tagger has two variants:
  2. Replace-tagger: Used when style markers are present in the source sentence, which are then replaced by [TAG].
  3. Add-tagger: Used when the source sentence is style-neutral, and [TAG] tokens are added to mark positions for target style insertion.
  4. Generator: This module takes the tagged sentence from the tagger and replaces the [TAG] tokens with words or phrases that convey the target style (politeness, in this case). The generator is trained to produce sentences in the desired style while preserving the content encoded by the non-tagged parts of the input.

A key innovation is the interpretability of the intermediate "tagged" sentence, which explicitly encodes the content without the original style. The authors also introduce a method for estimating style-specific phrases (using TF-IDF) to guide the tagging and generation process.

Datasets

The paper introduces a new, large-scale dataset for politeness transfer.

  • Politeness Dataset: This dataset is derived from the Enron corpus and contains nearly 1.39 million sentences automatically labeled for politeness. They also hand-curated a test set of 800 "action-directives" (requests) for more precise evaluation.
  • Other Datasets: The model is also evaluated on several established style transfer tasks using datasets for:
  • Captions (factual, romantic, humorous)
    • Sentiment (Yelp restaurant reviews, Amazon product reviews)
    • Gender
    • Political slant

Key Insights and Ideas

  • Politeness is a Unique Style: The paper highlights that politeness transfer is fundamentally different from tasks like sentiment transfer. Politeness often involves adding subtle linguistic cues rather than replacing existing ones, and its absence (in neutral sentences) is harder to explicitly define than a negative sentiment.
  • Interpretability Matters: The "tag and generate" approach offers a more interpretable pipeline compared to methods that map directly to a latent style representation. The intermediate tagged sentence clearly shows what content is preserved and where stylistic changes are intended.
  • Add-tagger for Neutral Styles: The development of the "add-tagger" variant is crucial for handling style transfer from neutral or poorly defined styles, a common scenario for politeness.
  • Contextual Tagging: The idea of using positional [TAG] tokens (e.g., [TAG]_0, [TAG]_1) allows the model to learn context-dependent style insertions, making politeness generation more nuanced (e.g., using "please" at the beginning vs. "thanks" at the end).

Key Results

  • State-of-the-Art Performance: The proposed model outperforms existing methods on automatic metrics for content preservation across six style transfer tasks.
  • Competitive Style Transfer Accuracy: It achieves comparable or better style transfer accuracy than baselines.
  • Human Evaluation Wins: Human evaluations show significant improvements in content preservation and grammaticality, with comparable or better target attribute matching compared to strong baselines like DRG.
  • Politeness Specifics: On the politeness task, the model achieved a BLEU score significantly higher (58.61 points) than the DRG baseline.
  • Robustness: The model demonstrates effectiveness across a broad spectrum of style transfer tasks, including those with neutral source styles.

Limitations and Future Work

  • Tagger Variant Choice: The paper notes that the choice of tagger variant (add-tagger vs. replace-tagger) is task-dependent, and while a combined variant shows promise, a deeper understanding of this phenomenon is an interesting future research direction.
  • Nuance in Politeness: While the model performs well, the paper acknowledges that politeness is deeply tied to culture and social context, which might require further exploration for cross-cultural applications.
  • Future Work: The authors suggest that further research could explore more sophisticated methods for estimating style phrases and understanding the phenomenon of choosing optimal tagging operations for different datasets.

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