Introduction
Parallelizing nonlinear state space models (nSSMs), such as Recurrent Neural Networks (RNNs), has long been a "holy grail" for deep learning efficiency. While modern architectures like Transformers thrive on parallel processing, nSSMs are inherently sequential: calculating the state at time $t$ usually requires the state at time $t-1$.
This paper establishes a rigorous theoretical framework proving that a system's predictability—mathematically defined by its Largest Lyapunov Exponent (LLE)—is the deciding factor for parallelization. Predictable systems create well-conditioned optimization problems that GPUs can solve in parallel, while chaotic systems lead to "flat" landscapes where parallelization fails.
The Sequential Bottleneck vs. Parallel Optimization
Deep learning owes its success to parallel computing on GPUs. However, the recursive nature of nSSMs creates a massive bottleneck. Recent algorithms like DEER and DeepPCR attempted to bypass this by reformulating the sequential recursion as a massive optimization problem solved simultaneously across all time steps.
While these methods occasionally showed dramatic speedups, their performance was inconsistent—working perfectly for some models and failing for others. This research provides the missing "rule of thumb": Predictability enables parallelization.
Bridging Dynamics and Optimization
The authors bridge the gap between Dynamical Systems Theory and Optimization Theory by linking the Polyak-Łojasiewicz (PL) constant (a measure of optimization landscape "steepness") to the Largest Lyapunov Exponent (LLE).
As shown in the figure above, the behavior of the system in state space directly dictates the geometry of the "merit function" (the error landscape the optimizer must navigate):
- Negative LLE (Predictable): Perturbations in the system die out over time. This results in a well-conditioned optimization landscape with a clear, steep path to the solution.
- Positive LLE (Chaotic): Small changes in early states lead to massive future divergences. For an optimizer, this creates a "flatness" problem where the gradient becomes nearly zero, providing no clear direction for improvement.
Key Results: The Chaos Threshold
The research identifies a sharp "phase transition" at the chaos threshold ($\lambda = 0$). Once a system crosses into chaotic territory, the number of optimization steps required for parallel convergence explodes, eventually making sequential evaluation faster than parallel optimization.
Empirical Validation
Using mean-field RNNs and physical systems like Langevin Dynamics, the authors observed several key outcomes:
- Theoretical Speedup: For predictable systems, the state trajectory can be computed in $O((\log T)^2)$ time, a massive improvement over the $O(T)$ time required for sequential rollout.
- Wallclock Performance: On an NVIDIA H100 GPU, the parallel DEER algorithm was an order of magnitude faster than sequential rollout for predictable systems, but significantly slower for chaotic ones.
- Robustness: The theory holds even for systems that are "unpredictable" in short bursts, provided they remain predictable on average (negative LLE).
Implications for Model Design
This work suggests that predictability should be a core design principle for efficient deep learning. Rather than hoping a model is parallelizable, researchers can explicitly design or parameterize models to be predictable—for example, by enforcing contractive weights.
Furthermore, even when dealing with chaotic underlying systems, parallelization may still be possible through the use of "stable observers"—auxiliary systems designed to track chaotic states while remaining mathematically stable. This opens new avenues for scaling massive architectures like "Linear Transformers" or Mamba-style models that rely on efficient state-space representations.
Summary updated