arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.14704cs.CLcs.LG
收藏

面向任务的内存高效剪枝适配器

Task-oriented Memory-efficient Pruning-Adapter

Tongji University(同济大学)

Guorun Wang, Jun Yang, Yaoru Sun

AI总结:

针对大型语言模型中Adapters和Pruning无法兼顾训练与推理效率的问题,提出面向任务的Pruning-Adapter方法,在保证GLUE任务准确率的同时实现高效的训练与推理。

摘要:

大型语言模型出色的性能和不断增长的规模,使得参数高效学习受到了越来越多的关注。两种最主要的方法是 Adapters 和 Pruning。Adapters 是冻结模型并在其侧面添加一个新的权重矩阵,这能显著减少训练的时间和内存,但代价是评估和测试会增加时间和内存消耗。Pruning 是切断部分权重并重新分配剩余权重,它牺牲了训练的复杂度,代价是极高的内存和训练时间,从而使得评估和测试的成本相对较低。因此,训练和推理的效率无法同时获得。在本研究中,我们提出了一种面向任务的 Pruning-Adapter 方法,该方法实现了训练和内存的高内存效率,加快了训练时间,并确保在 GLUE 任务中准确率没有显著下降,从而同时实现了训练和推理的效率。

英文摘要:

The Outstanding performance and growing size of Large Language Models has led to increased attention in parameter efficient learning. The two predominant approaches are Adapters and Pruning. Adapters are to freeze the model and give it a new weight matrix on the side, which can significantly reduce the time and memory of training, but the cost is that the evaluation and testing will increase the time and memory consumption. Pruning is to cut off some weight and re-distribute the remaining weight, which sacrifices the complexity of training at the cost of extremely high memory and training time, making the cost of evaluation and testing relatively low. So efficiency of training and inference can't be obtained in the same time. In this work, we propose a task-oriented Pruning-Adapter method that achieve a high memory efficiency of training and memory, and speeds up training time and ensures no significant decrease in accuracy in GLUE tasks, achieving training and inference efficiency at the same time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑