NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Randomized Zeroth-Order Hierarchical Framework for Heterogeneous Federated Learning

Yuyang Qiu, Kibaek Kim, Farzad Yousefian · DOI

Introduction

Federated Learning (FL) has emerged as a vital paradigm for training machine learning models across decentralized devices while maintaining data privacy. However, the practical deployment of FL is frequently hindered by "triple heterogeneity": data heterogeneity (non-identical distributions), system heterogeneity (varying hardware capabilities), and model heterogeneity (the need for personalized local models).

Traditional FL approaches often rely on the "bounded gradient dissimilarity" assumption, which posits that local gradients do not deviate significantly from the global average. In highly diverse, real-world environments, this assumption is frequently violated. Furthermore, most frameworks treat the central server as a passive aggregator, neglecting the potential for the server to utilize its own data to improve the global model. This paper introduces ZO-HFL, a novel hierarchical framework that addresses these challenges by treating heterogeneous FL as a bilevel optimization problem solved via zeroth-order methods.

The ZO-HFL Framework

Bilevel Optimization Structure

ZO-HFL reformulates the federated learning objective into a hierarchical (bilevel) structure:

  • Upper-Level Problem: The server seeks to minimize a global loss function using its own data ($f_1$), while simultaneously applying a penalty term that prevents the global model from drifting too far from the clients' personalized models.
  • Lower-Level Problem: Each client solves a local optimization problem to find a personalized model that best fits its specific data and local constraints ($Y_i(x)$).

This structure allows the server to act as an active learner, effectively incorporating "pre-training" or global refinement into the standard federated loop.

Technical Innovations: Smoothing and Zeroth-Order Estimation

One of the primary difficulties in bilevel optimization is that the client's optimal response to a global model update is often non-differentiable or non-convex. To overcome this, the authors employ randomized smoothing, which transforms a "jagged" optimization landscape into a smooth, differentiable surrogate.

To update the global model without requiring complex backpropagation through the entire bilevel structure, the framework utilizes Zeroth-Order (ZO) Gradient Estimation. Instead of calculating direct gradients, the server estimates the gradient using function values—specifically, the differences between models. This approach provides several advantages:

  1. Flexibility: It accommodates complex, constrained local problems where gradients might be difficult to compute.
  2. Privacy and Architecture Agnosticism: The server does not need access to the internal gradient structures of the clients.
  3. Robustness: It eliminates the need for the restrictive "bounded gradient dissimilarity" assumption.

Experimental Evaluation

Methodology

The authors evaluated ZO-HFL against industry-standard baselines, including FedAvg, SCAFFOLD, and FedProx, using three benchmark datasets: MNIST, CIFAR-10, and Fashion-MNIST. To simulate real-world data heterogeneity, they used a Dirichlet distribution ($Dir(\alpha)$) to partition the data. A low $\alpha$ value (e.g., 0.1) represents extreme non-iid settings where clients only have access to a small subset of classes.

Key Results

ZO-HFL demonstrated significant performance gains, particularly in scenarios with high heterogeneity and low client participation (10%):

  • CIFAR-10 Performance: In the most challenging setting ($\alpha=0.1$), ZO-HFL achieved an accuracy of 52.51%. In contrast, SCAFFOLD reached only 44.65%, and FedAvg trailed significantly at 27.43%.
  • Stability: While baseline methods experienced sharp performance degradation as data heterogeneity increased, ZO-HFL maintained relatively stable and high accuracy across all tested datasets.
  • Theoretical Convergence: The paper provides rigorous proofs for both nonasymptotic convergence rates ($O(1/\sqrt{R})$) and asymptotic convergence, ensuring the algorithm's reliability.

Discussion and Future Directions

ZO-HFL represents a significant step forward in making Federated Learning robust to the complexities of real-world data. By leveraging zeroth-order optimization, the framework provides a flexible solution for personalized FL that does not depend on traditional gradient assumptions.

However, the authors acknowledge certain trade-offs. Zeroth-order methods typically require more function evaluations than first-order methods to reach the same level of precision, resulting in a communication complexity of $O(\epsilon^{-2})$. Future research may focus on improving the efficiency of these estimations for massive models, such as Large Language Models (LLMs), and developing automated methods for tuning hyperparameters like the smoothing parameter ($\eta$) and the penalty parameter ($\lambda$).

Conclusion

By integrating bilevel optimization with randomized smoothing and zeroth-order estimation, ZO-HFL offers a robust framework for heterogeneous federated learning. It successfully balances the need for a strong global model with the necessity of local personalization, outperforming existing methods in the most demanding non-iid environments.

Summary updated

BibTeX
@inproceedings{qiu2025randomized,
  author = {Yuyang Qiu and Kibaek Kim and Farzad Yousefian},
  title = {{A Randomized Zeroth-Order Hierarchical Framework for Heterogeneous Federated Learning}},
  booktitle = {CDC},
  year = {2025},
  doi = {10.1109/cdc57313.2025.11312168},
}
Figure