Introduction: The Quadratic Cost of Attention
The "Attention is All You Need" era revolutionized sequence modeling, but the self-attention mechanism's $O(L^2)$ complexity remains a significant bottleneck. As sequence lengths $L$ grow—in domains like high-resolution video, genomics, or long-form code—the computational cost quadruples for every doubling of length. While classic Recurrent Neural Networks (RNNs) like LSTMs offer $O(L)$ complexity, they have historically suffered from parallelization difficulties and vanishing gradients. This survey examines the "Resurgence of Recurrence": a new wave of architectures designed to bridge the gap between the scalability of Transformers and the efficiency of recurrence.
Architectural Movements
The resurgence is characterized by three primary architectural shifts that aim to capture long-range dependencies efficiently while remaining hardware-friendly:
- Linear Transformers: By redefining the attention mechanism using kernels, models like RetNet and RWKV transform $O(L^2)$ "stateless" attention into $O(L)$ "stateful" recurrent updates. These models act like Transformers during training but like RNNs during inference.
- Deep State-Space Models (SSMs): Drawing from control theory, models such as S4, S5, and Mamba use linear differential equations to track state. They leverage "associative scans" or convolutions to train in parallel while maintaining a compact recurrent state for fast generation.
- Linear Recurrent Units (LRUs): These models simplify traditional RNNs by removing non-linearities from the hidden state update. By using complex-valued diagonal matrices, LRUs achieve state-of-the-art performance on long-range benchmarks without the complexity of traditional LSTMs.
Key Results and the Online Learning Challenge
While SSMs and LRUs are now consistently outperforming standard Transformers on benchmarks like the Long Range Arena (LRA), the authors highlight a critical distinction between "long" sequences and truly "infinite" streaming data.
In a lifelong online learning setting—where a model must learn from a continuous stream without seeing the same data twice—the results provide a significant reality check. As shown in the experimental data below, sophisticated models like FSNet and Informer often struggle to significantly outperform a "Dummy" baseline (which simply predicts that the next value will be the same as the last one) across various datasets such as ETTh1, ECL, and WTH.
This suggests that while the field has made strides in handling long-range dependencies in offline settings, the transition to true streaming intelligence—where models learn "online" forever without periodic resets—remains an open research frontier.
Limitations and Future Directions
The survey concludes that the "Transformer Era" is evolving to re-incorporate the efficiency of recurrence. However, several hurdles remain:
- Optimization: Moving toward Real-Time Recurrent Learning (RTRL) is computationally expensive but necessary for true online AI.
- Non-Stationarity: Current models struggle when the underlying rules of a data stream change over time.
- Hardware Awareness: Future work must focus on making recurrent associative scans as highly optimized for GPUs as current implementations of FlashAttention.
The goal is to develop systems capable of handling the potentially infinite data streams of the real world by combining the parallel training of Transformers with the constant-time inference of recurrent models.
Summary updated