Data Selection for Federated Learning with Relevant and Irrelevant Data at Clients

Tiffany Tuor, Shiqiang Wang, Bong-Jun Ko, Changchang Liu, Kin K. Leung

Abstract

Many image and vision applications require a large amount of data for model training. Collecting all such data at a central location can be challenging due to data privacy and communication bandwidth restrictions. Federated learning is an effective way of training a machine learning model in a distributed manner from local data collected by client devices, which does not require exchanging the raw data among clients. A challenge is that among the large variety of data collected at each client, it is likely that only a subset is relevant for a learning task while the rest of data has a negative impact on model training. Therefore, before starting the learning process, it is important to select the subset of data that is relevant to the given federated learning task. In this paper, we propose a method for distributedly selecting relevant data, where we use a benchmark model trained on a small benchmark dataset that is task-specific, to evaluate the relevance of individual data samples at each client and select the data with sufficiently high relevance. Then, each client only uses the selected subset of its data in the federated learning process. The effectiveness of our proposed approach is evaluated on multiple real-world image datasets in a simulated system with a large number of clients, showing up to 25% improvement in model accuracy compared to training with all data.

Introduction

Federated Learning (FL) has revolutionized distributed machine learning by allowing devices to collaborate without sharing raw data. However, standard FL assumes that client data is perfectly curated for the target task. In practice, local storage often contains a mix of relevant and irrelevant images—for instance, personal photos mixed with task-specific surveillance data.

Visualizing the challenge of irrelevant data: local client datasets (D1) often contain "noise" like mislabeled images or entirely irrelevant categories that must be filtered into a relevant subset (F1).

This "noise" typically falls into two categories:

  1. Open-set Noise: Data from categories outside the learning task (e.g., an image of a car in a "cats vs. dogs" classifier).
  2. Closed-set Noise: Mislabeled data within the target categories.

Including such data degrades model accuracy and wastes communication bandwidth. This paper addresses how clients can autonomously identify and select relevant data without compromising privacy or requiring a perfectly pre-trained model.

Proposed Distributed Data Selection Method

The authors propose a decentralized filtering process that occurs before the main FL training phase. This process involves three primary entities: the Model Requester (MR), the Server, and the Clients.

The proposed system architecture and 6-step data selection workflow.

The workflow is as follows:

  1. Benchmark Model Training: The MR trains a small "benchmark model" on a tiny, clean, task-specific dataset. This model captures the basic logic of the task.
  2. Local Loss Evaluation: The benchmark model is distributed to clients. Each client computes the loss for every local sample. Irrelevant or noisy data typically yields significantly higher loss.
  3. Distribution Sharing: Clients share the distribution of their losses (histograms) with the server, preserving data privacy.
  4. Threshold Optimization: The server compares the aggregate client loss distribution against the benchmark's loss distribution on a clean held-out set using the Kolmogorov-Smirnov (KS) distance.
  5. Optimal Thresholding: An optimal threshold ($λ^*$) is determined. Clients discard any data point with a loss exceeding this threshold.
  6. Standard Federated Learning: Clients proceed with standard FL (e.g., FedAvg) using only the filtered, high-quality data subsets.

Experimental Evaluation

The approach was evaluated across seven image datasets, including MNIST, SVHN, CIFAR-10, and CIFAR-100. To simulate real-world conditions, "strong noise" scenarios were created where up to 75% of client data was irrelevant.

Key Results

  • Accuracy Improvements: The method achieved up to a 25% boost in accuracy in high-noise scenarios compared to training on unfiltered data.
  • Efficiency: By removing up to 70% of "junk" data, local training becomes faster, and the global model converges in fewer rounds, saving significant communication bandwidth.
  • Minimal Data Overhead: The benchmark dataset only needs to be 1% to 3% of the total dataset size to be effective.
  • Robustness: The KS-distance thresholding remained effective even when noisy data significantly outweighed clean data.

Conclusion

This research demonstrates that uncertainty can be a powerful filter. By using a lightweight benchmark model to identify high-entropy (high-loss) samples, Federated Learning systems can become significantly more robust to the "junk drawer" nature of real-world client data. Future work may explore dynamic filtering that evolves as the global model matures.

Summary updated

BibTeX
@misc{tuor2020data,
  author = {Tiffany Tuor and Shiqiang Wang and Bong-Jun Ko and Changchang Liu and Kin K. Leung},
  title = {{Data Selection for Federated Learning with Relevant and Irrelevant Data at Clients}},
  year = {2020},
  eprint = {2001.08300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.08300},
}
Figure