A Free Lunch: Gradient Averaging Achieves Optimal Statistical Efficiency in Newton Sketch
Organizations: School of Industrial and Systems Engineering, Georgia Institute of Technology. · School of Mathematics, Georgia Institute of Technology.
Abstract
We study statistical inference for online sketched Newton methods, in which each Newton system is approximately solved by an inner randomized sketching solver. Existing work reveals a computational--statistical trade-off: the sketching solver (and its accelerated variants) reduces the per-step cost of Newton methods from to , but the randomness introduced by sketching also inflates the limiting covariance of both the last and the averaged Newton iterates. In this work, we address this trade-off via gradient averaging. We show that simply replacing the stochastic gradient with a moving average at each step can mitigate, and in some cases eliminate, the trade-off in Newton sketch. Importantly, gradient averaging requires no additional oracle evaluations and leaves the contraction bound of the inner sketching solver unchanged. In particular, we prove that the last sketched Newton iterate with gradient averaging attains a limiting covariance no larger than that without gradient averaging, while the averaged iterate even attains the minimax optimal limiting covariance, matching that of the exact Newton method. To our knowledge, this is the first analysis showing that randomness introduced to improve computational efficiency need not compromise statistical efficiency as long as proper gradient estimates are used. The key analytical challenge is that gradient averaging destroys the crucial martingale difference structure underlying central limit theorem arguments. We overcome this challenge by analyzing the coupled two-timescale recursions governing the iterate and the gradient estimator. Numerical experiments on linear and logistic regression support our theoretical covariance comparisons.
Figures & tables
| Covariance-trace ratio | Averaged trace | MSE ratio | ||||||
| Model | Last | Averaged | Last | Averaged | ||||
| Linear | 20 | 5 | 0.213 | 0.215 | 11.808 | 1.830 | 0.213 | 0.249 |
| 20 | 10 | 0.352 | 0.323 | 4.619 | 1.201 | 0.352 | 0.349 | |
| 40 | 5 | 0.164 | 0.232 | 66.756 | 19.108 | 0.234 | 0.301 | |
| 40 | 10 | 0.208 | 0.219 | 15.775 | 3.299 | 0.208 | 0.253 | |
| Logistic | 20 | 5 | 0.233 | 0.490 | 16.234 | 7.953 | 0.233 | 0.483 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Solver | Quantity | Last iterate | Averaged iterate |
| Accelerated sketching | Covariance trace | 0.232 [0.098, 0.787] | 0.409 [0.130, 0.896] |
| -direction variance | 0.322 [0.110, 0.814] | 0.427 [0.148, 0.906] | |
| Empirical bias norm | 0.525 [0.290, 0.985] | 0.818 [0.270, 0.986] | |
| MSE | 0.234 [0.099, 0.935] | 0.428 [0.192, 0.939] | |
| Population objective gap | 0.241 [0.116, 0.935] | 0.428 [0.220, 0.939] | |
| Exact solve | Covariance trace | 1.003 [0.981, 1.041] | 1.003 [1.001, 1.009] |
| Model | ||||
| Linear | 5 | 14.979 [4.125, 604.798] | 2.240 [0.343, 514.822] | 0.148 [0.069, 0.851] |
| Linear | 10 | 5.034 [1.824, 344.949] | 0.556 [0.312, 275.337] | 0.140 [0.090, 0.798] |
| Logistic | 5 | 289.971 [11.986, 2867.951] | 241.862 [5.051, 2590.490] | 0.717 [0.421, 0.903] |
| Logistic | 10 | 8.937 [2.150, 52.009] | 3.813 [0.464, 32.736] | 0.344 [0.203, 0.629] |
| Method | Linear regression | Logistic regression |
| Vanilla sketched Newton | 2.725 [2.604, 2.829] | 3.078 [2.925, 3.201] |
| Sketched Newton with gradient averaging | 1.047 [1.002, 1.085] | 1.248 [1.188, 1.292] |
| Exact online Newton | 1.012 [0.968, 1.046] | 1.071 [1.019, 1.112] |
| Linear regression | |||||||
| Covariance | Method | Iterate | MAE | Coverage | CI length | GFLOPs | Runtime |
| (%) | (s) | ||||||
| Identity | SGD | Average | 0.417 | 58.5 | 1.005 | 0.024 | 0.578 |
| Newton | Last | 1.717 | 91.0 | 7.626 | 2.733 | 1.491 | |
| Average | 0.410 | 93.5 | 2.567 | ||||
| Sketch ( ) | Last | 1.530 | 93.0 | 7.122 | 0.711 | 0.697 | |
| Linear regression | Logistic regression | |||||||
| Covariance | Method | Iterate | Stop step | Runtime | GFLOPs | Stop step | Runtime | GFLOPs |
| (s) | (s) | |||||||
| Identity | SGD | Average | 2,281,833 | 30.000 | 0.554 | 1,834,092 | 30.000 | 0.671 |
| Newton | Last | 7,000 | 0.137 | 0.192 | 21,000 | 0.472 | 0.578 | |
| Average | 10,000 | 0.196 | 0.274 | 53,000 | 1.197 | 1.457 | ||
| Sketch ( ) | Last | 22,000 | 0.264 | 0.156 | 32,000 | 0.454 | 0.232 | |
Randomized Sketching
Randomized sketching uses compact random projections or summaries to speed computation while approximately preserving data, geometry, or statistical structure.
See all 54 papers