TL;DR
GIANT (Globally Improved Approximate Newton Method) is a distributed, second-order optimization algorithm designed to drastically reduce communication overhead in large-scale machine learning. By having worker nodes locally compute "Approximate NewTon" (ANT) directions and averaging them at a central driver, GIANT achieves state-of-the-art convergence rates with minimal communication and only a single tuning parameter.
What Problem Does This Paper Address?
In large-scale machine learning, datasets are often too massive to fit on a single machine, requiring distributed computing architectures like Apache Spark or MapReduce. While distributing data reduces storage and local computation costs, the network communication between worker nodes and the central driver frequently becomes the primary performance bottleneck.
First-order optimization methods (like Stochastic Gradient Descent or Accelerated Gradient Descent) are easy to parallelize but require thousands of iterations—and thus thousands of communication rounds—to converge. Second-order methods (Newton-type methods) utilize curvature information to converge in far fewer iterations. However, standard Newton methods require communicating massive $d \times d$ Hessian matrices (where $d$ is the number of features), which requires an impractical $O(d^2)$ communication cost per iteration.
The authors set out to design a distributed second-order method that enjoys the fast convergence of Newton methods while keeping the communication cost per iteration at a modest $O(d)$, matching first-order methods.
Methods
GIANT uses a centralized, synchronous architecture. The workflow for a single iteration proceeds as follows:
- Broadcast: The main driver broadcasts the current weight vector $\mathbf{w}_t$ to all $m$ worker nodes.
- Local Gradient & Hessian Approximation: Each worker node computes its local gradient and uses its local slice of data to form a local approximate Hessian matrix $\tilde{\mathbf{H}}_{t,i}$.
- Local Sub-problem Solving: Instead of sending the Hessian back, each worker solves a local linear system ($\tilde{\mathbf{H}}_{t,i} \mathbf{p} = \mathbf{g}_t$) using the Conjugate Gradient (CG) method to find an Approximate NewTon (ANT) direction, $\tilde{\mathbf{p}}_{t,i}$. Because it uses CG, it operates in a "Hessian-free" manner, avoiding ever explicitly forming the $d \times d$ matrix.
- Reduce & Average: The workers send their $d$-dimensional ANT directions back to the driver ($O(d)$ communication cost). The driver averages these vectors to form the Globally Improved ANT (GIANT) direction: $$\tilde{\mathbf{p}}_t = \frac{1}{m} \sum_{i=1}^m \tilde{\mathbf{p}}_{t,i}$$
- Update: The driver updates the weights ($\mathbf{w}_{t+1} = \mathbf{w}_t - \tilde{\mathbf{p}}_t$), optionally using a backtracking line search to determine the optimal step size.
A major practical advantage of GIANT over competing distributed second-order methods (like DANE or AIDE) is simplicity: it requires tuning only one parameter—the maximum number of local CG iterations.
Datasets
The authors evaluated GIANT on three standard binary classification datasets from the LIBSVM repository:
- MNIST8M: $n = 8\text{ million}$ samples, $d = 784$ features.
- Epsilon: $n = 500,000$ samples, $d = 2,000$ features.
- Covertype: $n = 581,000$ samples, $d = 54$ features.
To simulate high-dimensional "big data" regimes, the authors used a Random Fourier Features mapping to project the features of all datasets up to $d = 10,000$. They also performed data augmentation (replicating data and adding Gaussian noise) to scale the Covertype dataset up to $n = 12\text{ million}$ for scalability testing.
Key Insights and Ideas
- The Harmonic Mean Connection: Mathematically, averaging the local ANT directions is equivalent to multiplying the global gradient by the harmonic mean of the local approximate Hessians.
- Incoherence is Key: If the dataset is "incoherent"—meaning the statistical information is spread relatively evenly across the worker nodes rather than concentrated in a few samples—the harmonic mean of the local Hessians becomes an exceptionally close approximation to the true arithmetic mean (the exact global Hessian).
- Breaking the Condition Number Curse: For quadratic problems, GIANT's iteration complexity has a purely logarithmic dependence on the condition number ($\kappa$) of the Hessian matrix. As shown in the paper's complexity comparison table, competing methods like DANE, AIDE, or DiSCO suffer from a square-root or linear dependence on $\kappa$, making GIANT theoretically much faster for ill-conditioned problems.
Key Results
- Wall-Clock Speedups: In large-scale cluster experiments (using up to 375 compute nodes / 12,000 cores on the Cori supercomputer), GIANT consistently converged faster in wall-clock time than AGD, L-BFGS, and DANE across various regularization settings.
- Superior Scalability: As the cluster size scaled up from 75 to 375 nodes, the per-iteration communication overhead caused AGD's runtime to spike by 367% and L-BFGS by 112%. In contrast, GIANT's per-iteration time only increased by a marginal 19%, demonstrating its resilience to network latency and the "straggler effect."
Limitations and Future Work
Currently, GIANT's theoretical guarantees and algorithmic design are strictly limited to unconstrained optimization problems with smooth and strongly convex objective functions (such as logistic regression and ridge regression).
The authors note that extending GIANT to handle constrained problems (via projected Newton methods), non-smooth regularization like L1-norm (via proximal Newton methods), and non-convex objectives (via trust-region methods) remains a non-trivial but highly promising direction for future research.
Summary updated