Abstract
We present a principled approach for designing stochastic Newton methods for solving finite sum optimization problems. Our approach has two steps. First, we re-write the stationarity conditions as a system of nonlinear equations that associates each data point to a new row. Second, we apply a Subsampled Newton Raphson method to solve this system of nonlinear equations. Using our approach, we develop a new Stochastic Average Newton (SAN) method, which is incremental by design, in that it requires only a single data point per iteration. It is also cheap to implement when solving regularized generalized linear models, with a cost per iteration of the order of the number of the parameters. We show through extensive numerical experiments that SAN requires no knowledge about the problem, neither parameter tuning, while remaining competitive as compared to classical variance reduced gradient methods (e.g. SAG and SVRG), incremental Newton and quasi-Newton methods (e.g. SNM, IQN).
Introduction
Optimization is the heartbeat of modern machine learning, but practitioners often face a frustrating trade-off. First-order methods like Stochastic Gradient Descent (SGD) and its variance-reduced variants (e.g., SAG, SVRG) are computationally cheap but require agonizingly careful hyperparameter tuning. Second-order Newton methods converge much faster and are more robust, but they are typically too expensive for high-dimensional "big data" problems, often scaling poorly with the number of features $d$.
In this work, we introduce the Stochastic Average Newton (SAN) algorithm. SAN is an incremental second-order method that offers the best of both worlds: it is as computationally efficient as SGD per iteration but as robust as Newton's method. Crucially, SAN is virtually parameter-free, performing competitively with state-of-the-art methods without requiring manual step-size tuning.
The SAN Framework
The core innovation of SAN lies in a two-step principled approach to solving finite sum optimization problems. First, the authors re-write the standard optimality condition as a large system of nonlinear equations, introducing auxiliary variables $\alpha_i$ for each data point. Second, they apply a Subsampled Newton-Raphson method to solve this system.
Instead of solving the whole system at once, SAN randomly chooses between an averaging step and a Newton step. For Generalized Linear Models (GLMs), the authors show that the Hessian-based projection required for the Newton step can be computed in $O(d)$ time using the Woodbury matrix identity. This allows SAN to match the per-iteration cost of first-order methods while leveraging second-order information.
Computational Efficiency
A primary advantage of SAN is its efficiency relative to other second-order methods. While incremental Newton methods like SNM or IQN often require $O(d^2)$ operations per iteration, SAN maintains a linear scaling with the number of parameters $d$.
As shown in the table above, SAN's computational cost is on par with SAG and SVRG. While it shares the $O(nd)$ memory requirement of SAG (to store auxiliary vectors), its performance gains and lack of parameter tuning make it a compelling choice for large-scale applications.
Empirical Performance
SAN was evaluated on eight diverse binary classification datasets from the LibSVM repository, ranging from middle-scale (phishing, mushrooms) to large-scale (webspam, rcv1). These datasets vary significantly in sample size, feature count, and condition number.
The empirical results are striking. As shown in Figure 1, SAN consistently outperforms or matches variance-reduced first-order methods across all tested datasets. Notably, SAN works remarkably well with a default step size of $\gamma = 1$, whereas SAG and SVRG require knowing the "smoothness" of the function to set an optimal learning rate.
Conclusion and Future Work
SAN represents a significant step toward making second-order optimization practical for big data. By combining an incremental design with $O(d)$ per-iteration complexity and parameter-free robustness, it addresses the key limitations of both first-order and traditional second-order methods.
Future work includes addressing the $O(nd)$ memory overhead, which can be a bottleneck for extremely large datasets, and refining the theoretical convergence rates to better reflect the rapid speed observed in practice.
Summary updated