Distributed Newton Methods for Deep Neural Networks

Chien-Chih Wang, Kent Loong Tan, Chun-Ting Chen, Yu-Hsiang Lin, S. Sathiya Keerthi, Dhruv Mahajan, S. Sundararajan, Chih-Jen Lin

Introduction

Training deep neural networks (DNNs) remains a formidable non-convex optimization challenge. While Stochastic Gradient Descent (SGD) and its variants are the industry standard, they suffer from significant limitations: extreme sensitivity to learning rate hyperparameters and slow convergence on complex loss surfaces where gradient information is insufficient. Second-order methods, such as Newton’s method, offer a promising alternative by utilizing the Hessian matrix to account for the curvature of the loss surface. However, the computational and memory costs of handling the Hessian for millions of parameters, combined with the communication bottlenecks inherent in distributed systems, have historically limited their adoption.

This paper introduces a novel Distributed Newton Method designed to overcome these hurdles. By integrating model parallelism, a diagonalization trick for the Gauss-Newton matrix, and robust synchronization policies, the authors provide a framework that is both computationally efficient and significantly more robust to hyperparameter selection than traditional SGD.

Methodology

Variable Partitioning and Parameter Representation

The core of the proposed method is a shift from simple data parallelism to variable partitioning (model parallelism). Instead of replicating the entire model on every node, the authors partition the neurons and weights across different computing units. This allows the system to handle larger models and facilitates independent computation during critical optimization phases.

Illustration of variable partitioning in a multi-layer neural network, showing how nodes are distributed across layers.

The optimization objective focuses on the parameter vector $\theta$, which concatenates all weights ($w$) and biases ($b$) across the $L$ layers of the network.

The parameter vector $\theta$ representing the full set of weights and biases to be optimized.

The Diagonalization Trick

To address the communication bottleneck, the authors employ a "diagonalization" of the Gauss-Newton approximation. During the Conjugate Gradient (CG) phase—the most intensive part of the Newton step calculation—the algorithm ignores the cross-connections between different partitions. This mathematical simplification allows each machine to solve its local sub-problem independently, eliminating the need for constant inter-node communication during CG iterations. This trade-off between mathematical exactness and distributed efficiency is the "secret sauce" of the framework.

Efficiency and Stability Enhancements

  • Subsampled Hessian: To reduce computational overhead, the Gauss-Newton matrix is calculated using only a small subset of the training data, while the full dataset is reserved for gradient calculations.
  • Synchronization Policy: To mitigate the impact of "stragglers" (slow nodes), the authors implement a policy that terminates sub-problem computation once a specific threshold of nodes (e.g., 50%) has finished. This prevents tail latency from stalling the entire training process.
  • Levenberg-Marquardt & Line Search: The method incorporates these classical techniques to maintain stability and ensure convergence even on highly non-convex loss surfaces.

Experimental Evaluation

The authors evaluated the Distributed Newton Method across 10 diverse classification datasets, ranging from classic benchmarks like MNIST and USPS to massive datasets like HIGGS (10.5 million instances) and SVHN (Street View House Numbers).

Key Results

  • Superior Accuracy: On datasets such as Poker and SVHN, the Newton method achieved higher test accuracy than both SGD and Support Vector Machines (SVMs). For MNIST, the method reached a 1.34% error rate using a fully connected network, outperforming many specialized architectures.
  • Scalability on HIGGS: On the large-scale HIGGS dataset, the Newton method consistently produced higher Area Under the Curve (AUC) scores than SGD across various network depths.
  • Hyperparameter Robustness: A defining advantage of the Newton method is its stability. While SGD performance fluctuated wildly based on the initial learning rate, the Newton method remained stable, using curvature information to automatically adjust its step size.
  • Sparse Initialization: The research highlighted that starting with a sparse weight matrix significantly improved the convergence and accuracy of the Newton method compared to traditional dense initialization.

Conclusion and Future Work

The Distributed Newton Method demonstrates that second-order optimization can be made practical for deep learning by prioritizing communication efficiency. By making the mathematical sub-problems independent across nodes, the authors achieved a training framework that is both scalable and robust. Future research will focus on extending this methodology to Convolutional Neural Networks (CNNs), addressing memory constraints for even larger datasets, and exploring advanced preconditioning techniques to further accelerate convergence.

Summary updated

BibTeX
@article{wang2018distributed,
  author = {Chien-Chih Wang and Kent Loong Tan and Chun-Ting Chen and Yu-Hsiang Lin and S. Sathiya Keerthi and Dhruv Mahajan and S. Sundararajan and Chih-Jen Lin},
  title = {{Distributed Newton Methods for Deep Neural Networks}},
  journal = {Neural Computation},
  year = {2018},
  url = {https://openreview.net/forum?id=6jPPCmVLzC},
}
Figure