Skip to main content
QUICK REVIEW

[论文解读] AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning

Qingru Zhang, Minshuo Chen|arXiv (Cornell University)|Mar 18, 2023
Topic ModelingComputer Science被引用 32
一句话总结

AdaLoRA 在 LoRA 风格的微调中自适应地在参数预算与权重矩阵之间进行分配,通过使用 SVD-like 形式参数化更新以及基于重要性的秩调度器,从而在预算非常低时尤为带来收益。

ABSTRACT

Fine-tuning large pre-trained language models on downstream tasks has become an important paradigm in NLP. However, common practice fine-tunes all of the parameters in a pre-trained model, which becomes prohibitive when a large number of downstream tasks are present. Therefore, many fine-tuning methods are proposed to learn incremental updates of pre-trained weights in a parameter efficient way, e.g., low-rank increments. These methods often evenly distribute the budget of incremental updates across all pre-trained weight matrices, and overlook the varying importance of different weight parameters. As a consequence, the fine-tuning performance is suboptimal. To bridge this gap, we propose AdaLoRA, which adaptively allocates the parameter budget among weight matrices according to their importance score. In particular, AdaLoRA parameterizes the incremental updates in the form of singular value decomposition. Such a novel approach allows us to effectively prune the singular values of unimportant updates, which is essentially to reduce their parameter budget but circumvent intensive exact SVD computations. We conduct extensive experiments with several pre-trained models on natural language processing, question answering, and natural language generation to validate the effectiveness of AdaLoRA. Results demonstrate that AdaLoRA manifests notable improvement over baselines, especially in the low budget settings. Our code is publicly available at https://github.com/QingruZhang/AdaLoRA .

研究动机与目标

  • 动机是在多任务微调大规模预训练语言模型时减少内存和计算量。
  • 提出一种预算自适应的微调方法,为重要模块分配更多参数。
  • 开发基于 SVD 的增量更新公式,以避免代价高昂的精确 SVD 计算。
  • 引入一种基于重要性的排序机制,在剪枝奇异值的同时保留潜在的可恢复性。

提出的方法

  • 将权重更新参数化为 W = W(0) + P Λ Q,其中 Λ 包含奇异值,P、Q 为左/右奇异向量。
  • 对 P 和 Q 进行正则化以鼓励正交性并稳定训练。
  • 定义一个基于奇异值以及 P 和 Q 的列/行的平均量级的重要性分数 S,以引导 Λ 的剪枝。
  • 应用全局预算调度器,在训练过程中以更高的预算起始并逐步降低到目标预算。
  • 在选定的节奏下使用计算出的重要性分数迭代地剪枝 Λ,同时保持对被剪枝分量的可恢复能力。

实验结果

研究问题

  • RQ1自适应、基于重要性的秩分配是否能超越均匀低秩更新,在参数高效微调性能上带来提升?
  • RQ2相较直接的 SVD 或在类似 LoRA 的设置中进行结构化剪枝,基于 SVD 的参数化是否能实现更便宜或更稳定的剪枝?
  • RQ3在不同预算水平下,AdaLoRA 在 NLP 任务(NLU、QA、NLG)上的表现如何,与基线相比?

主要发现

  • AdaLoRA 在 GLUE、SQuAD 和 NLG 基准上优于基线,尤其在低预算下。
  • 在可训练参数不到 0.1% 的情况下,AdaLoRA 在 SQuAD2.0 上比最先进方法提高了 1.2% 的 F1。
  • 在预算减小时,AdaLoRA 维持或提升性能,显示出对紧参数预算的鲁棒性。
  • 通过 AdaLoRA 剪枝奇异值,通过不把奇异向量置零来保留潜在的可恢复性,帮助稳定性。
  • 全球预算调度器通过逐步收紧参数预算,帮助稳定训练并提升性能。

阅读本论文

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

在 Nubint 中阅读本论文

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