Speech Slytherin: Examining the Performance and Efficiency of Mamba for Speech Separation, Recognition, and Synthesis

Xilin Jiang, Yinghao Aaron Li, Adrian Nicolas Florea, Cong Han, Nima Mesgarani
7/13/2024
eess.AScs.LGcs.SD

Official code: xi-j/Mamba-TasNet (117 stars, GPL-3.0, last commit 2024-10-01). 1 more implementation below.

Abstract

It is too early to conclude that Mamba is a better alternative to transformers for speech before comparing Mamba with transformers in terms of both performance and efficiency in multiple speech-related tasks. To reach this conclusion, we propose and evaluate three models for three tasks: Mamba-TasNet for speech separation, ConMamba for speech recognition, and VALL-M for speech synthesis. We compare them with transformers of similar sizes in performance, memory, and speed. Our Mamba or Mamba-transformer hybrid models show comparable or higher performance than their transformer counterparts: Sepformer, Conformer, and VALL-E. They are more efficient than transformers in memory and speed for speech longer than a threshold duration, inversely related to the resolution of a speech token. Mamba for separation is the most efficient, and Mamba for recognition is the least. Further, we show that Mamba is not more efficient than transformer for speech shorter than the threshold duration and performs worse in models that require joint modeling of text and speech, such as cross or masked attention of two inputs. Therefore, we argue that the superiority of Mamba or transformer depends on particular problems and models. Code available at https://github.com/xi-j/Mamba-TasNet and https://github.com/xi-j/Mamba-ASR.

View on arXivView PDF

Code Implementations(2)

xi-j/Mamba-TasNetOfficial100%
GPL-3.0
1177Python, Jupyter NotebookApr 4, 20242 years agoGPL-3.0
xi-j/Mamba-ASROfficial100%
GPL-3.0

ConMamba for Automatic Speech Recognition

10510PythonJul 11, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{jiang2024speech,
  title  = {Speech Slytherin: Examining the Performance and Efficiency of Mamba for Speech Separation, Recognition, and Synthesis},
  author = {Xilin Jiang and Yinghao Aaron Li and Adrian Nicolas Florea and Cong Han and Nima Mesgarani},
  year   = {2024},
  eprint = {2407.09732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.09732v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.09732.svg)](https://codeofpaper.com/paper/2407.09732)

Discussion