Federated Learning With Highly Imbalanced Audio Data

Marc C. Green, Mark D. PlumbleyarXiv 2021

Abstract

As smart homes and urban acoustic monitoring systems proliferate, the privacy of raw audio data has become a critical concern. Federated Learning (FL) addresses this by keeping data on local devices, yet most research relies on balanced, idealized datasets. This paper explores the impact of real-world data imbalance using the FSD50K dataset. By partitioning data based on uploader metadata, we simulate a realistic "long tail" distribution. Our results indicate that while FL can match centralized performance on high-volume subsets, the extreme imbalance found in full real-world datasets presents a significant barrier to effective global model training.

Introduction

Centralized machine learning for audio requires streaming potentially sensitive recordings to a central server, posing substantial privacy risks. Federated Learning (FL) mitigates this by allowing clients to train models locally and share only parameter updates. However, real-world audio is inherently non-IID (not independent and identically distributed). Users contribute varying amounts of data across diverse sound classes, creating a "messy" reality that standard FL algorithms often struggle to navigate.

Methodology

We utilize the FedAvg (Federated Averaging) algorithm, where a central server aggregates model updates from a subset of clients. The model architecture is a VGG-like convolutional neural network. To simulate a realistic FL environment, we use uploader metadata from the FSD50K dataset to define clients, rather than random splitting.

Two primary experimental setups were evaluated:

  1. High-Volume Clients: A subset of 57 clients who contributed 100 or more clips.
  2. Full Dataset: All 3,647 unique uploaders, representing the full spectrum of data volume.

We also performed a grid search over key FL hyperparameters: the client fraction ($C$) and the number of local training epochs ($E$).

Data Distribution and Imbalance

The FSD50K dataset contains over 51,000 clips across 200 classes. The distribution is naturally skewed; for instance, "Music" has over 14,000 clips, while "Printer" has only 163. When partitioned by uploader, the imbalance is even more pronounced: 84% of clients contributed fewer than 10 clips, while only 1.6% are "high-volume" contributors.

Results: The Impact of Data Volume

The centralized baseline trained on the full dataset achieves a PR-AUC of 0.55. In contrast, a model trained only on the high-volume subset reaches a significantly lower PR-AUC of approximately 0.25, reflecting the loss of information from the broader dataset.

Comparison of centralized performance on the full dataset versus the high-volume subset.

When applying FL to the entire dataset, performance drops further. After 50 communication rounds, the FL model reached only about half the performance of its centralized counterpart. This suggests that the sheer volume of data-poor clients makes the training process highly inefficient under standard uniform selection strategies.

Hyperparameter Analysis and Training Stability

The choice of client fraction ($C$) and local epochs ($E$) significantly affects convergence and stability.

Impact of client fraction (C) and local epochs (E) on FL performance and training stability across 50 communication rounds.

As shown in the figure above, low client fractions (e.g., $C=0.1$) result in highly erratic or "noisy" global model performance. This occurs because the model is updated based on a small, potentially unrepresentative subset of clients in each round. Increasing the client fraction stabilizes the training process. Furthermore, increasing local epochs ($E$) can accelerate convergence in data-poor scenarios, acting as a buffer for low client participation.

Key Insights

  • Power User Dominance: In FedAvg, updates are weighted by local data volume. In a long-tail scenario, the contributions of thousands of low-volume users can be mathematically "drowned out" by a few power users.
  • Inefficiency of Uniform Selection: With uniform random selection, high-volume clients—who provide the most informative updates—are rarely picked. In our 50-round tests, there was only a 40% chance that any specific high-volume client was ever selected.

Conclusion and Future Work

Deploying privacy-preserving audio AI requires overcoming the challenges of extreme data imbalance. Future research should focus on moving beyond uniform selection to prioritize clients based on data quality or volume, and implementing server-side smoothing techniques to mitigate the noise from small client subsets.

Summary updated

BibTeX
@misc{green2021federated,
  author = {Marc C. Green and Mark D. Plumbley},
  title = {{Federated Learning With Highly Imbalanced Audio Data}},
  year = {2021},
  eprint = {2105.08550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.08550},
}
Figure