LLaSM: Large Language and Speech Model

Yu Shu, Siwei Dong, Guangyao Chen, Wenhao Huang, Ruihua Zhang, Daochen Shi, Qiqi Xiang, Yemin ShiarXiv 2023

Abstract: Multi-modal large language models have garnered significant interest recently. Though, most of the works focus on vision-language multi-modal models providing strong capabilities in following vision-and-language instructions. However, we claim that speech is also an important modality through which humans interact with the world. Hence, it is crucial for a general-purpose assistant to be able to follow multi-modal speech-and-language instructions. In this work, we propose Large Language and Speech Model (LLaSM). LLaSM is an end-to-end trained large multi-modal speech-language model with cross-modal conversational abilities, capable of following speech-and-language instructions. Our early experiments show that LLaSM demonstrates a more convenient and natural way for humans to interact with artificial intelligence. Specifically, we also release a large Speech Instruction Following dataset LLaSM-Audio-Instructions.

Introduction

While Large Language Models (LLMs) have mastered text and are making significant strides in vision, speech remains a secondary citizen in the AI interface. Most current systems use a "cascading" approach: an Automatic Speech Recognition (ASR) model transcribes voice to text, which is then fed into an LLM.

This approach has two major flaws. First, it leads to significant information loss, as speech contains paralinguistic cues—like intonation, emotion, and emphasis—that are lost during transcription. Second, it suffers from error propagation; if the ASR makes a mistake, the LLM has no way to "hear" the original audio to correct it. LLaSM seeks a more resource-friendly, end-to-end way to bridge the gap between hearing and understanding.

Methodology

LLaSM adopts a modular architecture inspired by the LLaVA (Large Language-and-Vision Assistant) framework, designed to align speech features with a text-based LLM backbone.

LLaSM Architecture Overview

Architectural Components

  • Speech Encoder: The model utilizes Whisper, a robust, pre-trained speech model, to convert raw audio into high-dimensional embeddings.
  • Modal Adaptor: This bridge layer is responsible for mapping speech embeddings into the same latent space as the LLM’s text embeddings, allowing for cross-modal reasoning.
  • LLM Backbone: The researchers utilized Chinese-LLAMA2-7B, providing a strong foundation for complex bilingual (English and Chinese) reasoning and instruction following.

Training Strategy

The training process is divided into two distinct stages to ensure efficient modality alignment:

  1. Modality Adaptation (Pre-training): During this phase, both the speech encoder and the LLM are frozen. Only the modal adaptor is trained using standard ASR datasets. This teaches the model the fundamental correspondence between audio signals and text meanings.
  2. Cross-modal Instruction Fine-tuning: The speech encoder remains frozen to save computational resources, but the adaptor and the LLM are fine-tuned together on complex, multi-turn conversational data. This enables the model to move beyond simple transcription to actual instruction following.

Datasets

The paper utilizes a mix of existing ASR data and a massive new instruction-following dataset created by the authors:

  • Pre-training Data: Public ASR datasets including Aishell, LibriSpeech, Magicdata, and Primewords were used for initial alignment.
  • LLaSM-Audio-Instructions: The authors released a large-scale dataset containing 199k conversations and 508k samples. This was generated by taking high-quality text dialogues (from WizardLM, ShareGPT, and GPT-4-LLM) and converting the human prompts into speech using Microsoft Azure’s Text-to-Speech (TTS) API. It is currently the largest Chinese and English speech-text instruction dataset of its kind.

Results and Key Insights

LLaSM demonstrates an impressive ability to handle interleaved multi-modality, where speech and text embeddings are concatenated in sequence. This mimics natural human interaction, where one might combine verbal instructions with written context.

Qualitative examples of LLaSM following multi-turn speech instructions

Key observations from the experimental results include:

  • Bilingual Fluidity: The model shows a seamless ability to switch between Chinese and English in a speech-based context, inherited from its underlying LLM foundation.
  • Efficiency: By keeping the heavy-duty speech encoder frozen, the authors achieved sophisticated multi-modal capabilities with significantly reduced computational overhead.
  • Direct Processing: Unlike cascading models, LLaSM processes speech features directly, improving execution efficiency and setting the stage for capturing nuanced vocal information.

Conclusion and Future Work

While LLaSM represents a significant step forward, the authors note that the use of synthetic TTS data for training may limit robustness against real-world human speech nuances like stutters or background noise. Future work will focus on incorporating more diverse, real-world audio and potentially integrating a visual encoder to create a truly general-purpose assistant that can see, hear, and speak simultaneously.

Summary updated

BibTeX
@misc{shu2023llasm,
  author = {Yu Shu and Siwei Dong and Guangyao Chen and Wenhao Huang and Ruihua Zhang and Daochen Shi and Qiqi Xiang and Yemin Shi},
  title = {{LLaSM: Large Language and Speech Model}},
  year = {2023},
  eprint = {2308.15930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.15930},
}
Figure