Skip to main content
QUICK REVIEW

[Paper Review] Small Language Models are Good Too: An Empirical Study of Zero-Shot Classification

Pierre Lepagnol, Thomas Gerald|arXiv (Cornell University)|Apr 17, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper empirically evaluates small language models (77M to 40B parameters) in zero-shot text classification across 15 diverse datasets, using multiple architectures and scoring functions. It demonstrates that small models achieve performance comparable to or better than large models, challenging the assumption that larger models are essential for effective zero-shot classification.

ABSTRACT

This study is part of the debate on the efficiency of large versus small language models for text classification by prompting.We assess the performance of small language models in zero-shot text classification, challenging the prevailing dominance of large models.Across 15 datasets, our investigation benchmarks language models from 77M to 40B parameters using different architectures and scoring functions. Our findings reveal that small models can effectively classify texts, getting on par with or surpassing their larger counterparts.We developed and shared a comprehensive open-source repository that encapsulates our methodologies. This research underscores the notion that bigger isn't always better, suggesting that resource-efficient small models may offer viable solutions for specific data classification challenges.

Motivation & Objective

  • To challenge the prevailing assumption that large language models (LLMs) are indispensable for effective zero-shot text classification.
  • To evaluate the performance of small models (77M to 40B parameters) across diverse architectures and datasets in a zero-shot setting.
  • To determine whether small models can match or surpass large models in zero-shot classification without fine-tuning.
  • To provide a comprehensive, open-source benchmark for reproducible evaluation of small models in zero-shot prompting.
  • To investigate the impact of model architecture, size, and scoring functions on zero-shot classification performance.

Proposed method

  • Benchmarked 15 diverse text classification datasets spanning topic, sentiment, spam, and relation classification tasks.
  • Evaluated language models ranging from 77M to 40B parameters, including both encoder-decoder and decoder-only architectures.
  • Applied four distinct scoring functions to assess model outputs in zero-shot prompting scenarios.
  • Used accuracy and F1 scores as evaluation metrics, with balance ratio used to assess class imbalance effects.
  • Fine-tuned models on instruction-following datasets to improve zero-shot generalization capabilities.
  • Released a fully open-source repository to ensure methodological transparency and reproducibility.

Experimental results

Research questions

  • RQ1Can small language models achieve performance comparable to large models in zero-shot text classification across diverse datasets?
  • RQ2How do different model architectures (encoder-decoder vs. decoder-only) affect zero-shot classification performance?
  • RQ3What is the impact of model size (77M to 40B parameters) on zero-shot classification accuracy and F1 scores?
  • RQ4How do different scoring functions influence the classification performance of small models?
  • RQ5Under what data characteristics (e.g., class imbalance, label diversity) do small models outperform large models?

Key findings

  • Small language models (as small as 77M parameters) achieved performance on par with or better than large models (up to 40B parameters) on multiple datasets in zero-shot text classification.
  • On the AGNews and BBCNews datasets, small models matched or exceeded the accuracy of larger models, particularly with optimized scoring functions.
  • Model performance was not strictly correlated with size; smaller models outperformed larger ones on certain imbalanced datasets like chemprot.
  • Decoder-only architectures showed stronger generalization in zero-shot prompting compared to encoder-decoder models across most benchmarks.
  • The choice of scoring function significantly influenced results, with some functions improving small model performance by up to 10% on specific datasets.
  • The study provides strong empirical evidence that resource-efficient small models can be viable alternatives to large models in zero-shot classification tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.