Abstract
This paper investigates distributed optimization in a black-box setting where workers only have access to noisy zero-order oracles. We propose ZO-MARINA, a novel algorithm based on the state-of-the-art MARINA framework. ZO-MARINA utilizes finite-difference gradient approximations and a coordinate-based sparsification strategy to minimize communication overhead. Theoretical analysis demonstrates that the algorithm achieves convergence rates comparable to first-order methods for non-convex and PL-condition functions. Experimental results on ResNet-18 and SVM models validate the effectiveness of the approach for hyperparameter tuning.
Introduction
In large-scale machine learning, optimization often occurs across distributed systems. While first-order methods (relying on gradients) are standard, many practical problems—such as hyperparameter tuning or optimizing non-differentiable functions—only provide function values, often corrupted by noise. This "black-box" formulation necessitates zero-order optimization techniques. The challenge lies in maintaining communication efficiency and convergence speed without direct gradient access.
Methodology: The ZO-MARINA Algorithm
ZO-MARINA adapts the variance-reduced MARINA algorithm for the zero-order regime through two key mechanisms:
- Gradient Estimation: Workers approximate the gradient using finite differences. By sampling the function at $x + \tau e$ and $x - \tau e$, a directional derivative estimate is obtained.
- Sparsification for Communication Efficiency: To reduce the data sent to the central server, workers employ sparsification operators like RandK (randomly selecting $K$ coordinates) or PermK (partitioning coordinates among workers). Instead of a general compression operator, the algorithm uses the difference of two approximated gradients at these specific coordinates.
The algorithm maintains a global state and updates it using a probabilistic mechanism: with probability $p$, a full (approximated) gradient is computed; otherwise, a compressed difference of gradients is used to update the model, effectively reducing variance over time.
Theoretical Convergence Analysis
A core contribution of this work is the rigorous convergence analysis. For non-convex objectives, ZO-MARINA reaches an $\epsilon$-stationary point in $O(1/\epsilon^2)$ iterations. For functions satisfying the Polyak-Łojasiewicz (PL) condition, the algorithm exhibits linear convergence. Crucially, the theoretical complexity matches that of the first-order MARINA, with an additional error term proportional to the smoothing parameter $\tau$ and the oracle noise.
Experimental Results
The algorithm was tested on several benchmarks, including hyperparameter optimization for a ResNet-18 model on CIFAR-10 and SVM training on MNIST-784 and LibSVM datasets.
In the hyperparameter tuning experiments, ZO-MARINA was used to find the optimal learning rate. As shown in the figures, the algorithm successfully adjusts the hyperparameter to maximize performance.
The results demonstrate that the PermK strategy is particularly effective when the number of hyperparameters is small, as it allows workers to explore different dimensions of the search space in parallel without redundancy. In SVM tests, the algorithm showed highly stable convergence, even when optimizing multiple parameters simultaneously.
Conclusion
ZO-MARINA provides a robust and communication-efficient solution for distributed black-box optimization. By bridging the gap between zero-order and first-order convergence rates, it enables efficient hyperparameter tuning and optimization of complex, non-differentiable models in distributed environments. Future work includes extending the framework to fully decentralized peer-to-peer topologies.
Summary updated