通过分组丢弃与独立量化,实现大模型微调参数的超高压缩。
DeltaDQ: Ultra-High Delta Compression for Fine-Tuned LLMs via Group-wise Dropout and Separate Quantization
- 利用分组丢弃和独立量化压缩微调权重
- 实现128倍至512倍超高压缩,精度不降反升
- 适合部署多微调模型的资源受限场景
大型语言模型通过监督微调在各类下游任务中表现优异。然而,任务多样性与实际部署需求使得部署多个全参数微调模型面临挑战。现有压缩微调权重的方法难以实现超高压缩,无法有效降低部署开销。为此,我们提出一种基于分布驱动的新型微调权重压缩框架DeltaDQ,结合分组丢弃与独立量化,实现微调权重的超高压缩。我们发现微调权重的矩阵计算中间结果具有极小方差和极小极值范围特征,称为平衡中间结果。利用该现象,引入最优分组大小的分组丢弃策略。进一步采用独立量化,对稀疏权重进行量化与分解,以降低位宽。实验表明,DeltaDQ在WizardMath和WizardCoder模型上相比基线实现16倍压缩且精度提升;更可实现128倍压缩(WizardMath-7B)和512倍压缩(WizardMath-70B)。
原文摘要 · Abstract (English)
Large language models achieve exceptional performance on various downstream tasks through supervised fine-tuning. However, the diversity of downstream tasks and practical requirements makes deploying multiple full-parameter fine-tuned models challenging. Current methods that compress the delta weight struggle to achieve ultra-high compression, failing to minimize the deployment overhead. To address the above issue, we propose a novel distribution-driven delta compression framework DeltaDQ, which utilizes Group-wise Dropout and Separate Quantization to achieve ultra-high compression for the delta weight. We have observed that the matrix-computed intermediate results for the delta weight exhibit extremely small variance and min-max range characteristics, referred to as Balanced Intermediate Results. Exploiting this phenomenon, we introduce Group-wise Dropout to perform dropout on the delta weight using an optimal group size. Furthermore, using Separate Quantization, sparse weights are quantized and decomposed to achieve a lower bit. Experimental results show that DeltaDQ achieves 16x compression with improved accuracy compared to baselines for WizardMath and WizardCoder models across different parameter scales. Moreover, DeltaDQ demonstrates the ability for ultra-high compression ratio, achieving 128x compression for the WizardMath-7B model and 512x compression for the WizardMath-70B model.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。