Abstract
Zeroth-order (ZO) optimization enables dimension-free communication in federated learning (FL), making it attractive for fine-tuning large language models (LLMs). However, existing ZO-FL methods largely overlook curvature information. We propose HiSo, a Hessian-informed ZO federated optimization method that accelerates convergence by leveraging global diagonal Hessian approximations while strictly preserving scalar-only communication. Theoretically, HiSo achieves an accelerated convergence rate independent of model dimension $d$ under certain assumptions. Empirically, HiSo delivers a 1–5× speedup in communication rounds over state-of-the-art ZO-FL baselines across diverse LLM benchmarks.
Introduction: The Communication Bottleneck in LLM Fine-Tuning
Federated Learning (FL) is a promising paradigm for collaborative model training without centralizing private data. However, the sheer scale of modern Large Language Models (LLMs)—often exceeding billions of parameters—presents a massive communication hurdle. Standard FL algorithms like FedAvg require clients to transmit full model updates, which can amount to terabytes of data per client, making deployment on edge devices or over standard internet connections impractical.
Zeroth-Order (ZO) optimization has emerged as a solution. By estimating gradients using random perturbations and scalar loss differences, ZO methods reduce communication to a "dimension-free" exchange of scalars. While this solves the volume problem, vanilla ZO methods are often slow to converge because they ignore the underlying curvature (Hessian) of the loss landscape.
HiSo: Hessian-Informed Scalar-Only Optimization
The proposed method, HiSo, bridges the gap between the communication efficiency of ZO methods and the convergence speed of second-order optimization.
How HiSo Works
- Scalar-Only Communication: HiSo maintains the core benefit of ZO-FL. Clients only send scalar gradient estimates to the server.
- Local Hessian Reconstruction: The key innovation is that both the server and the clients share the same sequence of random seeds. By storing the history of scalar updates and corresponding seeds, each participant can independently reconstruct a global diagonal Hessian approximation.
- Preconditioned Updates: This learned Hessian is used as a preconditioner. Instead of moving in a purely random direction, the update is scaled by the inverse of the diagonal Hessian, guiding the model more effectively through the loss landscape.
Theoretical Insight: Why ZO Works for LLMs
A common criticism of ZO methods is that their convergence rate typically scales with the model dimension $d$, which is catastrophic for LLMs. HiSo addresses this through the lens of "effective rank."
The authors demonstrate that LLM loss landscapes are often "low-rank," meaning the loss changes significantly in only a few directions. By using a Hessian approximation, HiSo effectively "whitens" the parameter space. Mathematically, this allows the convergence rate to become independent of the massive dimension $d$, explaining why these methods are surprisingly effective for fine-tuning billion-parameter models.
Empirical Performance
HiSo was evaluated on NLP benchmarks (SST-2, QQP, SQuAD) using models like OPT-2.7B and Gemma-270M.
- Communication Efficiency: Compared to first-order methods like FedAvg, HiSo reduces total communication by up to 90 million times for a 1.3B parameter model.
- Convergence Speed: HiSo reaches target accuracy 1.4x to 5.4x faster (in terms of communication rounds) than previous state-of-the-art ZO-FL methods like DeComFL.
- Robustness: Even with imperfect Hessian approximations, the algorithm remains stable, acting as a safely-scaled first-order method in the worst case.
Conclusion
HiSo demonstrates that curvature information can be harvested "for free" in a federated zeroth-order setting. By leveraging shared random seeds and historical scalars, HiSo achieves significant acceleration in LLM fine-tuning without increasing the communication footprint. This work provides both a practical tool for distributed LLM training and a theoretical justification for the success of zeroth-order methods in high-dimensional spaces.
Summary updated