Abstract
Speech enhancement (SE) is a fundamental task in audio signal processing, aimed at improving the quality and intelligibility of speech in noisy environments. While Transformer-based architectures have set new benchmarks by capturing long-range dependencies, their quadratic computational complexity poses significant challenges for real-time applications and long-sequence processing. This paper investigates the integration of Mamba, a linear-time state-space model (SSM), into speech enhancement frameworks. We introduce SEMamba, a novel framework that leverages Mamba's efficiency to achieve state-of-the-art performance with substantially reduced computational overhead. Our results demonstrate that SEMamba can reduce parameter counts by up to 60% and FLOPs by 66% compared to Transformer-based models while establishing a new state-of-the-art PESQ of 3.69 on the VoiceBank-DEMAND dataset.
Introduction
Speech enhancement serves as a critical front-end for various technologies, including hearing aids, telecommunications, and automatic speech recognition (ASR). The primary objective is to isolate the target speech signal from background noise. In recent years, the field has transitioned from traditional Recurrent Neural Networks (RNNs) to Transformer and Conformer architectures. These models excel at modeling the global context of an audio signal, which is essential for distinguishing speech from complex noise patterns.
However, the self-attention mechanism at the heart of Transformers scales quadratically ($O(N^2)$) with the sequence length. This complexity makes it difficult to deploy these models on resource-constrained edge devices or to process high-resolution, long-duration audio. While RNNs offer linear scaling, they often struggle to maintain long-range dependencies. The Mamba architecture, a selective State-Space Model, has recently emerged as a promising alternative, offering the modeling capacity of Transformers with the linear efficiency ($O(N)$) of RNNs. This study explores whether Mamba can effectively replace Transformers in SE tasks to provide a more efficient yet powerful solution.
Proposed Method: SEMamba
We propose two distinct architectures under the SEMamba framework to address different application requirements: SEMamba-basic and SEMamba-advanced.
SEMamba-basic
Designed for low-latency, real-time applications, SEMamba-basic is a causal, magnitude-only model. It utilizes a convolutional encoder to extract features from the noisy input, followed by two uni-directional Mamba blocks that process the sequence in a causal manner. A fully connected decoder then reconstructs the enhanced magnitude spectrum. This configuration prioritizes speed and minimal resource usage.
SEMamba-advanced
For high-performance, non-causal applications, we developed SEMamba-advanced. This model is built upon the MP-SENet architecture, which processes both magnitude and phase spectra to achieve superior reconstruction quality. It incorporates Time-Frequency Mamba blocks and a Bidirectional Mamba configuration.
To enable non-causal processing within the Mamba framework, we process the input sequence in both forward and reversed directions. The outputs from these two paths are concatenated and passed through a 1D-convolutional layer, allowing the model to capture context from both the past and the future frames of the audio signal.
Technical Enhancements
To further refine the output, we incorporate two key techniques:
- Consistency Loss (CL): This loss term ensures mathematical consistency in the time-frequency domain by minimizing the discrepancy between the predicted complex spectrum and the spectrum derived after an iSTFT/STFT cycle.
- Perceptual Contrast Stretching (PCS): This pre- and post-processing technique emphasizes frequency bands that are perceptually significant to human hearing, thereby boosting subjective quality scores like PESQ.
Experimental Setup
We evaluated our models on the VoiceBank-DEMAND dataset, a standard benchmark in the SE community. The training set consists of 11,572 utterances from 28 speakers, mixed with various noise types at four Signal-to-Noise Ratio (SNR) levels (0, 5, 10, and 15 dB). The test set includes 824 utterances from two distinct speakers, mixed at SNR levels of 2.5, 7.5, 12.5, and 17.5 dB.
Performance was measured using standard metrics: Perceptual Evaluation of Speech Quality (PESQ), Short-Time Objective Intelligibility (STOI), and the composite metrics CSIG (signal distortion), CBAK (background intrusiveness), and COVL (overall quality).
Results and Discussion
Efficiency and Performance
Our experiments reveal that Mamba-based models are significantly more efficient than their Transformer counterparts. In a causal setup, the Mamba-based model achieved a PESQ of 2.76—identical to a comparable Transformer model—but required 60.22% fewer parameters (3.60M vs. 9.05M) and 66.37% fewer FLOPs (0.76G vs. 2.26G). This confirms that Mamba can match Transformer performance while operating at a fraction of the computational cost.
State-of-the-Art Results
SEMamba-advanced, particularly when combined with Perceptual Contrast Stretching (PCS), achieved a PESQ of 3.69, setting a new state-of-the-art on the VoiceBank-DEMAND benchmark. Even without PCS, the bidirectional SEMamba-advanced outperformed the Conformer-based MP-SENet (3.52 vs. 3.50 PESQ) while utilizing 11.88% fewer FLOPs.
Impact on Downstream Tasks
Beyond objective speech quality metrics, we evaluated SEMamba as a pre-processor for OpenAI’s Whisper ASR model. The integration of SEMamba led to a relative reduction in Word Error Rate (WER) of over 12% compared to the noisy baseline, demonstrating that the framework significantly improves "machine hearing" as well as human intelligibility.
Conclusion
This investigation demonstrates that Mamba is a highly effective and efficient alternative to Transformers for speech enhancement. By providing linear scaling and reduced computational complexity without sacrificing modeling power, SEMamba represents a significant step toward high-performance SE on resource-constrained devices. Future work will explore the application of Mamba in other speech generation tasks, such as text-to-speech and voice conversion, where long-range dependency modeling is equally critical.
Summary updated