Importance of Smoothness Induced by Optimizers in Fl4Asr: Towards Understanding Federated Learning for End-To-End ASR

Sheikh Shams Azam, Tatiana Likhomanenko, Martin Pelikan, Jan Honza Silovsky

Introduction

Training massive Automatic Speech Recognition (ASR) models typically requires centralized access to vast datasets. While Federated Learning (FL) offers a privacy-preserving alternative by training models across decentralized devices, applying it to end-to-end (E2E) ASR often results in a "convergence catastrophe." Large-scale architectures like Conformers, which perform exceptionally well in centralized settings, frequently fail to converge when distributed across heterogeneous clients.

This research investigates the root causes of these failures and identifies optimization strategies that stabilize training. The findings suggest that the key to successful Federated Learning for ASR (FL4ASR) lies in "smoothness"—a property induced by specific adaptive optimizers that helps the model navigate the noise of decentralized updates.

The Challenge: Data Heterogeneity and Optimization Instability

Modern ASR relies on complex E2E architectures, such as the 120M-parameter Conformer. When these models are trained via FL, two primary obstacles emerge:

  1. Data Heterogeneity: In a realistic FL environment, each client represents a unique speaker with distinct acoustic characteristics and environments. This creates a "non-IID" (non-independent and identically distributed) data distribution, leading to highly divergent local model updates.
  2. Optimization Instability: Standard optimizers like Adam, which are staples of centralized training, often fail to converge from scratch in an FL setting. Without careful initialization or hyperparameter tuning, these models frequently produce gibberish or diverge entirely.

Experimental Framework

The researchers conducted an extensive ablation study using a CTC-AED (Connectionist Temporal Classification - Attention-based Encoder-Decoder) model trained on the LibriSpeech corpus (960 hours). To simulate a real-world FL environment, the data was partitioned by Speaker ID, ensuring each client in the simulation represented a unique individual.

Optimization Strategies Tested

  • Global Optimizers: Comparison of central aggregation methods including Adam, AdamW, and Yogi.
  • Local Optimizers: Evaluation of client-side updates using standard SGD versus LAMB (Layer-wise Adaptive Moments).
  • Initialization Tactics: Comparison between "Random Start" and "Seed Start" (initializing FL with a model briefly pre-trained on a small centralized proxy dataset).
  • Optimizer Switch (OptSwitch): A novel stabilization technique where training begins with robust SGD and transitions to Adam once the model reaches a more stable state.

Key Insights: The Power of Smoothness

The "Smoothness" Secret

The study reveals that optimizers like Yogi and AdamW outperform standard Adam by increasing the "smoothness" of the gradient subspace. By analyzing the cosine similarity between model updates across training rounds, the researchers found that Yogi creates a wider "beam" of similarity. This effectively neutralizes the noise generated by heterogeneous client data, allowing for more consistent global progress.

LAMB as a Local Solution

While SGD is the traditional choice for local client updates, LAMB proved significantly more effective for deep ASR models. LAMB scales learning rates layer-by-layer, which mitigates the "gradient explosion" common in deep architectures where different layers may learn at vastly different speeds. Transitioning from SGD to LAMB as a local optimizer reduced the Word Error Rate (WER) on the LibriSpeech all-960 split from 16.65% to 13.73%.

Stabilization and Augmentation

The research also highlights that standard Adam requires a "Seed Start" or a significantly larger $\epsilon$ parameter (e.g., 0.01) to avoid divergence from random initialization. Furthermore, data augmentation techniques like SpecAugment do more than just prevent overfitting; they reduce the variance between client updates, contributing to the overall stability of the global model.

Results and Performance

By combining these insights, the researchers successfully narrowed the performance gap between FL and centralized training. Key results include:

  • OptSwitch Success: The SGD-to-Adam transition allowed models to converge from scratch in scenarios where they previously failed.
  • Cohort Scaling: Increasing the number of clients sampled per round (cohort size) provided more stable second-order estimates, further enhancing the effectiveness of adaptive optimizers like AdamW.

Limitations and Future Directions

The primary trade-off for using advanced local optimizers like LAMB is memory consumption. LAMB requires approximately four times the memory of vanilla SGD, posing a challenge for resource-constrained edge devices like smartphones.

Future work will focus on developing memory-efficient adaptive optimizers and exploring "biased decoders," where local models maintain specific weights to improve personalization without sacrificing the stability of the global model. Additionally, the application of other smoothing techniques, such as label smoothing or mix-up, remains a promising avenue for further stabilizing the FL4ASR pipeline.

Summary updated

BibTeX
@inproceedings{azam2023importance,
  author = {Sheikh Shams Azam and Tatiana Likhomanenko and Martin Pelikan and Jan Honza Silovsky},
  title = {{Importance of Smoothness Induced by Optimizers in Fl4Asr: Towards Understanding Federated Learning for End-To-End ASR}},
  booktitle = {ASRU},
  year = {2023},
  doi = {10.1109/asru57964.2023.10389620},
}
Figure