SLAM-LLM: A Modular, Open-Source Multimodal Large Language Model Framework and Best Practice for Speech, Language, Audio and Music Processing
Reading guide · Based on sections of the original paper
Why read this
Read it if you are building LLM-based ASR, captioning or speech translation and want tested component choices, training recipes and rough compute costs instead of adapting a vision-first toolkit.
What the authors found
- On LibriSpeech-960, the authors' best ASR system combines a fine-tuned HuBERT X-Large encoder with Vicuna-7B and reaches 1.84/3.39% WER on test-clean/test-other. They report relative reductions of 28.7% and 47.4% over a Whisper-large encoder. Without an external LM, this beats specialist systems such as Zipformer (2.0/4.4) as well as Whisper-large-v3 (2.0/3.9). IV-A Automatic Speech Recognition (ASR)
- For contextual-biasing ASR on LibriSpeech, the system uses a CTC-fine-tuned WavLM encoder with Vicuna-7B. With 100-word biasing lists, test-clean WER/B-WER falls from a 2.11/10.02% baseline to 1.27/3.67%. Gains shrink as lists grow to 2,000 words. At N=1000, the authors report beating prior neural contextual ASR systems such as DB-NNLM (2.14/6.70 versus 1.33/4.16). IV-B 3 Contextual Biasing Speech Recognition
- For speech translation, the setup uses a frozen Whisper encoder and Qwen2-7B, trains only a Q-Former projector, and decodes in an ASR-then-translate chain-of-thought format. It averages 35.7 BLEU on CoVoST-2 En→De/Ja/Zh, versus 34.5 for Qwen2-Audio. There are exceptions: on German it trails SeamlessM4T-V2 (28.7 vs 37.0) and, in zero-shot MuST-C evaluation, Qwen2-Audio (18.3 vs 22.4). IV-D Speech-to-Text Translation (S2TT)
Main limitation
The ASR advantage depends on the comparison. Self-supervised systems paired with in-domain LMs still beat the authors' model on test-other (for example, HuBERT-x-large + LM scores 2.9 versus 3.4). The authors suggest domain-specific LLM fine-tuning might close this gap but did not test it. IV-A Automatic Speech Recognition (ASR)
Where to start
IV-A Automatic Speech Recognition (ASR) · This section has the encoder-by-LLM WER grids, the finding that chat LLMs beat base LLMs, the low-resource and code-switching results (including the Indonesian exception), and the reported compute cost: about 4 hours on 4×A100 to train a projector-only model on 1,000 hours of speech.
Abstract
The recent surge in open-source Multimodal Large Language Models (MLLM) frameworks, such as LLaVA, provides a convenient kickoff for artificial intelligence developers and researchers. However, most of the MLLM frameworks take vision as the main input modality, and provide limited in-depth support for the modality of speech, audio, and music. This situation hinders the development of audio-language models, and forces researchers to spend a lot of effort on code writing and hyperparameter tuning. We present SLAM-LLM, an open-source deep learning framework designed to train customized MLLMs, focused on speech, language, audio, and music processing. SLAM-LLM provides a modular configuration of different encoders, projectors, LLMs, and parameter-efficient fine-tuning plugins. SLAM-LLM also includes detailed training and inference recipes for mainstream tasks, along with high-performance checkpoints like LLM-based Automatic Speech Recognition (ASR), Automated Audio Captioning (AAC), and Music Captioning (MC). Some of these recipes have already reached or are nearing state-of-the-art performance, and some relevant techniques have also been accepted by academic papers. We hope SLAM-LLM will accelerate iteration, development, data engineering, and model training for researchers. We are committed to continually pushing forward audio-based MLLMs through this open-source framework, and call on the community to contribute to the LLM-based speech, audio and music processing.