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

Token2vec: A Joint Self-Supervised Pre-Training Framework Using Unpaired Speech and Text

Xianghu Yue, Junyi Ao, Xiaoxue Gao, Haizhou Li

Self-supervised learning (SSL) has revolutionized how AI understands both speech (think wav2vec 2.0) and text (think BERT). However, these two worlds are usually treated as separate islands. While humans learn to speak and read simultaneously, AI models typically require expensive, manually transcribed "paired" data to learn the relationship between the two.

In their paper "token2vec: A Joint Self-Supervised Pre-training Framework Using Unpaired Speech and Text," researchers from the National University of Singapore and the Chinese University of Hong Kong propose a way to bridge this divide using only raw audio and raw text.

TL;DR

Token2vec is a framework that jointly pre-trains a single model on speech and text without requiring any transcriptions. By converting both audio and text into a shared "language" of discrete phoneme-like tokens, the model achieves up to a 17.7% relative improvement in speech recognition accuracy over speech-only baselines.

What Problem Does This Paper Address?

The primary challenge in joint speech-text training is the modality mismatch. Speech is a continuous stream of audio signals, while text is a sequence of discrete symbols (letters or words). Furthermore, there is a length mismatch: a one-second audio clip might contain hundreds of frames, but only a handful of phonemes or words.

Existing solutions often rely on paired data (audio + its transcript) to align these modalities. However, unlabeled audio and text are far more abundant. The authors ask: Can we create a unified representation that benefits from both modalities using only unpaired data?

Methods

The core innovation of token2vec lies in its "modality-specific tokenizers" that force speech and text into a shared format before they ever reach the main neural network.

  1. Speech Discretization: Instead of feeding raw audio, the authors use a pre-trained HuBERT model and k-means clustering to quantize continuous audio into 500 discrete "speech tokens." This turns audio into something resembling a sequence of "pseudo-words."
  2. Text Phonemization: To make text look more like speech, the authors don't use words. Instead, they use a lexicon to convert text into phoneme sequences. Since speech tokens are essentially noisy representations of phonemes, this puts both modalities in a similar semantic space.
  3. Length Matching via Up-sampling: To solve the length mismatch, the authors "stretch" the text. They randomly repeat phonemes in the text sequences based on real-world phoneme duration statistics. This ensures that a "text" sentence has a similar temporal footprint to a "speech" sentence.
  4. Unified Training: Both the speech tokens and the up-sampled phonemes are fed into a shared modality-agnostic Transformer encoder. The model is trained using token-level Masked Language Modeling (tMLM)—essentially playing "fill-in-the-blanks" for both audio tokens and phonemes.

Datasets

  • Pre-training: The model was trained on the LibriSpeech dataset (960 hours of unlabeled audio) and a subset of the LibriSpeech LM corpus (unpaired text).
  • Evaluation:
    • ASR (Speech Recognition): Tested on Libri-Light (1h, 10h) and LibriSpeech (100h) benchmarks.
  • Non-ASR: Evaluated on the Fluent Speech Command (FSC) dataset for spoken intent classification to test the model's generalizability.

Key Insights and Ideas

  • Phonemes are the Universal Bridge: The "aha moment" here is that speech tokens (from HuBERT) and phonemes (from text) are functionally similar. By treating speech as a "noisy language" and text as "clean phonemes," the Transformer can learn universal patterns that apply to both.
  • The Importance of Duration: The ablation studies showed that simply feeding phonemes into the model didn't help much. The random repetition (up-sampling) was crucial. It teaches the model the "rhythm" of speech, making the text data a much better proxy for audio.
  • Embedding Convergence: Using t-SNE visualizations, the authors showed that during training, the embeddings for speech and text tokens actually begin to overlap. This proves the model is learning a truly joint representation where a spoken "ah" and a written "ah" occupy the same conceptual space.

Key Results

  • Superior ASR Performance: On the 1-hour "low-resource" setup, token2vec achieved a Word Error Rate (WER) of 20.0%, significantly outperforming the speech-only HuBERT baseline (20.9%) and wav2vec 2.0 (24.5%).
  • Relative Gains: Across various setups, adding unpaired text led to a 9.2% to 17.7% relative reduction in WER compared to training on speech alone.
  • Generalization: On the spoken intent classification task (FSC), token2vec reached 96.8% accuracy, surpassing standard HuBERT (95.7%) and wav2vec 2.0 (92.4%), proving the learned representations are useful beyond just transcription.

Limitations and Future Work

  • Lexicon Dependency: The current method requires a word-to-phoneme lexicon. This might limit its use for "unwritten" languages or extremely low-resource dialects where such lexicons don't exist.
  • Simple Up-sampling: While random repetition worked, it's a heuristic. Future work could involve more sophisticated duration modeling to better mimic the nuances of human speech.
  • Internal Alignment: The authors noted they want to further investigate the specific alignment mechanisms inside the Transformer to see exactly how it maps the two modalities together.

Summary updated

BibTeX
@inproceedings{yue2023token,
  author = {Xianghu Yue and Junyi Ao and Xiaoxue Gao and Haizhou Li},
  title = {{Token2vec: A Joint Self-Supervised Pre-Training Framework Using Unpaired Speech and Text}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10096923},
}
Figure