Skip to main content
QUICK REVIEW

[论文解读] Chain of LoRA: Efficient Fine-tuning of Language Models via Residual Learning

Wenhan Xia, Chengwei Qin|ArXiv.org|Jan 8, 2024
Machine Learning and ELMComputer Science被引用 5
一句话总结

COLA 迭代地学习 一系列 低秩 LoRA 模块,逐步 将 它们 合并 到 主干 网络,并 为 新 模块 重新初始化,在 推理阶段 无需 额外 计算 的 情况 下 实现 比 LoRA 更好的 泛化。

ABSTRACT

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.

研究动机与目标

  • 在模型规模增长和任务多样性扩展时,提出参数高效微调的动机。
  • 在不增加额外成本的前提下,缩小 LoRA 与全参数微调之间的泛化差距。
  • 开发一个迭代式残差学习框架,将学习到的模块合并到主干以改善适应能力。

提出的方法

  • 形成一串 LoRA 模块,将任务特定的权重更新近似为低秩项的和。
  • 在每一步:训练一个新的 LoRA (A_i, B_i),同时保持先前的主干权重不变。
  • 通过将当前 LoRA (B_i A_i) 合并到冻结的主干权重来完成扣合,然后通过为残差重新初始化一个新的 LoRA 来处理残差以扩展链条。

实验结果

研究问题

  • RQ1一系列残差 LoRA 更新是否能在保持相同计算量的前提下,缩小与 LoRA 的泛化差距?
  • RQ2迭代式的合并与扩展(COLA)是否在不同模型架构和数据集上带来更好的任务适应性?
  • RQ3在非凸、随机优化设置下,COLA 展现出哪些收敛性质?

主要发现

  • 在相同训练预算下,COLA 在 OPT-1.3B 的七个任务上持续超越 LoRA。
  • 在 OPT-1.3B 上,COLA 在 WSC 上相对提升了 6.47% 的测试准确率,超过 LoRA。
  • 在 OPT-1.3B 上,COLA 相对于 LoRA 的相对提升分别为 BoolQ 1.95% 和 RTE 2.29%。
  • 在 Llama2-7B 上,COLA 将 RTE 从 82.09 提升到 85.70,相对增益为 4.40%。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。