Lune

KDD2026Top-tier venue

Optimal Metric-Aware Class Rebalancing in Federated Learning

Sihao Lv, Zian Le, Mingyang Zhou, Hao Liao, Rui Mao

Abstract

Class imbalance is a significant challenge in many practical classification tasks, particularly in federated learning (FL), where both global data imbalance and local data heterogeneity across clients worsen the problem. Addressing the class imbalance problem effectively while adhering to privacy constraints remains a formidable challenge. A common solution is to rebalance (or reweight) the samples of different classes; however, the rebalancing ratio largely depends on empirical results. In this study, we propose an analytical class rebalancing method to compute the optimal rebalancing ratios for imbalanced datasets. We first theoretically derive the relationship between evaluation metrics--such as macro-precision, macro-recall, and macro-F1--and the rebalancing ratio. Based on these findings, we devise an efficient algorithm to determine the optimal rebalancing ratio that maximizes the corresponding metrics. Our method is parameter-free and doesn't increase the complexity of existing neural models. We demonstrate that our method achieves the optimum ratio for maximizing the concerned metrics while maintaining low computational complexity, scaling linearly with both the number of clients and samples. Experimental results on different datasets validate the effectiveness of our algorithms. To the best of our knowledge, we are the first to provide an analytical and parameter-free solution to the problem.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. FedReLa: Imbalanced Federated Learning via Re-LabelingGuangzheng Hu, Patricia Menendez Galvan, Feng Liu, Mingming Gong et al.ICML 2026
  2. Tackling Data Heterogeneity in Federated Learning with Class PrototypesYutong Dai, Zeyuan Chen, Junnan Li, Shelby Heinecke et al.AAAI 2023 · 154 citations
  3. An Agnostic Approach to Federated Learning with Class ImbalanceZebang Shen, Juan Cerviño, Hamed Hassani, Alejandro RibeiroICLR 2022 · 69 citations
  4. Addressing Class Imbalance in Federated LearningLixu Wang, Shichao Xu, Xiao Wang, Qi ZhuAAAI 2021 · 314 citations
  5. Interaction-Aware Gaussian Weighting for Clustered Federated LearningAlessandro Licciardi, Davide Leo, Eros Fanì, Barbara Caputo et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines