TL;DR
LocalNewton is a distributed second-order optimization algorithm designed to slash communication overhead in machine learning. By allowing worker nodes to perform multiple local Newton steps before synchronizing, it reaches high-quality solutions with significantly fewer communication rounds and less total runtime compared to state-of-the-art methods.
Abstract
To address the communication bottleneck problem in distributed optimization within a master-worker framework, we propose LocalNewton, a distributed second-order algorithm with local averaging. In LocalNewton, the worker machines update their model in every iteration by finding a suitable second-order descent direction using only the data and model stored in their own local memory. We let the workers run multiple such iterations locally and communicate the models to the master node only once every few (say $L$) iterations. LocalNewton is highly practical since it requires only one hyperparameter, the number $L$ of local iterations. We use novel matrix concentration based techniques to obtain theoretical guarantees for LocalNewton, and we validate them with detailed empirical evaluation. To enhance practicability, we devise an adaptive scheme to choose $L$, and we show that this reduces the number of local iterations in worker machines between two model synchronizations as the training proceeds, successively refining the model quality at the master. Via extensive experiments using several real-world datasets with AWS Lambda workers and an AWS EC2 master, we show that LocalNewton requires fewer than 60% of the communication rounds and less than 40% of the end-to-end running time, compared to state-of-the-art algorithms, to reach the same training loss.
Introduction
In distributed machine learning, a "master" node coordinates many "worker" nodes to train a model. The primary bottleneck is often communication cost, which consists of bandwidth (data size) and latency (the fixed time to send any message). While many researchers focus on compressing messages to save bandwidth, latency is the critical factor in environments like Federated Learning (mobile devices) or Serverless Computing (e.g., AWS Lambda). In these settings, the time spent waiting for a connection often dwarfs the time spent actually computing.
Existing "local" methods like Local SGD allow workers to run multiple steps locally to reduce communication frequency, but they only use first-order (gradient) information, which can be slow to converge. Conversely, distributed second-order methods converge in fewer iterations but typically require frequent, high-latency synchronization. LocalNewton bridges this gap.
Methodology
The authors introduce LocalNewton, where each worker node uses its local data to compute not just a gradient, but a local Hessian (second-order information).
- Local Iterations: Workers perform $L$ independent Newton-type updates using their local memory.
- Periodic Averaging: Only once every $L$ iterations do the workers send their models to the master to be averaged.
- Adaptive LocalNewton: As the model approaches the optimal solution, local approximations of the Hessian become less accurate. The authors propose an adaptive scheme that monitors training loss at the master. If progress stalls, the algorithm automatically reduces the number of local steps ($L$) and eventually switches to a standard distributed second-order method (like GIANT) to "polish" the final result.
Experimental Evaluation
The algorithm was evaluated on several large-scale real-world datasets for logistic regression tasks, sourced from the LIBSVM library, including w8a, Covtype, and EPSILON. The system was implemented using AWS Lambda for workers and AWS EC2 for the master, creating a high-latency environment that tests the algorithm's strengths.
Key Results
Adaptive LocalNewton reached the target training loss in significantly fewer rounds than GIANT, BFGS, or Local SGD. It achieved at least a 50% faster convergence in terms of end-to-end wall-clock time compared to existing schemes across multiple datasets. Furthermore, LocalNewton is highly practical, essentially requiring only one hyperparameter: the initial number of local iterations $L$.
Discussion and Insights
- Curvature Matters Locally: Even though a worker only sees a subset of the data, its local Hessian is a surprisingly good proxy for the global Hessian. This allows for much more aggressive local progress than simple gradient descent.
- The "Error Floor" Trade-off: There is a fundamental trade-off. More local iterations ($L$) reduce communication but introduce an "error floor"—the model gets close to the optimum quickly but can't perfectly hit it because the local Hessians aren't identical to the global one.
- Adaptivity: By starting with many local steps and gradually decreasing them, Adaptive LocalNewton captures the best of both worlds: rapid initial progress with minimal communication, followed by high-precision convergence.
Limitations and Future Work
While the authors provide proofs for standard LocalNewton, a rigorous theoretical analysis of the Adaptive version remains future work. Additionally, the current work focuses on convex problems; extending these second-order local benefits to non-convex landscapes, such as deep neural networks, is a major open challenge. Finally, while second-order methods are a winning trade-off when communication is slow, the increased local computational cost might not be ideal in low-latency, compute-constrained environments.
Summary updated