Private Language Model Adaptation for Speech Recognition

Zhe Liu, Ke Li, Shreyan Bakshi, Fuchun Peng · DOI

Abstract

Speech model adaptation is crucial to handle the discrepancy between server-side proxy training data and actual data received on local devices of users. With the use of federated learning (FL), we introduce an efficient approach on continuously adapting neural network language models (NNLMs) on private devices with applications on automatic speech recognition (ASR). To address the potential speech transcription errors in the on-device training corpus, we perform empirical studies on comparing various strategies of leveraging token-level confidence scores to improve the NNLM quality in the FL settings. Experiments show that compared with no model adaptation, the proposed method achieves relative 2.6% and 10.8% word error rate (WER) reductions on two speech evaluation datasets, respectively. We also provide analysis in evaluating privacy guarantees of our presented procedure.

Introduction

Standard Automatic Speech Recognition (ASR) systems are typically trained on large, server-side "proxy" datasets. While these datasets are extensive, they often fail to capture the nuances of real-world user speech, leading to a significant domain mismatch. To bridge this gap, models must be adapted to actual user data. However, this presents two primary challenges: maintaining user privacy and training on "noisy" labels, as on-device data lacks human-verified transcripts.

This paper introduces a privacy-preserving framework for adapting Neural Network Language Models (NNLMs) using Federated Learning (FL). By keeping data on-device and utilizing confidence-based weighting strategies, the authors demonstrate significant improvements in ASR performance without compromising user privacy.

Methodology

The proposed framework centers on Federated NNLM Adaptation. The process begins with a server-side pre-trained NNLM, which is then distributed to user devices.

Federated Learning Loop

On each device, the ASR system generates a "1-best" hypothesis for user utterances. The device then computes a model update (gradient) based on this hypothesis. These updates are sent back to a central server and aggregated using the FedAdam optimizer to update the global model. This cycle ensures that sensitive user audio and text never leave the device.

Handling Noisy Labels

Since the on-device transcripts are generated by the ASR itself, they inevitably contain errors. To prevent the model from learning these mistakes, the authors evaluate three confidence-based weighting strategies for the Cross-Entropy loss:

  1. Hard Thresholding: Entire utterances are discarded if their average confidence score falls below a set threshold.
  2. Utterance-level Weighting: The loss for a whole sentence is scaled by its average confidence.
  3. Token-level Weighting: Each word's loss is scaled individually based on its specific confidence score.

Privacy Guarantees

To provide formal mathematical privacy, the authors incorporate Differential Privacy (DP). This involves clipping individual gradients to limit any single user's influence and adding Gaussian noise to the aggregated updates before they are applied to the global model.

Experimental Setup

The researchers evaluated their approach on two distinct datasets:

  • Conversation: Crowdsourced mobile device speech (166K adaptation utterances).
  • Voice Command: Short commands for smart devices (63K adaptation utterances).

To simulate a realistic federated environment, data was distributed across approximately 8,000 virtual devices following a Zipf distribution, reflecting varying levels of user activity.

Results and Discussion

The experimental results demonstrate that federated adaptation significantly outperforms non-adapted baselines.

Performance comparison on the Conversation dataset.

In the Conversation domain, token-level weighting proved most effective, yielding a 2.6% relative reduction in Word Error Rate (WER). This granularity allows the model to learn from correct segments of complex sentences even when other parts are transcribed incorrectly.

Performance comparison on the Voice Command dataset.

Conversely, for the Voice Command domain, hard thresholding was the superior strategy, achieving a 10.8% relative WER reduction. Given the brevity of voice commands, a single error often invalidates the entire context, making it more beneficial to discard the utterance entirely.

The study also highlighted the importance of pre-training; fine-tuning a server-trained model via FL was consistently better than training from scratch in a federated manner. Furthermore, while the introduction of Differential Privacy (DP) slightly increased WER compared to non-private FL, the DP models still significantly outperformed the "No NNLM" baseline.

Conclusion

This work provides a robust path for adapting ASR models to real-world data while strictly adhering to privacy constraints. By intelligently weighting training updates based on confidence scores, the proposed federated adaptation method effectively mitigates the impact of noisy on-device labels. Future work will explore local personalization to further tailor models to individual user characteristics.

Summary updated

BibTeX
@misc{liu2021private,
  author = {Zhe Liu and Ke Li and Shreyan Bakshi and Fuchun Peng},
  title = {{Private Language Model Adaptation for Speech Recognition}},
  year = {2021},
  eprint = {2110.10026},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.10026},
}
Figure