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

SeCoKD:对齐大型语言模型以实现更少样本的上下文学习

SeCoKD: Aligning Large Language Models for In-Context Learning with Fewer Shots

Hasso Plattner Institute, University of Potsdam(波茨坦大学哈索·普拉特纳研究所)

Weixing Wang, Haojin Yang, Christoph Meinel

AI总结:

提出SeCoKD自知识蒸馏框架,通过将学生模型与重度提示变体对齐提高单样本利用率,在减少演示数量的同时保持竞争性能,并在零样本和一样本设置中显著优于基础模型和监督微调。

摘要:

先前的研究表明,演示可以显著帮助大型语言模型(LLMs)在给定任务上表现得更好。然而,这种所谓的上下文学习(ICL)能力对呈现的上下文非常敏感,并且通常需要数十个演示。在这项工作中,我们研究是否可以在保持竞争性性能的同时减少样本数量。我们提出了SeCoKD,这是一个自我知识蒸馏(KD)训练框架,通过将学生模型与一个重度提示的变体对齐,从而提高单个演示的利用率。我们在三个LLMs和六个基准上实验了SeCoKD,主要集中在推理任务上。结果显示,我们的方法优于基础模型和监督微调(SFT),特别是在零样本和一样本设置中分别提高了30%和10%。此外,SeCoKD在评估新任务时几乎没有带来负面伪影,比监督微调更加鲁棒。

英文摘要:

Previous studies have shown that demonstrations can significantly help Large Language Models (LLMs ) perform better on the given tasks. However, this so-called In-Context Learning ( ICL ) ability is very sensitive to the presenting context, and often dozens of demonstrations are needed. In this work, we investigate if we can reduce the shot number while still maintaining a competitive performance. We present SeCoKD, a self-Knowledge Distillation ( KD ) training framework that aligns the student model with a heavily prompted variation, thereby increasing the utilization of a single demonstration. We experiment with the SeCoKD across three LLMs and six benchmarks focusing mainly on reasoning tasks. Results show that our method outperforms the base model and Supervised Fine-tuning ( SFT ), especially in zero-shot and one-shot settings by 30% and 10%, respectively. Moreover, SeCoKD brings little negative artifacts when evaluated on new tasks, which is more robust than Supervised Fine-tuning.

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

↑