TensorX
返回文献探索

Paper · arXiv 2410.07170

One Initialization to Rule them All: Fine-tuning via Explained Variance Adaptation

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

16 upvotesOctober 9, 2024arXiv 预印本
AI 摘要

Explained Variance Adaptation (EVA) enhances LoRA by data-driven initialization and rank redistribution to achieve faster convergence and superior performance across various fine-tuning tasks.

Foundation modelsfine-tuninglow-rank adaptation (LoRA)weight-driven initializationadaptive rankssingular value decompositionactivation vectorsright-singular vectorsExplained Variance Adaptation (EVA)language generationunderstandingimage classificationreinforcement learning

Abstract

Foundation models (FMs) are pre-trained on large-scale datasets and then fine-tuned on a downstream task for a specific application. The most successful and most commonly used fine-tuning method is to update the pre-trained weights via a low-rank adaptation (LoRA). LoRA introduces new weight matrices that are usually initialized at random with a uniform rank distribution across model weights. Recent works focus on weight-driven initialization or learning of adaptive ranks during training. Both approaches have only been investigated in isolation, resulting in slow convergence or a uniform rank distribution, in turn leading to sub-optimal performance. We propose to enhance LoRA by initializing the new weights in a data-driven manner by computing singular value decomposition on minibatches of activation vectors. Then, we initialize the LoRA matrices with the obtained right-singular vectors and re-distribute ranks among all weight matrices to explain the maximal amount of variance and continue the standard LoRA fine-tuning procedure. This results in our new method Explained Variance Adaptation (EVA). We apply EVA to a variety of fine-tuning tasks ranging from language generation and understanding to image classification and reinforcement learning. EVA exhibits faster convergence than competitors and attains the highest average score across a multitude of tasks per domain.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
One Initialization to Rule them All: Fine-tuning via Explained Variance Adaptation | TensorX