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

面向语言模型质量提升与压缩的协同训练与协同蒸馏

Co-training and Co-distillation for Quality Improvement and Compression of Language Models

Meta AI;Abridge AI;KAIST(韩国科学技术院)

Hayeon Lee, Rui Hou, Jongpil Kim, Davis Liang, Hongbo Zhang, Sung Ju Hwang, Alexander Min

AI总结:

针对知识蒸馏中小模型性能难超原始大模型的问题,提出协同训练与协同蒸馏框架CTCD,通过双模型互蒸馏双向提升性能,小模型在GLUE基准上比原始大模型高1.66,可结合现有技术进一步优化。

摘要:

知识蒸馏(Knowledge Distillation, KD)通过将计算成本高昂的预训练语言模型(pre-trained language models, PLMs)的知识迁移到更小的模型中,实现对大模型的压缩,使其能够应用于资源受限或实时场景。然而,大多数小模型的性能无法超越原始大模型,需要以牺牲性能为代价提升推理速度。为解决这一问题,我们提出协同训练与协同蒸馏(Co-Training and Co-Distillation, CTCD)——一种通过对两个模型进行协同训练并相互蒸馏知识,同时提升性能与推理速度的新型框架。CTCD框架的成功基于两项关键发现:1)协同训练过程中,将小模型的知识蒸馏给大模型可提升大模型的性能;2)大模型性能的增强会进一步提升小模型的性能。CTCD框架具备良好的应用前景,可与架构设计、数据增强等现有技术结合,替代单向KD方法以实现进一步的性能提升。大量消融实验验证了CTCD的有效性,经CTCD蒸馏得到的小模型在GLUE基准上的性能显著优于原始大模型,优势幅度达1.66。

英文摘要:

Knowledge Distillation (KD) compresses computationally expensive pre-trained language models (PLMs) by transferring their knowledge to smaller models, allowing their use in resource-constrained or real-time settings. However, most smaller models fail to surpass the performance of the original larger model, resulting in sacrificing performance to improve inference speed. To address this issue, we propose Co-Training and Co-Distillation (CTCD), a novel framework that improves performance and inference speed together by co-training two models while mutually distilling knowledge. The CTCD framework successfully achieves this based on two significant findings: 1) Distilling knowledge from the smaller model to the larger model during co-training improves the performance of the larger model. 2) The enhanced performance of the larger model further boosts the performance of the smaller model. The CTCD framework shows promise as it can be combined with existing techniques like architecture design or data augmentation, replacing one-way KD methods, to achieve further performance improvement. Extensive ablation studies demonstrate the effectiveness of CTCD, and the small model distilled by CTCD outperforms the original larger model by a significant margin of 1.66 on the GLUE benchmark.

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

↑