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

FineGates:使用随机门进行压缩的LLM微调

FineGates: LLMs Finetuning with Compression using Stochastic Gates

Faculty of Engineering, Bar Ilan University(巴伊兰大学工程学院);Tel Aviv University(特拉维夫大学)

Jonathan Svirsky, Yehonathan Refael, Ofir Lindenbaum

AI总结:

本文提出FineGates,一种基于随机门的适配器方法,在微调LLM时稀疏化冻结基础模型,以少量可训练参数实现加速推理,并保持竞争性准确性,可移除20-40%参数而无显著损失。

摘要:

大型语言模型(LLMs)拥有数十亿参数,由于高计算需求、内存要求以及许多实际应用中的不可行性,对其进行全面微调面临重大挑战。当面临有限的计算资源或小型数据集时,更新所有模型参数往往会导致过拟合。为解决这一问题,已提出轻量级微调技术,如学习低秩适配器层。这些方法旨在仅训练少量附加参数,并与保持冻结的基础模型相结合,从而减少资源使用并缓解过拟合风险。在本工作中,我们提出一种基于随机门的适配器模型,该模型在任务特定适配的同时稀疏化冻结的基础模型。我们的方法具有少量可训练参数,并允许我们在保持竞争性准确性的同时加速基础模型推理。我们通过为其配备额外的低秩参数,并将其与多个近期基线进行比较,在额外变体中对其进行了评估。我们的结果表明,所提出的方法相对于多个基线提高了微调模型的准确性,并允许在不显著损失准确性的情况下移除高达20-40%的参数。

英文摘要:

Large Language Models (LLMs), with billions of parameters, present significant challenges for full finetuning due to the high computational demands, memory requirements, and impracticality of many real-world applications. When faced with limited computational resources or small datasets, updating all model parameters can often result in overfitting. To address this, lightweight finetuning techniques have been proposed, like learning low-rank adapter layers. These methods aim to train only a few additional parameters combined with the base model, which remains frozen, reducing resource usage and mitigating overfitting risks. In this work, we propose an adaptor model based on stochastic gates that simultaneously sparsify the frozen base model with task-specific adaptation. Our method comes with a small number of trainable parameters and allows us to speed up the base model inference with competitive accuracy. We evaluate it in additional variants by equipping it with additional low-rank parameters and comparing it to several recent baselines. Our results show that the proposed method improves the finetuned model accuracy comparatively to the several baselines and allows the removal of up to 20-40\% without significant accuracy loss.

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

↑