Active Federated Learning

Jack Goetz, Kshitiz Malik, Duc Bui, Seungwhan Moon, Honglei Liu, Anuj KumararXiv 2019

Abstract: Federated Learning allows for population level models to be trained without centralizing client data by transmitting the global model to clients, calculating gradients locally, then averaging the gradients. Downloading models and uploading gradients uses the client's bandwidth, so minimizing these transmission costs is important. The data on each client is highly variable, so the benefit of training on different clients may differ dramatically. To exploit this we propose Active Federated Learning, where in each round clients are selected not uniformly at random, but with a probability conditioned on the current model and the data on the client to maximize efficiency. We propose a cheap, simple and intuitive sampling scheme which reduces the number of required training iterations by 20-70% while maintaining the same model accuracy, and which mimics well known resampling techniques under certain conditions.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized edge devices, such as smartphones, without ever requiring raw data to leave the device. While this preserves privacy, it introduces a significant bottleneck: communication costs. The process of downloading global models and uploading local gradients consumes substantial client bandwidth.

Standard FL algorithms, such as FedAvg, typically select a uniform random subset of clients for each training round. However, client data is highly heterogeneous. Some users possess data that the current model already predicts accurately, while others hold "edge-case" data that could significantly improve the model's performance. Uniform random selection essentially wastes expensive communication rounds on unhelpful clients. Active Federated Learning (AFL) addresses this by selectively sampling clients whose data provides the most utility to the model in its current state.

The Active Federated Learning Framework

Inspired by Active Learning—where models query the most informative data points for labeling—AFL introduces a value-based selection mechanism. Instead of random selection, AFL relies on a value function evaluated locally on the user's device.

The Active Federated Learning algorithm workflow: (1) Clients send valuations to the server, (2) Server converts valuations to selection probabilities, (3) Server selects the next training batch.

The framework operates in three primary steps:

  1. Loss Valuation: The system uses the average loss of the current global model on the client's local data as a value function. A high loss indicates that the model is struggling with that specific user's data, marking it as highly valuable for the next update.
  2. Valuation Reporting: Selected clients return this single valuation float to the server.
  3. Probabilistic Sampling: The server aggregates these valuations to create a sampling probability distribution for the subsequent round.

To ensure stability and prevent the model from ignoring specific user segments, AFL employs a hybrid sampling strategy. It ignores a bottom percentage of users with the lowest valuations, applies a softmax function to assign probabilities to high-value users, and reserves a small fraction of the cohort for uniform random selection to ensure continuous exploration of the user base.

Experimental Setup and Datasets

The authors evaluated AFL on two distinct binary classification tasks:

  • Reddit Dataset: A collection of 8,000 users' comments used to predict if a comment is "controversial." This dataset features a long-tail distribution, with a few power users and many casual users.
  • Sticker Intent Dataset: A proprietary, anonymized dataset from a messaging app used to predict whether a message would be replied to with a sticker.

Results and Performance

AFL demonstrates massive efficiency gains across both datasets. By prioritizing high-value clients, the algorithm reduces the number of required training iterations (epochs) by 20% to 70% to reach the same target Area Under the Curve (AUC) compared to standard uniform random sampling.

Performance comparison of AFL versus Random Sampling on Reddit and Sticker Intent datasets, showing faster convergence and higher final AUC for AFL.

Beyond speed, AFL also achieves higher overall accuracy within the same training constraints. For instance, on the Reddit dataset, AFL reached an AUC of 0.578, significantly outperforming the 0.552 achieved by random sampling. This improvement stems from AFL's ability to implicitly mimic data resampling techniques—such as oversampling minority classes—without the server ever needing direct access to the underlying data distributions.

Discussion and Future Directions

While AFL offers a significant leap in efficiency, several challenges remain for future research. One primary concern is Differential Privacy (DP); sending exact loss values to a server could potentially leak information about local data. Future iterations may need to incorporate noise or sparse vector techniques to protect these valuations.

Additionally, real-world constraints like Client Availability Bias (where device usage patterns correlate with time zones) and Non-stationary Data (where users generate new data over time) require more sophisticated valuation refresh mechanisms. Despite these hurdles, AFL establishes a new benchmark for communication-efficient decentralized training by proving that not all clients are created equal in the eyes of a learning model.

Summary updated

BibTeX
@misc{goetz2019active,
  author = {Jack Goetz and Kshitiz Malik and Duc Bui and Seungwhan Moon and Honglei Liu and Anuj Kumar},
  title = {{Active Federated Learning}},
  year = {2019},
  eprint = {1909.12641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.12641},
}
Figure