Train No Evil: Selective Masking for Task-Guided Pre-Training
Not on the map. Why?
Abstract (arXiv)
Recently, pre-trained language models mostly follow the pre-train-then-fine-tuning paradigm and have achieved great performance on various downstream tasks. However, since the pre-training stage is typically task-agnostic and the fine-tuning stage usually suffers from insufficient supervised data, the models cannot always well capture the domain-specific and task-specific patterns. In this paper, we propose a three-stage framework by adding a task-guided pre-training stage with selective masking between general pre-training and fine-tuning. In this stage, the model is trained by masked language modeling on in-domain unsupervised data to learn domain-specific patterns and we propose a novel selective masking strategy to learn task-specific patterns. Specifically, we design a method to measure the importance of each token in sequences and selectively mask the important tokens. Experimental results on two sentiment analysis tasks show that our method can achieve comparable or even better performance with less than 50% of computation cost, which indicates our method is both effective and efficient. The source code of this paper can be obtained from https://github.com/thunlp/SelectiveMasking.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 7; 2022: 10; 2023: 7; 2024: 5; 2025: 4; 2026: 3.
36 papers.
Sort:
By area:
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024Rho-1: Not All Tokens Are What You Needcited by 132
- 2021CLEVE: Contrastive Pre-training for Event Extractioncited by 36
- 2021NLP From Scratch Without Large-Scale Pretraining: A Simple and Efficient Frameworkcited by 34
- 2021On the Influence of Masking Policies in Intermediate Pre-trainingcited by 12
- 2023Teaching the Pre-trained Model to Generate Simple Texts for Text Simplificationcited by 10
- 2023EcomGPT-CT: Continual Pre-training of E-commerce Large Language Models with Semi-structured Datacited by 9
- 2022Scheduled Multi-task Learning for Neural Chat Translationcited by 7
- 2024KidLM: Advancing Language Models for Children -- Early Insights and Future Directionscited by 7
- 2021CSS-LM: A Contrastive Framework for Semi-supervised Fine-tuning of Pre-trained Language Modelscited by 5
- 2021Improving Social Meaning Detection with Pragmatic Masking and Surrogate Fine-Tuningcited by 5
- 2022Fortunately, Discourse Markers Can Enhance Language Models for Sentiment Analysiscited by 5
24 more
- 2022APOLLO: A Simple Approach for Adaptive Pretraining of Language Models for Logical Reasoningcited by 5
- 2023Do not Mask Randomly: Effective Domain-adaptive Pre-training by Masking In-domain Keywordscited by 5
- 2024How Useful is Continued Pre-Training for Generative Unsupervised Domain Adaptation?cited by 5
- 2022A Survey on Dropout Methods and Experimental Verification in Recommendationcited by 4
- 2022Continual Knowledge Distillation for Neural Machine Translationcited by 4
- 2023Difference-Masking: Choosing What to Mask in Continued Pretrainingcited by 4
- 2022Knowledgeable Salient Span Mask for Enhancing Language Models as Knowledge Basecited by 2
- 2022Using Selective Masking as a Bridge between Pre-training and Fine-tuningcited by 2
- 2023BIOptimus: Pre-training an Optimal Biomedical Language Model with Curriculum Learning for Named Entity Recognitioncited by 2
- 2024Ignore Me But Don't Replace Me: Utilizing Non-Linguistic Elements for Pretraining on the Cybersecurity Domaincited by 2
- 2025TiTok: Transfer Token-level Knowledge via Contrastive Excess to Transplant LoRAcited by 2
- 2022Task-guided Disentangled Tuning for Pretrained Language Modelscited by 1
- 2022SimpleBERT: A Pre-trained Model That Learns to Generate Simple Wordscited by 1
- 2023Lil-Bevo: Explorations of Strategies for Training Language Models in More Humanlike Wayscited by 1
- 2024CPRM: A LLM-based Continual Pre-training Framework for Relevance Modeling in Commercial Searchcited by 1
- 2021MoCA: Incorporating Multi-stage Domain Pretraining and Cross-guided Multimodal Attention for Textbook Question Answeringcited by 0
- 2022KESA: A Knowledge Enhanced Approach For Sentiment Analysiscited by 0
- 2023An Anchor Learning Approach for Citation Field Learningcited by 0
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classificationcited by 0
- 2025MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learningcited by 0
- 2025ChemFixer: Correcting Invalid Molecules to Unlock Previously Unseen Chemical Spacecited by 0
- 2026Entropy-aware Masking for Masked Language Modelingcited by 0
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classificationcited by 0
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Trainingcited by 0
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Training31 Aug 2026
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classification8 Jun 2026
- 2026Entropy-aware Masking for Masked Language Modeling27 May 2026
- 2025ChemFixer: Correcting Invalid Molecules to Unlock Previously Unseen Chemical Space14 Nov 2025
- 2025MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learning19 Oct 2025
- 2025TiTok: Transfer Token-level Knowledge via Contrastive Excess to Transplant LoRA6 Oct 2025
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classification10 May 2025
- 2024CPRM: A LLM-based Continual Pre-training Framework for Relevance Modeling in Commercial Search2 Dec 2024
- 2024KidLM: Advancing Language Models for Children -- Early Insights and Future Directions4 Oct 2024
- 2024Rho-1: Not All Tokens Are What You Need11 Apr 2024
- 2024Ignore Me But Don't Replace Me: Utilizing Non-Linguistic Elements for Pretraining on the Cybersecurity Domain15 Mar 2024
- 2024How Useful is Continued Pre-Training for Generative Unsupervised Domain Adaptation?31 Jan 2024
24 more
- 2023EcomGPT-CT: Continual Pre-training of E-commerce Large Language Models with Semi-structured Data25 Dec 2023
- 2023Lil-Bevo: Explorations of Strategies for Training Language Models in More Humanlike Ways26 Oct 2023
- 2023An Anchor Learning Approach for Citation Field Learning7 Sep 2023
- 2023BIOptimus: Pre-training an Optimal Biomedical Language Model with Curriculum Learning for Named Entity Recognition16 Aug 2023
- 2023Do not Mask Randomly: Effective Domain-adaptive Pre-training by Masking In-domain Keywords14 Jul 2023
- 2023Difference-Masking: Choosing What to Mask in Continued Pretraining23 May 2023
- 2023Teaching the Pre-trained Model to Generate Simple Texts for Text Simplification21 May 2023
- 2022APOLLO: A Simple Approach for Adaptive Pretraining of Language Models for Logical Reasoning19 Dec 2022
- 2022Continual Knowledge Distillation for Neural Machine Translation18 Dec 2022
- 2022Using Selective Masking as a Bridge between Pre-training and Fine-tuning24 Nov 2022
- 2022Scheduled Multi-task Learning for Neural Chat Translation8 May 2022
- 2022Knowledgeable Salient Span Mask for Enhancing Language Models as Knowledge Base17 Apr 2022
- 2022SimpleBERT: A Pre-trained Model That Learns to Generate Simple Words16 Apr 2022
- 2022A Survey on Dropout Methods and Experimental Verification in Recommendation5 Apr 2022
- 2022Task-guided Disentangled Tuning for Pretrained Language Models22 Mar 2022
- 2022KESA: A Knowledge Enhanced Approach For Sentiment Analysis24 Feb 2022
- 2022Fortunately, Discourse Markers Can Enhance Language Models for Sentiment Analysis6 Jan 2022
- 2021MoCA: Incorporating Multi-stage Domain Pretraining and Cross-guided Multimodal Attention for Textbook Question Answering6 Dec 2021
- 2021NLP From Scratch Without Large-Scale Pretraining: A Simple and Efficient Framework7 Nov 2021
- 2021Improving Social Meaning Detection with Pragmatic Masking and Surrogate Fine-Tuning1 Aug 2021
- 2021Pre-Trained Models: Past, Present and Future14 Jun 2021
- 2021CLEVE: Contrastive Pre-training for Event Extraction30 May 2021
- 2021On the Influence of Masking Policies in Intermediate Pre-training18 Apr 2021
- 2021CSS-LM: A Contrastive Framework for Semi-supervised Fine-tuning of Pre-trained Language Models7 Feb 2021
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2024Rho-1: Not All Tokens Are What You Needcited by 132
- 2021CLEVE: Contrastive Pre-training for Event Extractioncited by 36
- 2021NLP From Scratch Without Large-Scale Pretraining: A Simple and Efficient Frameworkcited by 34
- 2021On the Influence of Masking Policies in Intermediate Pre-trainingcited by 12
- 2023Teaching the Pre-trained Model to Generate Simple Texts for Text Simplificationcited by 10
- 2023EcomGPT-CT: Continual Pre-training of E-commerce Large Language Models with Semi-structured Datacited by 9
- 2022Scheduled Multi-task Learning for Neural Chat Translationcited by 7
- 2024KidLM: Advancing Language Models for Children -- Early Insights and Future Directionscited by 7
- 2021CSS-LM: A Contrastive Framework for Semi-supervised Fine-tuning of Pre-trained Language Modelscited by 5
- 2021Improving Social Meaning Detection with Pragmatic Masking and Surrogate Fine-Tuningcited by 5
- 2022Fortunately, Discourse Markers Can Enhance Language Models for Sentiment Analysiscited by 5
12 most cited of 35 All 35 (JSON)
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Training31 Aug 2026
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classification8 Jun 2026
- 2026Entropy-aware Masking for Masked Language Modeling27 May 2026
- 2025ChemFixer: Correcting Invalid Molecules to Unlock Previously Unseen Chemical Space14 Nov 2025
- 2025MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learning19 Oct 2025
- 2025TiTok: Transfer Token-level Knowledge via Contrastive Excess to Transplant LoRA6 Oct 2025
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classification10 May 2025
- 2024CPRM: A LLM-based Continual Pre-training Framework for Relevance Modeling in Commercial Search2 Dec 2024
- 2024KidLM: Advancing Language Models for Children -- Early Insights and Future Directions4 Oct 2024
- 2024Rho-1: Not All Tokens Are What You Need11 Apr 2024
- 2024Ignore Me But Don't Replace Me: Utilizing Non-Linguistic Elements for Pretraining on the Cybersecurity Domain15 Mar 2024
- 2024How Useful is Continued Pre-Training for Generative Unsupervised Domain Adaptation?31 Jan 2024
12 newest of 35 All 35 (JSON)