Let SSMs be ConvNets: State-space Modeling with Optimal Tensor Contractions

Yan Ru Pei

Introduction

State-Space Models (SSMs), such as S4 and Mamba, have recently emerged as powerful alternatives to Transformers for long-sequence modeling. Despite their success, most current SSMs adhere to a rigid architectural "recipe," utilizing uniform blocks throughout the network and relying almost exclusively on depthwise-separable structures. This "one-size-fits-all" approach often sacrifices potential performance and efficiency gains.

In this work, the authors introduce Centaurus, a framework that reimagines SSMs as tensor networks. By drawing inspiration from classical Computer Vision architectures like ResNet and MobileNet—which utilize diverse block types such as bottlenecks and grouped convolutions—Centaurus enables the design of heterogeneous SSM architectures. This shift allows for systematic optimization of training efficiency through the selection of optimal tensor contraction paths.

Methods: SSMs as Tensor Networks

The core innovation of Centaurus is the treatment of SSM operations as generalized tensor contractions (often expressed via einsum). This perspective allows the authors to move beyond simple depthwise structures and introduce more complex connectivity patterns:

  1. Generalized SSM Blocks: The framework introduces "Full" SSMs (dense connectivity), "Grouped" SSMs, and "Bottleneck" SSMs. These blocks allow the network to evolve its structure as it goes deeper, mimicking the efficiency of modern ConvNets.
  2. Optimal Contraction Orders: Training complex, non-depthwise connections can be computationally prohibitive. Centaurus provides a systematic method to determine the optimal mathematical order for multiplying (contracting) tensors. For instance, the framework decides whether to project the input first or pre-compute a "full kernel" based on the specific dimensions of the input, weights, and batch size.
  3. Heterogeneous Architecture: Instead of repeating a single block type, a Centaurus network is designed to be dynamic. It might utilize "Full" SSM blocks for dense feature extraction in shallow layers and transition to "Bottleneck" or "Pointwise" blocks in deeper layers where channel counts are higher.
  4. Frequency Domain Training: To maintain $O(L \log L)$ complexity during training, Centaurus performs these contractions in the frequency domain using Fast Fourier Transforms (FFTs). Crucially, the model remains a linear recurrence during inference, ensuring $O(L)$ online performance.

Experimental Evaluation

The authors evaluated Centaurus across several demanding audio processing benchmarks, demonstrating the power of heterogeneous SSM design.

Keyword Spotting (KWS)

On the Google Speech Commands dataset (SC35 and SC10), the hybrid Centaurus model outperformed homogeneous SSMs like S4D and S5. It achieved higher accuracy while requiring significantly fewer FLOPs, proving that structural flexibility leads to better efficiency-performance trade-offs.

Speech Enhancement (Denoising)

On the VoiceBank + DEMAND (VB-DMD) benchmark for real-time raw waveform denoising, Centaurus achieved a PESQ score of 3.25. This result outperformed much larger models like FRCRN while using approximately 13x fewer parameters and 260x fewer FLOPs per second.

Automatic Speech Recognition (ASR)

Centaurus provides the first competitive, fully state-space-based ASR model. Tested on LibriSpeech (960h) and Multilingual LibriSpeech (MLS) in a streaming configuration, it achieved a Word Error Rate (WER) of 4.4/10.2 (test-clean/other). While slightly behind the best offline Conformers, it is highly competitive for a streaming, attention-free model, outperforming standard streaming Transformers.

Key Insights

  • SSMs as Global ConvNets: The paper reinforces the concept that SSMs are essentially convolutions with global receptive fields. By expressing them as tensor networks, the authors bridge the gap between the "sequence-mixing" of SSMs and the "channel-mixing" of CNNs.
  • The Importance of Contraction Path: The "natural" order of operations (project $\rightarrow$ evolve $\rightarrow$ project) is not always the most efficient. Centaurus shows that if the internal state is small relative to the batch size, pre-computing a massive kernel can actually be faster.
  • Attention-Free Scaling: Centaurus proves that competitive results on complex tasks like LibriSpeech can be achieved without surrogate attention or LSTMs, using purely linear state-space models.

Limitations and Future Work

While Centaurus offers a powerful new framework, some challenges remain. Currently, some contraction paths require semi-manual optimization, and the authors are working to automate this via libraries like opt_einsum. Additionally, the current implementation focuses on Linear Time-Invariant (LTI) systems; integrating data-dependent gating (similar to Mamba's S6) is a priority for future research. Finally, while this work focused on audio, the authors plan to expand testing to Computer Vision and Large Language Modeling (LLM) tasks.

Summary updated

BibTeX
@inproceedings{pei2025let,
  author = {Yan Ru Pei},
  title = {{Let SSMs be ConvNets: State-space Modeling with Optimal Tensor Contractions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=PkpNRmBZ32},
}
Figure