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.
翻译:对自然语言处理(NLP)来说,经过精密训练的模型已成为自然语言处理(NLP)的核心,成为微调一系列下游任务的起点。然而,这一模式仍然存在两个疼痛点:(a)随着经过训练的模型(例如,GPT的175B参数)的扩大,即使微调过程也可能耗费时间,计算成本高昂;(b)微调模型与默认的起点大小相同,由于其更加专业化的功能,既不合理,也不实际,因为许多经过微调的模型将部署在资源紧张的环境中。为了解决这些疼痛点,我们提议了一个通过在重量更新和最终模型重量中利用先前的宽度来调整资源和参数效率的微调框架。我们提议的框架,即双调的精度前置精度(DSEEEE),目的是实现两个关键目标:(i) 参数高效的微调,通过在经过训练的模型的顶部位上实施敏化度(Offery-aware)的低调更新;以及(ii)在经过精度模型上,在经过不断调整的精度的精度中,我们不断调整的精度的网络中,在结构上进行资源节化的精度的精度上,在不断调整的精度上进行。