Introduction
The success of BERT in Natural Language Processing (NLP) demonstrated the power of bidirectional context and unsupervised pre-training for learning robust linguistic representations. Mockingjay seeks to replicate this success in the speech domain. By moving beyond traditional, surface-level features like Mel-spectrograms, Mockingjay introduces a method to learn "super-features" from vast amounts of unlabeled audio data. These representations capture high-level information—such as phonemes and speaker identity—that standard signal processing techniques often overlook.
The Challenge of Speech Representations
In Speech and Language Processing (SLP), researchers have traditionally relied on hand-crafted features. While effective, these features do not inherently encode the complex structural hierarchies of language. Previous attempts at unsupervised learning, such as Contrastive Predictive Coding (CPC) or Autoregressive Predictive Coding (APC), were primarily unidirectional. They focused on predicting future frames based on past context, which is ideal for real-time streaming but suboptimal for tasks where the entire utterance is available.
Furthermore, many NLP-inspired speech models require "discretizing" audio into tokens (similar to words). This process can be computationally expensive and risks losing the nuanced, continuous nature of acoustic signals. Mockingjay addresses these issues by applying a bidirectional Transformer architecture directly to continuous speech frames.
Methodology: Masked Acoustic Modeling (MAM)
The core innovation of Mockingjay is the Masked Acoustic Modeling (MAM) pre-training task. This approach allows the model to learn representations by predicting missing parts of an utterance based on the surrounding context from both directions.
1. Architecture
The model utilizes a multi-layer Transformer encoder. Since Transformers lack an inherent sense of sequence order, positional encodings are added to the input frames to provide temporal information.
2. The Masking Strategy
Following the BERT paradigm, 15% of the input frames are selected for processing. Of these selected frames:
- 80% are masked to zero.
- 10% are replaced with a random frame from the same utterance.
- 10% remain unchanged to ensure the model remains robust during inference.
3. Overcoming Local Smoothness
Audio data is characterized by high temporal correlation; adjacent frames are often nearly identical. To prevent the model from simply interpolating between immediate neighbors—a form of "cheating" that bypasses high-level understanding—the authors implemented consecutive masking. By masking blocks of frames and employing downsampling, the model is forced to rely on broader global structures to reconstruct the signal.
4. Reconstruction Objective
The model is trained to reconstruct the original Mel-spectrogram (or linear spectrogram) frames using an L1 Loss function. This ensures the learned representations remain grounded in the original acoustic space while capturing deep contextual dependencies.
Experimental Setup
Pre-training
The model was pre-trained on the LibriSpeech corpus, specifically the train-clean-360 subset, providing 360 hours of unlabeled English speech.
Downstream Evaluation
To test the versatility of the learned features, the researchers evaluated Mockingjay on three distinct tasks:
- Phoneme Classification: Using the Montreal Forced Aligner on LibriSpeech to assess phonetic content.
- Speaker Recognition: Identifying 63 different speakers to evaluate speaker-specific information.
- Sentiment Classification: Utilizing the CMU-MOSEI dataset to test the transferability of representations to a different domain (emotional content in speech).
Key Insights and Results
Mockingjay demonstrated significant improvements over baseline features and previous state-of-the-art models:
- Efficiency in Low-Resource Settings: In a landmark result, Mockingjay trained on just 0.1% of labeled data (approximately 20 minutes) outperformed raw Mel-features trained on 100% of the data (360 hours) for phoneme classification. This highlights the model's ability to extract highly discriminative features without extensive supervision.
- Performance Gains: The model achieved a 35.2% absolute improvement in phoneme accuracy over standard Mel-features and outperformed APC. In speaker recognition, it reached 98.05% accuracy, compared to 70.06% for Mel-features.
- Fine-Tuning Potential: The study showed that Mockingjay is not just a static feature extractor. Fine-tuning the pre-trained model on specific tasks for as few as two epochs led to substantial performance jumps.
- Generalizability: Despite being trained on read speech (LibriSpeech), the representations transferred effectively to the MOSEI sentiment dataset, suggesting that the model learns fundamental aspects of human speech that transcend specific datasets.
Conclusion and Future Work
Mockingjay successfully adapts the bidirectional Transformer philosophy to the continuous domain of speech. By avoiding discretization and leveraging global context, it provides a powerful foundation for various speech tasks, particularly when labeled data is scarce.
While the current work excels at classification and recognition, future research aims to scale the model for full Automatic Speech Recognition (ASR) and Speech Translation. Additionally, the authors noted that text-based auxiliary tasks like "Next Sentence Prediction" did not yield the same benefits in speech as they did in NLP, suggesting that the temporal logic of audio requires further specialized exploration.
Summary updated