Abstract
Recent advances in state-space model architectures have shown great promise for efficient sequence modeling, but challenges remain in balancing computational efficiency with model expressiveness. We propose the Flash STU architecture, a hybrid model that interleaves spectral state space model layers with sliding window attention, enabling scalability to billions of parameters for language modeling while maintaining a near-linear time complexity. We evaluate the Flash STU and its variants on diverse sequence prediction tasks, including linear dynamical systems, robotics control, and language modeling. We find that, given a fixed parameter budget, the Flash STU architecture consistently outperforms the Transformer and other leading state-space models such as S4 and Mamba-2.
Introduction
The search for an optimal sequence modeling architecture involves a trade-off between computational efficiency and expressiveness. While Transformers provide high expressiveness, their quadratic complexity ($O(L^2)$) limits their utility for long sequences. Conversely, State Space Models (SSMs) like S4 and Mamba offer linear scaling ($O(L)$) but often struggle with tasks requiring precise associative recall. Furthermore, the non-convex loss landscapes of many SSMs complicate optimization. Flash STU addresses these challenges by combining theoretically-grounded spectral filters with local attention mechanisms.
Methods: The Spectral Transform Unit
The core of our architecture is the Spectral Transform Unit (STU). Unlike standard SSMs that learn transition parameters, the STU utilizes fixed convolutional filters derived from the eigenvectors of a Hankel matrix. This approach ensures stable capture of past input contributions.
To enhance efficiency, we introduce STU-T, which uses a tensordot approximation to reduce parameter count. The full Flash STU model is a hybrid architecture that interleaves STU layers with Sliding Window Attention (SWA), leveraging spectral filtering for long-range context and SWA for high-precision local retrieval. Hardware efficiency is achieved through Flash FFT and custom Triton kernels.
Experimental Results
We evaluated Flash STU across synthetic, robotics, and language modeling domains.
Synthetic and Robotics Tasks
In synthetic tasks such as Linear Dynamical Systems (LDS), Flash STU demonstrated superior convergence and lower error rates compared to existing models.
In robotics control tasks (MuJoCo), STU-T achieved a validation loss of 0.0092 on Ant-v1, outperforming Mamba-2 (0.0139) and Transformers (0.0237).
Language Modeling
At the 500M parameter scale, Flash STU outperformed Mamba-2 Hybrid and standard Transformers on benchmarks including MMLU and HellaSwag. The architecture successfully scales to 2 billion parameters while maintaining stability.
Discussion and Future Work
Flash STU's success highlights the effectiveness of fixed, mathematically optimal filters. This design leads to a smoother optimization landscape, reducing sensitivity to hyperparameters. While the model is asymptotically faster, further hardware-level optimization is needed to fully exploit Tensor Cores to the same extent as Transformers. Future work will explore more effective integration of Mixture-of-Experts (MoE) and adaptive filtering techniques.
Summary updated