SparseAdapter:一种提高适配器参数效率的简便方法
SparseAdapter: An Easy Approach for Improving the Parameter-Efficiency of Adapters
摘要:
适配器调整,冻结预训练的语言模型(PLM),只微调一些额外的模块,成为一个有吸引力的有效替代全面的模型微调。虽然计算效率高,最近的适配器经常增加参数(例如瓶颈尺寸),以匹配全模型微调的性能,我们认为这违背了他们的初衷。在这项工作中,我们通过网络修剪的镜头重新检查适配器的参数效率(我们命名为\texttt{SparseAdapter}这样的插件概念),并发现SparseAdapter可以达到可比或更好的性能比标准适配器的稀疏率达到80\%。基于我们的研究结果,我们引入了一个简单但有效的设置"\textit{Large-Sparse}",以提高在相同的参数预算下的适配器的模型容量。在三种先进的PLM上对五种竞争适配器进行的实验表明,通过适当的稀疏方法(如SNIP)和比率(如40\%),SparseAdapter可以始终优于相应的对手。令人鼓舞的是,通过\textit{Large-Sparse}设置,我们可以获得更有吸引力的增益,甚至大幅优于完全微调。我们的代码将在https://github.com/Shwai-He/SparseAdapter上发布。
英文摘要:
Adapter Tuning, which freezes the pretrained language models (PLMs) and only fine-tunes a few extra modules, becomes an appealing efficient alternative to the full model fine-tuning. Although computationally efficient, the recent Adapters often increase parameters (e.g. bottleneck dimension) for matching the performance of full model fine-tuning, which we argue goes against their original intention. In this work, we re-examine the parameter-efficiency of Adapters through the lens of network pruning (we name such plug-in concept as \texttt{SparseAdapter}) and find that SparseAdapter can achieve comparable or better performance than standard Adapters when the sparse ratio reaches up to 80\%. Based on our findings, we introduce an easy but effective setting ``\textit{Large-Sparse}'' to improve the model capacity of Adapters under the same parameter budget. Experiments on five competitive Adapters upon three advanced PLMs show that with proper sparse method (e.g. SNIP) and ratio (e.g. 40\%) SparseAdapter can consistently outperform their corresponding counterpart. Encouragingly, with the \textit{Large-Sparse} setting, we can obtain further appealing gains, even outperforming the full fine-tuning by a large margin. Our code will be released at: https://github.com/Shwai-He/SparseAdapter.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。