Skip to main content
QUICK REVIEW

[Paper Review] On decoder-only architecture for speech-to-text and large language model integration

Jian Wu, Yashesh Gaur|arXiv (Cornell University)|Jul 8, 2023
Speech Recognition and SynthesisComputer Science3 citations
TL;DR

This paper proposes Speech-LLaMA, a novel end-to-end integration of speech signals into decoder-only large language models (LLMs) by compressing acoustic features via Connectionist Temporal Classification (CTC) and mapping them into the LLM's semantic space. The method achieves state-of-the-art performance on multilingual speech-to-text translation, outperforming strong baselines and demonstrating that decoder-only architectures can match encoder-decoder models with 40% fewer parameters.

ABSTRACT

Large language models (LLMs) have achieved remarkable success in the field of natural language processing, enabling better human-computer interaction using natural language. However, the seamless integration of speech signals into LLMs has not been explored well. The "decoder-only" architecture has also not been well studied for speech processing tasks. In this research, we introduce Speech-LLaMA, a novel approach that effectively incorporates acoustic information into text-based large language models. Our method leverages Connectionist Temporal Classification and a simple audio encoder to map the compressed acoustic features to the continuous semantic space of the LLM. In addition, we further probe the decoder-only architecture for speech-to-text tasks by training a smaller scale randomly initialized speech-LLaMA model from speech-text paired data alone. We conduct experiments on multilingual speech-to-text translation tasks and demonstrate a significant improvement over strong baselines, highlighting the potential advantages of decoder-only models for speech-to-text conversion.

Motivation & Objective

  • To enable seamless integration of speech signals into pre-trained text-based large language models (LLMs) for end-to-end speech-to-text tasks.
  • To investigate the feasibility and effectiveness of decoder-only architectures for speech-to-text processing, challenging the dominance of encoder-decoder designs.
  • To minimize integration cost by introducing only a small number of learnable parameters through a lightweight audio encoder and compressor.
  • To explore practical design choices—such as acoustic compression, attention masking, and LoRA fine-tuning—that enhance model performance.
  • To demonstrate that a randomly initialized decoder-only model can achieve competitive performance with significantly lower parameter count compared to standard seq2seq baselines.

Proposed method

  • A pre-trained LLaMA-7B model serves as the backbone LLM, with acoustic features mapped into its semantic space via a learnable audio encoder.
  • Acoustic features are first compressed using a CTC-based compressor, which reduces sequence length while preserving relevant information.
  • The compressed features are embedded into the LLM’s token space using a learnable audio encoder, enabling joint conditioning on speech and text.
  • A non-causal attention mask is applied to allow the LLM to attend to future acoustic tokens, improving representation learning.
  • Low-rank adaptation (LoRA) is used to fine-tune the LLM with only 2.1M additional parameters, minimizing training cost.
  • The model is trained end-to-end on speech-text paired data, with no need for discrete speech tokens or cascaded ASR systems.
Fig. 1 : High-level architecture of our proposed approach with LLM. The green blocks indicate the part of the LLM. In this work, we only learn parameters in the “Audio Encoder”, keeping everything else frozen.
Fig. 1 : High-level architecture of our proposed approach with LLM. The green blocks indicate the part of the LLM. In this work, we only learn parameters in the “Audio Encoder”, keeping everything else frozen.

Experimental results

Research questions

  • RQ1Can a decoder-only LLM architecture effectively integrate raw acoustic features for speech-to-text tasks without requiring an encoder-decoder structure?
  • RQ2How does the choice of acoustic compression method (e.g., CTC vs. convolutional) affect downstream translation performance?
  • RQ3What is the impact of attention mask design (causal vs. non-causal) on modeling speech representations in a decoder-only setup?
  • RQ4To what extent can LoRA fine-tuning improve performance with minimal parameter updates?
  • RQ5Can a randomly initialized decoder-only model achieve competitive performance compared to a strong seq2seq baseline, and is it more parameter-efficient?

Key findings

  • The proposed Speech-LLaMA model achieves a significant improvement over strong baselines on multilingual speech translation, with an average BLEU score gain of 1.5–1.6 points when using non-causal attention masks and LoRA fine-tuning.
  • Using a CTC compressor with frame-averaging strategy yields 1.5 BLEU points higher performance than blank-removal, due to better robustness to compression errors.
  • Applying a non-causal attention mask over causal masking leads to a 1.5 BLEU point gain in the blank-removal strategy and 0.7 BLEU point gain in frame-averaging, indicating improved representation learning.
  • LoRA fine-tuning with only 2.1M additional parameters increases performance by 1.5–1.6 BLEU points, demonstrating high efficiency in adaptation.
  • A randomly initialized decoder-only model achieves 0.4 BLEU points lower performance than the seq2seq baseline but uses 40% fewer parameters, confirming its parameter efficiency.
  • Preliminary results suggest that using source language transcriptions during CTC compressor pre-training could further improve performance, indicating a promising direction for future work.
Fig. 2 : The architecture of the decoder-only model for the from-scratch training. We use $\langle\text{SOS}\rangle$ token to indicate the starting of the text generation.
Fig. 2 : The architecture of the decoder-only model for the from-scratch training. We use $\langle\text{SOS}\rangle$ token to indicate the starting of the text generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.