DSEE:预训练语言模型的双重稀疏嵌入高效微调
DSEE: Dually Sparsity-embedded Efficient Tuning of Pre-trained Language Models
AI总结:
针对大模型微调耗时及部署受限问题,提出双重稀疏嵌入高效微调框架DSEE,通过稀疏低秩更新与稀疏权重结构实现参数与推理双重高效,在保持性能的同时显著降低计算成本。
摘要:
庞大的预训练模型已成为自然语言处理(NLP)的核心,作为面向各种下游任务进行微调的起点。然而,这种范式仍存在两个痛点:(a) 随着预训练模型变得越来越大(例如GPT-3的175B参数),即使是微调过程也可能非常耗时且计算成本高昂;(b) 默认情况下,微调后的模型与其起点具有相同的规模,由于其功能更加专业化,这既不合理,也不切实际,因为许多微调后的模型将被部署在资源受限的环境中。为了解决这些痛点,我们提出了一个通过利用权重更新和最终模型权重中的稀疏先验来实现资源和参数高效微调的框架。我们提出的框架名为双重稀疏嵌入高效微调(DSEE),旨在实现两个关键目标:(i) 参数高效微调——通过在预训练权重之上实施稀疏感知的低秩更新;以及(ii) 资源高效推理——通过在最终微调模型中鼓励稀疏权重结构。我们通过统一方法利用预训练语言模型中的非结构化和结构化稀疏模式,在这两个方向上利用稀疏性。大量实验和深入调查,在数十个数据集上使用多种网络骨干(即BERT、RoBERTa和GPT-2),一致证明了其令人印象深刻的参数/推理效率,同时保持了具有竞争力的下游性能。例如,DSEE在BERT上使用0.5%的可训练参数,在实现可比性能的同时节省了约25%的推理FLOPs。代码可在https://github.com/VITA-Group/DSEE获取。
英文摘要:
Gigantic pre-trained models have become central to natural language processing (NLP), serving as the starting point for fine-tuning towards a range of downstream tasks. However, two pain points persist for this paradigm: (a) as the pre-trained models grow bigger (e.g., 175B parameters for GPT-3), even the fine-tuning process can be time-consuming and computationally expensive; (b) the fine-tuned model has the same size as its starting point by default, which is neither sensible due to its more specialized functionality, nor practical since many fine-tuned models will be deployed in resource-constrained environments. To address these pain points, we propose a framework for resource- and parameter-efficient fine-tuning by leveraging the sparsity prior in both weight updates and the final model weights. Our proposed framework, dubbed Dually Sparsity-Embedded Efficient Tuning (DSEE), aims to achieve two key objectives: (i) parameter efficient fine-tuning - by enforcing sparsity-aware low-rank updates on top of the pre-trained weights; and (ii) resource-efficient inference - by encouraging a sparse weight structure towards the final fine-tuned model. We leverage sparsity in these two directions by exploiting both unstructured and structured sparse patterns in pre-trained language models via a unified approach. Extensive experiments and in-depth investigations, with diverse network backbones (i.e., BERT, RoBERTa, and GPT-2) on dozens of datasets, consistently demonstrate impressive parameter-/inference-efficiency, while maintaining competitive downstream performance. For instance, DSEE saves about 25% inference FLOPs while achieving comparable performance, with 0.5% trainable parameters on BERT. Codes are available in https://github.com/VITA-Group/DSEE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。