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

Yanjun Zhao, Sizhe Dang, Haishan Ye, Guang Dai, Yi Qian +1 more
2/12/2026

No official code found. Best implementation: Yanjun-Zhao/HiZOO (27 stars, last commit 2025-02-11).

Abstract

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 save substantial memory by using two forward passes. However, these optimizers are plagued by the heterogeneity of parameter curvatures across different dimensions. In this work, we propose HiZOO, a diagonal Hessian informed zeroth-order optimizer which is the first work to leverage the diagonal Hessian to enhance zeroth-order optimizer for fine-tuning LLMs. What's more, HiZOO avoids the expensive memory cost and only increases one forward pass per step. Extensive experiments on various models (350M~66B parameters) indicate that HiZOO improves model convergence, significantly reducing training steps and effectively enhancing model accuracy. Moreover, we visualize the optimization trajectories of HiZOO on test functions, illustrating its effectiveness in handling heterogeneous curvatures. Lastly, we provide theoretical proofs of convergence for HiZOO. Code is publicly available at https://anonymous.4open.science/r/HiZOO27F8.

View on arXivView PDF

Code Implementations(1)

Yanjun-Zhao/HiZOOCommunity52%

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

275Shell, PythonJan 30, 20241 years ago

Similar Papers

Cite this paper

@article{zhao2026secondorder,
  title  = {Second-Order Fine-Tuning without Pain for LLMs: A Hessian Informed Zeroth-Order Optimizer},
  author = {Yanjun Zhao and Sizhe Dang and Haishan Ye and Guang Dai and Yi Qian and I. Tsang},
  year   = {2026},
  eprint = {2402.15173},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.15173},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.15173.svg)](https://codeofpaper.com/paper/2402.15173)

Discussion