Federated Transfer Learning with Dynamic Gradient Aggregation

Dimitrios Dimitriadis, Ken'ichi Kumatani, Robert Gmyr, Yashesh Gaur, Sefik Emre EskimezarXiv 2020

Abstract

Training high-quality Automatic Speech Recognition (ASR) models traditionally requires massive, centralized datasets, which poses significant privacy risks and regulatory challenges. Federated Learning (FL) offers a decentralized alternative by training models locally on user devices. However, ASR presents unique hurdles for FL, including model complexity, extreme data heterogeneity, and communication inefficiencies. This paper introduces a novel Federated Transfer Learning (FTL) framework designed to overcome these barriers. By implementing a hierarchical optimization scheme and a "Dynamic Gradient Aggregation" (DGA) algorithm—which leverages Reinforcement Learning to intelligently weight client updates—the proposed framework achieves a 7x speedup in convergence and significant accuracy improvements, nearing the performance of centralized training benchmarks.

Introduction

The demand for high-performance ASR systems is growing, but so is the sensitivity regarding the voice data used to train them. Privacy regulations like GDPR increasingly restrict the movement of user data to the cloud, making traditional centralized training less viable. Federated Learning provides a path forward, but applying it to ASR is notoriously difficult due to three primary factors:

  1. Model Complexity: Modern ASR architectures, such as sequence-to-sequence models with attention mechanisms, are far more complex than the standard image classifiers often used in FL research.
  2. Data Heterogeneity: Local data on a single device is typically highly skewed, reflecting a specific user's accent, speech patterns, and background noise. This non-IID (independent and identically distributed) data can cause global models to diverge or converge at an impractical pace.
  3. Communication Efficiency: Standard FL algorithms like FedAvg often require an excessive number of communication rounds to reach acceptable accuracy levels for production-grade ASR.

Methodology

To address these challenges, the researchers proposed a multi-layered approach that enhances the stability and efficiency of the federated training process.

Hierarchical Optimization

Instead of simple model averaging, the framework employs a two-level optimization scheme. Clients perform local optimization, and the server utilizes a "global" optimizer (such as Adam) to process the aggregated updates. To prevent the model from drifting too far from the general distribution due to local data skews, the authors included a "Naive Rehearsal" step. In this step, the server performs a gentle update on a small, held-out centralized dataset to maintain a baseline of general recognition quality.

Dynamic Gradient Aggregation (DGA)

The core innovation of this work is Dynamic Gradient Aggregation. Rather than treating every client's update as equally important, DGA assigns weights to them based on their perceived quality and relevance. Two versions were explored:

  • Softmax Weighting: A deterministic approach where updates associated with higher training losses—often indicating noisy or outlier data—are de-emphasized.
  • RL Weighting: A data-driven approach where a Reinforcement Learning agent learns to assign weights to client updates. The agent uses features like loss and gradient statistics to maximize performance on a validation set, effectively learning which updates to "trust" at different stages of training.

Unsupervised Adaptation

To leverage the vast amounts of untranscribed local data, the researchers developed a pipeline using Text-to-Speech (TTS) to create synthetic training pairs. This process is regularized by a small amount of real speech on the server side to prevent the model from overfitting to synthetic audio artifacts.

Experimental Results

The framework was evaluated using the LibriSpeech benchmark (~1,000 hours of read English speech) and an internal Microsoft dataset based on PowerPoint presentations (3.5k hours of TTS and real speech).

Convergence and Accuracy

The proposed hierarchical system reached convergence 7x faster than the standard FedAvg algorithm. As shown in the performance trends, the RL-based DGA approach proved particularly effective at stabilizing the early stages of training where updates are most volatile.

Word Error Rate (WER) vs. Number of Aggregation Steps

On the LibriSpeech task, the RL-based DGA achieved a 4.40% Word Error Rate (WER). This represents a 6% relative improvement over the baseline and brings the federated model remarkably close to the "Golden Standard" of centralized training (4.00%).

LibriSpeech Task Performance Comparison

Session Adaptation

For unsupervised session adaptation (tuning a model to a specific presentation), the framework provided a 20% relative WER reduction over a competitive production-ready model, demonstrating its utility in real-world, personalized ASR scenarios.

Conclusion

This research demonstrates that Federated Learning can be highly effective for complex ASR tasks when combined with hierarchical optimization and intelligent gradient aggregation. The DGA algorithm acts as a quality filter, ensuring that the global model remains on a stable convergence path despite heterogeneous local data. While the current study was conducted in a high-performance simulation environment, the results provide a strong foundation for future real-world deployments. The authors plan to extend these techniques to other sensitive modalities, including facial recognition and natural language understanding.

Summary updated

BibTeX
@misc{dimitriadis2020federated,
  author = {Dimitrios Dimitriadis and Ken'ichi Kumatani and Robert Gmyr and Yashesh Gaur and Sefik Emre Eskimez},
  title = {{Federated Transfer Learning with Dynamic Gradient Aggregation}},
  year = {2020},
  eprint = {2008.02452},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.02452},
}
Figure