Abstract
We introduce a self-supervised speech pre-training method called TERA, which stands for Transformer Encoder Representations from Alteration. Recent approaches often learn by using a single auxiliary task like contrastive prediction, autoregressive prediction, or masked reconstruction. Unlike previous methods, we use alteration along three orthogonal axes to pre-train Transformer Encoders on a large amount of unlabeled speech. The model learns through the reconstruction of acoustic frames from their altered counterpart, where we use a stochastic policy to alter along various dimensions: time, frequency, and magnitude. TERA can be used for speech representations extraction or fine-tuning with downstream models. We evaluate TERA on several downstream tasks, including phoneme classification, keyword spotting, speaker recognition, and speech recognition. We present a large-scale comparison of various self-supervised models. TERA achieves strong performance in the comparison by improving upon surface features and outperforming previous models. In our experiments, we study the effect of applying different alteration techniques, pre-training on more data, and pre-training on various features. We analyze different model sizes and find that smaller models are strong representation learners than larger models, while larger models are more effective for downstream fine-tuning than smaller models. Furthermore, we show the proposed method is transferable to downstream datasets not used in pre-training.
Introduction
Modern speech processing systems, such as Automatic Recognition (ASR), typically require thousands of hours of human-annotated data to achieve high performance. Self-supervised learning (SSL) offers a solution by pre-training models on massive amounts of unlabeled audio. While earlier speech SSL methods like Mockingjay adapted masked reconstruction from NLP (e.g., BERT), they often focused solely on the time axis. However, speech signals are complex, containing overlapping information about phonetics, speaker identity, and environmental noise. TERA addresses this by introducing multi-axis alteration, forcing the model to learn more robust and contextualized representations.
The TERA Framework
TERA (Transformer Encoder Representations from Alteration) is a self-supervised pre-training framework designed to learn robust speech representations. The model is trained to reconstruct "clean" acoustic frames from versions that have been stochastically corrupted across three dimensions.
The architecture utilizes a Transformer Encoder and is trained using a simple L1 reconstruction loss. Once pre-trained, the encoder can serve as a frozen feature extractor for small downstream models or be fine-tuned directly for complex tasks like ASR.
Multi-Axis Alteration
The core innovation of TERA is its stochastic alteration policy, which operates along three orthogonal axes:
- Time Alteration: Blocks of consecutive time steps are masked to zero, replaced with random segments from the same utterance, or left unchanged.
- Frequency Alteration: Entire blocks of frequency bins are masked across all time steps, forcing the model to exploit correlations across different frequencies.
- Magnitude Alteration: Random Gaussian noise is added to the magnitudes of acoustic features, improving robustness to volume variations and channel noise.
Experimental Evaluation
We pre-trained TERA on subsets of the LibriSpeech corpus (100, 360, and 960 hours) and evaluated it across several downstream tasks, including phoneme classification (on LibriSpeech and TIMIT), speaker recognition, and keyword spotting (on Speech Commands).
Key Insights and Results
Our experiments revealed several critical findings:
- Orthogonal Alterations Matter: Each alteration type contributes uniquely to the learned representations. Time alteration is essential for capturing phonetic content (the "what"), while frequency alteration is key for speaker identity (the "who").
- The Model Size Paradox: We observed that smaller models (e.g., 3-layer) often serve as better feature extractors when weights are frozen. Conversely, larger models (e.g., 12-layer) demonstrate significantly better performance when fine-tuned for specific tasks.
- Superior Performance: TERA consistently outperformed previous reconstruction-based methods like Mockingjay and NPC. It achieved near-perfect accuracy (99.48%) in utterance-level speaker recognition and a competitive Word Error Rate (WER) of 5.80% on LibriSpeech ASR after fine-tuning.
- Computational Efficiency: Unlike massive contrastive models that require hundreds of GPUs, a base TERA model can be trained on a single consumer-grade GPU, making it highly accessible for researchers.
Conclusion
TERA demonstrates that multi-axis alteration is a powerful and efficient strategy for self-supervised speech representation learning. By corrupting time, frequency, and magnitude, the model learns to capture diverse acoustic nuances that simple time-masking misses. While massive contrastive models still lead in pure ASR scaling, TERA provides a highly effective and computationally efficient alternative for a wide range of speech tasks.
Summary updated