mlsanityData to 7 Oct 2026

"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer

arXiv 1908.08039 ↗First posted 21 Aug 2019cs.CLcited by 48

Not on the map. Why?

Abstract (arXiv)

This paper focuses on the task of sentiment transfer on non-parallel text, which modifies sentiment attributes (e.g., positive or negative) of sentences while preserving their attribute-independent content. Due to the limited capability of RNNbased encoder-decoder structure to capture deep and long-range dependencies among words, previous works can hardly generate satisfactory sentences from scratch. When humans convert the sentiment attribute of a sentence, a simple but effective approach is to only replace the original sentimental tokens in the sentence with target sentimental expressions, instead of building a new sentence from scratch. Such a process is very similar to the task of Text Infilling or Cloze, which could be handled by a deep bidirectional Masked Language Model (e.g. BERT). So we propose a two step approach "Mask and Infill". In the mask step, we separate style from content by masking the positions of sentimental tokens. In the infill step, we retrofit MLM to Attribute Conditional MLM, to infill the masked positions by predicting words or phrases conditioned on the context1 and target sentiment. We evaluate our model on two review datasets with quantitative, qualitative, and human evaluations. Experimental results demonstrate that our models improve state-of-the-art performance.

Key facts. Cited by 48 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Aug 2019.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2021: 13; 2022: 16; 2023: 7; 2024: 9; 2025: 3.

48 papers.

Sort:

By area:

  1. 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
  2. 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
  3. 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfercited by 40
  4. 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
  5. 2021StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfercited by 34
  6. 2021Civil Rephrases Of Toxic Texts With Self-Supervised Transformerscited by 32
  7. 2022Text Style Transfer for Bias Mitigation using Masked Language Modelingcited by 27
  8. 2023Don't lose the message while paraphrasing: A study on content preserving style transfercited by 25
  9. 2024A Survey on Natural Language Counterfactual Generationcited by 21
  10. 2021Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalizationcited by 20
  11. 2023Think Twice: A Human-like Two-stage Conversational Agent for Emotional Response Generationcited by 14
  12. 2023STEER: Unified Style Transfer with Expert Reinforcementcited by 14
36 more
  1. 2021Methods for Detoxification of Texts for the Russian Languagecited by 13
  2. 2022Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Taskscited by 13
  3. 2023A Call for Standardization and Validation of Text Style Transfer Evaluationcited by 13
  4. 2021Transductive Learning for Unsupervised Text Style Transfercited by 12
  5. 2024Distilling Text Style Transfer With Self-Explanation From LLMscited by 12
  6. 2021Transferable Persona-Grounded Dialogues via Grounded Minimal Editscited by 10
  7. 2022Making a (Counterfactual) Difference One Rationale at a Timecited by 10
  8. 2022StoryTrans: Non-Parallel Story Author-Style Transfer with Discourse Representations and Content Enhancingcited by 8
  9. 2021Evaluating Pre-Trained Models for User Feedback Analysis in Software Engineering: A Study on Classification of App-Reviewscited by 7
  10. 2021NAST: A Non-Autoregressive Generator with Word Alignment for Unsupervised Text Style Transfercited by 7
  11. 2022Efficient Reinforcement Learning for Unsupervised Controlled Text Generationcited by 7
  12. 2024A Review of Human Emotion Synthesis Based on Generative Technologycited by 7
  13. 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxificationcited by 6
  14. 2021From Theories on Styles to their Transfer in Text: Bridging the Gap with a Hierarchical Surveycited by 5
  15. 2024LMStyle Benchmark: Evaluating Text Style Transfer for Chatbotscited by 5
  16. 2022A Survey on Dropout Methods and Experimental Verification in Recommendationcited by 4
  17. 2022Domain Confused Contrastive Learning for Unsupervised Domain Adaptationcited by 4
  18. 2022(Psycho-)Linguistic Features Meet Transformer Models for Improved Explainable and Controllable Text Simplificationcited by 4
  19. 2024SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfercited by 4
  20. 2025LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxificationcited by 4
  21. 2022Can Language Representation Models Think in Bets?cited by 3
  22. 2022Replacing Language Model for Style Transfercited by 3
  23. 2024Learning from Response not Preference: A Stackelberg Approach for LLM Detoxification using Non-parallel Datacited by 3
  24. 2021Stylistic Retrieval-based Dialogue System with Unparallel Training Datacited by 2
  25. 2022Understanding Prior Bias and Choice Paralysis in Transformer-based Language Representation Models through Four Experimental Probescited by 2
  26. 2023Emotion and Sentiment Guided Paraphrasingcited by 2
  27. 2024GPT-DETOX: An In-Context Learning-Based Paraphraser for Text Detoxificationcited by 2
  28. 2024LaSEr-Edit: Localized Span-level Error Editing with Energy-based Localizationcited by 2
  29. 2025Enhancing Spoken Discourse Modeling in Language Models Using Gestural Cuescited by 2
  30. 2021SE-DAE: Style-Enhanced Denoising Auto-Encoder for Unsupervised Text Style Transfercited by 1
  31. 2022BERT4Loc: BERT for Location -- POI Recommender Systemcited by 1
  32. 2024VertAttack: Taking advantage of Text Classifiers' horizontal visioncited by 1
  33. 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Modelscited by 1
  34. 2022On Text Style Transfer via Style Masked Language Modelscited by 0
  35. 2022SimpleStyle: An Adaptable Style Transfer Approachcited by 0
  36. 2023Generative Sentiment Transfer via Adaptive Maskingcited by 0