Towards Scalable and Stable Parallelization of Nonlinear RNNs
<|reference_start|>Towards Scalable and Stable Parallelization of Nonlinear RNNs: Conventional nonlinear RNNs are not naturally parallelizable across the sequence length, whereas transformers and linear RNNs are. Lim et al. [2024] therefore tackle parallelized evaluation of nonlinear RNNs by posing it as a fixed point problem, solved with Newton's method. By deriving and applying a parallelized form of Newton's method, they achieve huge speedups over sequential evaluation. However, their approach inherits cubic computational complexity and numerical instability. We tackle these weaknesses. To reduce the computational complexity, we apply quasi-Newton approximations and show they converge comparably to full-Newton, use less memory, and are faster. To stabilize Newton's method, we leverage a connection between Newton's method damped with trust regions and Kalman smoothing. This connection allows us to stabilize Newtons method, per the trust region, while using efficient parallelized Kalman algorithms to retain performance. We compare these methods empirically, and highlight the use cases where each algorithm excels.<|reference_end|>
@article{gonzalez2024towards,
    title={Towards Scalable and Stable Parallelization of Nonlinear RNNs},
    author={Xavier Gonzalez, Andrew Warrington, Jimmy T.H. Smith, Scott W.
  Linderman},
    journal={arXiv preprint arXiv:2407.19115},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.19115},
    primaryClass={cs.LG}
}