TL;DR
Evaluating nonlinear state space models—like RNNs, MCMC samplers, and diffusion models—usually feels like waiting for a line of dominoes to fall one by one. Recent methods parallelize this over time using Newton’s method, but force a painful choice between crushing cubic memory/compute scaling and oversimplified approximations that ignore how variables interact. This paper introduces Parallel Broyden, a derivative-free method that captures cross-variable interactions cheaply and evaluates trajectories up to 30× faster than sequential processing.
What Problem Does This Paper Address?
Modern GPUs love doing everything at once—which is why Transformers and linear state space models (like Mamba) dominate sequence modeling. General nonlinear dynamics ($x_t = f_t(x_{t-1})$), however, seem stubbornly sequential: you can't compute step 100 until you've computed step 99.
Recently, researchers found a clever loophole: guess the entire trajectory at once, measure the prediction errors across all time steps simultaneously, and use a parallel version of Newton’s root-finding method (via a logarithmic-depth parallel scan) to refine the whole sequence together.
Here’s the catch. Exact parallel Newton requires computing and multiplying dense $D \times D$ Jacobian matrices ( matrices of partial derivatives) at every step. That costs $\mathcal{O}(TD^3)$ work—dead on arrival for high dimensions $D$, and agonizingly slow if differentiating through $f_t$ (say, a massive neural network) is expensive. A popular workaround, diagonal quasi-Newton, throws away everything except the main diagonal of the Jacobian. That drops the cost to $\mathcal{O}(TD)$, but it still requires automatic differentiation (autodiff) and pretends state dimensions don't talk to each other. When variables are strongly coupled, convergence crawls.
Methods
The authors hit the sweet spot between dense and diagonal matrices using classical optimization wisdom: Broyden’s method, a cousin of L-BFGS that approximates derivatives using secants (finite differences between consecutive trajectory guesses) rather than autodiff.
Here is what is new:
- Blockwise DPLR Updates: Instead of dense or diagonal Jacobians, Parallel Broyden builds Diagonal-Plus-Low-Rank (DPLR) approximations for each time step, keeping only the $m$ most recent rank-one secant updates ($m \ll D$). An Accelerated Parallel Broyden variant fits up to $m$ secants simultaneously via tiny $m \times m$ linear solves. Both scale linearly with $D$ and require zero autodiff.
- Compressed Approximate Scan: Parallel scans work by repeatedly multiplying matrices along a binary tree. Multiplying two DPLR matrices with rank-$m$ corrections yields a rank-$2m$ correction—unchecked, the rank explodes. The authors introduce a randomized rank compression step inside the scan merge, projecting rank-$2m$ updates back down to rank $m$ on the fly using thin QR decompositions in $\mathcal{O}(Dm^2)$ time.
Datasets
Rather than training on static datasets, the authors evaluate trajectory simulation across synthetic and pretrained benchmarks:
- Controlled RNNs: Synthetic input-driven low-rank RNNs, a newly constructed MLP-RNN (embedding an 8-layer MLP inside the transition to make autodiff expensive), and a full-rank Discretized Mean-Field (DMF) RNN.
- Bayesian Hierarchical Modeling: A synthetic scale-up of the classic Eight Schools problem ($S$ up to 200 schools, state dimension $D = 2S + 2$) simulated via Gibbs sampling.
- Image Generation: 50-step DDIM sampling using a pretrained DiT (Diffusion Transformer) over latent image patches ($D = 4096$).
Key Insights and Ideas
- Approximation inside the scan doesn't break exactness: You might worry that lossy rank compression inside the parallel scan ruins accuracy. Remarkably, the authors prove finite-step recovery still holds: step $i$ of the iteration recovers at least the first $i$ states exactly, guaranteeing exact convergence in at most $T$ steps.
- Directional error matters more than global matrix error: Prior theory assumed convergence depended on how well your approximate Jacobian matched the true Jacobian everywhere (spectral norm). The authors prove—and verify empirically—that what actually governs convergence is the approximation error specifically along the direction of the current trajectory error. Parallel Broyden nails this direction without needing to match the whole matrix.
- Autodiff-free is a superpower: Even when dynamics are mostly diagonal (like in DDIM diffusion), estimating that diagonal via autodiff requires backward passes through a giant transformer. Constructing approximations purely from forward-pass secants bypasses this bottleneck completely.
Key Results
- MLP-RNN ($T = 100\text{K}, D=200$): When autodiff is costly, Accelerated Parallel Broyden is 7.0× faster than sequential evaluation, 5.5× faster than exact Newton, and 56× faster than diagonal quasi-Newton.
- Hierarchical Gibbs Sampling: Cross-school interactions flow through two global variables ($\mu, \tau^2$), creating natural rank-2 coupling. At $S=100, T=100\text{K}$, Accelerated Parallel Broyden achieves a 30× speedup over sequential sampling and 5.5× over Newton. At $S=200$, exact Newton runs out of memory, while Accelerated Parallel Broyden runs 24.7× faster than sequential and 41× faster than diagonal quasi-Newton.
- Diffusion Sampling (DiT): Parallel Broyden converges in fewer iterations (14.9) than Picard (18.0) and ParaTAA (25.0), running 3.32× faster than diagonal quasi-Newton and 1.53× faster than ParaTAA while producing visually identical images. (Note: On a single GPU, parallel methods remain slower than sequential DDIM because evaluating the transformer across all steps saturates FLOPs; multi-GPU setups are needed to amortize this).
Limitations and Future Work
Parallel Broyden shines when off-diagonal variable coupling is approximately low-rank. On the dense, full-rank DMF RNN—where singular values decay slowly—needing a larger rank $m$ makes the $\mathcal{O}(TDm^2)$ scan overhead outweigh the saved iterations, leaving simple diagonal quasi-Newton faster (4.1× vs. 1.4× speedup). Additionally, Accelerated Parallel Broyden can become numerically ill-conditioned if $m$ is pushed too high ($m > 20$).
For future work, the authors suggest applying these Jacobian-free DPLR methods to black-box simulators, neural ODEs, and mean-field coupled oscillators, as well as tightening their local theoretical convergence bounds to mathematically link secant updates directly to directional error.
Summary updated