用图像压缩思路实现无需数据的模型微调参数压缩,效率更高。
Seeing Delta Parameters as JPEG Images: Data-Free Delta Compression with Discrete Cosine Transform
- 将参数差异分块并转至DCT域进行可变位宽量化
- 1比特等效压缩率下性能媲美甚至超越原模型
- 无需训练和数据,适合资源受限场景
随着基于Transformer的预训练-微调范式成为主流,多个任务下微调模型的存储与部署成本高昂。参数差值压缩通过减少微调参数(即微调后与预训练模型权重之差)的冗余来降低成本。然而现有方法常面临数据获取困难和训练需求高的问题。为此,我们提出首个受经典JPEG压缩启发的数据无关的差值压缩方法Delta-DCT,利用离散余弦变换(DCT)。首先将层内差值参数分块;其次评估每块重要性并分配不同量化位宽;最后在DCT域中按位宽对各块进行量化。所提方法无需任何训练或数据校准,在多种模型上实现1比特等效压缩率下性能媲美甚至超越原微调模型,涵盖7B至13B规模的最新大语言模型、RoBERTa与T5等较小语言模型、视觉变压器变体及多模态BEiT-3模型。
原文摘要 · Abstract (English)
With transformer-based models and the pretrain-finetune paradigm becoming mainstream, the high storage and deployment costs of individual finetuned models on multiple tasks pose critical challenges. Delta compression attempts to lower the costs by reducing the redundancy of delta parameters (i.e., the difference between the finetuned and pre-trained model weights). However, existing methods usually face problems including data accessibility and training requirements. To tackle this issue, we introduce Delta-DCT, the first data-free delta compression method inspired by classic JPEG image compression, leveraging the Discrete Cosine Transform (DCT). We first (a) group delta parameters within a layer into patches. Then we (b) assess the importance of each patch and allocate them with different quantization bit-widths. Afterwards, we (c) convert these patches to the DCT domain and conduct quantization to each patch based on the allocated bit-width. The proposed Delta-DCT does not require any training or data calibration, while achieving performance comparable to or even surpassing original finetuned models under 1-bit equivalent delta compression ratios on different kinds of models including: (1) recently-released LLMs of different sizes from 7B to 13B, (2) relatively smaller language models including RoBERTa and T5 models, (3) variants of vision transformer models, and (4) multi-modal BEiT-3 models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。