Skip to main content
QUICK REVIEW

[Paper Review] Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer

Juncen Li, Robin Jia|arXiv (Cornell University)|Apr 17, 2018
Topic ModelingComputer Science20 references44 citations
TL;DR

The paper presents a simple unsupervised approach to text attribute transfer by locating and deleting attribute markers, retrieving target-attribute exemplars, and generating fluent outputs, outperforming adversarial models in human evaluations.

ABSTRACT

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.

Motivation & Objective

  • Motivate text attribute transfer with unaligned data and limited attribute-labeled sentences.
  • Propose a set of simpler, trainable methods that separate content from attribute markers.
  • Demonstrate that removing attribute markers and reassembling with target markers yields fluent outputs.
  • Show that retrieval-augmented generation improves grammaticality and attribute correctness over baselines and prior adversarial models.

Proposed method

  • Identify attribute markers as discriminative n-grams by comparing relative frequencies across attribute-labeled corpora.
  • Delete: remove high-salience attribute markers from the source sentence to obtain content.
  • Retrieve: fetch a target-attribute sentence with similar content using TF-IDF overlap or content embedding distance.
  • Generate: combine content with target attribute markers (TemplateBased), or generate via neural models (DeleteOnly, DeleteAndRetrieve), optionally conditioning on retrieved target markers.
  • Train DeleteOnly to reconstruct sentences from their content and source attribute as an auto-encoder objective.
  • Train DeleteAndRetrieve with denoising to prevent trivial stitching and to leverage retrieved markers for fluent generation.

Experimental results

Research questions

  • RQ1Can text attribute transfer be achieved by deleting attribute-specific phrases and reintroducing target attributes through retrieval and generation?
  • RQ2Do simpler, non-adversarial approaches outperform adversarially trained models on sentiment/style transfer tasks when evaluated by humans?
  • RQ3How does conditioning on retrieved target-markers affect grammaticality and content preservation in transfer outputs?

Key findings

  • A simple baseline that deletes attribute markers and retrieves target-attribute content outperforms prior adversarial systems in human evaluation by a notable margin.
  • The strongest neural variant (DeleteAndRetrieve) achieves the best overall performance across three datasets and outperforms all other automatic approaches.
  • Across Yelp, Amazon, and Captions, the best method reaches higher grammaticality, content preservation, and target-attribute matching than previous methods.
  • Human evaluation shows the best method (DeleteAndRetrieve) surpasses other systems on grammaticality, content preservation, and attribute match, with clear trade-offs adjustable via marker deletion threshold.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.