Augmenting conformers with structured state space models for online speech recognition

Haozhe Shan, Albert Gu, Zhong Meng, Weiran Wang, Krzysztof Choromanski, Tara N. Sainath · DOI

Introduction

Automatic Speech Recognition (ASR) systems are increasingly deployed in real-time environments where low-latency processing is critical. In these "online" scenarios, models must process audio streams as they arrive, utilizing only "left context" (past information) without the benefit of looking ahead at future frames.

The current state-of-the-art architecture for ASR is the Conformer, which utilizes Multi-Head Self-Attention (MHSA) for global context and depthwise convolutions for local feature extraction. However, this architecture faces challenges in the online setting: MHSA becomes computationally expensive over long sequences, and standard convolutions are constrained by fixed, often narrow, temporal windows. This paper explores the integration of Structured State-Space models (S4)—specifically the S4D variant—into the Conformer framework to address these limitations.

Methodology

Structured State-Space models offer a compelling alternative for sequence modeling, capable of capturing long-range dependencies with the efficiency of a CNN during training and the recurrent properties of an RNN during inference. The researchers proposed three distinct architectural modifications to the Conformer's convolution module:

  1. Drop-in Replacement (DIR): The standard depthwise convolution layer is replaced entirely with an S4 layer, providing the module with theoretically infinite left context.
  2. Combination (COM): This approach stacks a small S4 layer with a very small local convolution (kernel size 2). This design allows the S4 component to manage long-term historical context while the convolution focuses on extracting immediate local acoustic patterns.
  3. Reparameterization (REP): The S4 framework is used to mathematically generate a finite-size convolution kernel. This creates a "structured" version of a standard convolution, benefiting from the S4 inductive bias.

Additionally, the study compared two initialization schemes for the S4D layers: S4D-Lin (utilizing complex numbers) and S4D-Real (utilizing only real numbers).

Experimental Setup

The proposed models were evaluated on the Librispeech dataset, a standard benchmark consisting of 970 hours of labeled English speech. Performance was measured using Word Error Rate (WER) across four standard splits: dev-clean, dev-other, test-clean, and test-other. The models were constrained to approximately 119 million parameters to ensure a fair comparison with baseline Conformer architectures.

Key Insights and Results

The Efficacy of the COM Approach

The Combination (COM) method emerged as the most effective strategy. The results suggest that S4 and local convolutions are highly complementary; while S4 excels at capturing the broad temporal "big picture," the convolution layer remains superior at processing fine-grained local acoustic features.

Parameter Efficiency and State Dimension

A surprising finding was that for online ASR, a very small state dimension ($N=2$ or $4$) for the S4 model yielded the best performance. While offline sequence modeling tasks typically benefit from much larger dimensions, streaming speech recognition appears to require only a compact "memory" to be effective. Furthermore, the S4D-Real scheme consistently outperformed the complex-valued S4D-Lin, offering a simpler and more computationally efficient path for implementation.

Performance Benchmarks

The best-performing "S4former" (using the COM approach) achieved significant improvements over the baseline:

  • Online Performance: The COM model reached a WER of 4.01% on test-clean and 8.53% on test-other, outperforming the baseline Conformer (4.15% / 8.70%) even after the baseline's convolution kernels were specifically tuned for online use.
  • Offline Performance: Although the primary focus was online recognition, the COM approach also proved competitive in offline settings, achieving 1.96% / 4.33% WER.

Inductive Bias

Even when S4 was restricted to acting as a finite convolution (the REP approach), it outperformed the standard Conformer. This indicates that the mathematical structure of S4 provides a superior inductive bias for learning speech patterns compared to vanilla convolution kernels.

Conclusion and Future Work

Integrating S4 models into the Conformer architecture significantly enhances online speech recognition performance without increasing parameter counts. The combination of long-range state-space modeling and local convolutions provides a robust framework for real-time ASR.

Future research may investigate the theoretical reasons why S4-generated kernels outperform standard ones for short-range dependencies. Additionally, expanding the evaluation to include more diverse datasets—featuring background noise, multiple speakers, or different languages—will be essential for validating the generalizability of the S4former. There is also significant potential in exploring the total replacement of MHSA layers with S4 variants to further optimize streaming efficiency.

Summary updated

BibTeX
@inproceedings{shan2024augmenting,
  author = {Haozhe Shan and Albert Gu and Zhong Meng and Weiran Wang and Krzysztof Choromanski and Tara N. Sainath},
  title = {{Augmenting conformers with structured state space models for online speech recognition}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=oGIfV1idqG},
}
Figure