HeteroSwitch: Characterizing and Taming System-Induced Data Heterogeneity in Federated Learning
Gyudong Kim, Mehdi Ghasemi, Soroush Heidari, Seungryong Kim, Young Geun Kim, Sarma Vrudhula, Carole-Jean Wu
TL;DR
This work identifies system-induced data heterogeneity, arising from HW/SW device fragmentation, as a key but underexplored factor limiting federated learning performance. It introduces HeteroSwitch, a selective generalization framework that first measures per-client bias via loss dynamics and then applies ISP-based data diversification with random White Balance and Gamma, coupled with SWAD weight averaging, in a targeted, device-aware manner. Experiments across realistic FL datasets (including Flair) and synthetic benchmarks (CIFAR-100) show substantial reductions in cross-device variance and improvements in worst-case and average accuracy, outperforming baselines such as FedAvg, q-FedAvg, FedProx, and Scaffold. The results demonstrate the practical value of adaptive generalization to stabilize FL in heterogeneous device ecosystems and highlight implications for fairness and domain generalization in real-world deployments.
Abstract
Federated Learning (FL) is a practical approach to train deep learning models collaboratively across user-end devices, protecting user privacy by retaining raw data on-device. In FL, participating user-end devices are highly fragmented in terms of hardware and software configurations. Such fragmentation introduces a new type of data heterogeneity in FL, namely \textit{system-induced data heterogeneity}, as each device generates distinct data depending on its hardware and software configurations. In this paper, we first characterize the impact of system-induced data heterogeneity on FL model performance. We collect a dataset using heterogeneous devices with variations across vendors and performance tiers. By using this dataset, we demonstrate that \textit{system-induced data heterogeneity} negatively impacts accuracy, and deteriorates fairness and domain generalization problems in FL. To address these challenges, we propose HeteroSwitch, which adaptively adopts generalization techniques (i.e., ISP transformation and SWAD) depending on the level of bias caused by varying HW and SW configurations. In our evaluation with a realistic FL dataset (FLAIR), HeteroSwitch reduces the variance of averaged precision by 6.3\% across device types.
