Federated Zeroth-Order (FedZO) optimization is a powerful technique for training machine learning models in federated settings where gradients are unavailable—such as in black-box adversarial attacks, reinforcement learning, or hyperparameter tuning. Despite its empirical success, the theoretical guarantees of FedZO, particularly regarding how well it generalizes to unseen data, have remained largely unexplored. This paper bridges that gap by providing the first fine-grained theoretical analysis of FedZO's generalization and optimization performance.
The Challenge: Generalization and Speed Gaps
Most Federated Learning (FL) algorithms rely on first-order gradients to update models. When gradients are impossible or too expensive to compute, Zeroth-Order (ZO) optimization steps in, estimating gradients using only the model's output (function values).
While FedZO is practically useful, it previously faced two major theoretical hurdles:
- The Generalization Gap: It was unknown whether a model trained via FedZO would generalize well to new data or simply overfit the local training sets of the federated clients.
- The Speed Gap: Existing theoretical frameworks suggested that FedZO was significantly slower to converge compared to standard first-order methods.
Theoretical Methodology
To rigorously analyze FedZO, the authors deploy several advanced theoretical tools:
- On-Average Model Stability: Rather than analyzing worst-case scenarios, the authors evaluate how much the model changes on average when a single data point in the federated system is altered. This provides a more flexible and realistic proof of generalization.
- Second-Order Taylor Expansion: To accurately approximate gradients without relying on the restrictive assumption that gradients are "bounded," the authors utilize a second-order approximation.
- Sub-Weibull (Heavy-Tailed) Noise: Moving away from the standard assumption of well-behaved Gaussian noise, the analysis incorporates "heavy-tailed" noise. This better models complex, real-world datasets that contain extreme outliers.
- Asynchronous Error Decomposition: In asynchronous FL, clients update the global model at different intervals, creating "stale" parameters. The authors introduce a novel strategy to mathematically bridge the gap between these out-of-sync local models and the global parameter.
Key Insights
- FedZO is Stable: The authors successfully prove that FedZO exhibits "$\ell_1$ on-average model stability." This critical finding links the algorithm's training behavior directly to its performance on unseen data.
- Removing the "Bounded Gradient" Crutch: By leveraging Taylor expansions and heavy-tailed noise assumptions, the paper demonstrates that FedZO remains effective even in volatile mathematical landscapes where gradients might otherwise explode.
- Closing the Performance Gap: Under the Polyak-Łojasiewicz (PL) condition (where every local minimum is a global minimum), FedZO achieves an optimization decay rate of $\mathcal{O}(T^{-1})$, aligning it with the gold standard for these types of algorithms.
- Robustness to Asynchrony: The theoretical bounds remain tight even when clients lag in their updates, provided the delays are properly managed.
Key Results
The paper establishes foundational mathematical bounds that prove FedZO's viability and efficiency.
Generalization Bounds: For general FedZO, the authors established a bound of $\mathcal{O}((nN)^{-1}LT^{1/2} \log T)$, where $nN$ represents the total number of samples across all clients. This demonstrates that as the number of clients and data points increases, the generalization error reliably decreases. When accounting for heavy-tailed noise, they further refined this bound to remove the dependence on the Lipschitz constant $L$, broadening the theory's applicability.
Optimization Rates: The authors polished the convergence characterization of FedZO, achieving an optimization bound of $\mathcal{O}(T^{-2} + \mu^2)$. This significantly closes the theoretical speed gap, proving that FedZO can match the efficiency of first-order federated learning methods under the right conditions.
Limitations and Future Directions
While this work provides a robust theoretical foundation, a few limitations remain:
- Initial Model Quality: The optimization bounds are heavily dependent on the quality of the starting model. A poor initialization can result in large constant factors within the $\mathcal{O}(T^{-1})$ rate.
- PL Condition Dependency: The strongest convergence results rely on the PL condition. While this is broader than strict convexity, it does not perfectly capture all deep learning landscapes, which often feature numerous sub-optimal local minima.
- Asynchronous Complexity: The generalization bound for asynchronous FedZO is highly complex and does not seamlessly simplify to the synchronous version when delays are zero. This suggests an opportunity for future work to develop an even tighter, unified theoretical framework.
Summary updated