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

PC-LoRA:结合知识蒸馏的渐进式模型压缩低秩适配

PC-LoRA: Low-Rank Adaptation for Progressive Model Compression with Knowledge Distillation

ETRI(韩国电子通信研究院);KAIST(韩国科学技术院);MODULABS

Injoon Hwang, Haewon Park, Youngwan Lee, Jooyoung Yang, SunJae Maeng

AI总结:

本文提出 PC-LoRA,通过训练中渐进移除预训练权重并最终仅保留低秩适配器,同步完成模型压缩与微调,在视觉和语言模型上取得高压缩率。

摘要:

低秩适配(LoRA)是一种重要方法,它在冻结的预训练权重上添加少量可学习参数,以实现参数高效微调。受“在微调的最终阶段,仅依靠 LoRA 权重而不使用预训练权重,能否使其表示能力足够?”这一问题启发,本文提出渐进式压缩 LoRA(PC-LoRA),利用低秩适配(LoRA)同时进行模型压缩和微调。PC-LoRA 方法在训练过程中逐步移除预训练权重,最终只保留低秩适配器。因此,这些低秩适配器替代整个预训练权重,同时实现压缩与微调目标。跨多种模型的实证分析表明,PC-LoRA 在 ViT-B 等视觉模型上实现 94.36%/89.1% 的参数与 FLOPs 压缩率,在 BERT 等语言模型上实现 93.42%/84.2% 的参数与 FLOPs 压缩率。

英文摘要:

Low-rank adaption (LoRA) is a prominent method that adds a small number of learnable parameters to the frozen pre-trained weights for parameter-efficient fine-tuning. Prompted by the question, ``Can we make its representation enough with LoRA weights solely at the final phase of finetuning without the pre-trained weights?'' In this work, we introduce Progressive Compression LoRA~(PC-LoRA), which utilizes low-rank adaptation (LoRA) to simultaneously perform model compression and fine-tuning. The PC-LoRA method gradually removes the pre-trained weights during the training process, eventually leaving only the low-rank adapters in the end. Thus, these low-rank adapters replace the whole pre-trained weights, achieving the goals of compression and fine-tuning at the same time. Empirical analysis across various models demonstrates that PC-LoRA achieves parameter and FLOPs compression rates of 94.36%/89.1% for vision models, e.g., ViT-B, and 93.42%/84.2% parameters and FLOPs compressions for language models, e.g., BERT.

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

↑