NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data

Ziqiang Zhang, Sanyuan Chen, Long Zhou, Yu Wu, Shuo Ren, Shujie Liu, Zhuoyuan Yao, Xun Gong, Lirong Dai, Jinyu Li, Furu Wei

Abstract

How to boost speech pre-training with textual data is an unsolved problem due to the fact that speech and text are very different modalities with distinct characteristics. In this paper, we propose a cross-modal Speech and Language Model (SpeechLM) to explicitly align speech and text pre-training with a pre-defined unified discrete representation. Specifically, we introduce two alternative discrete tokenizers to bridge the speech and text modalities, including phoneme-unit and hidden-unit tokenizers, which can be trained using a small amount of paired speech-text data. Based on the trained tokenizers, we convert the unlabeled speech and text data into tokens of phoneme units or hidden units. The pre-training objective is designed to unify the speech and the text into the same discrete semantic space with a unified Transformer network. We evaluate SpeechLM on various spoken language processing tasks including speech recognition, speech translation, and universal representation evaluation framework SUPERB, demonstrating significant improvements on content-related tasks. Code and models are available at https://aka.ms/SpeechLM.

Introduction

Self-supervised learning (SSL) has revolutionized both Natural Language Processing (NLP) and Speech Processing. However, speech and text modalities are rarely integrated during pre-training because of their distinct characteristics: speech is continuous and noisy, while text is discrete and structured. Previous attempts to combine them often used separate encoders, leading to disjoint latent spaces and "modality interference."

Inspired by the Wernicke-Geschwind area of the human brain—where different cortices process speech and text but extract meaning in a shared area—the researchers proposed SpeechLM. This framework forces speech and text into a shared discrete semantic space, ensuring that the model understands that spoken and written words represent the same underlying concepts.

Methodology

SpeechLM utilizes a "well-defined interface" to bridge the gap between modalities by discretizing speech signals.

The Discrete Bridge

Instead of aligning raw audio with text embeddings, SpeechLM converts both into discrete tokens using two alternative tokenizers:

  • Phoneme-unit tokenizer: Maps speech and text into phonemes, the fundamental units of sound.
  • Hidden-unit tokenizer: Uses k-means clustering on speech features and a text-to-unit model to map text into the same cluster space.

Architecture and Random Swapping

The model consists of a Speech Transformer for audio processing and a Shared Transformer. Text data skips the initial stage and enters directly into the Shared Transformer.

The overall architecture of SpeechLM, illustrating the Speech Transformer, the Shared Transformer, and the random swapping mechanism for cross-modal alignment.

A critical component is the Random Swapping Mechanism. During training, the model randomly replaces parts of the speech representation with corresponding discrete unit embeddings. This forces the Shared Transformer to treat speech-derived and text-derived features as interchangeable, ensuring true cross-modal alignment.

Learning Objectives

The model is optimized via two primary objectives:

  • Unit-based Masked Language Modeling (UMLM): Predicting missing speech units from masked audio.
  • Unit-based Connectionist Temporal Classification (UCTC): Reconstructing original text sequences from masked unit sequences.

Experimental Results

SpeechLM was pre-trained on LibriLight (60,000 hours) and LibriSpeech (960 hours) audio, alongside the LibriSpeech LM corpus (40 million sentences).

Key Performance Gains

  • Automatic Speech Recognition (ASR): SpeechLM achieved a 26% relative reduction in Word Error Rate (WER) on the LibriSpeech "test-other" set compared to the HuBERT baseline.
  • Speech Translation: It outperformed larger models like SLAM in English-to-X translation tasks, demonstrating superior parameter efficiency.
  • Data Efficiency: The model's performance remained stable even when text data was reduced from 40 million to 40,000 sentences, suggesting rapid learning of the cross-modal mapping.

Visualizing Cross-Modal Alignment

The success of the shared semantic space is visually confirmed through t-SNE analysis of the model's internal representations across layers.

t-SNE visualizations of speech (blue) and text (pink) representations across different layers, showing how the modalities align as they progress through the Shared Transformer.

As shown above, speech and text representations are initially distinct (Layer 6) but become increasingly overlapping and aligned in the deeper layers of the Shared Transformer (Layer 12), indicating successful semantic unification.

Conclusion

SpeechLM effectively bridges the gap between speech and text by utilizing a shared discrete representation. The results indicate that while text data significantly aids content-related tasks, it may have a neutral or slightly negative impact on paralinguistic tasks (like emotion recognition) because text lacks stylistic nuance. Future work will explore preserving these paralinguistic features and extending the model to low-resource languages that lack extensive phoneme lexicons.

Summary updated

BibTeX
@article{zhang2024speechlm,
  author = {Ziqiang Zhang and Sanyuan Chen and Long Zhou and Yu Wu and Shuo Ren and Shujie Liu and Zhuoyuan Yao and Xun Gong and Lirong Dai and Jinyu Li and Furu Wei},
  title = {{SpeechLM: Enhanced Speech Pre-Training with Unpaired Textual Data}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2024},
  doi = {10.1109/taslp.2024.3379877},
}
Figure