MASKER: Masked Keyword Regularization for Reliable Text Classification
Not on the map. Why?
Abstract (arXiv)
Pre-trained language models have achieved state-of-the-art accuracies on various text classification tasks, e.g., sentiment analysis, natural language inference, and semantic textual similarity. However, the reliability of the fine-tuned text classifiers is an often underlooked performance criterion. For instance, one may desire a model that can detect out-of-distribution (OOD) samples (drawn far from training distribution) or be robust against domain shifts. We claim that one central obstacle to the reliability is the over-reliance of the model on a limited number of keywords, instead of looking at the whole context. In particular, we find that (a) OOD samples often contain in-distribution keywords, while (b) cross-domain samples may not always contain keywords; over-relying on the keywords can be problematic for both cases. In light of this observation, we propose a simple yet effective fine-tuning method, coined masked keyword regularization (MASKER), that facilitates context-based prediction. MASKER regularizes the model to reconstruct the keywords from the rest of the words and make low-confidence predictions without enough context. When applied to various pre-trained language models (e.g., BERT, RoBERTa, and ALBERT), we demonstrate that MASKER improves OOD detection and cross-domain generalization without degrading classification accuracy. Code is available at https://github.com/alinlab/MASKER.
Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 6; 2023: 11; 2024: 3; 2025: 1; 2026: 2.
25 papers.
Sort:
- 2023Discovering and Mitigating Visual Biases through Keyword Explanationcited by 58
- 2021Object-aware Contrastive Learning for Debiased Scene Representationcited by 35
- 2022Time Is MattEr: Temporal Self-supervision for Video Transformerscited by 11
- 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classificationscited by 11
- 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemblecited by 9
- 2023Bag of Tricks for In-Distribution Calibration of Pretrained Transformerscited by 7
- 2022Breaking the Spurious Causality of Conditional Generation via Fairness Intervention with Corrective Samplingcited by 5
- 2023SOUL: Towards Sentiment and Opinion Understanding of Languagecited by 4
- 2024Learning Shortcuts: On the Misleading Promise of NLU in Language Modelscited by 4
- 2023RoAST: Robustifying Language Models via Adversarial Perturbation with Selective Trainingcited by 3
- 2023Probing Out-of-Distribution Robustness of Language Models with Parameter-Efficient Transfer Learningcited by 2
- 2023Universal Domain Adaptation for Robust Handling of Distributional Shifts in NLPcited by 2
13 more
- 2023BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classificationcited by 2
- 2023TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text Classificationcited by 2
- 2021Out-of-Category Document Identification Using Target-Category Names as Weak Supervisioncited by 1
- 2022Task-guided Disentangled Tuning for Pretrained Language Modelscited by 1
- 2024MASKDROID: Robust Android Malware Detection with Masked Graph Representationscited by 1
- 2024Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Modelscited by 1
- 2022Pseudo-OOD training for robust language modelscited by 0
- 2022Robustifying Sentiment Classification by Maximally Exploiting Few Counterfactualscited by 0
- 2023Continuously Reliable Detection of New-Normal Misinformation: Semantic Masking and Contrastive Smoothing in High-Density Latent Regionscited by 0
- 2023Improving the Reusability of Pre-trained Language Models in Real-world Applicationscited by 0
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classificationcited by 0
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Trainingcited by 0
- 2026OFBD: Object-Focused Background Debiasing for Long-Tailed Learningcited by 0
- 2026OFBD: Object-Focused Background Debiasing for Long-Tailed Learning29 Sep 2026
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Training31 Aug 2026
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classification10 May 2025
- 2024Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Models28 Oct 2024
- 2024MASKDROID: Robust Android Malware Detection with Masked Graph Representations29 Sep 2024
- 2024Learning Shortcuts: On the Misleading Promise of NLU in Language Models17 Jan 2024
- 2023TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text Classification25 Dec 2023
- 2023RoAST: Robustifying Language Models via Adversarial Perturbation with Selective Training7 Dec 2023
- 2023BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classification27 Nov 2023
- 2023SOUL: Towards Sentiment and Opinion Understanding of Language27 Oct 2023
- 2023Universal Domain Adaptation for Robust Handling of Distributional Shifts in NLP23 Oct 2023
- 2023Improving the Reusability of Pre-trained Language Models in Real-world Applications19 Jul 2023
13 more
- 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classifications11 May 2023
- 2023Bag of Tricks for In-Distribution Calibration of Pretrained Transformers13 Feb 2023
- 2023Probing Out-of-Distribution Robustness of Language Models with Parameter-Efficient Transfer Learning27 Jan 2023
- 2023Discovering and Mitigating Visual Biases through Keyword Explanation26 Jan 2023
- 2023Continuously Reliable Detection of New-Normal Misinformation: Semantic Masking and Contrastive Smoothing in High-Density Latent Regions19 Jan 2023
- 2022Breaking the Spurious Causality of Conditional Generation via Fairness Intervention with Corrective Sampling5 Dec 2022
- 2022Robustifying Sentiment Classification by Maximally Exploiting Few Counterfactuals21 Oct 2022
- 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemble20 Oct 2022
- 2022Pseudo-OOD training for robust language models17 Oct 2022
- 2022Time Is MattEr: Temporal Self-supervision for Video Transformers19 Jul 2022
- 2022Task-guided Disentangled Tuning for Pretrained Language Models22 Mar 2022
- 2021Out-of-Category Document Identification Using Target-Category Names as Weak Supervision24 Nov 2021
- 2021Object-aware Contrastive Learning for Debiased Scene Representation30 Jul 2021
- 2023Discovering and Mitigating Visual Biases through Keyword Explanationcited by 58
- 2021Object-aware Contrastive Learning for Debiased Scene Representationcited by 35
- 2022Time Is MattEr: Temporal Self-supervision for Video Transformerscited by 11
- 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classificationscited by 11
- 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemblecited by 9
- 2023Bag of Tricks for In-Distribution Calibration of Pretrained Transformerscited by 7
- 2022Breaking the Spurious Causality of Conditional Generation via Fairness Intervention with Corrective Samplingcited by 5
- 2023SOUL: Towards Sentiment and Opinion Understanding of Languagecited by 4
- 2024Learning Shortcuts: On the Misleading Promise of NLU in Language Modelscited by 4
- 2023RoAST: Robustifying Language Models via Adversarial Perturbation with Selective Trainingcited by 3
- 2023Probing Out-of-Distribution Robustness of Language Models with Parameter-Efficient Transfer Learningcited by 2
- 2023Universal Domain Adaptation for Robust Handling of Distributional Shifts in NLPcited by 2
12 most cited of 25 All 25 (JSON)
- 2026OFBD: Object-Focused Background Debiasing for Long-Tailed Learning29 Sep 2026
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Training31 Aug 2026
- 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classification10 May 2025
- 2024Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Models28 Oct 2024
- 2024MASKDROID: Robust Android Malware Detection with Masked Graph Representations29 Sep 2024
- 2024Learning Shortcuts: On the Misleading Promise of NLU in Language Models17 Jan 2024
- 2023TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text Classification25 Dec 2023
- 2023RoAST: Robustifying Language Models via Adversarial Perturbation with Selective Training7 Dec 2023
- 2023BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classification27 Nov 2023
- 2023SOUL: Towards Sentiment and Opinion Understanding of Language27 Oct 2023
- 2023Universal Domain Adaptation for Robust Handling of Distributional Shifts in NLP23 Oct 2023
- 2023Improving the Reusability of Pre-trained Language Models in Real-world Applications19 Jul 2023
12 newest of 25 All 25 (JSON)