Chain of LoRA: Efficient Fine-tuning of Language Models via Residual Learning
About
Fine-tuning is the primary methodology for tailoring pre-trained large language models to specific tasks. As the model's scale and the diversity of tasks expand, parameter-efficient fine-tuning methods are of paramount importance. One of the most widely used family of methods is low-rank adaptation (LoRA) and its variants. LoRA encodes weight update as the product of two low-rank matrices. Despite its advantages, LoRA falls short of full-parameter fine-tuning in terms of generalization error for certain tasks. We introduce Chain of LoRA (COLA), an iterative optimization framework inspired by the Frank-Wolfe algorithm, to bridge the gap between LoRA and full parameter fine-tuning, without incurring additional computational costs or memory overheads. COLA employs a residual learning procedure where it merges learned LoRA modules into the pre-trained language model parameters and re-initilize optimization for new born LoRA modules. We provide theoretical convergence guarantees as well as empirical results to validate the effectiveness of our algorithm. Across various models (OPT and llama-2) and seven benchmarking tasks, we demonstrate that COLA can consistently outperform LoRA without additional computational or memory costs.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | Office-Home (test) | Mean Accuracy89.01 | 402 | |
| Image Classification | OfficeHome | -- | 161 | |
| Paraphrase Detection | MRPC | Empirical Error G(W)0.29 | 90 | |
| Relational Reasoning | CLUTRR | Empirical Generalization Error G(W)0.69 | 60 | |
| Linguistic Acceptability | CoLA (test) | Avg Accuracy68.4 | 56 | |
| Paraphrase Identification | PAWS | G(W) Error Approximation0.37 | 40 | |
| Image Classification | OfficeHome | Generalization Error (G(W))0.13 | 40 | |
| Linguistic Acceptability | COLA | Generalization Error Approximation (G(W))0.52 | 40 | |
| Question Classification | TREC50 | Generalization Error G(W)3.99 | 30 | |
| Semantic Similarity | MRPC (test) | Test Accuracy90.8 | 24 |