arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.03385cs.CL
收藏

Grimoire是增强大型语言模型所需的一切

Grimoire is All You Need for Enhancing Large Language Models

Beihang University(北京航空航天大学);Renmin University of China(中国人民大学);Institute for Advanced Algorithms Research, Shanghai(上海高级算法研究所)

Ding Chen, Shichao Song, Qingchen Yu, Zhiyu Li, Wenjin Wang, Feiyu Xiong, Bo Tang

AI总结:

本文提出SLEICL方法,通过强语言模型学习并总结少样本技能后迁移给弱语言模型,显著提升了弱模型的上下文学习能力,部分模型甚至超越GPT4-1106-preview零样本性能。

摘要:

上下文学习(ICL)是通过提供一组少样本示例来增强大型语言模型在特定任务上性能的关键方法之一。然而,由于模型架构、学习数据量和参数规模等因素,不同类型模型的ICL能力表现出显著差异。通常,模型参数规模越大且学习数据越广泛,其ICL能力越强。本文提出一种名为SLEICL的方法,利用强语言模型从示例中学习,随后将这些学习到的技能进行总结并迁移至弱语言模型以供推理和应用。这确保了ICL的稳定性与有效性。与直接让弱语言模型从提示示例中学习相比,SLEICL降低了这些模型进行ICL的难度。我们在多达八个数据集和五个语言模型上进行的实验表明,弱语言模型使用SLEICL方法后,相较于其自身的零样本或少样本能力取得了一致的提升。部分弱语言模型在SLEICL的辅助下甚至超越了GPT4-1106-preview(零样本)的性能。

英文摘要:

In-context Learning (ICL) is one of the key methods for enhancing the performance of large language models on specific tasks by providing a set of few-shot examples. However, the ICL capability of different types of models shows significant variation due to factors such as model architecture, volume of learning data, and the size of parameters. Generally, the larger the model's parameter size and the more extensive the learning data, the stronger its ICL capability. In this paper, we propose a method SLEICL that involves learning from examples using strong language models and then summarizing and transferring these learned skills to weak language models for inference and application. This ensures the stability and effectiveness of ICL. Compared to directly enabling weak language models to learn from prompt examples, SLEICL reduces the difficulty of ICL for these models. Our experiments, conducted on up to eight datasets with five language models, demonstrate that weak language models achieve consistent improvement over their own zero-shot or few-shot capabilities using the SLEICL method. Some weak language models even surpass the performance of GPT4-1106-preview (zero-shot) with the aid of SLEICL.

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

↑