SparseGrad:一种针对MLP层高效微调的选择性方法
SparseGrad: A Selective Method for Efficient Fine-tuning of MLP Layers
AI总结:
针对参数高效微调方法常忽略MLP块的问题,提出SparseGrad方法,通过将梯度转换为稀疏结构减少参数更新,在相同内存下优于LoRA和MeProp等主流方法。
摘要:
Transformer模型的性能通过增加参数数量和处理文本长度得到提升。因此,对整个模型进行微调成为一个内存密集的过程。高性能的参数高效微调(PEFT)方法通常作用于Attention块,且经常忽略包含约一半模型参数的MLP块。我们提出了一种新的选择性PEFT方法,即SparseGrad,它在MLP块上表现良好。我们将层梯度转移到一个仅约1%的层元素保持显著的空间中。通过将梯度转换为稀疏结构,我们减少了更新的参数数量。我们应用SparseGrad微调BERT和RoBERTa以执行NLU任务,并微调LLaMa-2以执行问答任务。在这些实验中,在相同内存需求下,我们的方法优于LoRA和MeProp,这两种是鲁棒的、流行的、最先进的PEFT方法。
英文摘要:
The performance of Transformer models has been enhanced by increasing the number of parameters and the length of the processed text. Consequently, fine-tuning the entire model becomes a memory-intensive process. High-performance methods for parameter-efficient fine-tuning (PEFT) typically work with Attention blocks and often overlook MLP blocks, which contain about half of the model parameters. We propose a new selective PEFT method, namely SparseGrad, that performs well on MLP blocks. We transfer layer gradients to a space where only about 1\% of the layer's elements remain significant. By converting gradients into a sparse structure, we reduce the number of updated parameters. We apply SparseGrad to fine-tune BERT and RoBERTa for the NLU task and LLaMa-2 for the Question-Answering task. In these experiments, with identical memory requirements, our method outperforms LoRA and MeProp, robust popular state-of-the-art PEFT approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。