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

优化语言模型的显著性感知稀疏微调策略

Refining Salience-Aware Sparse Fine-Tuning Strategies for Language Models

Southern University of Science and Technology(南方科技大学);Shenzhen Institutes of Advanced Technology, CAS(深圳先进技术研究院);University of Birmingham(伯明翰大学);Imperial College London(伦敦帝国理工学院);University of Edinburgh(爱丁堡大学);Shenzhen University of Advanced Technology(深圳大学)

Xinxin Liu, Aaron Thomas, Cheng Zhang, Jianyi Cheng, Yiren Zhao, Xitong Gao

AI总结:

本文提出基于稀疏性的参数高效微调方法SPEFT,通过系统评估发现简单的静态梯度掩码策略在LLM上优于其他方法,证明了简单性同样能实现高效微调。

摘要:

参数高效微调(PEFT)通过LoRA等低秩适应方法获得了广泛关注。本文聚焦于基于稀疏性的PEFT(SPEFT),该方法向模型权重矩阵引入可训练的稀疏适应,与低秩方法相比,在选择微调参数时提供了更大的灵活性。受零成本NAS代理启发,我们首次对SPEFT的显著性指标进行了系统评估,发现简单的基于梯度的指标是可靠的,其结果与最佳替代方案相当,兼具计算效率与稳健性能。此外,我们比较了静态与动态掩码策略,发现训练前预先确定非零项的静态掩码在不牺牲性能的情况下提供了效率,而动态掩码没有实质性收益。在NLP任务中,简单的基于梯度的静态SPEFT在LLM上始终优于其他微调方法,为SPEFT提供了简单而有效的基线。我们的工作挑战了复杂性是实现有效PEFT所必需的这一观念,同时开源框架为未来研究建立了可复现的基准,代码见[https://github.com/0-ml/speft]。

英文摘要:

Parameter-Efficient Fine-Tuning (PEFT) has gained prominence through low-rank adaptation methods like LoRA. In this paper, we focus on sparsity-based PEFT (SPEFT), which introduces trainable sparse adaptations to the weight matrices in the model, offering greater flexibility in selecting fine-tuned parameters compared to low-rank methods. We conduct the first systematic evaluation of salience metrics for SPEFT, inspired by zero-cost NAS proxies, and identify simple gradient-based metrics is reliable, and results are on par with the best alternatives, offering both computational efficiency and robust performance. Additionally, we compare static and dynamic masking strategies, finding that static masking, which predetermines non-zero entries before training, delivers efficiency without sacrificing performance, while dynamic masking offers no substantial benefits. Across NLP tasks, a simple gradient-based, static SPEFT consistently outperforms other fine-tuning methods for LLMs, providing a simple yet effective baseline for SPEFT. Our work challenges the notion that complexity is necessary for effective PEFT, while our open-source framework establishes a reproducible benchmark for future research, which is available at [https://github.com/0-ml/speft].

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

↑