arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.02830cs.CLcs.AIcs.LG
收藏

上下文学习者的混合模型

Mixtures of In-Context Learners

University of Edinburgh(爱丁堡大学)

Giwon Hong, Emile van Krieken, Edoardo Ponti, Esmeralda S. Whitammer, Pasquale Minervini

AI总结:

提出MoICL,将演示子集视为专家并学习加权合并输出分布,在多个分类数据集上提升性能,增强鲁棒性并降低推理成本。

摘要:

上下文学习(ICL)通过提供演示而不微调模型参数来适应大型语言模型(LLMs);然而,它不区分演示,并且使Transformer LLMs的复杂度呈二次方增长,从而耗尽内存。作为解决方案,我们提出了上下文学习者的混合模型(MoICL),这是一种新颖的方法,将演示的子集视为专家,并基于训练集学习一个加权函数来合并它们的输出分布。在我们的实验中,与一组强基线相比,我们在7个分类数据集中的5个上展示了性能提升(与ICL和LENS相比最高提升+13%)。此外,我们通过减少在更少演示下达到相同性能所需的推理时间,增强了ICL的帕累托前沿。最后,MoICL对分布外(最高+11%)、不平衡(最高+49%)或噪声演示(最高+38%)更加鲁棒,或者可以从数据集中过滤这些演示。总体而言,MoICL是一种更具表现力的从演示中学习的方法,而不会耗尽上下文窗口或内存。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑