An Investigation Into On-device Personalization of End-to-end Automatic Speech Recognition Models

Khe Chai Sim, Petr Zadrazil, Françoise BeaufaysInterspeech 2019

Introduction

Modern Automatic Speech Recognition (ASR) systems are typically trained as speaker-independent models using vast datasets to accommodate the "average" user. However, these models frequently underperform for individuals with non-standard speech patterns, such as those with strong accents or speech impairments resulting from conditions like Amyotrophic Lateral Sclerosis (ALS). While personalizing models can mitigate these issues, traditional server-side fine-tuning introduces significant privacy risks and scalability bottlenecks.

This research explores on-device personalization, where models are fine-tuned locally on a user's smartphone. This approach ensures that private voice data never leaves the device. To overcome the hardware limitations of mobile devices—specifically restricted RAM and storage—the authors propose several optimization strategies, including split gradient computation and a sliding window data management system.

Methodology

The study utilizes an RNN-Transducer (RNN-T) architecture, a state-of-the-art model for low-latency, "always-on" mobile ASR. Three primary techniques were implemented to enable efficient on-device training:

1. Sliding Window Data Storage

To manage limited on-device storage and enhance privacy, the researchers implemented a "training cache" using a sliding window approach. As new speech data is captured, older utterances are cycled out. This mechanism allows the model to revisit data across multiple training sessions, which is critical for learning the nuances of a specific user's voice.

The sliding window mechanism for on-device data storage and session-based training.

2. Strategic Layer Freezing

Updating all 117 million parameters of an RNN-T model is computationally expensive. The authors found that fine-tuning the later layers of the acoustic encoder while freezing the early layers and the Language Model (LM) component provided the optimal balance between performance and efficiency. This suggests that the primary challenge for speech-impaired users lies in acoustic recognition rather than linguistic modeling.

3. Split Gradient Computation

To fit the training process within the limited RAM of a smartphone (e.g., a Pixel 3), the neural network's computational graph was split. By computing gradients for the second half of the network first and re-computing the forward pass for the first half, memory usage was reduced by 45% (from ~1.2GB to 649MB), albeit with a 42% increase in training time.

Experimental Setup

The baseline model was trained on 27,500 hours of anonymized English utterances from Google’s voice search traffic. For personalization, the researchers used a dataset from 20 ALS patients with varying degrees of speech impairment. Each participant provided approximately 1.5 hours of training data, serving as a rigorous test case for the efficacy of local fine-tuning.

Results and Discussion

The experimental results demonstrate that on-device personalization can lead to transformative improvements in ASR accuracy for users with speech impairments.

Word Error Rate (WER) reduction across successive training sessions for users with speech impairments.

Performance Gains

For the ALS cohort, the baseline speaker-independent model exhibited a high Word Error Rate (WER) of 35.6%. On-device personalization reduced this to 14.8%, representing a 58.1% relative improvement. As shown in the figure above, the most significant gains occur within the first few training sessions.

Hardware Feasibility

Benchmarks on a Pixel 3 device confirmed that a full personalization session involving 500 utterances can be completed in approximately 3.5 hours. This makes overnight training—while the device is charging—a viable deployment strategy.

The Privacy-Performance Trade-off

While on-device training offers superior privacy, it resulted in an 18.7% relative performance degradation compared to unconstrained server-side training. However, the authors argue that the privacy benefits and the ability to scale to millions of users without massive infrastructure costs justify this "privacy tax."

Conclusion

This investigation proves that on-device personalization is a feasible and highly effective method for improving ASR for users with non-standard speech. The primary remaining challenge is the acquisition of high-quality transcriptions for training without human intervention. Future work will focus on automated transcription methods and further optimizing training speed to support a broader range of mobile hardware.

Summary updated

BibTeX
@inproceedings{sim2019investigation,
  author = {Khe Chai Sim and Petr Zadrazil and Françoise Beaufays},
  title = {{An Investigation Into On-device Personalization of End-to-end Automatic Speech Recognition Models}},
  booktitle = {Interspeech},
  year = {2019},
  doi = {10.21437/interspeech.2019-1752},
}
Figure