Task2vec Readiness: Diagnostics for Federated Learning from Pre-Training Embeddings
Abstract
Federated learning (FL) performance is highly sensitive to heterogeneity across clients, yet practitioners lack reliable methods to anticipate how a federation will behave before training. We propose readiness indices, derived from Task2Vec embeddings, that quantifies the alignment of a federation prior to training and correlates with its eventual performance. Our approach computes unsupervised metrics -- such as cohesion, dispersion, and density -- directly from client embeddings. We evaluate these indices across diverse datasets (CIFAR-10, FEMNIST, PathMNIST, BloodMNIST) and client counts (10--20), under Dirichlet heterogeneity levels spanning and FedAVG aggregation strategy. Correlation analyses show consistent and significant Pearson and Spearman coefficients between some of the Task2Vec-based readiness and final performance, with values often exceeding 0.9 across datasetclient configurations, validating this approach as a robust proxy for FL outcomes. These findings establish Task2Vec-based readiness as a principled, pre-training diagnostic for FL that may offer both predictive insight and actionable guidance for client selection in heterogeneous federations.
Figures & tables
| Dataset | K | Cohesion | -Dispersion | Density | CDI | Average Entropy |
|---|---|---|---|---|---|---|
| bloodmnist | 10 | 0.994 ( 0.000 ) | 0.794 ( 0.019 ) | -0.605(0.112) | 0.940 ( 0.001 ) | 0.825 ( 0.012 ) |
| bloodmnist | 20 | 0.958 ( 0.000 ) | 0.868 ( 0.005 ) | 0.227(0.589) | 0.940 ( 0.001 ) | 0.881 ( 0.004 ) |
| cifar10 | 10 | 0.964 ( 0.000 ) | 0.966 ( 0.000 ) | 0.157(0.710) | 0.982 ( 0.000 ) | 0.950 ( 0.000 ) |
| cifar10 | 20 | 0.845 ( 0.008 ) | 0.985 ( 0.000 ) | -0.217(0.606) | 0.952 ( 0.000 ) | 0.981 ( 0.000 ) |
| femnist | 10 | 0.953 ( 0.000 ) | 0.795 ( 0.018 ) | -0.152(0.720) | 0.852 ( 0.007 ) | 0.857 ( 0.007 ) |
| femnist | 20 | 0.989 ( 0.000 ) | 0.988 ( 0.000 ) | -0.386(0.345) | 0.991 ( 0.000 ) | 0.899 ( 0.002 ) |
| Dataset | K | Cohesion | -Dispersion | Density | CDI | Average Entropy |
|---|---|---|---|---|---|---|
| bloodmnist | 10 | 0.976 ( 0.000 ) | 0.929 ( 0.001 ) | -0.119(0.779) | 0.976 ( 0.000 ) | 0.976 ( 0.000 ) |
| bloodmnist | 20 | 0.976 ( 0.000 ) | 0.976 ( 0.000 ) | -0.238(0.570) | 0.976 ( 0.000 ) | 0.976 ( 0.000 ) |
| cifar10 | 10 | 0.952 ( 0.000 ) | 0.976 ( 0.000 ) | -0.095(0.823) | 0.976 ( 0.000 ) | 0.952 ( 0.000 ) |
| cifar10 | 20 | 0.970 ( 0.000 ) | 0.970 ( 0.000 ) | -0.323(0.435) | 0.970 ( 0.000 ) | 0.970 ( 0.000 ) |
| femnist | 10 | 0.905 ( 0.002 ) | 0.786 ( 0.021 ) | -0.119(0.779) | 0.881 ( 0.004 ) | 0.952 ( 0.000 ) |
| femnist | 20 | 1.000 ( 0.000 ) | 0.905 ( 0.002 ) | -0.429(0.289) | 0.976 ( 0.000 ) | 1.000 ( 0.000 ) |
Federated Learning
Federated learning trains shared models across data holders without requiring them to pool their raw data.
See all 943 papers