[Paper Review] CurvZO: Adaptive Curvature-Guided Sparse Zeroth-Order Optimization for Efficient LLM Fine-Tuning
CurvZO introduces online curvature-guided sparse zeroth-order optimization to adaptively select perturbations during ZO fine-tuning of LLMs, improving accuracy and reducing training time while maintaining memory efficiency.
Fine-tuning large language models (LLMs) with backpropagation achieves high performance but incurs substantial memory overhead, limiting scalability on resource-constrained hardware. Zeroth-order (ZO) optimization provides a memory-efficient alternative by relying solely on forward passes, yet it typically suffers from slow or unstable convergence due to high-variance gradient estimates. Sparse ZO updates partially address this issue by perturbing only a subset of parameters, but their effectiveness hinges on selecting informative parameters, which is challenging in ZO optimization because each query yields only scalar feedback. We propose extbf{Adaptive Curvature-Guided Sparse Zeroth-Order Optimization (CurvZO)}, which tracks curvature signals online from scalar ZO feedback and leverages these signals to construct a parameter-wise sampling distribution for selecting coordinates at each update, reducing the variance of the sparse ZO gradient estimator. Moreover, CurvZO dynamically adapts the perturbation budget to the evolving curvature signal distribution, yielding sparse ZO updates that remain both focused and sufficiently exploratory. Extensive experiments on OPT and Llama across diverse NLP tasks show that CurvZO consistently improves fine-tuning performance and reduces training time over ZO baselines. It improves accuracy by up to 4.4 points and achieves up to a $2 imes$ speedup, while preserving memory efficiency.
Motivation & Objective
- Address memory constraints in fine-tuning very large language models by avoiding backpropagation.
- Develop a curvature-aware sparse perturbation strategy to reduce gradient estimator variance in ZO optimization.
- Propose online curvature signal tracking and adaptive perturbation budgeting to guide parameter selection.
- Evaluate CurvZO on OPT and Llama models across diverse NLP tasks to demonstrate performance gains and efficiency.
Proposed method
- Define a sparse ZO setting with a per-parameter Bernoulli mask and sparse perturbation direction.
- Track online curvature signals from scalar ZO feedback using a curvature score s_i = Delta^2 v_i^2 and normalize/smooth it to form S^t.
- Use Horvitz–Thompson reweighting to obtain an unbiased gradient estimator with v scaled by 1/pi_i to correct Bernoulli masking bias.
- Derive a variance-minimizing sampling rule pi_i^t ∝ sqrt(S_i^t) (plugged as pi_i^t ∝ sqrt of curvature scores).
- Adapt the perturbation budget B per iteration using effective support size and entropy of the curvature score distribution (d_eff/d and H).
- Provide a convergence analysis showing O(1/T) rate up to a variance floor and smoothing bias, under standard smoothness assumptions.
- Extend to block-wise curvature tracking to reduce overhead by grouping parameters into G blocks and applying the same sampling principle at the block level.

Experimental results
Research questions
- RQ1Can curvature information, estimated online from scalar ZO feedback, guide a sparse perturbation scheme to improve ZO fine-tuning of LLMs?
- RQ2How can we adapt the perturbation budget dynamically to balance exploration and exploitation during training?
- RQ3Do curvature-guided sparse ZO methods outperform existing ZO baselines (MeZO, DiZO) and remain memory-efficient across model scales?
- RQ4Is the proposed CurvZO approach effective across different model families (OPT, Llama) and task types?
Key findings
- CurvZO consistently improves fine-tuning performance over ZO baselines on OPT and Llama models across diverse NLP tasks.
- It yields accuracy gains up to 4.4 percentage points and can halve training GPU hours in some settings, while preserving memory efficiency.
- CurvZO demonstrates faster convergence, reaching target accuracy in fewer optimization steps than MeZO in reported benchmarks.
- Block-wise curvature tracking maintains effectiveness while reducing computational overhead.
- CurvZO achieves competitive results with first-order training baselines in several tasks and settings, especially when combined with LoRA.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.