[Paper Review] Pre-trained Token-replaced Detection Model as Few-shot Learner
This paper proposes a novel few-shot learning approach using pre-trained token-replaced detection models like ELECTRA, reformulating classification tasks as token-replacement detection problems by inserting label description words into prompts. The model predicts which label word is least replaced (most original), achieving state-of-the-art performance on 16 NLP datasets, outperforming masked language model-based few-shot learners across both one-sentence and two-sentence tasks.
Pre-trained masked language models have demonstrated remarkable ability as few-shot learners. In this paper, as an alternative, we propose a novel approach to few-shot learning with pre-trained token-replaced detection models like ELECTRA. In this approach, we reformulate a classification or a regression task as a token-replaced detection problem. Specifically, we first define a template and label description words for each task and put them into the input to form a natural language prompt. Then, we employ the pre-trained token-replaced detection model to predict which label description word is the most original (i.e., least replaced) among all label description words in the prompt. A systematic evaluation on 16 datasets demonstrates that our approach outperforms few-shot learners with pre-trained masked language models in both one-sentence and two-sentence learning tasks.
Motivation & Objective
- To address the challenge of low-resource few-shot learning with limited labeled data in NLP.
- To explore the underutilized potential of pre-trained token-replaced detection models (e.g., ELECTRA) for few-shot learning.
- To improve few-shot performance by reformulating classification tasks as token-replacement detection problems.
- To evaluate the effectiveness of this approach across diverse one-sentence and two-sentence NLP tasks.
Proposed method
- Reformulate downstream classification or regression tasks as token-replaced detection problems by constructing natural language prompts with label description words.
- Insert a template and all label description words into the input sentence to form a prompt, intentionally introducing potential token replacements.
- Use a pre-trained ELECTRA-style model to predict which label description word is the most original (least replaced) among all candidates.
- Train and evaluate the model using only a few labeled examples per class, leveraging the model’s ability to detect replaced tokens.
- Design prompts with varying templates and label description words to study their impact on performance.
- Compare the approach with masked language model-based few-shot learners (e.g., LM-BFF) using fixed hyperparameters and standardized evaluation protocols.
Experimental results
Research questions
- RQ1Can pre-trained token-replaced detection models be effectively repurposed as few-shot learners for downstream NLP tasks?
- RQ2How does the performance of this approach compare to masked language model-based few-shot learners in low-resource settings?
- RQ3What is the impact of different prompt templates and label description words on few-shot learning accuracy?
- RQ4How does the number of labeled examples per class affect the performance of the proposed method?
Key findings
- The proposed method outperforms masked language model-based few-shot learners (e.g., LM-BFF) on 15 out of 16 datasets in both one-sentence and two-sentence tasks.
- On the SST-2 dataset, the approach achieved 91.4% accuracy with the template 'It was great terrible', surpassing LM-BFF’s 88.6%.
- On MNLI, the method outperformed LM-BFF when using 128 to 512 labeled examples per class, showing stronger generalization under medium-shot settings.
- Semantic similarity between label description words and task categories significantly improves performance, with 'great/terrible' and 'good/bad' outperforming semantically unrelated pairs like 'dog/cat'.
- The model is sensitive to prompt templates, with performance varying by punctuation and structure, though no universal optimal template was found.
- The approach maintains strong performance even with as few as 4 labeled examples per class, demonstrating robustness in extreme low-resource scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.