Mask-guided BERT for Few Shot Text Classification
Preprint
Abstract
Transformer-based language models have achieved significant success in various domains. However, the data-intensive nature of the transformer architecture requires much labeled data, which is challenging in low-resource scenarios (i.e., few-shot learning (FSL)). The main challenge of FSL is the difficulty of training robust models on small amounts of samples, which frequently leads to overfitting. Here we present Mask-BERT, a simple and modular framework to help BERT-based architectures tackle FSL. The proposed approach fundamentally differs from existing FSL strategies such as prompt tuning and meta-learning. The core idea is to selectively apply masks on text inputs and filter out irrelevant information, which guides the model to focus on discriminative tokens that influence prediction results. In addition, to make the text representations from different categories more separable and the text representations from the same category more compact, we introduce a contrastive learning loss function. Experimental results on public-domain benchmark datasets demonstrate the effectiveness of Mask-BERT.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Mask-Guided Vision Transformer for Few-Shot LearningIEEE Transactions on Neural Networks and Learning Systems, 2024
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- CNN-BERT for measuring agreement between argument in online discussionInternational Journal of Web Information Systems, 2022
- Towards Unified Prompt Tuning for Few-shot Text Classification2022
- PTR: Prompt Tuning with Rules for Text ClassificationAI Open, 2022
- Model-agnostic multi-stage loss optimization meta learningInternational Journal of Machine Learning and Cybernetics, 2021
- A Primer in BERTology: What We Know About How BERT WorksTransactions of the Association for Computational Linguistics, 2020
- The impact of skim reading and navigation when reading hyperlinks on the webPLOS ONE, 2020
- Pre-trained models for natural language processing: A surveyScience China Technological Sciences, 2020
- The effects of keyword cues and 3R strategy on children's e‐book readingJournal of Computer Assisted Learning, 2014