Abstract
Streaming end-to-end speech recognition models have been widely applied to mobile devices and show significant improvement in efficiency. These models are typically trained on the server using transcribed speech data. However, the server data distribution can be very different from the data distribution on user devices, which could affect the model performance. There are two main challenges for on-device training: limited reliable labels and limited training memory. While self-supervised learning algorithms can mitigate the mismatch between domains using unlabeled data, they are not applicable on mobile devices directly because of the memory constraint. In this paper, we propose an incremental layer-wise self-supervised learning algorithm for efficient speech domain adaptation on mobile devices, in which only one layer is updated at a time. Extensive experimental results demonstrate that the proposed algorithm obtains a Word Error Rate (WER) on the target domain 24.2% better than the supervised baseline and costs 89.7% less training memory than the end-to-end self-supervised learning algorithm.
Introduction
Streaming speech recognition models are usually trained on massive server-side datasets. However, a "domain gap" often exists: real-world user speech (with background noise, accents, or jargon) differs significantly from server training data. Adapting these models on-device is the ideal solution but faces two hurdles: the lack of transcribed user data and severe hardware memory constraints. Standard "end-to-end" training requires storing activations for every layer to calculate gradients, which quickly exceeds a phone's RAM.
Methods
The proposed Incremental Layer-wise Self-Supervised Learning (ILW-SSL) algorithm makes on-device adaptation feasible through two strategies:
1. Self-Supervised Learning (SSL)
To handle unlabeled data, the researchers use SSL losses like Contrastive Predictive Coding (CPC) and Autoregressive Predictive Coding (APC). These techniques teach the model to predict future parts of the audio signal or distinguish real audio from noise without requiring transcripts.
2. Incremental Layer-wise Training (ILW)
This is the core innovation for memory efficiency. Instead of updating the entire 17-layer Conformer encoder at once, the algorithm:
- Freezes the bottom layers (no gradients needed).
- Updates only one (or a few) specific layers at a time.
- Discards the layers above the one currently being trained.
- Progresses from the bottom of the stack to the top in an incremental schedule.
Because SSL losses can be attached to any intermediate layer and work with truncated audio inputs, the model never processes the full network depth during a training step, drastically lowering the memory footprint.
Datasets
The study utilized a massive internal Google dataset:
- Multi-domain (MD): 400,000 hours of anonymized audio.
- Medium-form (MF): 26,000 hours (target domain, unlabeled).
- Short-form (SF): 27,000 hours (source domain).
Results and Key Insights
The ILW-SSL method achieved a 24.2% relative improvement in Word Error Rate (WER) on the target domain compared to a non-adapted supervised baseline. Crucially, the incremental approach used only 759 MB of memory, compared to the 7,356 MB required by standard end-to-end SSL—an 89.7% reduction.
The "Bottom-Heavy" Schedule
A key finding was that the model converges more effectively if more training steps are spent on the bottom layers and fewer on the top layers. This "bottom-heavy" schedule ensures a solid foundation of features before higher-level layers are adapted.
SSL Loss Performance
Among the tested losses, CPC performed best for streaming models. The authors suggest that bi-directional models like Wav2vec2.0 suffer from a mismatch when adapted for uni-directional, real-time streaming use cases.
Conclusion and Future Work
ILW-SSL provides a memory-efficient path for high-quality on-device speech adaptation. Future work will explore applying layer-wise adaptation to the entire RNN-T architecture and automating the determination of optimal training schedules.
Summary updated