Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer

NAACL 2018  ยท  Juncen Li, Robin Jia, He He, Percy Liang ยท

We consider the task of text attribute transfer: transforming a sentence to alter a specific attribute (e.g., sentiment) while preserving its attribute-independent content (e.g., changing "screen is just the right size" to "screen is too small"). Our training data includes only sentences labeled with their attribute (e.g., positive or negative), but not pairs of sentences that differ only in their attributes, so we must learn to disentangle attributes from attribute-independent content in an unsupervised way. Previous work using adversarial methods has struggled to produce high-quality outputs. In this paper, we propose simpler methods motivated by the observation that text attributes are often marked by distinctive phrases (e.g., "too small"). Our strongest method extracts content words by deleting phrases associated with the sentence's original attribute value, retrieves new phrases associated with the target attribute, and uses a neural model to fluently combine these into a final output. On human evaluation, our best method generates grammatical and appropriate responses on 22% more inputs than the best previous system, averaged over three attribute transfer datasets: altering sentiment of reviews on Yelp, altering sentiment of reviews on Amazon, and altering image captions to be more romantic or humorous.

PDF Abstract NAACL 2018 PDF NAACL 2018 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Unsupervised Text Style Transfer GYAFC Retri [[Li et al.2018]] BLEU 0.4 # 11
Unsupervised Text Style Transfer Yelp Retri [[Li et al.2018]] BLEU 2.9 # 11
Unsupervised Text Style Transfer Yelp2018 Del [[Li et al.2018]] BLEU 29.0 # 1
Text Style Transfer Yelp Review Dataset (Small) DeleteOnly G-Score (BLEU, Accuracy) 54.11 # 5
Text Style Transfer Yelp Review Dataset (Small) DeleteAndRetrieve G-Score (BLEU, Accuracy) 54.64 # 4

Results from Other Papers


Task Dataset Model Metric Name Metric Value Rank Source Paper Compare
Unsupervised Text Style Transfer GYAFC DelRetri [[Li et al.2018]] BLEU 21.2 # 5
Unsupervised Text Style Transfer GYAFC Template [[Li et al.2018]] BLEU 35.2 # 2
Unsupervised Text Style Transfer GYAFC Del [[Li et al.2018]] BLEU 29.2 # 4
Unsupervised Text Style Transfer Yelp DelRetri [[Li et al.2018]] BLEU 31.1 # 7
Unsupervised Text Style Transfer Yelp Template [[Li et al.2018]] BLEU 45.5 # 3

Methods


No methods listed for this paper. Add relevant methods here