arXiv:2411.16775cs.CLcs.AI2024-11被引 3

对比多种高效微调方法,发现LoRA和Adapter在理想条件下最接近全量微调效果。

Parameter Efficient Instruction Tuning: An Empirical Study

  • 对比LoRA、Adapter等主流参数高效微调方法的性能差异
  • 理想训练条件下,仅LoRA与Adapter可接近全量微调表现
  • 适配器更稳定,但需更多任务支持泛化,且推理能力较弱

指令微调已成为提升预训练语言模型遵循人类指令并泛化到各类任务的关键步骤。随着模型规模增大,全参数微调成本过高,参数高效微调(PEFT)因其显著降低的计算、内存和存储开销而成为主流。然而,庞大的超参数空间、多样化的PEFT方法及不同指令微调目标使得各因素影响难以拆解。本研究系统评估了若干代表性PEFT方法,考察了训练超参数与特定超参数、模型规模、指令任务数量对性能、任务内分布记忆及开放指令遵循能力的影响。实验表明,在理想设置下,仅LoRA与Adapter能接近全量微调效果;理想条件包括合适的学习率、最大允许的LoRA秩或适配器大小以及多样化训练任务。若未满足理想条件,二者均易出现训练不稳定。此外,LoRA需更多任务才能实现有效未见任务泛化,学习速度较慢,任务级记忆能力较弱。在复杂推理、编程和长文本生成方面,二者均弱于开放指令微调,但LoRA优于Adapter。

原文摘要 · Abstract (English)

Instruction tuning has become an important step for finetuning pretrained language models to better follow human instructions and generalize on various tasks. Nowadays, pretrained language models become increasingly larger, and full parameter finetuning is overwhelmingly costly. Therefore, Parameter Efficient Finetuning (PEFT) has arisen as a cost-effective practice for instruction tuning because of significantly smaller computational, memory, and storage cost compared to full finetuning. Despite their widespread adaptations, the vast hyperparameter spaces, the number of PEFT methods, the different focus of instruction tuning capabilities make disentangling the impact of each aspect difficult. This study systematically investigates several representative PEFT methods, surveying the effect of hyperparameter choices including training hyperparameters and PEFT-specific hyperparameters, how different models sizes and the number of instruction tasks affect the performance, in-task-distribution memorization and open instruction following capability. Our empirical study shows that only LoRA and adapter can get close to full finetuning with ideal training settings. The ideal training setting includes an appropriate learning rate, largest LoRA rank or adapter size allowed and diverse training tasks. On the other hand, LoRA and adapter suffer from training instability if such an ideal training condition is not met. Additionally, LoRA requires a greater number of tasks for effective unseen task generalization, exhibit slower learning speed. Moreover, LoRA has weaker task-level memorization. Lastly, LoRA and adapter fall short in complex reasoning, coding and long-form generation compared to finetuning in open instruction tuning settings but it shows stronger capabilities compared to adapter.

指令微调高效微调LoRA适配器

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。