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

基于特征对齐的知识蒸馏用于大语言模型的高效压缩

Feature Alignment-Based Knowledge Distillation for Efficient Compression of Large Language Models

Purdue University(普渡大学);New York University(纽约大学);Stevens Institute of Technology(史蒂文斯理工学院);Northeastern University(东北大学);The Chinese University of Hong Kong(香港中文大学)

Shuo Wang, Chihang Wang, Jia Gao, Zhen Qi, Hongye Zheng, Xiaoxuan Liao

AI总结:

本文提出基于多层特征对齐的知识蒸馏方法,通过联合优化特征匹配、注意力对齐和输出分布匹配损失,将大模型知识高效迁移到轻量级学生模型,在GLUE等任务上接近GPT-4性能并显著超越DeBERTa、XLNet和GPT-3。

摘要:

本研究提出了一种基于大语言模型和特征对齐的知识蒸馏算法,旨在将大型预训练模型的知识有效迁移到轻量级学生模型中,从而在保持较高模型性能的同时降低计算成本。与传统的软标签蒸馏方法不同,该方法引入多层特征对齐策略,对教师模型和学生模型的中间特征及注意力机制进行深度对齐,最大限度地保留教师模型的语义表达能力和上下文建模能力。在方法设计上,构建了多任务损失函数,包括特征匹配损失、注意力对齐损失和输出分布匹配损失,通过联合优化确保多层次信息传递。实验在GLUE数据集及多种自然语言处理任务上进行了全面评估。结果表明,所提模型在困惑度、BLEU、ROUGE和CER等评价指标上表现与最先进的GPT-4模型非常接近,同时大幅超越DeBERTa、XLNet和GPT-3等基线模型,展现出显著的性能提升和计算效率优势。研究结果表明,特征对齐蒸馏策略是一种有效的模型压缩方法,能够在保持模型能力的同时显著降低计算开销和存储需求。未来研究可进一步在自监督学习、跨模态特征对齐和多任务迁移学习等方向扩展,为深度学习模型的部署与优化提供更灵活、高效的解决方案。

英文摘要:

This study proposes a knowledge distillation algorithm based on large language models and feature alignment, aiming to effectively transfer the knowledge of large pre-trained models into lightweight student models, thereby reducing computational costs while maintaining high model performance. Different from the traditional soft label distillation method, this method introduces a multi-layer feature alignment strategy to deeply align the intermediate features and attention mechanisms of the teacher model and the student model, maximally retaining the semantic expression ability and context modeling ability of the teacher model. In terms of method design, a multi-task loss function is constructed, including feature matching loss, attention alignment loss, and output distribution matching loss, to ensure multi-level information transfer through joint optimization. The experiments were comprehensively evaluated on the GLUE data set and various natural language processing tasks. The results show that the proposed model performs very close to the state-of-the-art GPT-4 model in terms of evaluation indicators such as perplexity, BLEU, ROUGE, and CER. At the same time, it far exceeds baseline models such as DeBERTa, XLNet, and GPT-3, showing significant performance improvements and computing efficiency advantages. Research results show that the feature alignment distillation strategy is an effective model compression method that can significantly reduce computational overhead and storage requirements while maintaining model capabilities. Future research can be further expanded in the directions of self-supervised learning, cross-modal feature alignment, and multi-task transfer learning to provide more flexible and efficient solutions for the deployment and optimization of deep learning models.

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

↑