Why Are Linear RNNs More Parallelizable?
Abstract
Lay Summary
Recurrent neural networks (RNNs) are a classical neural network approach for processing sequential data by maintaining a recurrent state while reading tokens in the sequence one by one. RNNs are quite natural and expressive, but they suffer in scalability because it is hard to parallelize their sequential state update. Recently, RNNs with linear updates have been proposed because they are easy to parallelize and past theoretical work has shown they are expressive. However, it was unknown whether they may be fundamentally weaker in some way than nonlinear RNNs, or, conversely, whether it might be possible to parallelize nonlinear RNNs similarly. Our work shows theoretically that nonlinear RNNs are more expressive than linear RNNs and that this corresponds to greater fundamental parallelizability for linear RNNs. This suggests that, while nonlinear RNNs may be attractive due to their greater expressivity, this will always come with a parallelism cost. Our results also reveal finegrained differences between different linear RNNs that could inform the design of linear RNN architectures.