MASKER: Masked Keyword Regularization for Reliable Text Classification
Seung Jun Moon, Sangwoo Mo, Kimin Lee, Jaeho Lee, Jinwoo Shin
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Discovering and Mitigating Visual Biases Through Keyword Explanation 引用了 Object-aware Contrastive Learning for Debiased Scene Representation
- Revisiting Few-sample BERT Fine-tuning 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- Revisiting Few-sample BERT Fine-tuning 引用了 ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
- Revisiting Few-sample BERT Fine-tuning 引用了 On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines
- On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines 引用了 Revisiting Few-sample BERT Fine-tuning
- Object-aware Contrastive Learning for Debiased Scene Representation 引用了 CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
- On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
引用它的顶会 Paper5
- Object-aware Contrastive Learning for Debiased Scene RepresentationSangwoo Mo, Hyunwoo Kang, Kihyuk Sohn, Chun-Liang Li 等NeurIPS 2021 · 57 次引用
- TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text ClassificationRui Song, Fausto Giunchiglia, Yingji Li, Mingjie Tian 等AAAI 2024 · 10 次引用
- MaskDroid: Robust Android Malware Detection with Masked Graph RepresentationsJingnan Zheng, Jiahao Liu, An Zhang, Jun Zeng 等ASE 2024 · 6 次引用
- Discovering and Mitigating Visual Biases Through Keyword ExplanationYounghyun Kim, Sangwoo Mo, Minkyu Kim, Kyungmin Lee 等CVPR 2024
- STINMatch: Semi-Supervised Semantic-Topological Iteration Network for Financial Risk Detection via News Label DiffusionXurui Li, Yue Qin, Rui Zhu, Tianqianjin Lin 等EMNLP 2023
它引用的 Paper6
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
- CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted InstancesJihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo ShinNeurIPS 2020 · 755 次引用
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 次引用
- On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong BaselinesMarius Mosbach, Maksym Andriushchenko, Dietrich KlakowICLR 2021 · 448 次引用
- Revisiting Few-sample BERT Fine-tuningTianyi Zhang, Felix Wu, Arzoo Katiyar, Kilian Q. Weinberger 等ICLR 2021 · 172 次引用
相关 Paper
- Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain DetectionRheeya Uppaal, Junjie Hu, Yixuan LiACL 2023 · 9 次引用
- Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution DataLingkai Kong, Haoming Jiang, Yuchen Zhuang, Jie Lyu 等EMNLP 2020 · 47 次引用
- On the Interplay Between Fine-tuning and Sentence-Level Probing for Linguistic Knowledge in Pre-Trained TransformersMarius Mosbach, Anna Khokhlova, Michael A. Hedderich, Dietrich KlakowEMNLP Findings 2020 · 16 次引用
- CED: Comparing Embedding Differences for Detecting Out-of-Distribution and Hallucinated TextHakyung Lee, Keon-Hee Park, Hoyoon Byun, Jeyoon Yeom 等EMNLP Findings 2024 · 1 次引用
- Preserving Pre-trained Features Helps Calibrate Fine-tuned Language ModelsGuande He, Jianfei Chen, Jun ZhuICLR 2023 · 1 次引用
