An Exploration of Prompt Tuning on Generative Spoken Language Model for Speech Processing Tasks

Kai-Wei Chang, Wei-Cheng Tseng, Shang-Wen Li, Hung-yi Lee · DOI

Introduction

The rapid advancement of Self-Supervised Learning (SSL) models like HuBERT and wav2vec 2.0 has transformed speech processing. However, adapting these massive models to specific downstream tasks typically requires full fine-tuning, which involves updating millions of parameters for every new application. This approach is computationally expensive and storage-intensive.

Inspired by the success of prompt tuning in Natural Language Processing (NLP), this research introduces SpeechPrompt. This framework explores the feasibility of using a frozen Generative Spoken Language Model (GSLM) and training only a small set of "prompt" vectors to perform various speech processing tasks. By keeping the backbone model fixed, SpeechPrompt achieves high performance with up to 1,000x fewer trainable parameters than traditional fine-tuning.

The SpeechPrompt Framework

SpeechPrompt leverages the Generative Spoken Language Model (GSLM) architecture, which operates on discrete speech units rather than raw waveforms. The process involves several key stages:

  1. Discretization: Raw audio signals are converted into a sequence of discrete units using a pre-trained SSL model followed by a K-means quantizer. This effectively creates a "vocabulary" for speech.
  2. Unit Language Model (uLM): The core of the system is a fixed, pre-trained causal Transformer known as a unit Language Model. This model is trained to predict the next unit in a sequence.
  3. Deep Prompt Tuning: To adapt the frozen uLM to specific tasks, the researchers prepend trainable continuous vectors (prompts) to the input. Unlike shallow prompting, "Deep Prompt Tuning" involves inserting these trainable vectors into the attention mechanism of every layer within the Transformer.
  4. Verbalizer: For classification tasks, a verbalizer maps the uLM's predicted discrete units back into human-readable labels (e.g., mapping a sequence of units to the intent "Activate Lights").
Overview of the SpeechPrompt framework showing the conversion of audio to discrete units and the use of a frozen uLM with trainable prompts.

Experimental Setup and Tasks

The framework was evaluated using the SUPERB benchmark across four diverse speech tasks:

  • Keyword Spotting (KS): Identifying specific commands like "Yes" or "No".
  • Intent Classification (IC): Understanding the underlying goal of a spoken command (e.g., "turn on the lights").
  • Automatic Speech Recognition (ASR): Transcribing spoken language into text.
  • Slot Filling (SF): Extracting semantic information from utterances.

Performance and Efficiency

The results demonstrate that SpeechPrompt is exceptionally effective for classification tasks. On the Intent Classification (IC) task, the model achieved an accuracy of 98.40%, outperforming several fully fine-tuned baselines while using only 0.15 million trainable parameters—a fraction of the 151 million parameters required for full fine-tuning. Similarly, for Keyword Spotting (KS), it reached 95.16% accuracy.

A critical finding of the study is the necessity of "Deep Prompt Tuning." As shown in the experimental analysis, shallow prompting (Input PT) lacks the representational power to steer the model effectively for speech tasks. Deep Prompt Tuning significantly improves accuracy across different parameter scales.

Comparison of Input Prompt Tuning vs. Deep Prompt Tuning across different parameter scales, demonstrating the superiority of the deep approach.

Limitations and Future Directions

While SpeechPrompt excels at classification, it faces challenges with sequence generation tasks like ASR and Slot Filling. The researchers noted a high Character Error Rate (CER) in these areas, which they attribute to the "Curse of Long Sequences." Because the uLM is a decoder-only model, it is less efficient at processing the long sequences required for transcription compared to bi-directional models.

Future work will focus on improving label-to-unit mapping strategies and exploring ways to mitigate the sequence length issue. Despite these current limitations, SpeechPrompt proves that prompt tuning is a viable, highly efficient paradigm for the future of speech AI, enabling a single frozen model to handle multiple tasks with minimal overhead.

Summary updated

BibTeX
@inproceedings{chang2022exploration,
  author = {Kai-Wei Chang and Wei-Cheng Tseng and Shang-Wen Li and Hung-yi Lee},
  title = {{An Exploration of Prompt Tuning on Generative Spoken Language Model for Speech Processing Tasks}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10610},
}
Figure