Low-Rank Curvature for Zeroth-Order Optimization in LLM Fine-Tuning
Hyunseok Seung, Jaewoo Lee, Hyunsuk Ko
TL;DR
This work tackles the memory bottleneck of fine-tuning large language models by developing LOREN, a curvature-aware zeroth-order optimizer. It unifies adaptive perturbation sampling via natural evolution strategies, a low-rank Kronecker-factored covariance to capture heterogeneous loss-landscape curvature, and variance reduction through REINFORCE leave-one-out. The method yields higher accuracy and faster convergence than state-of-the-art ZO baselines across masked and autoregressive LLMs, while keeping memory usage modest. These results demonstrate that curvature-aware ZO optimization can enable scalable, memory-efficient fine-tuning of very large models. The approach has practical implications for deploying memory-efficient training on expensive LLMs and sets a new benchmark for ZO methods in NLP applications.
Abstract
We introduce LOREN, a curvature-aware zeroth-order (ZO) optimization method for fine-tuning large language models (LLMs). Existing ZO methods, which estimate gradients via finite differences using random perturbations, often suffer from high variance and suboptimal search directions. Our approach addresses these challenges by: (i) reformulating the problem of gradient preconditioning as that of adaptively estimating an anisotropic perturbation distribution for gradient estimation, (ii) capturing curvature through a low-rank block diagonal preconditioner using the framework of natural evolution strategies, and (iii) applying a REINFORCE leave-one-out (RLOO) gradient estimator to reduce variance. Experiments on standard LLM benchmarks show that our method outperforms state-of-the-art ZO methods by achieving higher accuracy and faster convergence, while cutting peak memory usage by up to 27.3% compared with MeZO-Adam.
