用于增量压缩的动态基模型偏移
Dynamic Base model Shift for Delta Compression
AI总结:
针对现有增量压缩以预训练模型为基模型导致高压缩率下性能骤降的问题,提出动态基模型偏移方法DBMS,通过低成本学习两个参数动态适配基模型,在极高压缩比下仍能保留大部分性能,且可与多种方法兼容,适用于多类模型。
摘要:
基于Transformer的预训练-微调范式模型取得了显著进展,但也带来了多任务微调模型高昂的存储与部署成本。增量压缩(Delta compression)旨在通过剪枝或量化降低增量参数(即微调模型与预训练模型权重的差值)的冗余度以削减成本。然而现有方法默认将预训练模型作为基模型,为每个任务压缩增量参数,这可能导致严重的性能下降,尤其是在压缩率极高的情况下。为解决该问题,我们研究了不同基模型对增量压缩性能的影响,发现预训练基模型很难是最优的。为此,我们提出动态基模型偏移(Dynamic Base Model Shift,DBMS),该方法在执行增量压缩前,使基模型动态适配目标任务。具体而言,我们调整两个分别决定基模型偏移幅度与增量压缩整体规模的参数,以提升每个任务的压缩性能。通过对这两个参数的低成本学习,我们的DBMS即使在极高压缩比设置下也能保留微调模型的大部分性能,显著超越现有方法。此外,DBMS具有正交性,可与多种其他方法集成,且已在语言、视觉Transformer及多模态模型等不同类型的模型上完成评估。
英文摘要:
Transformer-based models with the pretrain-finetune paradigm bring about significant progress, along with the heavy storage and deployment costs of finetuned models on multiple tasks. 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) through pruning or quantization. However, existing methods by default employ the pretrained model as the base model and compress the delta parameters for every task, which may causes significant performance degradation, especially when the compression rate is extremely high. To tackle this issue, we investigate the impact of different base models on the performance of delta compression and find that the pre-trained base model can hardly be optimal. To this end, we propose Dynamic Base Model Shift (DBMS), which dynamically adapts the base model to the target task before performing delta compression. Specifically, we adjust two parameters, which respectively determine the magnitude of the base model shift and the overall scale of delta compression, to boost the compression performance on each task. Through low-cost learning of these two parameters, our DBMS can maintain most of the finetuned model's performance even under an extremely high compression ratio setting, significantly surpassing existing methods. Moreover, our DBMS is orthogonal and can be integrated with a variety of other methods, and it has been evaluated across different types of models including language, vision transformer, and multi-modal models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。