跳到正文
arXiv (AI + Vision + Imaging)· Giwon Hong, Emile van Krieken, Edoardo Ponti, Esmeralda S. Whitammer, Pasquale Minervini·· 7 天前AI 评分30

MoICL:将演示子集视为专家的混合上下文学习方案

Mixtures of In-Context Learners

AI 导读

研究者提出 Mixtures of In-Context Learners(MoICL),将演示子集视为专家并学习加权函数,按训练集融合各专家输出分布。在 7 个分类数据集中的 5 个上优于 ICL 与 LENS 等强基线,最高提升 13%,同时减少达到同等性能所需的演示数量与推理时间。

正文 · 原文

arXiv:2411.02830v2 Announce Type: replace Abstract: 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org