Improving In-Context Learning with Small Language Model Ensembles

M. Mehdi Mojarradi, Lingyi Yang, Robert McCraith, Adam Mahdi
10/29/2024
cs.CL

No official code found. Best implementation: mehdimojarradi/Ensemble-SuperICL (6 stars, last commit 2024-10-30).

Abstract

Large language models (LLMs) have shown impressive capabilities across various tasks, but their performance on domain-specific tasks remains limited. While methods like retrieval augmented generation and fine-tuning can help to address this, they require significant resources. In-context learning (ICL) is a cheap and efficient alternative but cannot match the accuracies of advanced methods. We present Ensemble SuperICL, a novel approach that enhances ICL by leveraging the expertise of multiple fine-tuned small language models (SLMs). Ensemble SuperICL achieves state of the art (SoTA) results on several natural language understanding benchmarks. Additionally, we test it on a medical-domain labelling task and showcase its practicality by using off-the-shelf SLMs fine-tuned on a general language task, achieving superior accuracy in large-scale data labelling compared to all baselines. Finally, we conduct an ablation study and sensitivity analyses to elucidate the underlying mechanism of Ensemble SuperICL. Our research contributes to the growing demand for efficient domain specialisation methods in LLMs, offering a cheap and effective method for practitioners.

View on arXivView PDF

Code Implementations(1)

Code for 'Improving In-Context Learning with Small Language Model Ensembles'

61PythonOct 28, 20241 years ago

Similar Papers

Cite this paper

@article{mojarradi2024improving,
  title  = {Improving In-Context Learning with Small Language Model Ensembles},
  author = {M. Mehdi Mojarradi and Lingyi Yang and Robert McCraith and Adam Mahdi},
  year   = {2024},
  eprint = {2410.21868},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.21868v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.21868.svg)](https://codeofpaper.com/paper/2410.21868)

Discussion