Redefining non-IID Data in Federated Learning for Computer Vision Tasks: Migrating from Labels to Embeddings for Task-Specific Data Distributions
Kasra Borazjani, Payam Abdisarabshali, Naji Khosravan, Seyyedali Hosseinalipour
TL;DR
This paper reveals that evaluating FL under non-IID data with label skew is insufficient for computer vision tasks beyond classification. It introduces embedding-based data heterogeneity, where data embeddings from a task-trained network (penultimate layer) are clustered and distributed to clients via a Dirichlet process, offering a task-aware benchmark of heterogeneity. Across seven Taskonomy tasks and additional datasets, embedding-based splits produce substantially larger loss increases under FL methods than traditional label-based splits, exposing more realistic degradation and exposing limitations of prior benchmarks. The work also provides a framework for assessing task similarity via embedding clusters and discusses implications for single- and multi-task FL, along with future directions such as diverse embedding generators and privacy-preserving embedding computation.
Abstract
Federated Learning (FL) has emerged as one of the prominent paradigms for distributed machine learning (ML). However, it is well-established that its performance can degrade significantly under non-IID (non-independent and identically distributed) data distributions across clients. To study this effect, the existing works predominantly emulate data heterogeneity by imposing label distribution skew across clients. In this paper, we show that label distribution skew fails to fully capture the data heterogeneity in computer vision tasks beyond classification, exposing an overlooked gap in the literature. Motivated by this, by utilizing pre-trained deep neural networks to extract task-specific data embeddings, we define task-specific data heterogeneity through the lens of each vision task and introduce a new level of data heterogeneity called embedding-based data heterogeneity. Our methodology involves clustering data points based on embeddings and distributing them among clients using the Dirichlet distribution. Through extensive experiments, we evaluate the performance of different FL methods under our revamped notion of data heterogeneity, introducing new benchmark performance measures to the literature. For instance, across seven representative computer vision tasks, our embedding-based heterogeneity formulation leads to up to around 60% increase in the observed loss under FedAvg, indicating that it more accurately exposes the performance degradation caused by data heterogeneity. We further unveil a series of open research directions that can be pursued.
