paper-with-me

Papers

Enhancing Zeroth-order Fine-tuning for Language Models with Low-rank Structures

2024-10-10 · Yiming Chen, Yuan Zhang, Liyuan Cao, Kun Yuan, Zaiwen Wen

Parameter-efficient fine-tuning (PEFT) significantly reduces memory costs when adapting large language models (LLMs) for downstream applications. However, traditional first-order (FO) fine-tuning algorithms incur substantial memory overhead due to the need to store activation values for back-propagation during gradient computation, particularly in long-context fine-tuning tasks. Zeroth-order (ZO) algorithms offer a promising alternative by approximating gradients using finite differences of function values, thus eliminating the need for activation storage. Nevertheless, existing ZO methods struggle to capture the low-rank gradient structure common in LLM fine-tuning, leading to suboptimal performance. This paper proposes a low-rank ZO gradient estimator and introduces a novel low-rank ZO algorithm (LOZO) that effectively captures this structure in LLMs. We provide convergence guarantees for LOZO by framing it as a subspace optimization method. Additionally, its low-rank nature enables LOZO to integrate with momentum techniques while incurring negligible extra memory costs. Extensive experiments across various model sizes and downstream tasks demonstrate that LOZO and its momentum-based variant outperform existing ZO methods and closely approach the performance of FO algorithms.

📄 PDF Abstract BibTeX arXiv:2410.07698

Code (1)

optsuite/LOZO 공식 구현 pytorch

Tasks

parameter-efficient fine-tuning

Similar Papers 제목 키워드 기반

Second-Order Fine-Tuning without Pain for LLMs:A Hessian Informed Zeroth-Order Optimizer

2024-02-23 · Yanjun Zhao, Sizhe Dang, Haishan Ye, Guang Dai 외

Fine-tuning large language models (LLMs) with classic first-order optimizers entails prohibitive GPU memory due to the backpropagation process. Recent works have turned to zeroth-order optimizers for fine-tuning, which s…

GPU

ZO2: Scalable Zeroth-Order Fine-Tuning for Extremely Large Language Models with Limited GPU Memory

2025-03-16 · Liangyu Wang, Jie Ren, Hang Xu, Junxiao Wang 외

Fine-tuning large pre-trained LLMs generally demands extensive GPU memory. Traditional first-order optimizers like SGD encounter substantial difficulties due to increased memory requirements from storing activations and …

CPUGPU

Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Models

2024-10-09 · Zeman Li, Xinwei Zhang, Peilin Zhong, Yuan Deng 외

Fine-tuning language models (LMs) with the Adam optimizer often demands excessive memory, limiting accessibility. The "in-place" version of Stochastic Gradient Descent (IP-SGD) and Memory-Efficient Zeroth-order Optimizer…

GPU

Differentially Private Zeroth-Order Methods for Scalable Large Language Model Finetuning

2024-02-12 · Z Liu, J Lou, W Bao, Y Hu 외

Fine-tuning on task-specific datasets is a widely-embraced paradigm of harnessing the powerful capability of pretrained LLMs for various downstream tasks. Due to the popularity of LLMs fine-tuning and its accompanying pr…

Language ModelingLanguage ModellingLarge Language Model

Learning a Zeroth-Order Optimizer for Fine-Tuning LLMs

2025-10-01 · Kairun Zhang, Haoyu Li, Yanjun Zhao, Yifan Sun 외 arxiv

Zeroth-order optimizers have recently emerged as an attractive approach for fine-tuning large language models (LLMs), as they avoid backpropagation and can substantially reduce memory overhead relative to standard first-…