AdaZeta:用于内存高效大语言模型微调的自适应零阶张量列适配
AdaZeta: Adaptive Zeroth-Order Tensor-Train Adaption for Memory-Efficient Large Language Models Fine-Tuning
AI总结:
针对 MeZO 等零阶 LLM 微调性能下降且易发散的问题,本文提出 AdaZeta,结合低参数张量化适配器与保证收敛的自适应查询次数调度,提升准确率、内存效率和收敛速度。
摘要:
微调大语言模型(LLM)已在各类自然语言处理任务上取得显著性能,但随着模型规模持续增长,其所需内存也越来越多。为解决这一问题,近期提出的内存高效零阶(Memory-efficient Zeroth-order,MeZO)方法尝试仅使用前向传播来微调 LLM,从而避免对反向传播图的需求。然而,显著的性能下降和较高的发散风险限制了其广泛采用。本文提出自适应零阶张量列适配(Adaptive Zeroth-order Tensor-Train Adaption,AdaZeta)框架,专门用于提升 ZO 方法的性能与收敛性。为提高依赖维度的 ZO 估计精度,我们引入一种快速前向、低参数的张量化适配器。为应对大规模 ZO 微调任务中频繁观察到的发散问题,我们提出一种可保证收敛的自适应查询次数调度。在 Roberta-Large 和 Llama-2-7B 模型上的详细理论分析与大量实验结果,从准确率、内存效率和收敛速度方面证实了 AdaZeta 框架的有效性。
英文摘要:
Fine-tuning large language models (LLMs) has achieved remarkable performance across various natural language processing tasks, yet it demands more and more memory as model sizes keep growing. To address this issue, the recently proposed Memory-efficient Zeroth-order (MeZO) methods attempt to fine-tune LLMs using only forward passes, thereby avoiding the need for a backpropagation graph. However, significant performance drops and a high risk of divergence have limited their widespread adoption. In this paper, we propose the Adaptive Zeroth-order Tensor-Train Adaption (AdaZeta) framework, specifically designed to improve the performance and convergence of the ZO methods. To enhance dimension-dependent ZO estimation accuracy, we introduce a fast-forward, low-parameter tensorized adapter. To tackle the frequently observed divergence issue in large-scale ZO fine-tuning tasks, we propose an adaptive query number schedule that guarantees convergence. Detailed theoretical analysis and extensive experimental results on Roberta-Large and Llama-2-7B models substantiate the efficacy of our AdaZeta framework in terms of accuracy, memory efficiency, and convergence speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。