Mixtures of In-Context Learners

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hong, Giwon, van Krieken, Emile, Ponti, Edoardo, Malkin, Nikolay, Minervini, Pasquale
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915005935386624
author Hong, Giwon
van Krieken, Emile
Ponti, Edoardo
Malkin, Nikolay
Minervini, Pasquale
author_facet Hong, Giwon
van Krieken, Emile
Ponti, Edoardo
Malkin, Nikolay
Minervini, Pasquale
contents In-context learning (ICL) adapts LLMs by providing demonstrations without fine-tuning the model parameters; however, it does not differentiate between demonstrations and quadratically increases the complexity of Transformer LLMs, exhausting the memory. As a solution, we propose Mixtures of In-Context Learners (MoICL), a novel approach to treat subsets of demonstrations as experts and learn a weighting function to merge their output distributions based on a training set. In our experiments, we show performance improvements on 5 out of 7 classification datasets compared to a set of strong baselines (up to +13\% compared to ICL and LENS). Moreover, we enhance the Pareto frontier of ICL by reducing the inference time needed to achieve the same performance with fewer demonstrations. Finally, MoICL is more robust to out-of-domain (up to +11\%), imbalanced (up to +49\%), or noisy demonstrations (up to +38\%) or can filter these out from datasets. Overall, MoICL is a more expressive approach to learning from demonstrations without exhausting the context window or memory.
format Preprint
id arxiv_https___arxiv_org_abs_2411_02830
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mixtures of In-Context Learners
Hong, Giwon
van Krieken, Emile
Ponti, Edoardo
Malkin, Nikolay
Minervini, Pasquale
Computation and Language
Artificial Intelligence
Machine Learning
In-context learning (ICL) adapts LLMs by providing demonstrations without fine-tuning the model parameters; however, it does not differentiate between demonstrations and quadratically increases the complexity of Transformer LLMs, exhausting the memory. As a solution, we propose Mixtures of In-Context Learners (MoICL), a novel approach to treat subsets of demonstrations as experts and learn a weighting function to merge their output distributions based on a training set. In our experiments, we show performance improvements on 5 out of 7 classification datasets compared to a set of strong baselines (up to +13\% compared to ICL and LENS). Moreover, we enhance the Pareto frontier of ICL by reducing the inference time needed to achieve the same performance with fewer demonstrations. Finally, MoICL is more robust to out-of-domain (up to +11\%), imbalanced (up to +49\%), or noisy demonstrations (up to +38\%) or can filter these out from datasets. Overall, MoICL is a more expressive approach to learning from demonstrations without exhausting the context window or memory.
title Mixtures of In-Context Learners
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2411.02830