Federated learning trains one model across many devices or hospitals that never share raw data. Bayesian versions of it learn a whole distribution over weights instead of a single weight vector. That distribution is what lets a model say "I am unsure" on unfamiliar inputs. The price is communication. Methods that represent each weight as a Gaussian, with a mean and a variance, must send roughly twice the data per round that plain federated averaging sends. Methods that keep curvature information send even more. Meanwhile, the systems literature on gradient synchronization has learned how to shrink model updates to 4 bits or less without hurting the final model. The two literatures have barely touched.
This note proposes to join them through one observation. A Bayesian client already knows, for every weight, how precisely that weight is determined. That knowledge is exactly what a compressor needs. The proposal therefore quantizes each weight's update in units of its own posterior standard deviation. Weights the model is unsure about are sent coarsely, and weights it is sure about are sent finely. The variance itself is sent on a logarithmic scale, at low precision and low frequency. The claim is that this makes uncertainty nearly free to communicate. A Gaussian federated posterior should cost little more than a compressed point-estimate model, and the damage that compression does to the posterior should be controlled by a single, interpretable knob.
Core Claim
Take a client running a diagonal Gaussian variational method, where each weight $j$ has a mean $\mu_j$ and a standard deviation $\sigma_j$. Suppose the client rounds its mean update to a grid of step $\Delta_j = c\,\sigma_j$, where $c$ is a scalar chosen by the user. The rounding error $e_j$ is then at most $\Delta_j/2$. The divergence between the intended posterior and the posterior the server actually reconstructs is bounded independently of the weight's scale:
$$ \mathrm{KL}\big(\mathcal{N}(\mu_j+e_j,\sigma_j^2)\,\|\,\mathcal{N}(\mu_j,\sigma_j^2)\big)=\frac{e_j^2}{2\sigma_j^2}\le\frac{c^2}{8}. $$
For uniformly distributed rounding error the expected value is $c^2/24$ per coordinate, which follows from the variance of a uniform variable on $[-\Delta/2,\Delta/2]$. Standard compressors do not have this property. They pick one scale per tensor or block, as in the Hadamard-smoothed difference quantization of SDP4Bit. Under such a scale, weights with tiny posterior spread can be shifted by many standard deviations while noisy weights receive wasted precision.
The scale $\sigma_j$ never needs to be transmitted as side information for the quantizer. Both client and server use the global posterior broadcast in the previous round to set the grid. For the variance itself, predictive uncertainty depends on $\sigma_j$ multiplicatively, so a quantization error of $\delta$ in $\log\sigma_j^2$ changes the sampling spread by a factor $e^{\delta/2}$. A few bits of log-precision, refreshed every $R$ rounds, should therefore suffice. Log coding also keeps every variance positive, which naive quantization of variances or Fisher entries does not guarantee.
Relation to Prior Work
Two papers motivate the claim that uncertainty is expensive to communicate. FedIVON runs a variational Newton-type optimizer on each client and merges diagonal Gaussians at the server by precision weighting. It reports better accuracy and calibration than FedAvg, but it sends mean and variance uncompressed, which doubles the payload. FedLPA uses Kronecker-factored Laplace posteriors in a single round, and its payload grows by about 2.7x over a checkpoint. This proposal reuses FedIVON's local optimizer and merging rule as its base method, and changes only what crosses the wire.
Three lines of work already reduce communication in Bayesian federated learning, and they are the closest prior art. QLSD quantizes Langevin sampler gradients to low bit-widths. It notes that the sampler's injected noise helps mask quantization noise, and it needs control-variate memory (QLSD++) to stay accurate. ELF adds error feedback to compressed Langevin Monte Carlo, but it is tested only on convex logistic regression. FedSI shrinks communication by keeping uncertainty on only 5–7% of weights, and it sends that subnetwork's covariance in full precision. All three use a compressor whose scale is blind to the posterior. QLSD's dithering effect is the closest idea, but it is incidental there. Here it becomes the design rule: the posterior's own spread sets the quantization step, and the KL bound above makes the resulting loss explicit.
On the systems side, the mean-update coder borrows two ideas from SDP4Bit: quantize differences rather than absolute weights, and handle outliers explicitly. DeMo supplies the idea of folding the untransmitted residual back into local state instead of keeping a separate error buffer, and we apply that to the rounding residual of $\mu$.
One paper constrains the evaluation. On the Utility of Gradient Compression in Distributed Training Systems shows that in fast datacenters, compression rarely speeds training: only 6 of more than 200 configurations improved. The reason is that encoding cost competes with the backward pass. We therefore target bandwidth-limited federated settings, which that paper explicitly exempts. We also report encoding time, which for an elementwise divide-and-round should be negligible.
Research Program
We will build a compressed FedIVON whose messages have three parts. The first is posterior-scaled, difference-coded mean updates on both uplink and downlink, with the rounding residual carried into the next round's local mean. The second is log-precision updates, quantized to $b_\sigma$ bits and sent every $R$ rounds. The third is a small escape code for coordinates whose update exceeds the grid's range, playing the role SDP4Bit's Hadamard smoothing plays for outliers.
The analysis extends the per-coordinate bound to the merged global posterior. The server's precision-weighted average is linear in the client means, so rounding errors from clients sum in a way we can bound. We will also characterize what staleness in $\sigma$ costs when the grid is set by last round's global posterior. Empirically, the program has two goals. It maps the frontier of total uplink bits against calibration and accuracy. It also tests whether $c^2/24$ per coordinate actually predicts how much calibration degrades as $c$ grows. If the bound predicts degradation well, practitioners get a dial they can set without tuning on held-out data, which matters because federated clients rarely share a validation set.
Baselines
The naive reference is uncompressed FedAvg: a point-estimate model at full precision, with no uncertainty modeling. It anchors both axes, bits and calibration.
The strongest competitor on calibration per bit is a compressed point-estimate model calibrated afterwards. This is FedAvg with SDP4Bit-style 4-bit difference quantization, followed by server-side temperature scaling. We give that baseline a held-out calibration set at the server, which is an advantage our method does not receive.
The strongest Bayesian baseline is uncompressed FedIVON. On EMNIST it reports 93.09% accuracy, against 91.66% for FedAvg and 91.33% for FedLaplace. No reported ECE value was found on Lacuna for FedIVON on any benchmark. We will rerun it to obtain calibration numbers. Beating it means staying within its accuracy and calibration, measured by expected calibration error and negative log-likelihood, while sending at most about 0.6 of FedAvg's full-precision bits. FedIVON itself sends roughly 2x.
For the sampling family we run QLSD++. Its CIFAR-10 result is 88.1% accuracy against an HMC reference of 89.6%, with 3–7x bit savings. Those figures come from small CNNs, so we compare at matched architecture and bits rather than against the quoted numbers. We also run FedSI at matched bits.
Two ablations isolate the key ingredient, and they matter most. The first is FedIVON with ordinary blockwise 4-bit quantization of $\mu$ and clipped $\sigma^2$ at the same bit budget. It tests whether posterior scaling, rather than compression in general, is what preserves calibration. The second keeps posterior-scaled means but either never sends precision after the first round or sends it uncompressed. It tests whether the precision channel matters.
All methods share architectures, client partitions, number of rounds, and local epochs. Each method receives the same hyperparameter-search budget, 20 configurations per method per dataset. Results are averaged over three seeds.
Why not just…?
Why not just train a compressed point-estimate model and apply temperature scaling afterwards? This is the most serious threat, and the experiments are built to settle it. Temperature scaling may match our in-distribution ECE. It cannot repair representations damaged by heterogeneity, and it adds no input-dependent uncertainty. There is evidence that training-time Bayesian treatment changes the model itself, not just its confidence. Online Laplace aggregation reports 48.57% global accuracy on CIFAR-10 at Dirichlet α=0.01, which it describes as a 5% improvement over FedAvg (FOLA). FedSI reports 93.98% against 88.26% for FedAvg on small-sample MNIST. If, at matched bits, temperature-scaled compressed FedAvg matches us on negative log-likelihood under shift and on out-of-distribution AUROC, then the Bayesian machinery is not worth its bits in this regime, and we will report that.
Why not just quantize FedIVON's messages with a standard 4-bit quantizer? The block-scale ablation answers this directly. The expected failure has a specific cause: one shared scale lets precise weights move many posterior standard deviations. QLSD found that plain quantization without memory did not converge to the right posterior, which suggests the failure is real. If the ablation matches our method, then posterior scaling adds nothing and the contribution reduces to compressing a Bayesian method with known tools.
Why not just skip sending the variance? Precision-weighted merging needs the server to know client precisions, so this should hurt aggregation under strong heterogeneity. But variances may change slowly, and stale ones might be enough. The no-refresh ablation, run across a sweep of $R$, measures this. If stale precision proves sufficient, that simplifies the method, and we would adopt it rather than argue for frequent refreshes.
Why not just use deep ensembles or WASH? Independent ensembles multiply communication and inference cost by the number of members. WASH keeps replicas in one loss basin through occasional parameter shuffling, and its averaged model reaches about 82% on CIFAR-100 against 84% for the full ensemble. However, WASH reports no uncertainty metrics, and its single averaged model gives up the ensemble's disagreement signal. We include a two-member WASH baseline at matched bits on CIFAR-100 as a check.
Proposed Experiments
Clients are partitioned with the Dirichlet label-skew and quantity-skew splits from DH-Benchmark, at α ∈ {0.01, 0.1, 1.0}. The datasets are EMNIST, CIFAR-10, CIFAR-100, and SVHN. Out-of-distribution detection uses two pairs: MNIST-trained models scored on Fashion-MNIST, following QLSD's protocol, and CIFAR-10 models scored on SVHN. Selected MedMNIST tasks serve as the safety-critical setting that motivates the work. Metrics are accuracy, ECE, negative log-likelihood, Brier score, OOD AUROC, total uplink and downlink bits, and per-round encoding time.
Four checks decide the outcome.
The first plots ECE and negative log-likelihood against cumulative bits for every method. Success requires our curve to dominate block-quantized FedIVON. It also requires matching uncompressed FedIVON at 0.6x or less of FedAvg's bits.
The second sweeps $c$ from 0.1 to 4. It tests whether the measured KL between compressed and uncompressed global posteriors tracks $Pc^2/24$, where $P$ is the number of weights, and whether calibration degrades smoothly in step with that KL.
The third compares our method against temperature-scaled compressed FedAvg at matched bits under α=0.01 and under the out-of-distribution pairs. This comparison determines whether uncertainty is worth communicating at all.
The fourth sweeps $b_\sigma$ ∈ {2, 3, 4} and $R$ ∈ {1, 5, 20}. It establishes how cheaply the precision channel can run before precision-weighted merging degrades.
References
- SDP4Bit: Toward 4-bit Communication Quantization in Sharded Data Parallelism for LLM Training
- Federated Learning with Uncertainty and Personalization via Efficient Second-order Optimization
- FedLPA: One-shot Federated Learning with Layer-Wise Posterior Aggregation
- QLSD: Quantised Langevin Stochastic Dynamics for Bayesian Federated Learning
- ELF: Federated Langevin Algorithms with Primal, Dual and Bidirectional Compression
- FedSI: Federated Subnetwork Inference for Efficient Uncertainty Quantification
- DeMo: Decoupled Momentum Optimization
- On the Utility of Gradient Compression in Distributed Training Systems
- A Bayesian Federated Learning Framework With Online Laplace Approximation
- WASH: Train your Ensemble with Communication-Efficient Weight Shuffling, then Average