Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Improving Formality Style Transfer with Context-Aware Rule Injection

About

Models pre-trained on large-scale regular text corpora often do not work well for user-generated data where the language styles differ significantly from the mainstream text. Here we present Context-Aware Rule Injection (CARI), an innovative method for formality style transfer (FST). CARI injects multiple rules into an end-to-end BERT-based encoder and decoder model. It learns to select optimal rules based on context. The intrinsic evaluation showed that CARI achieved the new highest performance on the FST benchmark dataset. Our extrinsic evaluation showed that CARI can greatly improve the regular pre-trained models' performance on several tweet sentiment analysis tasks.

Zonghai Yao, Hong Yu• 2021

Related benchmarks

TaskDatasetResultRank
Formality Style TransferGYAFC Entertainment & Music (test)
BLEU74.31
10
Formality Style TransferGYAFC Family & Relationships (test)
BLEU78.05
10
Emotion intensity ordinal classificationAffect in Tweets EI-oc Joy SemEval-2018 Task 1
Pearson r0.735
9
Emotion intensity ordinal classificationAffect in Tweets EI-oc Fear SemEval-2018 Task 1
Pearson r0.714
9
Irony DetectionIrony Detection Irony-a SemEval-2018 Task 3
F1 Score73.7
9
Irony DetectionIrony Detection Irony-b SemEval-2018 Task 3
F1 Score53.8
9
Emotion intensity ordinal classificationAffect in Tweets EI-oc Anger SemEval-2018 Task 1
Pearson r0.722
9
Emotion intensity ordinal classificationAffect in Tweets EI-oc Sad SemEval-2018 Task 1
Pearson r70.1
9
Formality Style TransferGYAFC E&M (test)
BLEU74.31
7
Formality Style TransferGYAFC F&R (test)
BLEU78.05
7
Showing 10 of 10 rows

Other info

Code

Follow for update