TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Delete, Retrieve, Generate: A Simple Approach to Sentiment...

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

Juncen Li, Robin Jia, He He, Percy Liang

2018-04-17NAACL 2018 6Style TransferAttributeUnsupervised Text Style TransferImage Captioning
PaperPDFCodeCodeCode(official)CodeCodeCode(official)

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.

Results

TaskDatasetMetricValueModel
Text GenerationYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.64DeleteAndRetrieve
Text GenerationYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.11DeleteOnly
Text Style TransferYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.64DeleteAndRetrieve
Text Style TransferYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.11DeleteOnly
2D Semantic SegmentationYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.64DeleteAndRetrieve
2D Semantic SegmentationYelp Review Dataset (Small)G-Score (BLEU, Accuracy)54.11DeleteOnly

Related Papers

MGFFD-VLM: Multi-Granularity Prompt Learning for Face Forgery Detection with VLM2025-07-16Non-Adaptive Adversarial Face Generation2025-07-16Language-Guided Contrastive Audio-Visual Masked Autoencoder with Automatically Generated Audio-Visual-Text Triplets from Videos2025-07-16Attributes Shape the Embedding Space of Face Recognition Models2025-07-15COLIBRI Fuzzy Model: Color Linguistic-Based Representation and Interpretation2025-07-15Transferring Styles for Reduced Texture Bias and Improved Robustness in Semantic Segmentation Networks2025-07-14Ref-Long: Benchmarking the Long-context Referencing Capability of Long-context Language Models2025-07-13Model Parallelism With Subnetwork Data Parallelism2025-07-11