When many hospitals, phones or sensors each hold a small, slightly different dataset, each one faces the same question: how much should it borrow from the others? Borrowing more data lowers the noise in its estimates. But if the other sites' data look systematically different, borrowing also pulls the estimates in the wrong direction. Statistics has precise answers to this for simple models. Federated learning, where models are trained across sites without moving raw data, mostly answers it with heuristics, iterative training, or not at all.
This note proposes to answer it exactly, in a single communication round, at no extra upload cost. Clients pass their data through a frozen pretrained encoder and send per-class counts, means and covariances of the resulting features, as some one-shot methods already do. We observe that these same statistics also measure, for every pair of clients, how far apart their class distributions are (the bias of borrowing) and how noisy each client's estimates are (the variance). The server can therefore build, for every client, a separate classifier whose class means and covariances are shrunk toward the other clients by weights chosen to minimize that client's estimated error. The weights fall to "pool everyone" when sites agree and to "stay local" when a site is unique.
Core Claim
The closest one-shot method, The Gaussian-Head OFL Family (GH-OFL), has clients upload class-wise first and second moments of randomly projected frozen-encoder embeddings. The server simply sums them and fits linear or quadratic discriminant heads. Summation makes the result partition-invariant: the server's statistics are identical to centralized ones however the data are split. This is why GH-LDA reaches 86.05% on CIFAR-10 under extreme label skew (Dirichlet α=0.05) in one round, against roughly 77% for FedAvg after 50 rounds. The same summation, however, assumes every client shares the same class-conditional feature distribution. Under acquisition-system or domain shift, which is the norm in cross-silo medicine, summing is exactly the unweighted integration that Scaling laws for learning with real and surrogate data shows can degrade arbitrarily as the amount of shifted data grows.
Our claim is that the uploaded statistics are sufficient to compute discrepancy-aware, per-client, per-class shrinkage weights with a variance-corrected bias estimate. This needs no held-out data, no second round and no extra uplink bytes. On naturally shifted federations, the resulting personalized heads should beat both summed global heads and local heads on average and on the worst client. Under pure label skew they should recover GH-OFL's partition invariance, because the estimated bias vanishes.
The weighting rule is concrete. Fix a target client $k$ and class $c$. Each client $j$ supplies a class mean $\hat\mu_j$ from $n_j$ samples with within-class covariance $\hat\Sigma_j$. We estimate the target's true mean $\mu_k$ by $\tilde\mu_k=\sum_j w_j\hat\mu_j$, with weights on the simplex chosen to minimize an unbiased estimate of the error measured in the Mahalanobis geometry $M=\hat\Sigma_{\text{pool}}^{-1}$, which is the geometry that governs discriminant-analysis error:
$$ \hat w=\arg\min_{w\in\Delta}\; w^\top \hat B\, w + \sum_j w_j^2\,\frac{\operatorname{tr}(M\hat\Sigma_j)}{n_j},\qquad \hat B_{jl}=(\hat\mu_j-\hat\mu_k)^\top M(\hat\mu_l-\hat\mu_k)-\text{(variance correction)}. $$
Here $\hat B$ is the matrix of estimated cross-client biases, and the second term is the variance of each client's mean. The variance correction subtracts the expected inflation of squared distances caused by noise in $\hat\mu_k$ and $\hat\mu_j$, which is $\operatorname{tr}(M\hat\Sigma_k)/n_k$ plus the corresponding cross terms. This correction is what lets the rule tell real shift apart from small-sample noise, in the spirit of James–Stein shrinkage. Covariances are shrunk the same way.
The Mahalanobis choice follows Adaptive Sample Sharing for Multi Agent Linear Bandits. That work shows Euclidean distance misjudges which discrepancies matter and that sharing pays only when bias is below uncertainty. We move its bias-below-uncertainty principle from online bandit link-pruning to a closed-form, one-shot weighting.
Relation to Prior Work
Three lines of work motivate the proposal by establishing that integration needs data-dependent weights. First, When can Multi-Site Datasets be Pooled for Regression? builds a non-central χ² test on site-level coefficients and covariances and proves pooling helps only below a local sample-size threshold. It is restricted to linear models and makes a binary pool/don't-pool decision. Second, the scaling-law paper above derives the optimal real/surrogate mixture weight α. Third, Adaptive Personalized FL via Kernel Mean Embeddings uses Q-aggregation over compressed kernel mean embeddings to pick collaboration weights. It still trains by iterative FedAvg afterward, compares marginal rather than class-conditional distributions, and depends on kernel bandwidth choices. We keep their logic but replace the binary test with continuous weights and the kernel embedding with class-conditional Gaussian moments that are already on the server. Model training then collapses into the same single round.
One-Shot Weighted Ensemble Estimation for Federated Quantile Regression supplies the closest method precedent. It derives a variance-optimal one-shot weighting matrix and cuts California Housing error from 44.42 (simple averaging) to 4.40 MSPE. It assumes a single shared parameter with missing feature blocks, so its weighting is about variance, not bias from shift, and it is confined to linear quantile regression under Gaussian features. We target shifted, personalized deep-feature classifiers.
Three other one-shot methods are the systems we must beat, and each leaves the shift problem open. GH-OFL sums statistics. FedPFT mixes client GMMs uniformly to sample synthetic features. FENS learns an aggregator over a full model ensemble, which requires a second iterative phase and storing every client model. A further constraint comes from FedBip, which shows similarity-weighted personalization helps under domain shift but uses heuristic cosine weights over many rounds. That result says personalization should pay off on OfficeHome-type shift, and it sets a multi-round reference.
Research Program
The work has four parts.
The first part is the estimator. We will derive the variance-corrected bias matrix for class means and for covariances, under random projection to dimension $d'$. Projection affects both terms, so we will characterize how the optimal $d'$ trades communication against the accuracy of the bias estimate. We will prove that the estimated risk is unbiased for the true Mahalanobis risk under Gaussian class-conditionals. We will also bound the excess discriminant error of the shrunk head relative to an oracle that knows the true weights, with the bound expected to scale with $d'/\min_j n_j$, the usual rate for plug-in moment estimates.
The second part is regime behavior. We will show analytically that under pure label skew the bias terms vanish in expectation, so the weights converge to sample-size proportions and the method reproduces summed partition-invariant statistics. We will also show that a client whose shift exceeds its uncertainty receives a near-one self-weight.
The third part is the protocol. Uplink is exactly GH-OFL's payload. Downlink is one personalized head per client, about $C\times d'$ numbers for linear discriminant analysis, so nothing like FENS's ensemble broadcast is needed. A new client that uploads its statistics can receive a head without anyone retraining. We will also release a "target-site" variant for a hospital that wants a head tuned to itself.
The fourth part covers known failure modes. We will diagnose heavy-tailed features with a Gaussianity check on projected embeddings. Both GH-OFL and the quantile-regression work flag non-Gaussian features as a weakness. We will also study how much a poorly matched frozen backbone caps achievable accuracy. Formal differential privacy for the moments is out of scope beyond noting that no new quantity is released.
Baselines
The naive reference points are two GH-OFL heads built from identical statistics: the purely local head (each client's own moments only) and the summed global head. Both use the same encoder, the same projection dimension and the same uplink. The local head is the do-nothing collaboration point. FLamby reports that local-only training falls as low as 35% balanced accuracy for some Fed-ISIC2019 clients. Beating the local head on every client, not just on average, is the negative-transfer criterion.
The strongest existing one-shot competitor on this question is the summed GH-LDA/QDA head from GH-OFL. Its reported figure is 86.05% accuracy on CIFAR-10 at α=0.05 in one round. We will rerun it with our encoder rather than borrow that number. On CIFAR-10 label skew, beating it is not the goal: matching it within noise is the goal, and that check confirms invariance is preserved. On shifted federations (Fed-ISIC2019, OfficeHome, PACS, FEMNIST writers), success means higher mean per-client accuracy and higher worst-client accuracy at equal bytes.
FedPFT is the second one-shot competitor. It reports results within 0.03% to 4% of centralized across eight vision datasets; no per-dataset PACS number was found on Lacuna. We will run it with the same encoder and match its GMM payload to our moment payload in bytes. FENS is reported within 3.1% of FedAdam on CIFAR-10. We will run it with its prescribed aggregator phase and report its extra rounds, client memory and download bytes. If it wins on accuracy, we will report the full cost-accuracy frontier rather than claim dominance.
As a multi-round ceiling we include FedBip on OfficeHome with CLIP-ViT. It reports 93.74%, against 90.02% for FedAvg. We also include the FLamby pooled reference of about 65% balanced accuracy on Fed-ISIC2019, with FL strategies at 50–55%.
Three ablations isolate the key ingredient. The first removes the variance correction, using raw distances, to test whether de-noising the bias estimate matters. The second uses Euclidean instead of Mahalanobis geometry. The third replaces our weights with weights proportional to sample size, which gives back pooling plus a self-weight. All methods get the same tuning budget, and our method has no per-dataset hyperparameters beyond $d'$, which is fixed across all of them.
Why not just…?
Why not just mix the global and local heads with one scalar tuned by local cross-validation? This is the real threat. It is cheap, it is one round, and the scaling-law analysis says a single well-chosen α already prevents catastrophic degradation. We include it as a baseline at equal compute. Our method differs in two places. Its weights are per-neighbor and per-class, so a dermoscopy site can borrow from the one similar acquisition system and ignore the rest. It also needs no held-out split, which matters most when $n_k$ is small: there, cross-validated α is noisiest and borrowing is most valuable, per the pooling-threshold result of the multi-site regression paper. We will stratify results by client sample size. If the scalar mixture matches us across sizes on the natural splits, we will report that the gain comes from the variance correction alone and narrow the claim accordingly.
Why not just cluster clients first and sum statistics within clusters? Clustering is a hard version of our weights and needs a cluster count. On MovieLens, BASS's graded, uncertainty-aware sharing beat the cluster-based SCLUB in cumulative regret (10,273 against 11,085) and the independent baseline (11,825). That result suggests hard partitions waste borderline neighbors. We will run k-means over client mean vectors, with k chosen by an oracle on test data, to give clustering its best case.
Why not just fine-tune the backbone with one-shot LoRA, as YOCO does? It adapts features that our method keeps frozen, and that could win where the encoder is mismatched. It also uploads adapter weights and averages them without any bias-variance accounting. The two are complementary: our weighting could sit on top of LoRA-adapted features. We will report one comparison on OfficeHome to locate the crossover point rather than claim superiority.
Proposed Experiments
The decisive experiment is a controlled shift sweep. We take CIFAR-10 features from a frozen encoder, split them across clients with a Dirichlet α of 0.05, then add a client-specific affine feature shift of growing magnitude. We plot per-client accuracy and the learned self-weight against shift size, alongside an oracle that knows the true moments. The prediction is that at zero shift our method matches summed GH-LDA, at large shift it matches local, and in between it beats both. If it tracks the oracle weights poorly, the estimator is the problem.
The natural-shift tests use Fed-ISIC2019, Fed-Camelyon16 and Fed-Heart-Disease from FLamby. Fed-Heart-Disease uses raw tabular features, with no encoder. We add OfficeHome and PACS with a CLIP-ViT encoder, and FEMNIST split by writer. The metrics are mean and worst-client balanced accuracy, the fraction of clients worse than local, uplink and downlink bytes, and wall-clock time. Robustness checks vary the projection dimension $d'$ and subsample clients to small $n$. For heavy tails, we will apply a Gaussianizing transform and report whether the gains survive.
The idea is wrong, or at least not worth the extra machinery, if on the natural splits it fails to beat the summed head on worst-client accuracy, or if it fails to beat the cross-validated scalar mixture for small clients.
References
- The Gaussian-Head OFL Family: One-Shot Federated Learning from Client Global Statistics
- Scaling laws for learning with real and surrogate data
- Adaptive Sample Sharing for Multi Agent Linear Bandits
- When can Multi-Site Datasets be Pooled for Regression? Hypothesis Tests, $\ell_2$-consistency and Neuroscience Applications
- Adaptive Personalized Federated Learning via Multi-task Averaging of Kernel Mean Embeddings
- One-Shot Weighted Ensemble Estimation for Federated Quantile Regression: Optimal Statistical Guarantees under Heterogeneous Structured Data
- Parametric Feature Transfer: One-shot Federated Learning with Foundation Models
- Revisiting Ensembling in One-Shot Federated Learning
- Bi-level Personalization for Federated Foundation Models: A Task-vector Aggregation Approach
- You Only Communicate Once: One-shot Federated Low-Rank Adaptation of MLLM
- FLamby: Datasets and Benchmarks for Cross-Silo Federated Learning in Realistic Healthcare Settings