[Paper Review] It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners
This paper proposes a modified version of Pattern-Exploiting Training (PET) that enables small language models, such as ALBERT, to achieve few-shot learning performance comparable to GPT-3—despite having three orders of magnitude fewer parameters. By reformulating tasks as cloze questions with multiple patterns and using gradient-based fine-tuning on labeled data, the method achieves state-of-the-art results on SuperGLUE with significantly reduced computational and environmental costs.
When scaled to hundreds of billions of parameters, pretrained language models such as GPT-3 (Brown et al., 2020) achieve remarkable few-shot performance. However, enormous amounts of compute are required for training and applying such big models, resulting in a large carbon footprint and making it difficult for researchers and practitioners to use them. We show that performance similar to GPT-3 can be obtained with language models that are much "greener" in that their parameter count is several orders of magnitude smaller. This is achieved by converting textual inputs into cloze questions that contain a task description, combined with gradient-based optimization; exploiting unlabeled data gives further improvements. We identify key factors required for successful natural language understanding with small language models.
Motivation & Objective
- To enable small language models to perform few-shot learning without requiring massive parameter counts or excessive compute.
- To reduce the environmental impact of few-shot NLP by replacing large models like GPT-3 with smaller, more efficient alternatives.
- To investigate whether small models can match the few-shot generalization of large models like GPT-3 when using structured prompting and fine-tuning.
- To identify key factors enabling high performance in small models, including pattern diversity, robustness to wording, and effective use of labeled data.
Proposed method
- Adapt PET to handle multi-token outputs by modifying the decoding strategy to predict tokens sequentially based on their probability scores (max-first decoding).
- Use masked language models (e.g., ALBERT) to compute the probability of candidate answers in cloze-style prompts, where inputs are transformed into fill-in-the-blank questions.
- Employ multiple patterns (PVPs) to rephrase inputs and outputs, allowing the model to learn from diverse formulations and improve generalization.
- Apply gradient-based fine-tuning using labeled examples, with knowledge distillation from a larger teacher model to improve performance.
- Utilize unlabeled data in a self-training setup to further boost performance, especially when labeled data is scarce.
- Implement iterative PET (iPET) to refine predictions through multiple rounds of pattern application and model updates.
Experimental results
Research questions
- RQ1Can small language models achieve few-shot performance comparable to GPT-3 without requiring massive parameter counts?
- RQ2What modifications to PET are necessary to support multi-token output prediction in few-shot learning?
- RQ3How do factors such as pattern diversity, labeling efficiency, and model architecture contribute to performance in small models?
- RQ4To what extent can unlabeled data and distillation improve few-shot performance in small models?
- RQ5Does the choice of training examples significantly affect performance, and how does this compare to priming-based methods like GPT-3?
Key findings
- ALBERT models fine-tuned with the modified PET method outperform GPT-3 on SuperGLUE with only 32 training examples, achieving 87.1% average performance compared to GPT-3’s 65.4%.
- The modified PET method achieves state-of-the-art results on SuperGLUE with a model that has 0.1% of GPT-3’s parameters (approximately 100 million vs. 175 billion).
- Max-first decoding outperforms both left-to-right and parallel decoding strategies for multi-token outputs, especially on tasks like COPA and ReCoRD.
- Performance varies significantly across different random seeds for training data, highlighting the importance of using consistent training sets when comparing few-shot methods.
- Even without distillation or unlabeled data, PET with ALBERT achieves strong performance, indicating that the method is effective even with minimal data and compute.
- The method reduces environmental impact substantially, as training can be completed in hours on a single GPU, unlike GPT-3’s massive compute requirements.
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.