arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07170cs.LGcs.AIcs.CLstat.ML
收藏

通过解释方差适配实现参数高效微调

Parameter Efficient Fine-tuning via Explained Variance Adaptation

ELLIS Unit, LIT AI Lab, Institute for Machine Learning, JKU Linz(ELLIS单位、LIT人工智能实验室、机器学习研究所、JKU林茨);University College London(伦敦大学学院);EMMI AI, Linz(EMMI AI、林茨);NXAI GmbH, Linz, Austria(NXAI GmbH、林茨、奥地利)

Fabian Paischer, Lukas Hauzenberger, Thomas Schmied, Benedikt Alkin, Marc Peter Deisenroth, Sepp Hochreiter

AI总结:

本文提出 EVA 初始化方法,以激活方差最大方向构造 LoRA 子空间并支持自适应秩,在多类任务上实现更快收敛、更高平均得分及更少可训练参数。

摘要:

基础模型(FMs)在大规模数据集上进行预训练,然后针对特定下游任务进行微调。最常见的微调方法是通过低秩适配(LoRA)更新预训练权重。现有的 LoRA 初始化策略通常依赖梯度或权重矩阵的奇异值分解(SVD)。然而,它们无法可证明地最大化期望梯度信号,而该信号对快速适配至关重要。为此,我们提出解释方差适配(EVA),这是一种初始化方案,使用捕获最多激活方差的方向,可证明地最大化期望梯度信号并加速微调。EVA 对激活向量的小批量执行增量 SVD,并在右奇异向量收敛后选择它们进行初始化。此外,通过在给定秩预算下选择捕获最多激活方差的方向,EVA 支持自适应秩,从而减少可训练参数数量。我们将 EVA 应用于多种微调任务,包括语言生成与理解、图像分类以及强化学习。EVA 相比竞争方法展现出更快的收敛速度,并在每个领域的大量任务中取得最高平均得分,同时通过秩重分配减少可训练参数数量。总之,与现有 LoRA 初始化方案相比,EVA 在准确率和效率两方面建立了新的 Pareto 前沿。

英文摘要:

Foundation models (FMs) are pre-trained on large-scale datasets and then fine-tuned for a specific downstream task. The most common fine-tuning method is to update pretrained weights via low-rank adaptation (LoRA). Existing initialization strategies for LoRA often rely on singular value decompositions (SVD) of gradients or weight matrices. However, they do not provably maximize the expected gradient signal, which is critical for fast adaptation. To this end, we introduce Explained Variance Adaptation (EVA), an initialization scheme that uses the directions capturing the most activation variance, provably maximizing the expected gradient signal and accelerating fine-tuning. EVA performs incremental SVD on minibatches of activation vectors and selects the right-singular vectors for initialization once they converged. Further, by selecting the directions that capture the most activation-variance for a given rank budget, EVA accommodates adaptive ranks that reduce the number of trainable parameters. We apply EVA to a variety of fine-tuning tasks as language generation and understanding, image classification, and reinforcement learning. EVA exhibits faster convergence than competitors and achieves the highest average score across a multitude of tasks per domain while reducing the number of trainable parameters through rank redistribution. In summary, EVA establishes a new Pareto frontier compared to existing LoRA initialization schemes in both accuracy and efficiency.

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

↑