mlsanityData to 14 Oct 2026

MASKER: Masked Keyword Regularization for Reliable Text Classification

arXiv 2012.09392 ↗First posted 17 Dec 2020cs.LG cs.CLcited by 25

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 2; 2022: 6; 2023: 11; 2024: 3; 2025: 1; 2026: 2.

25 papers.

Sort:

  1. 2023Discovering and Mitigating Visual Biases through Keyword Explanationcited by 58
  2. 2021Object-aware Contrastive Learning for Debiased Scene Representationcited by 35
  3. 2022Time Is MattEr: Temporal Self-supervision for Video Transformerscited by 11
  4. 2023Randomized Smoothing with Masked Inference for Adversarially Robust Text Classificationscited by 11
  5. 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemblecited by 9
  6. 2023Bag of Tricks for In-Distribution Calibration of Pretrained Transformerscited by 7
  7. 2022Breaking the Spurious Causality of Conditional Generation via Fairness Intervention with Corrective Samplingcited by 5
  8. 2023SOUL: Towards Sentiment and Opinion Understanding of Languagecited by 4
  9. 2024Learning Shortcuts: On the Misleading Promise of NLU in Language Modelscited by 4
  10. 2023RoAST: Robustifying Language Models via Adversarial Perturbation with Selective Trainingcited by 3
  11. 2023Probing Out-of-Distribution Robustness of Language Models with Parameter-Efficient Transfer Learningcited by 2
  12. 2023Universal Domain Adaptation for Robust Handling of Distributional Shifts in NLPcited by 2
13 more
  1. 2023BERT Goes Off-Topic: Investigating the Domain Transfer Challenge using Genre Classificationcited by 2
  2. 2023TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text Classificationcited by 2
  3. 2021Out-of-Category Document Identification Using Target-Category Names as Weak Supervisioncited by 1
  4. 2022Task-guided Disentangled Tuning for Pretrained Language Modelscited by 1
  5. 2024MASKDROID: Robust Android Malware Detection with Masked Graph Representationscited by 1
  6. 2024Relation-based Counterfactual Data Augmentation and Contrastive Learning for Robustifying Natural Language Inference Modelscited by 1
  7. 2022Pseudo-OOD training for robust language modelscited by 0
  8. 2022Robustifying Sentiment Classification by Maximally Exploiting Few Counterfactualscited by 0
  9. 2023Continuously Reliable Detection of New-Normal Misinformation: Semantic Masking and Contrastive Smoothing in High-Density Latent Regionscited by 0
  10. 2023Improving the Reusability of Pre-trained Language Models in Real-world Applicationscited by 0
  11. 2025The Efficiency of Pre-training with Objective Masking in Pseudo Labeling for Semi-Supervised Text Classificationcited by 0
  12. 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Trainingcited by 0
  13. 2026OFBD: Object-Focused Background Debiasing for Long-Tailed Learningcited by 0