Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, as local datasets grow, the computational and energy costs for clients—often resource-constrained devices—become a significant bottleneck. Coreset selection, the process of identifying a small, highly informative subset of data for training, offers a potential solution.
Traditional coreset methods typically prioritize "hard" samples—data points that are difficult for the model to classify or are extreme outliers. While effective in centralized settings, these methods often fail in FL. In a federated environment, selecting hard samples tends to amplify the "non-IID" (non-independent and identically distributed) nature of the data across clients. This increased heterogeneity leads to "client drift," hindering global model convergence and overall performance.
The FedCS Framework
To address these challenges, we propose FedCS (Coreset Selection for Federated Learning). Unlike previous methods that focus on extreme outliers, FedCS identifies informative samples located near decision boundaries while pruning both redundant data and extreme outliers.
The FedCS approach is built on three pillars:
- Distance Contrast (DC) Scoring: FedCS evaluates samples based on their "Distance Contrast"—the difference between a sample's distance to its own class center and its distance to the nearest center of a different class. Samples with low DC scores are near decision boundaries and are highly informative. High DC scores indicate either redundant samples (too close to the center) or extreme outliers (too far from all classes), both of which are pruned.
- Robust Global Centers: To compute DC scores without compromising privacy, clients upload local class centers. The server aggregates these using a median operation. This robust aggregation prevents extreme or "poisoned" data from individual clients from skewing the global class centers.
- Double Pruning Strategy: To maintain data balance, FedCS employs a two-stage pruning process. It more aggressively prunes "large-capacity" classes while preserving more data from smaller classes, effectively reducing the degree of non-IIDness across the federation.
Experimental Evaluation
We evaluated FedCS against several state-of-the-art coreset selection methods, including EL2N, Forgetting, Dyn-Unc, Moderate, and GradND. Experiments were conducted on standard computer vision benchmarks: CIFAR-10, CIFAR-100, CINIC-10, and TinyImageNet. To simulate realistic FL scenarios, we used Dirichlet sampling ($\alpha=0.1$ and $1.0$) to create heterogeneous data distributions across clients.
Performance Analysis
FedCS demonstrates significant improvements in both efficiency and accuracy. Notably, on CIFAR-10 with high heterogeneity ($\alpha=0.1$), FedCS achieved a Top-1 accuracy of 58.88% using only 44% of the data. In contrast, competing methods required nearly 90% of the dataset to reach similar performance levels.
As shown in the figure above, FedCS maintains superior stability at high pruning rates. While other methods experience sharp performance declines as more data is removed, FedCS continues to outperform the next best method (Dyn-Unc) by a substantial margin at a 70% pruning rate. Furthermore, theoretical and empirical analyses indicate that by reducing data heterogeneity, FedCS enables faster convergence to a lower final error.
Discussion and Insights
A key insight from this work is the "Hard Sample Trap" in Federated Learning. While hard samples can be beneficial in centralized training, they act as a liability in FL by exacerbating client drift. FedCS avoids this by focusing on decision-boundary samples, which are more representative of the underlying global distribution.
Interestingly, training on a FedCS-selected coreset often yields better results than using the full dataset. This suggests that pruning redundant and extreme data serves as a form of regularization, mitigating overfitting and the negative impacts of data imbalance.
Limitations and Future Work
While FedCS offers substantial gains, it requires a brief pre-training phase to extract the hidden representations needed for DC scoring. Future research could explore dynamic coreset selection, where the subset is updated during training, or integrate formal privacy frameworks like Differential Privacy to further quantify the security of the shared class centers.
Summary updated