Self-supervised learning (SSL) has transformed speech processing, but most popular methods like wav2vec 2.0 and HuBERT share a common limitation: they only pre-train the encoder. While this works wonders for discriminative tasks, generative tasks like speech translation or sequence-to-sequence ASR often require a decoder, which is typically left to be initialized randomly.
In their paper, "Wav2Seq: Pre-training Speech-to-Text Encoder-Decoder Models Using Pseudo Languages," Felix Wu and colleagues from ASAPP, CMU, and Cornell introduce a clever way to bring the decoder into the pre-training fold.
TL;DR
Wav2Seq is the first self-supervised framework that jointly pre-trains both the encoder and decoder of speech models by inventing a "pseudo language" from raw audio. By training the model to transcribe audio into these induced pseudo-subwords, it significantly boosts performance in low-resource settings for ASR, translation, and named entity recognition.
What Problem Does This Paper Address?
In the world of NLP, models like BART and T5 have shown that pre-training the entire encoder-decoder architecture is incredibly powerful for generative tasks. However, speech research has lagged behind. Because we lack a natural "text" equivalent for unlabeled audio, researchers have focused on pre-training encoders to create expressive representations of sound.
When these encoders are plugged into an encoder-decoder framework for a downstream task, the decoder starts from scratch. In scenarios with limited labeled data (e.g., only 10 hours of audio), a randomly initialized decoder struggles to learn how to generate coherent sequences, creating a performance gap between simple CTC-based models and more complex sequence-to-sequence (Seq2Seq) architectures.
Methods
The core innovation of Wav2Seq is the Pseudo ASR task. The authors propose a pipeline to turn raw audio into a discrete "pseudo language" that the model can learn to transcribe.
The process of inducing this pseudo language involves several steps:
- Feature Extraction: Use a pre-trained model (like HuBERT) to extract hidden feature vectors from raw audio.
- Discretization: Apply k-means clustering to these vectors to produce a sequence of cluster indices, which act as "pseudo characters."
- Deduplication: Remove consecutive identical indices. This is vital because speech features are often over-sampled; deduplication makes the sequence more like phonemes.
- Subword Tokenization: Apply Byte-Pair Encoding (BPE) to these characters to create "pseudo subwords." This further compresses the sequence, making it easier for the Transformer decoder to process.
Once the pseudo language is ready, the model is pre-trained to map the original audio to these pseudo-subword sequences using a standard cross-entropy loss. During fine-tuning, the embedding layers (which were specific to the pseudo-vocabulary) are swapped out for natural language embeddings.
Datasets
The authors evaluated Wav2Seq across a variety of challenging benchmarks:
- Pre-training: LibriSpeech (960h) and the massive LibriLight (60k hours).
- ASR: LibriSpeech 10h and 100h subsets to simulate low-resource environments.
- Spoken Named Entity Recognition (SNER): The SLUE-VoxPopuli benchmark.
- Speech-to-Text Translation (ST): CoVoST-2, covering 21 X-to-English and 15 English-to-X language pairs.
Key Insights and Ideas
- The Decoder is the Missing Link: The results confirm that a randomly initialized decoder is a major bottleneck in low-resource speech tasks. Pre-training it via a pseudo-language task effectively "primes" the decoder to handle sequential generation.
- Compression is Crucial: The authors found that deduplication and BPE are not just optional steps; they are essential. By reducing the sequence length (compression), the pre-training task becomes more semantically meaningful and computationally efficient for the Transformer's quadratic attention.
- Complementary Pre-training: Wav2Seq isn't just a standalone method. It works exceptionally well as a "second-stage" pre-training. You can take a model with a high-quality pre-trained encoder (like HuBERT) and run a short burst of Wav2Seq pre-training to "warm up" the decoder before fine-tuning.
Key Results
Wav2Seq showed impressive gains across the board, particularly when labeled data was scarce:
- ASR: In the 10h LibriSpeech setup, Wav2Seq reduced the Word Error Rate (WER) of a Seq2Seq model from over 100% (failure to converge) to 34.7%, matching or beating highly optimized CTC models.
- Spoken NER: It set a new state-of-the-art for end-to-end models on SLUE-VoxPopuli with a 65.4 F1 score, outperforming previous CTC-based approaches.
- Speech Translation: On the CoVoST-2 English-to-German (10h) task, Wav2Seq improved the BLEU score from 5.0 to 9.7 compared to a standard HuBERT baseline.
Limitations and Future Work
The authors acknowledge a few areas for further exploration:
- Language Models: This study focused on the performance of the encoder-decoder model itself without external language models (LMs). Since CTC models often rely heavily on LMs, a full comparison including them remains for future work.
- Inference Speed: While Wav2Seq makes Seq2Seq models more viable, CTC models are still generally faster during inference because they don't require auto-regressive decoding.
- Generative Spoken Language: A promising future direction is applying these pseudo-subwords to generative spoken language models that can "speak" without ever needing text.
Summary updated