TL;DR
This paper introduces GIVA, a novel parameter-efficient fine-tuning method that significantly reduces the rank requirements of vector-based adaptation techniques. By initializing adaptation bases using the first-step full fine-tuning gradient, GIVA achieves performance comparable to LoRA while maintaining extreme parameter efficiency and drastically cutting down training time.
What Problem Does This Paper Address?
The ever-increasing size of large language models (LLMs) makes full fine-tuning computationally prohibitive and storage-intensive. Parameter-efficient fine-tuning (PEFT) methods offer a solution, with LoRA being a popular choice. More recently, vector-based adaptation methods have emerged, offering even greater parameter efficiency. However, these methods typically require much higher "ranks" (a hyperparameter controlling the dimensionality of the adaptation) to match LoRA's performance, leading to increased training costs and longer training times. This paper aims to bridge this gap by developing a vector-based adaptation method that achieves LoRA-level performance with significantly reduced ranks and comparable training times.
Methods
The core innovation of GIVA lies in its gradient-informed initialization strategy for the adaptation bases. Traditional vector-based methods like VeRA use random bases, while OSORA uses bases derived from pre-trained weights. GIVA, on the other hand, constructs its bases by leveraging the first-step full fine-tuning gradient of the model on the downstream task.
Specifically, for a pre-trained weight matrix $W_{pt}$, the weight update $\Delta W$ in vector-based adaptation is typically parameterized as $\Delta W = \Gamma B A$, where $B$ and $A$ are low-rank matrices (bases) and $\Gamma$ is a diagonal matrix of trainable scaling factors. GIVA's approach is to choose the bases $A$ and $B$ such that the initial update $\Delta W$ closely approximates the first-step update from full fine-tuning. This is achieved by solving an optimization problem that minimizes the difference between the gradient-informed update and the target full fine-tuning update. The paper derives that the optimal bases $A$ and $B$ can be obtained from the singular value decomposition (SVD) of the first-step full fine-tuning gradient.
The paper also explores three strategies for initializing the $B$ matrix:
- TOPSV-B: Using left singular vectors of the gradient.
- SECSV-B: Using a different set of left singular vectors of the gradient.
- RAND-B: Using a random matrix.
Datasets
GIVA was evaluated across a diverse range of tasks and datasets:
- Natural Language Understanding (NLU): General Language Understanding Evaluation (GLUE) benchmark, using RoBERTa-base and RoBERTa-large models.
- Natural Language Generation (NLG):
- Commonsense Reasoning: Qwen 2 (0.5B), Phi 3 (3.8B), and OLMO 2 (7B) models fine-tuned on a subset of 15K commonsense reasoning examples. Evaluation datasets included BoolQ, PIQA, Social IQa, HellaSwag, WinoGrande, ARC, and OpenBookQA.
- Mathematical Reasoning: OLMO 2 (7B) fine-tuned on MetaMathQA.
- Code Generation: OLMO 2 (7B) fine-tuned on Code-Feedback.
- Instruction Tuning: Mistral (7B) fine-tuned on the Alpaca dataset.
- Image Classification: Vision backbones DinoV2 ViT-B/14 and CLIP ViT-L/14 adapted on CIFAR100, Food101, Flowers102, and RESISC45 datasets.
Key Insights and Ideas
- Gradient-Informed Bases are Key: The central insight is that initializing the bases of vector-based adaptation methods with information from the initial full fine-tuning gradient significantly improves their efficiency. This suggests that the "direction" of adaptation is crucial and can be captured early on.
- Reduced Rank Requirements: By using gradient-informed bases, GIVA can achieve comparable performance to existing methods with substantially lower ranks (e.g., an 8x reduction in rank requirements compared to prior vector-based methods). This is a major breakthrough for parameter efficiency.
- Training Time Parity with LoRA: The reduced rank requirements directly translate to training times that are competitive with LoRA, overcoming a significant drawback of previous vector-based approaches.
- Initialization Strategy Robustness: The paper demonstrates that GIVA's performance is relatively insensitive to the specific initialization strategy for the $B$ matrix (TOPSV-B, SECSV-B, RAND-B), indicating the robustness of the gradient-informed base selection.
Key Results
- Performance: GIVA consistently achieved performance comparable to or outperforming LoRA and other vector-based adaptation methods (VeRA, OSORA, RandLoRA) across NLU, NLG, and image classification tasks.
- Rank Reduction: GIVA achieved this performance with significantly lower ranks. For instance, on GLUE, GIVA used a rank of 8 while VeRA used 1024 to achieve similar results.
- Training Time: GIVA's training times were comparable to LoRA, and it was significantly faster than other vector-based methods, especially as model sizes increased. For example, fine-tuning Qwen 2 (0.5B) on commonsense reasoning, GIVA took 1h 49m, while VeRA took 1h 55m, and OSORA took 23m (though OSORA's efficiency is attributed to its specific setup).
- Parameter Efficiency: GIVA maintained the extreme parameter efficiency characteristic of vector-based methods, requiring a very small number of trainable parameters.
Limitations and Future Work
- Fixed Bases: GIVA relies on fixed bases computed from a single batch of examples. The authors acknowledge that this might not fully capture the diversity of datasets composed of mixtures of supervised fine-tuning sources. They suggest that more sophisticated initialization strategies, such as incorporating gradients from multiple tasks or combining random and gradient-based bases, could be beneficial.
- Dataset Diversity: While evaluated on diverse tasks, future work could explore GIVA's performance on even more varied and complex datasets.
- Example Selection: The authors suggest that strategies for selecting the most representative examples for gradient estimation could further improve performance.
- Incorporating More Batches: While their experiments showed that using more batches for gradient estimation didn't significantly improve performance, this could be an avenue for further exploration.
Summary updated