TL;DR
This paper investigates text style transfer (TST) within task-oriented domains (like booking flights or hotels), where preserving named entities (NEs) is critical to maintaining the text's meaning. The authors introduce SGDD-TST, the largest human-annotated dataset for TST content similarity to date, and demonstrate that named entity corruption is the primary driver of content loss. Finally, they show that explicitly incorporating named entity overlap significantly improves traditional automatic evaluation metrics like BLEU and ROUGE.
What Problem Does This Paper Address?
Text style transfer (TST) aims to alter the style of a text (e.g., making it more formal, polite, or positive) while keeping its core meaning intact. While TST has progressed rapidly, most models are evaluated on casual domains like entertainment, fiction, or social media reviews.
This paper tackles TST in task-oriented production systems—such as dialogue agents handling flight bookings or restaurant reservations. In these settings, content preservation is high-stakes. If a style transfer model changes "San Francisco" to "San Jose" or drops the time "5:30 PM" to sound more natural, the underlying system fails. Traditional evaluation metrics like BLEU or word vector similarity often fail to penalize these critical entity alterations properly.
Methods
The authors approach the problem through a mix of dataset generation, human error analysis, and metric enrichment:
- Formality Transfer Pipeline: They fine-tuned a base T5 model on the GYAFC formality dataset to act as the style transfer engine. They then ran this model over task-oriented dialogues to generate informal-to-formal and formal-to-informal paraphrases.
- Human Annotation: They used crowdsourcing (via Yandex.Toloka) to collect human judgments on whether the generated sentences preserved the original meaning, using a strict 3-point similarity scale.
- Error Analysis: They manually reviewed pairs where the TST model altered the meaning to categorize why the content was lost (e.g., named entity loss, part-of-speech corruption, or sentence type changes).
- Named Entity Metric Enrichment: To fix baseline metrics, they used a SpaCy NER-tagger to extract entities, lemmatized them, and calculated a Jaccard similarity index ($M_{NE}$) based on entity overlap. They then dynamically merged this with standard metrics ($M_{strong}$) using the formula: $$M_{weighted} = M_{strong} \times (1 - p) + M_{NE} \times p$$ where $p$ is the percentage of named entity tokens in the text.
Datasets
The paper introduces SGDD-TST (Schema-Guided Dialogue Dataset for Text Style Transfer).
- Size: 10,287 text pairs, making it the largest public TST dataset annotated with human content similarity scores.
- Source: Derived from the Schema-Guided Dialogue Dataset (SGDD), which contains over 16,000 task-oriented dialogues spanning domains like flights, hotels, and restaurants.
Key Insights and Ideas
- Named Entities are the Single Biggest Bottleneck: The manual error analysis revealed that the loss or corruption of named entities (like dates, times, and locations) is present in the vast majority of cases where a style transfer model loses the original meaning.
- Traditional Metrics are Blind to Entities: Standard n-gram metrics (BLEU, ROUGE) and static word vector similarities treat all tokens with relatively equal weight. They fail to recognize that losing a specific location name destroys the sentence's utility far more than losing an adjective.
- Pre-trained Evaluation Models Already "Get It": While explicit named-entity enrichment dramatically helps simpler metrics, it provides zero benefit to large, pre-trained evaluation models like BLEURT or BERTScore. These deep models have already implicitly learned the semantic importance of named entities during their pre-training phases.
Key Results
The manual error analysis highlights that named entity errors dominate content loss:
When evaluating automatic metrics against human judgments using the Spearman rank correlation coefficient:
- Baseline Metrics Improved Significantly: Adding the named entity heuristic boosted METEOR correlation from 0.10 to 0.25 (+0.15), ROUGE-1 from 0.29 to 0.36 (+0.07), and Word2Vec cosine similarity from 0.22 to 0.33 (+0.11).
- Top Performers Unchanged: BLEURT achieved the highest overall correlation with human scores (0.56), but its performance remained flat when the named entity heuristic was added. BertScore/DeBERTa actually saw a slight decrease (from 0.47 to 0.45).
Limitations and Future Work
The authors note that their straightforward heuristic for merging named entity signals (the weighted Jaccard index) is ineffective for state-of-the-art trained metrics like BLEURT. Furthermore, even the best-performing metric (BLEURT) only achieves a Spearman correlation of 0.56 with human labels. This leaves a massive gap between automatic metrics and human perception, highlighting the need for the NLP community to develop novel, domain-specific similarity measures explicitly optimized for task-oriented text style transfer.
Summary updated