"Mask and Infill" : Applying Masked Language Model to Sentiment Transfer
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
Citing papers per year: 2021: 13; 2022: 16; 2023: 7; 2024: 9; 2025: 3.
48 papers.
Sort:
By area:
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
- 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfercited by 40
- 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
- 2021StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfercited by 34
- 2021Civil Rephrases Of Toxic Texts With Self-Supervised Transformerscited by 32
- 2022Text Style Transfer for Bias Mitigation using Masked Language Modelingcited by 27
- 2023Don't lose the message while paraphrasing: A study on content preserving style transfercited by 25
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2021Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalizationcited by 20
- 2023Think Twice: A Human-like Two-stage Conversational Agent for Emotional Response Generationcited by 14
- 2023STEER: Unified Style Transfer with Expert Reinforcementcited by 14
36 more
- 2021Methods for Detoxification of Texts for the Russian Languagecited by 13
- 2022Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Taskscited by 13
- 2023A Call for Standardization and Validation of Text Style Transfer Evaluationcited by 13
- 2021Transductive Learning for Unsupervised Text Style Transfercited by 12
- 2024Distilling Text Style Transfer With Self-Explanation From LLMscited by 12
- 2021Transferable Persona-Grounded Dialogues via Grounded Minimal Editscited by 10
- 2022Making a (Counterfactual) Difference One Rationale at a Timecited by 10
- 2022StoryTrans: Non-Parallel Story Author-Style Transfer with Discourse Representations and Content Enhancingcited by 8
- 2021Evaluating Pre-Trained Models for User Feedback Analysis in Software Engineering: A Study on Classification of App-Reviewscited by 7
- 2021NAST: A Non-Autoregressive Generator with Word Alignment for Unsupervised Text Style Transfercited by 7
- 2022Efficient Reinforcement Learning for Unsupervised Controlled Text Generationcited by 7
- 2024A Review of Human Emotion Synthesis Based on Generative Technologycited by 7
- 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxificationcited by 6
- 2021From Theories on Styles to their Transfer in Text: Bridging the Gap with a Hierarchical Surveycited by 5
- 2024LMStyle Benchmark: Evaluating Text Style Transfer for Chatbotscited by 5
- 2022A Survey on Dropout Methods and Experimental Verification in Recommendationcited by 4
- 2022Domain Confused Contrastive Learning for Unsupervised Domain Adaptationcited by 4
- 2022(Psycho-)Linguistic Features Meet Transformer Models for Improved Explainable and Controllable Text Simplificationcited by 4
- 2024SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfercited by 4
- 2025LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxificationcited by 4
- 2022Can Language Representation Models Think in Bets?cited by 3
- 2022Replacing Language Model for Style Transfercited by 3
- 2024Learning from Response not Preference: A Stackelberg Approach for LLM Detoxification using Non-parallel Datacited by 3
- 2021Stylistic Retrieval-based Dialogue System with Unparallel Training Datacited by 2
- 2022Understanding Prior Bias and Choice Paralysis in Transformer-based Language Representation Models through Four Experimental Probescited by 2
- 2023Emotion and Sentiment Guided Paraphrasingcited by 2
- 2024GPT-DETOX: An In-Context Learning-Based Paraphraser for Text Detoxificationcited by 2
- 2024LaSEr-Edit: Localized Span-level Error Editing with Energy-based Localizationcited by 2
- 2025Enhancing Spoken Discourse Modeling in Language Models Using Gestural Cuescited by 2
- 2021SE-DAE: Style-Enhanced Denoising Auto-Encoder for Unsupervised Text Style Transfercited by 1
- 2022BERT4Loc: BERT for Location -- POI Recommender Systemcited by 1
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal visioncited by 1
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Modelscited by 1
- 2022On Text Style Transfer via Style Masked Language Modelscited by 0
- 2022SimpleStyle: An Adaptable Style Transfer Approachcited by 0
- 2023Generative Sentiment Transfer via Adaptive Maskingcited by 0
- 2025LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxification2 Jun 2025
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models19 May 2025
- 2025Enhancing Spoken Discourse Modeling in Language Models Using Gestural Cues5 Mar 2025
- 2024A Review of Human Emotion Synthesis Based on Generative Technology10 Dec 2024
- 2024Learning from Response not Preference: A Stackelberg Approach for LLM Detoxification using Non-parallel Data27 Oct 2024
- 2024A Survey on Natural Language Counterfactual Generation4 Jul 2024
- 2024LaSEr-Edit: Localized Span-level Error Editing with Energy-based Localization30 Jun 2024
- 2024SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfer7 Jun 2024
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal vision12 Apr 2024
- 2024GPT-DETOX: An In-Context Learning-Based Paraphraser for Text Detoxification3 Apr 2024
- 2024LMStyle Benchmark: Evaluating Text Style Transfer for Chatbots13 Mar 2024
- 2024Distilling Text Style Transfer With Self-Explanation From LLMs2 Mar 2024
36 more
- 2023STEER: Unified Style Transfer with Expert Reinforcement13 Nov 2023
- 2023Don't lose the message while paraphrasing: A study on content preserving style transfer17 Aug 2023
- 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxification14 Jun 2023
- 2023Emotion and Sentiment Guided Paraphrasing8 Jun 2023
- 2023A Call for Standardization and Validation of Text Style Transfer Evaluation1 Jun 2023
- 2023Generative Sentiment Transfer via Adaptive Masking23 Feb 2023
- 2023Think Twice: A Human-like Two-stage Conversational Agent for Emotional Response Generation12 Jan 2023
- 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Experts20 Dec 2022
- 2022SimpleStyle: An Adaptable Style Transfer Approach20 Dec 2022
- 2022(Psycho-)Linguistic Features Meet Transformer Models for Improved Explainable and Controllable Text Simplification19 Dec 2022
- 2022Replacing Language Model for Style Transfer14 Nov 2022
- 2022Can Language Representation Models Think in Bets?14 Oct 2022
- 2022On Text Style Transfer via Style Masked Language Models12 Oct 2022
- 2022Understanding Prior Bias and Choice Paralysis in Transformer-based Language Representation Models through Four Experimental Probes3 Oct 2022
- 2022StoryTrans: Non-Parallel Story Author-Style Transfer with Discourse Representations and Content Enhancing29 Aug 2022
- 2022BERT4Loc: BERT for Location -- POI Recommender System2 Aug 2022
- 2022Domain Confused Contrastive Learning for Unsupervised Domain Adaptation10 Jul 2022
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Models23 May 2022
- 2022Efficient Reinforcement Learning for Unsupervised Controlled Text Generation16 Apr 2022
- 2022A Survey on Dropout Methods and Experimental Verification in Recommendation5 Apr 2022
- 2022Text Smoothing: Enhance Various Data Augmentation Methods on Text Classification Tasks28 Feb 2022
- 2022Text Style Transfer for Bias Mitigation using Masked Language Modeling21 Jan 2022
- 2022Making a (Counterfactual) Difference One Rationale at a Time13 Jan 2022
- 2021From Theories on Styles to their Transfer in Text: Bridging the Gap with a Hierarchical Survey29 Oct 2021
- 2021Text Detoxification using Large Pre-trained Neural Models18 Sep 2021
- 2021Transductive Learning for Unsupervised Text Style Transfer16 Sep 2021
- 2021Transferable Persona-Grounded Dialogues via Grounded Minimal Edits16 Sep 2021
- 2021Stylistic Retrieval-based Dialogue System with Unparallel Training Data12 Sep 2021
- 2021Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalization1 Aug 2021
- 2021NAST: A Non-Autoregressive Generator with Word Alignment for Unsupervised Text Style Transfer4 Jun 2021
- 2021Methods for Detoxification of Texts for the Russian Language19 May 2021
- 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfer18 May 2021
- 2021SE-DAE: Style-Enhanced Denoising Auto-Encoder for Unsupervised Text Style Transfer27 Apr 2021
- 2021Evaluating Pre-Trained Models for User Feedback Analysis in Software Engineering: A Study on Classification of App-Reviews12 Apr 2021
- 2021StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfer12 Apr 2021
- 2021Civil Rephrases Of Toxic Texts With Self-Supervised Transformers1 Feb 2021
- 2023DiffuDetox: A Mixed Diffusion Model for Text Detoxification14 Jun 2023
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2022Prompt-and-Rerank: A Method for Zero-Shot and Few-Shot Arbitrary Textual Style Transfer with Small Language Modelscited by 49
- 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfercited by 40
- 2022Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Expertscited by 36
- 2021StylePTB: A Compositional Benchmark for Fine-grained Controllable Text Style Transfercited by 34
- 2021Civil Rephrases Of Toxic Texts With Self-Supervised Transformerscited by 32
- 2022Text Style Transfer for Bias Mitigation using Masked Language Modelingcited by 27
- 2023Don't lose the message while paraphrasing: A study on content preserving style transfercited by 25
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2021Enhancing Content Preservation in Text Style Transfer Using Reverse Attention and Conditional Layer Normalizationcited by 20
- 2023Think Twice: A Human-like Two-stage Conversational Agent for Emotional Response Generationcited by 14
- 2023STEER: Unified Style Transfer with Expert Reinforcementcited by 14
12 most cited of 44 All 44 (JSON)
- 2025LLM in the Loop: Creating the ParaDeHate Dataset for Hate Speech Detoxification2 Jun 2025
- 2025SynDec: A Synthesize-then-Decode Approach for Arbitrary Textual Style Transfer via Large Language Models19 May 2025
- 2025Enhancing Spoken Discourse Modeling in Language Models Using Gestural Cues5 Mar 2025
- 2024A Review of Human Emotion Synthesis Based on Generative Technology10 Dec 2024
- 2024A Survey on Natural Language Counterfactual Generation4 Jul 2024
- 2024LaSEr-Edit: Localized Span-level Error Editing with Energy-based Localization30 Jun 2024
- 2024SC2: Towards Enhancing Content Preservation and Style Consistency in Long Text Style Transfer7 Jun 2024
- 2024VertAttack: Taking advantage of Text Classifiers' horizontal vision12 Apr 2024
- 2024GPT-DETOX: An In-Context Learning-Based Paraphraser for Text Detoxification3 Apr 2024
- 2024LMStyle Benchmark: Evaluating Text Style Transfer for Chatbots13 Mar 2024
- 2024Distilling Text Style Transfer With Self-Explanation From LLMs2 Mar 2024
- 2023STEER: Unified Style Transfer with Expert Reinforcement13 Nov 2023
12 newest of 44 All 44 (JSON)