Course project · CS 585, Bilkent · Fall 2025-26

Mamba HiFi-GAN

Integrating Bidirectional Mamba into HiFi-GAN for Long-Range Speech Synthesis

Hüseyin Karaca, Rabia Ela Ünlü, Emre Can Yayla

Bilkent University

The TTS pipeline with the HiFi-GAN generator's four upsampling stages; inside one stage, a BiMamba branch and the MRF convolutions run on the same features and a learnable gate mixes them.
upsampled features, stage i BiMamba global context MRF local context × × αi = σ(wi) αi 1 − αi wi = 0 at init + to stage i + 1
At every upsampling stage, one learnable gate mixes a BiMamba branch with HiFi-GAN's MRF convolutions.

Abstract

High-fidelity waveform generation requires modeling both fine-grained periodic texture and long-range prosodic structure. While HiFi-GAN achieves strong results through multi-receptive field dilated convolutions, its bounded receptive field limits global temporal modeling, potentially causing inconsistencies in longer utterances. To address this without the quadratic computational cost of Transformers, we integrate Mamba, a selective State Space Model (SSM) with linear complexity, into the HiFi-GAN generator. We introduce a Bidirectional Mamba block to capture global context in non-causal synthesis and evaluate multiple architectural configurations through a systematic ablation study. Our best hybrid architecture, which employs an adaptive gated fusion mechanism to dynamically balance convolutional texture modeling and SSM-based global structure, achieves a 15% improvement in perceptual quality (Feature Matching Loss) over the baseline while maintaining competitive spectral fidelity.

Method

Each upsampling stage runs the Bidirectional Mamba block beside the MRF module, on the same features. A learnable scalar wi per stage mixes the two:

αi = σ(wi),   y(i) = αi ΦMamba + (1 − αi) ΨCNN

wi starts at 0, an even split, and training sets the balance at each resolution.

Results

15% lower feature-matching loss than HiFi-GAN

ModelFeat. match ↓L1 spec ↓
Baseline (HiFi-GAN)0.07360.2975
Mamba Only (No Conv)0.12910.3307
Hybrid 2 (Summation Fusion)0.07110.2991
Hybrid 1 (Mamba64 Gated)0.06230.2806
Hybrid 1 (Mamba128 Gated)0.07710.2587
Mamba64 Gated gives the lowest feature-matching loss; Mamba128 Gated gives the lowest L1 loss, 13% below the baseline.

Gated fusion leads all 11 alternative designs

0.00 0.05 0.10 0.15 0.20 Feature matching loss ↓ Hybrid 1 Gated (Ours) Hybrid 1 Gated (Ours): 0.0623 0.0623 Global Context Broadcasting Global Context Broadcasting: 0.0699 0.0699 HiFi-GAN Baseline HiFi-GAN Baseline: 0.0736 0.0736 Dual-Path Decoupled Dual-Path Decoupled: 0.0857 0.0857 FiLM Modulation FiLM Modulation: 0.0864 0.0864 Late-Stage Mamba Late-Stage Mamba: 0.0897 0.0897 Post-Net Refinement Post-Net Refinement: 0.0958 0.0958 Bottleneck Mamba Bottleneck Mamba: 0.0963 0.0963 Spectrogram Refinement (Pre-Net) Spectrogram Refinement (Pre-Net): 0.1450 0.1450 Sequential Progressive Sequential Progressive: 0.1632 0.1632 Multi-Rate Hybrid Multi-Rate Hybrid: 0.1695 0.1695 Concatenation Fusion Concatenation Fusion: 0.1728 0.1728 Mamba-SE (Squeeze-Excite) Mamba-SE (Squeeze-Excite): 0.1922 0.1922 HiFi-GAN baseline
0.00 0.05 0.10 0.15 0.20 Feature matching loss ↓ Hybrid 1 Gated (Ours) Hybrid 1 Gated (Ours): 0.0623 0.0623 Global Context Broadcasting Global Context Broadcasting: 0.0699 0.0699 HiFi-GAN Baseline HiFi-GAN Baseline: 0.0736 0.0736 Dual-Path Decoupled Dual-Path Decoupled: 0.0857 0.0857 FiLM Modulation FiLM Modulation: 0.0864 0.0864 Late-Stage Mamba Late-Stage Mamba: 0.0897 0.0897 Post-Net Refinement Post-Net Refinement: 0.0958 0.0958 Bottleneck Mamba Bottleneck Mamba: 0.0963 0.0963 Spectrogram Refinement (Pre-Net) Spectrogram Refinement (Pre-Net): 0.1450 0.1450 Sequential Progressive Sequential Progressive: 0.1632 0.1632 Multi-Rate Hybrid Multi-Rate Hybrid: 0.1695 0.1695 Concatenation Fusion Concatenation Fusion: 0.1728 0.1728 Mamba-SE (Squeeze-Excite) Mamba-SE (Squeeze-Excite): 0.1922 0.1922 HiFi-GAN baseline
The closest alternative, Global Context Broadcasting, reaches 0.0699 against gated fusion's 0.0623.

Samples

One LJSpeech utterance, reconstructed from its mel-spectrogram by each model.

Ground truth
Baseline (HiFi-GAN)
Hybrid 2 (Summation Fusion)
Hybrid 1 (Mamba64 Gated)
Mamba Only (No Conv)