Incremental Layer-wise Self-Supervised Learning for Efficient Speech Domain Adaptation On Device

Zhouyuan Huo, Dongseong Hwang, Khe Chai Sim, Shefali Garg, Ananya Misra, Nikhil Siddhartha, Trevor Strohman, Françoise BeaufaysarXiv 2021

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.
The ILW-SSL process: updating layers incrementally from step n to step n+r while keeping lower layers fixed.

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.

Analysis of training schedules: (Left) Pre-training steps per layer. (Right) Resulting WER, showing the superiority of the bottom-heavy approach.

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

BibTeX
@misc{huo2021incremental,
  author = {Zhouyuan Huo and Dongseong Hwang and Khe Chai Sim and Shefali Garg and Ananya Misra and Nikhil Siddhartha and Trevor Strohman and Françoise Beaufays},
  title = {{Incremental Layer-wise Self-Supervised Learning for Efficient Speech Domain Adaptation On Device}},
  year = {2021},
  eprint = {2110.00155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.00155},
}
Figure