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

扩展稀疏调优以实现低内存使用

Expanding Sparse Tuning for Low Memory Usage

Key Lab of Intell. Info. Process., Inst. of Comput. Tech., CAS(中国科学院计算技术研究所智能信息处理重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学);Peng Cheng Laboratory(鹏城实验室)

Shufan Shen, Junshu Sun, Xiangyang Ji, Qingming Huang, Shuhui Wang

AI总结:

本文提出SNELL方法,通过分解低秩矩阵和竞争稀疏化机制,实现低内存的稀疏调优,并利用核函数提升性能,达到最先进水平。

摘要:

参数高效微调(PEFT)是一种通过调整一小部分参数来使预训练视觉模型适应下游任务的有效方法。在PEFT方法中,稀疏调优通过仅调整与下游任务最相关的权重,而非密集地调整整个权重矩阵,从而实现了优越的性能。然而,这种性能提升伴随着内存使用的增加,这源于两个因素:即优化器中存储整个权重矩阵作为可学习参数,以及额外存储可调权重索引。在本文中,我们提出了一种名为SNELL(基于核化LoRA的稀疏调优)的方法,用于低内存使用的稀疏调优。为实现低内存使用,SNELL将用于稀疏化的可调矩阵分解为两个可学习的低秩矩阵,从而避免了存储整个原始矩阵的高昂成本。进一步提出了一种基于竞争的稀疏化机制,以避免存储可调权重索引。为了保持低秩矩阵稀疏调优的有效性,我们通过将非线性核函数应用于整个矩阵合并来扩展低秩分解。因此,我们增加了合并矩阵的秩,增强了SNELL将预训练模型适应下游任务的能力。在多个下游任务上的大量实验表明,SNELL以低内存使用实现了最先进的性能,使PEFT能够将稀疏调优应用于大规模模型。代码可在https://github.com/ssfgunner/SNELL获取。

英文摘要:

Parameter-efficient fine-tuning (PEFT) is an effective method for adapting pre-trained vision models to downstream tasks by tuning a small subset of parameters. Among PEFT methods, sparse tuning achieves superior performance by only adjusting the weights most relevant to downstream tasks, rather than densely tuning the whole weight matrix. However, this performance improvement has been accompanied by increases in memory usage, which stems from two factors, i.e., the storage of the whole weight matrix as learnable parameters in the optimizer and the additional storage of tunable weight indexes. In this paper, we propose a method named SNELL (Sparse tuning with kerNELized LoRA) for sparse tuning with low memory usage. To achieve low memory usage, SNELL decomposes the tunable matrix for sparsification into two learnable low-rank matrices, saving from the costly storage of the whole original matrix. A competition-based sparsification mechanism is further proposed to avoid the storage of tunable weight indexes. To maintain the effectiveness of sparse tuning with low-rank matrices, we extend the low-rank decomposition by applying nonlinear kernel functions to the whole-matrix merging. Consequently, we gain an increase in the rank of the merged matrix, enhancing the ability of SNELL in adapting the pre-trained models to downstream tasks. Extensive experiments on multiple downstream tasks show that SNELL achieves state-of-the-art performance with low memory usage, endowing PEFT with sparse tuning to large-scale models. Codes are available at https://github.com/ssfgunner/SNELL.

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

↑