Unifying Optimization and Dynamics to Parallelize Sequential Computation: A Guide to Parallel Newton Methods for Breaking Sequential Bottlenecks
Organizations: STANFORD UNIVERSITY
Abstract
Massively parallel hardware (GPUs) and long sequence data have made parallel algorithms essential for machine learning at scale. Yet dynamical systems, like recurrent neural networks and Markov chain Monte Carlo, were thought to suffer from sequential bottlenecks. Recent work showed that dynamical systems can in fact be parallelized across the sequence length by reframing their evaluation as a system of nonlinear equations, which can be solved with Newton's method using a parallel associative scan. However, these parallel Newton methods struggled with limitations, primarily inefficiency, instability, and lack of convergence guarantees. This thesis addresses these limitations with methodological and theoretical contributions, drawing particularly from optimization. Methodologically, we develop scalable and stable parallel Newton methods, based on quasi-Newton and trust-region approaches. The quasi-Newton methods are faster and more memory efficient, while the trust-region approaches are significantly more stable. Theoretically, we unify many fixed-point methods into our parallel Newton framework, including Picard and Jacobi iterations. We establish a linear convergence rate for these techniques that depends on the method's approximation accuracy and stability. Moreover, we give a precise condition, rooted in dynamical stability, that characterizes when parallelization provably accelerates a dynamical system and when it cannot. Specifically, the sign of the Largest Lyapunov Exponent of a dynamical system determines whether or not parallel Newton methods converge quickly. In sum, this thesis unlocks scalable and stable methods for parallelizing sequential computation, and provides a firm theoretical basis for when such techniques will and will not work. This thesis also serves as a guide to parallel Newton methods for researchers who want to write the next chapter in this ongoing story.
Figures & tables
| SSM | State ( ) | Input ( ) | Transition ( ) |
| Linear Dynamical Systems (LDS) [ 154 ] | State | Input | Linear |
| Deep SSMs [ 87 , 76 , 208 ] | Stack of states | Input | Linear |
| Recurrent Neural Networks (RNNs) [ 118 , 55 , 101 , 219 , 38 ] | Hidden state | Input | RNN cell |
| MCMC [ 53 , 71 , 244 ] | Current sample | Noise | Transition kernel |
| Sampling from diffusion models [ 214 , 201 , 137 ] | Noisy image | Noise | Denoising function |
| Explicit differential equation solvers [ 67 , 125 , 111 ] | Current state | N/A | Numerical integrator |
| Pos. 1 | Pos. 2 | Pos. 3 | Pos. 4 | Pos. 5 | Pos. 6 | Pos. 7 | Pos. 8 |
| {\color[rgb]{0.5,0.5,0.5}A_{1}} | {\color[rgb]{0.5,0.5,0.5}A_{2}} | {\color[rgb]{0.5,0.5,0.5}A_{3}} | {\color[rgb]{0.5,0.5,0.5}A_{4}} | {\color[rgb]{0.5,0.5,0.5}A_{5}} | {\color[rgb]{0.5,0.5,0.5}A_{6}} | {\color[rgb]{0.5,0.5,0.5}A_{7}} | {\color[rgb]{0.5,0.5,0.5}A_{8}} |
| {\color[rgb]{0,0,1}A_{1:2}} | {\color[rgb]{0,0,1}A_{3:4}} | {\color[rgb]{0,0,1}A_{5:6}} | {\color[rgb]{0,0,1}A_{7:8}} | ||||
| {\color[rgb]{0,0,1}A_{1:4}} | {\color[rgb]{0,0,1}A_{5:8}} | ||||||
| {\color[rgb]{0,0,1}A_{1:8}} |
| Pos. 1 | Pos. 2 | Pos. 3 | Pos. 4 | Pos. 5 | Pos. 6 | Pos. 7 | Pos. 8 |
| {\color[rgb]{0,0,1}A_{1:6}} | |||||||
| {\color[rgb]{0,0,1}A_{1:3}} | {\color[rgb]{0,0,1}A_{1:5}} | {\color[rgb]{0,0,1}A_{1:7}} |
| Algorithm | Time per Newton step (ms, mean std) | Newton steps to convergence | Total time to convergence (ms) |
| Sequential Evaluation | |||
| Sequential | N/A | N/A | |
| Parallelized Methods | |||
| DEER | |||
| Quasi-DEER | |||
| ELK | |||
| System | LLE (System) | LLE (Observer) | DEER Steps (System) | DEER Steps (Observer) |
| ABC | 0.16 | -0.08 | 4243 | 3 |
| Chua’s Circuit | 0.02 | -1.37 | 697 | 14 |
| Kawczynski-Strizhak | 0.01 | -3.08 | 29396 | 2 |
| Lorenz | 1.02 | -6.28 | 30000 | 3 |
| Nosé–Hoover Thermostat | 0.02 | -0.13 | 29765 | 3 |
| Rössler | 0.01 | -0.07 | 29288 | 7 |
| Fixed-point method | Order | Transition matrix | Parallelization |
| Newton | first-order | Parallel Scan (dense matrix multiplication) | |
| Quasi-Newton | quasi first-order | Parallel Scan (elementwise vector multiplication) | |
| Picard | zeroth-order | Prefix Sum (vector addition) | |
| Jacobi | zeroth-order | Map (embarrassingly parallel) |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.