For years, sequence modeling was synonymous with recurrence. To understand a sentence, a sound wave, or a user’s clickstream, models like LSTMs and GRUs processed data step-by-step, maintaining a hidden state that evolved over time. While intuitive, this sequential nature created a fundamental computational bottleneck: you cannot compute the $n$-th step until the $(n-1)$-th step is complete.
A growing body of research has shifted this paradigm by replacing recurrent units with parallelizable attention mechanisms. By treating sequences as sets of interacting elements rather than linear chains, these "RNN-free" architectures achieve massive gains in training and inference speed—often by orders of magnitude—without sacrificing the ability to model long-range dependencies.
The Recurrence Bottleneck
The primary limitation of recurrent neural networks (RNNs) is their $O(L)$ computational complexity for a sequence of length $L$. Because each hidden state depends on the previous one, the operations cannot be easily distributed across modern GPU hardware. As Yiwen Sun and colleagues note in their work on FMA-ETA, this linear dependency forces hardware to wait, turning sequence modeling into a constant-time challenge for attention-based models that can process all tokens simultaneously.
In tasks like speech recognition and synthesis, this bottleneck is particularly acute. Naihan Li demonstrated that replacing RNNs with multi-head self-attention in Neural Speech Synthesis with Transformer Network allowed for training speeds 4.25x faster than the previous state-of-the-art, Tacotron 2. Similarly, Chung-Cheng Chiu showed that Parallel Rescoring using Transformers could slash on-device speech recognition latency by over 50% by processing hypothesis sequences in parallel.
Parallelism via Self-Attention
The core mechanism enabling this shift is Self-Attention. Instead of passing a state forward, self-attention allows every element in a sequence to "look" at every other element to determine their relevance.
- Constant Path Length: In an RNN, signals must travel through $L$ steps to connect the first and last tokens. In an attention network, this distance is $O(1)$, facilitating better modeling of long-range dependencies.
- Hardware Utilization: Because the attention scores for all pairs can be computed at once, the model can fully saturate the thousands of cores in a GPU.
This efficiency is not just a marginal improvement; it is transformative for large-scale systems. In news recommendation, Chuhan Wu and the NRMS team reduced user encoding time from hours to minutes. In the domain of student knowledge tracing, the SAKT model achieved training speeds 30 times faster than recurrent alternatives by identifying relevant past activities through parallelized attention rather than sequential updates.
Beyond Text: Audio and Structural Data
The move toward non-recurrent attention has expanded into signals that were traditionally considered strictly sequential, such as audio and structured lattices.
- Speech Separation: Models like SepFormer by Cem Subakan and Mirco Ravanelli prove that RNN-free architectures can outperform traditional masking networks in monaural speech separation while being significantly more memory-efficient.
- Lattice Structures: In Chinese Named Entity Recognition, where words and characters form complex overlapping structures, Xiaonan Li introduced FLAT. By flattening the lattice and using relative position encodings within a Transformer, they achieved a 16x speedup over sequential lattice-based models.
Structural Innovations for Efficiency
Researchers have also introduced specialized attention variants to further optimize these models. Tao Shen proposed DiSAN, which uses Directional Self-Attention to capture temporal order without the need for recurrence or convolutions, running 3x faster than a Bi-LSTM. For session-based recommendations, Mei Wang utilized a triangle parallel attention network in ASARS to process all sub-sequences within a session simultaneously, enabling efficient data augmentation and faster training.
Why It Works: The Intuition
The success of these models suggests that for many tasks, the "order" of a sequence is better treated as a feature (via position encodings) rather than a hard constraint on the computation graph. By decoupling the logical order of the data from the temporal order of the computation, researchers like Jiahai Wang (AEN) and Bing Qin (Deep Memory Networks) have shown that we can achieve state-of-the-art accuracy while making models viable for real-time, high-bandwidth production environments.
Ultimately, the transition to non-recurrent attention is a transition toward hardware-aware AI. As datasets grow and latency requirements tighten, the ability to process sequences in parallel becomes not just an advantage, but a necessity.