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

用于高效少样本微调的上下文学习蒸馏

In-Context Learning Distillation for Efficient Few-Shot Fine-Tuning

Georgia Institute of Technology(佐治亚理工学院)

Yifei Duan, Liu Li, Zirui Zhai, Jinxia Yao

AI总结:

本文提出上下文学习蒸馏方法,通过知识蒸馏将少样本上下文信息内化,在大幅减少模型参数和内存消耗的同时,显著提升了自然语言推理任务的域外准确率与知识迁移能力。

摘要:

我们在自然语言推理任务上对OPT-1.3B模型应用了少样本上下文学习,并采用知识蒸馏将上下文信息内化,将模型参数从1.3B减少到125M,实现了从2.5GB到0.25GB的尺寸缩减。与在相似尺寸模型上单独使用上下文学习相比,这种上下文蒸馏方法在域外准确率上实现了近50%的提升,展现出优于基于提示方法的知识迁移能力。此外,与传统的基于模式的微调相比,该方法在将内存消耗降低高达60%的同时,实现了20%的域外准确率提升。

英文摘要:

We applied few-shot in-context learning on the OPT-1.3B model for the natural language inference task and employed knowledge distillation to internalize the context information, reducing model parameter from 1.3B to 125M and achieving a size reduction from 2.5GB to 0.25GB. Compared to using in-context learning alone on similarly sized models, this context distillation approach achieved a nearly 50% improvement in out-of-domain accuracy, demonstrating superior knowledge transfer capabilities over prompt-based methods. Furthermore, this approach reduced memory consumption by up to 60% while delivering a 20% improvement in out-of-domain accuracy compared to conventional pattern-based fine-tuning.

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

↑