---
title: "Delete, Retrieve, Generate — paper by Li et al. (2018)"
description: "The paper transfers an attribute such as sentiment or style without parallel data. 23 references, cited by 310 papers here."
authors: ["Juncen Li", "Robin Jia", "He He", "Percy Liang"]
year: 2018
venue: "arXiv:1804.06437"
source: "https://arxiv.org/abs/1804.06437"
arxiv: "1804.06437"
licence: "arXiv — non-exclusive license to distribute"
licence_url: "http://arxiv.org/licenses/nonexclusive-distrib/1.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/li-2018-delete-retrieve-generate-simple-approach/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/li-2018-delete-retrieve-generate-simple-approach/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/page/2/) / Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer

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

Paper · 2018 · Juncen Li, Robin Jia, He He et al.

**Authors:** Juncen Li, [Robin Jia](https://md.research.elamur.ai/free/en/authors/robin-jia/), [He He](https://md.research.elamur.ai/free/en/authors/he-he/) and [Percy Liang](https://md.research.elamur.ai/free/en/authors/percy-liang/) · **Year:** 2018 · **Venue:** arXiv:1804.06437 (NAACL 2018) **Link:** [arxiv.org/abs/1804.06437](https://arxiv.org/abs/1804.06437) · **Licence:** copyrighted — summary only

[**41** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2797227342) · [Cited by **310** papers in our library of the 151,627 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/li-2018-delete-retrieve-generate-simple-approach/cited-by/) · [arXiv:1804.06437](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [Publisher's page](https://arxiv.org/abs/1804.06437)
- [PDF](https://arxiv.org/pdf/1804.06437)
- [arXiv 1804.06437](https://arxiv.org/abs/1804.06437)
- [OpenAlex](https://openalex.org/W2797227342)

**Authors (4)**

1. [Juncen Li](https://openalex.org/A5076685789) [ORCID](https://orcid.org/0000-0001-7868-6100) · h 8 · 636 citations · 22 works
2. [Robin Jia](https://openalex.org/A5041906762) [ORCID](https://orcid.org/0009-0002-8123-7132) · h 18 · 6,309 citations · 102 works
3. [He He](https://openalex.org/A5100775952) [ORCID](https://orcid.org/0000-0002-9118-2449) · h 32 · 5,194 citations · 142 works
4. [Percy Liang](https://openalex.org/A5025255782) [ORCID](https://orcid.org/0000-0002-0458-6139) · h 85 · 43,805 citations · 462 works

Citations and author metrics: OpenAlex, 2026-10-14; authors with the same name are not always told apart.

## What it is about

The paper transfers an attribute such as sentiment or style without parallel data. It assumes that a sentence's attribute shows up as a few distinctive phrases, such as a comparative phrase for a negative review. The method has three steps. Delete: score each n-gram by how much more often it appears in one attribute class than in the other, using smoothed relative frequencies, and remove those above a threshold, leaving the content words. Retrieve: find the sentence in the target class whose content is most similar to the remaining words, by TF-IDF overlap or embedding distance. Generate: combine the content with the target phrases, either by a fixed template or by a small neural model. The threshold can be changed at test time to control how many markers are removed. On human ratings the best variant yields grammatical and appropriate outputs on about 22 percent more inputs than the best earlier system, averaged over three datasets: Yelp and Amazon reviews, and image captions.

## Ideas

- I1. Find the author's markers by salience. For an author against the standard, compute the smoothed ratio of n-gram counts and keep the top ones (*thou*, *hath*, *unto*). This gives the candidate list for the author delta without a hand-written list, and a threshold tuned on dev sets the cut.
- I2. Report a curve, not one number. Vary the marker threshold and report content match against style match. The curve fits exact mode (strict) and normal mode (loose) better than a single score.
- I3. Retrieve then fill for unseen concepts. For a slot with no known chunk, retrieve a sentence from the target author with similar meta tokens and take its chunk. This is a count-based answer to open problem 3, which asks for trees rather than strings.
- I4. Keep the template fill as a deterministic route to compare against the encoder. The paper's template baseline is cheap to build and gives a floor for each delta.

## For Mova

The code is `tools/translate` (`profile.rs` for the chunk choice, `measure.rs` for the threshold curve) and `en/src/morph.rs` for marker morphology. The neural generator is not for Mova. The marker-salience step and the threshold curve are count-based and fit the author delta directly, addressing open problem 6.

## Institutions

[🎓**Stanford University** Stanford · United States 567 works · 335,872 citations](https://md.research.elamur.ai/free/en/universities/stanford-university/) · [🏢**Tencent** Shenzhen · China 174 works · 21,383 citations](https://md.research.elamur.ai/free/en/companies/tencent/)

## Fields, topics and concepts

📚 Shelves 5 The field of science this work belongs to (OpenAlex fields).[Computer Science · 19,503 works](https://md.research.elamur.ai/free/en/shelves/computer-science/) · [Artificial Intelligence · 18,805 works](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · [Arts and Humanities · 17,959 works](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · [Language and Linguistics · 17,789 works](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · [Computer Vision and Pattern Recognition · 3,621 works](https://md.research.elamur.ai/free/en/shelves/computer-science/computer-vision-and-pattern-recognition/)

🧭 Topics 2 Research subjects and languages the work is about.[Machine translation · 1,109 works](https://md.research.elamur.ai/free/en/topics/machine-translation/) · [Sentiment & emotion · 1,037 works](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/)

## Cite

Cite as Juncen Li, Robin Jia, He He and Percy Liang. 2018. Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer. arXiv:1804.06437.

The paper itself, not this card. BibTeX from the library's record of the work. [arXiv 1804.06437](https://arxiv.org/abs/1804.06437)

```bibtex
@misc{li2018delete,
  title = {{Delete, Retrieve, Generate: A Simple Approach to Sentiment and Style Transfer}},
  author = {Juncen Li, Robin Jia, He He and Percy Liang},
  year = {2018},
  eprint = {1804.06437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.06437}
}
```

- [← previous Simultaneously Self-Attending to All Mentions for Full-Abstract Biological Relation Extraction](https://md.research.elamur.ai/free/en/papers/verga-2018-simultaneously-self-attending-all-mentions/)
- [next → Lessons from Natural Language Inference in the Clinical Domain](https://md.research.elamur.ai/free/en/papers/romanov-2018-lessons-natural-language-inference-clinical/)
- [↑ back to papers of 2018](https://md.research.elamur.ai/free/en/papers/2018/page/2/)

## References

23 references, 11 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. M. Arjovsky and L. Bottou. 2017. Towards principled methods for training generative adversarial networks. In International Conference on Learning Representations (ICLR). [find](https://scholar.google.com/scholar?q=M%2E+Arjovsky+and+L%2E+Bottou%2E+2017%2E+Towards+principled+methods+for+training+generative+adversarial+networks%2E+In+International+Conference+on+Learning+Representations+%28ICLR%29%2E)
2. M. Artetxe, G. Labaka, E. Agirre, and K. Cho. 2017. [Unsupervised neural machine translation](https://md.research.elamur.ai/free/en/papers/artetxe-2017-unsupervised-neural-machine-translation/). arXiv preprint arXiv:1710.11041 . [↗](https://arxiv.org/abs/1710.11041)
3. K. Bousmalis, N. Silberman, D. Dohan, D. Erhan, and D. Krishnan. 2017. Unsupervised pixel-level domain adaptation with generative adversarial networks. In Computer Vision and Pattern Recognition (CVPR). [find](https://scholar.google.com/scholar?q=K%2E+Bousmalis%2C+N%2E+Silberman%2C+D%2E+Dohan%2C+D%2E+Erhan%2C+and+D%2E+Krishnan%2E+2017%2E+Unsupervised+pixel%2Dlevel+domain+adaptation+with+generative+adversarial+networks%2E+In+Computer+Vision+and+Pattern+Recognition+%28CVPR)
4. Z. Fu, X. Tan, N. Peng, D. Zhao, and R. Yan. 2018. [Style transfer in text: Exploration and evaluation](https://md.research.elamur.ai/free/en/papers/fu-2017-style-transfer-text-exploration-evaluation/). In Association for the Advancement of Artificial Intelligence (AAAI).
5. C. Gan, Z. Gan, X. He, J. Gao, and L. Deng. 2017. Stylenet: Generating attractive visual captions with styles. In Computer Vision and Pattern Recognition (CVPR). [find](https://scholar.google.com/scholar?q=C%2E+Gan%2C+Z%2E+Gan%2C+X%2E+He%2C+J%2E+Gao%2C+and+L%2E+Deng%2E+2017%2E+Stylenet%3A+Generating+attractive+visual+captions+with+styles%2E+In+Computer+Vision+and+Pattern+Recognition+%28CVPR%29%2E)
6. A. Globerson and S. Roweis. 2006. Nightmare at test time: robust learning by feature deletion. In International Conference on Machine Learning (ICML). pages 353–360. [find](https://scholar.google.com/scholar?q=A%2E+Globerson+and+S%2E+Roweis%2E+2006%2E+Nightmare+at+test+time%3A+robust+learning+by+feature+deletion%2E+In+International+Conference+on+Machine+Learning+%28ICML%29%2E+pages+353%E2%80%93360%2E)
7. I. Goodfellow, D. Warde-farley, M. Mirza, A. Courville, and Y. Bengio. 2013. Maxout networks. In International Conference on Machine Learning (ICML). pages 1319–1327. [find](https://scholar.google.com/scholar?q=I%2E+Goodfellow%2C+D%2E+Warde%2Dfarley%2C+M%2E+Mirza%2C+A%2E+Courville%2C+and+Y%2E+Bengio%2E+2013%2E+Maxout+networks%2E+In+International+Conference+on+Machine+Learning+%28ICML%29%2E+pages+1319%E2%80%931327%2E)
8. K. Guu, T. B. Hashimoto, Y. Oren, and P. Liang. 2018. [Generating sentences by editing prototypes](https://md.research.elamur.ai/free/en/papers/guu-2017-generating-sentences-editing-prototypes/). Transactions of the Association for Computational Linguistics (TACL) 0.
9. R. He and J. McAuley. 2016. Ups and downs: Modeling the visual evolution of fashion trends with one-class collaborative filtering. In World Wide Web (WWW). [find](https://scholar.google.com/scholar?q=R%2E+He+and+J%2E+McAuley%2E+2016%2E+Ups+and+downs%3A+Modeling+the+visual+evolution+of+fashion+trends+with+one%2Dclass+collaborative+filtering%2E+In+World+Wide+Web+%28WWW%29%2E)
10. Z. Hu, Z. Yang, X. Liang, R. Salakhutdinov, and E. P. Xing. 2017. [Toward controlled generation of text](https://md.research.elamur.ai/free/en/papers/hu-2017-toward-controlled-generation-text/). In International Conference on Machine Learning (ICML).
11. Z. Jun-Yan, P. Taesung, I. Phillip, and E. A. A. 2017. Unpaired image-to-image translation using cycle-consistent adversarial networks. In International Conference on Computer Vision (ICCV). [find](https://scholar.google.com/scholar?q=Z%2E+Jun%2DYan%2C+P%2E+Taesung%2C+I%2E+Phillip%2C+and+E%2E+A%2E+A%2E+2017%2E+Unpaired+image%2Dto%2Dimage+translation+using+cycle%2Dconsistent+adversarial+networks%2E+In+International+Conference+on+Computer+Vision+%28ICCV%29%2E)
12. G. Lample, L. Denoyer, and M. Ranzato. 2017. [Unsupervised machine translation using monolingual corpora only](https://md.research.elamur.ai/free/en/papers/lample-2017-unsupervised-machine-translation-using-monolingual/). arXiv preprint arXiv:1711.00043 . [↗](https://arxiv.org/abs/1711.00043)
13. I. Melnyk, C. N. dos Santos, K. Wadhawan, I. Padhi, and A. Kumar. 2017. Improved neural text attribute transfer with non-parallel data. arXiv preprint arXiv:1711.09395 . [↗](https://arxiv.org/abs/1711.09395)
14. M. L. Newman, J. W. Pennebaker, D. S. Berry, and J. M. Richards. 2003. Lying words: Predicting deception from linguistic styles. Personality and Social Psychology Bulletin 29. [find](https://scholar.google.com/scholar?q=M%2E+L%2E+Newman%2C+J%2E+W%2E+Pennebaker%2C+D%2E+S%2E+Berry%2C+and+J%2E+M%2E+Richards%2E+2003%2E+Lying+words%3A+Predicting+deception+from+linguistic+styles%2E+Personality+and+Social+Psychology+Bulletin+29%2E)
15. E. Pavlick and J. Tetreault. 2017. [An empirical analysis of formality in online communication](https://md.research.elamur.ai/free/en/papers/pavlick-2016-empirical-analysis-formality-online-communication/). Transactions of the Association for Computational Linguistics (TACL) 4.
16. M. Recasens, C. Danescu-Niculescu-Mizil, and D. Jurafsky. 2013. [Linguistic models for analyzing and detecting biased language](https://md.research.elamur.ai/free/en/papers/recasens-2013-linguistic-models-analyzing-detecting-biased/). In Association for Computational Linguistics (ACL).
17. T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. 2016. [Improved techniques for training gans](https://md.research.elamur.ai/free/en/papers/salimans-2016-improved-techniques-training-gans/). In Advances in Neural Information Processing Systems (NIPS).
18. R. Schwartz, M. Sap, Y. Konstas, L. Zilles, Y. Choi, and N. A. Smith. 2017. The effect of different writing tasks on linguistic style: A case study of the ROC story cloze task. In Computational Natural Language Learning (CoNLL). [find](https://scholar.google.com/scholar?q=R%2E+Schwartz%2C+M%2E+Sap%2C+Y%2E+Konstas%2C+L%2E+Zilles%2C+Y%2E+Choi%2C+and+N%2E+A%2E+Smith%2E+2017%2E+The+effect+of+different+writing+tasks+on+linguistic+style%3A+A+case+study+of+the+ROC+story+cloze+task%2E+In+Computational+Natura)
19. T. Shen, T. Lei, R. Barzilay, and T. Jaakkola. 2017. [Style transfer from non-parallel text by cross-alignment](https://md.research.elamur.ai/free/en/papers/shen-2017-style-transfer-non-parallel-text/). In Advances in Neural Information Processing Systems (NIPS).
20. P. Vincent, H. Larochelle, Y. Bengio, , and P. Manzagol. 2008. Extracting and composing robust features with denoising autoencoders. In International Conference on Machine Learning (ICML). [find](https://scholar.google.com/scholar?q=P%2E+Vincent%2C+H%2E+Larochelle%2C+Y%2E+Bengio%2C+%2C+and+P%2E+Manzagol%2E+2008%2E+Extracting+and+composing+robust+features+with+denoising+autoencoders%2E+In+International+Conference+on+Machine+Learning+%28ICML%29%2E)
21. S. Wang and C. D. Manning. 2012. [Baselines and bigrams: Simple, good sentiment and topic classification](https://md.research.elamur.ai/free/en/papers/wang-2012-baselines-bigrams-simple-good-sentiment/). In Association for Computational Linguistics (ACL).
22. M. D. Zeiler. 2012. [ADADELTA: an adaptive learning rate method](https://md.research.elamur.ai/free/en/papers/zeiler-2012-adadelta-adaptive-learning-rate-method/). arXiv preprint arXiv:1212.5701 . [↗](https://arxiv.org/abs/1212.5701)
23. J. Zhao, Y. Kim, K. Zhang, A. M. Rush, and Y. Le-Cun. 2018. Adversarially regularized autoencoders. In International Conference on Learning Representations (ICLR). [find](https://scholar.google.com/scholar?q=J%2E+Zhao%2C+Y%2E+Kim%2C+K%2E+Zhang%2C+A%2E+M%2E+Rush%2C+and+Y%2E+Le%2DCun%2E+2018%2E+Adversarially+regularized+autoencoders%2E+In+International+Conference+on+Learning+Representations+%28ICLR%29%2E)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
