Server-Centered Narrow Exponents for Federated On-Device Training

In a floating-point number, the exponent bits set the scale and the mantissa bits set the fine detail. That split creates two problems on cheap edge hardware. A single flipped exponent bit, caused by radiation or a faulty memory cell, can multiply a weight by up to $2^{128}$ and wreck a network. Wide exponents also cost bits on every transmission and every memory access. Federated learning (many phones or sensors train a shared model on their own data and send only updates to a server) runs exactly on this kind of hardware: commodity memory without error correction, tight energy budgets, and slow uplinks. The literature offers an apparent fix and an apparent veto. Narrowing the exponent caps how much damage a flipped bit can do Fault Robustness of Custom Floating-Point and Integer Formats. But removing even one exponent bit stops centralized training from converging, because gradients overflow or underflow To FP8 and Back Again.

This note argues that federated learning changes the terms of that trade-off. The server keeps a full-precision master copy of the model, and each client trains for only a few local steps before re-synchronizing. So the server can re-center each tensor's range at every round by broadcasting a per-tensor exponent offset. Clients can then work with only 2–3 private exponent bits per value. If this holds, one design choice gives three things at once: fewer bits on the wire, less energy per memory access, and a hard cap on how much a single bit flip can amplify a value. The cost is a few hundred shared offsets, cheap enough to protect in software.

Core Claim

Each client stores weights, optimizer state, and the uplink update in a format where a value in tensor $t$ is

$$x = (-1)^s \, 2^{\,E - b_t}\,(1 + M/2^m),$$

with sign bit $s$, a private exponent $E$ of $e$ bits, a mantissa $M$ of $m$ bits, and a per-tensor offset $b_t$ that the server recomputes each round from the current global model. A single flip in the private exponent changes the magnitude by at most a factor of $2^{2^e-1}$, which is the largest jump in an $e$-bit field. For $e=2$ that is a factor of 8, not $2^{128}$.

The claim has three parts. First, with server re-centering, federated local training converges at private exponent widths ($e=2$ or $3$) that break centralized training. Second, at a fixed total of 5–7 bits per value, this format beats both 8-bit floating point with a fixed offset and block floating point with a shared exponent on accuracy, energy, and fault tolerance together. Third, the offsets $b_t$ are the format's single point of failure, and triplicating them in software removes that weakness at negligible cost.

The format generalizes two existing points. Block floating point as used in LPT-FL is the case $e=0$ with an offset chosen locally. Standard FP8 E4M3 as used in FP8FedAvg-UQ is the case $e=4$ with a fixed offset. Neither paper sweeps the space between these points, models faults, or uses the server to set the range.

Grounding in Prior Work

Two papers motivate the work by showing the gap. FP8FedAvg-UQ trains and communicates in FP8 E4M3 and relies on stochastic rounding errors cancelling during averaging. A bit flip is not zero-mean noise, and the paper never models one. LPT-FL shows that 8-bit block floating point is enough for local training once the server aggregates in high precision. It reports collapse at 6 bits or fewer but cannot say whether range or mantissa precision is the cause. Our fixed-budget sweep over the exponent/mantissa split answers that question directly.

Three papers supply the method. Haripriya and Tudu show that exponent width is the main factor deciding whether a model survives memory faults, but only for static inference. We carry their format-selection logic into active federated training. Shi et al. show that protecting only sign and exponent bits recovers most reliability. Their protection needs hardware support. We apply the same idea in software, to a few hundred offsets rather than millions of exponents. Kim et al. give a per-bit energy model for federated quantized networks. We extend it to count exponent and mantissa bits separately.

One paper constrains the design. Lee et al. is the strongest argument against the proposal, and we address it head on. Their divergence occurs in long centralized runs with no outside reference for the range. Our hypothesis is that bounded drift within a round removes that failure mode. This predicts that the required exponent width grows with the number of local steps and the learning rate. If no such dependence appears, the hypothesis is wrong.

Research Program

We will build a quantization layer simulated in PyTorch that covers client weights, momentum buffers, and the update. Activations and gradients are short-lived, so they stay in E4M3 with ordinary dynamic per-tensor scaling, and we report results with that choice stated.

At each round the server computes $b_t$ so that the bulk of tensor $t$'s magnitude distribution sits mid-range. It broadcasts the offsets alongside the model. Clients store each offset in three copies and take a majority vote on every read. Updates travel in the same narrow format and use stochastic rounding, following FP8FedAvg-UQ. The server decodes them into FP32 and averages.

Faults are injected with PytorchALFI into client-resident tensors during local training, including the offsets themselves, at single-flip and multi-flip rates swept over several orders of magnitude. We model faults in device memory rather than on the radio link. Corruption that happens before encoding passes any transport checksum. Link-level bit flips appear only as a stress test.

Energy comes from the Kim et al. model, extended so that memory traffic and multiply-accumulate cost depend on total bits and adders depend on mantissa width. The model does not distinguish exponent from mantissa costs natively, so this extension is an approximation and we report it as one. We time encoding and decoding on a Raspberry Pi 5, the platform FedSZ used, to confirm that client overhead is small.

Baselines

The naive reference is FP32 FedAvg with no compression and no protection. It sets the accuracy ceiling under no faults and shows how badly unprotected wide exponents fail under faults. Every method in this note uses the same data splits, models, number of rounds, and client sampling.

The first strong baseline is FP8FedAvg-UQ from Towards Federated Learning with On-device Training and Communication in 8-bit Floating Point. It is the closest system to ours: low-precision floating point both on the device and on the wire. That paper reports at least a 2.9x communication reduction with final accuracy within a fraction of a percent of FP32. It does not report results under faults. We reimplement it with its deterministic local rounding, stochastic communication rounding, and optional server-side MSE projection, and we tune its learning rate on the same grid as ours.

The second strong baseline is LPT-FL from Low Precision Local Training is Enough for Federated Learning. It is the zero-exponent-bit end of our sweep. That paper reports about 53% accuracy on CIFAR-10 versus about 41% for competing methods, across 80 clients with Dirichlet non-IID splits. We rerun it at 8, 6, and 5 bits, with the server moving-average coefficient tuned on the same budget as our method.

Both strong baselines are also run with server-side update-norm clipping and with coordinate-wise median aggregation, so that our fault-tolerance gains are compared against cheap fault handling on the server, not against nothing. I found no reported result on Lacuna for robust aggregation under hardware bit flips.

Two ablations isolate the proposal's key ingredients. The first keeps $e$ fixed but replaces the server-set offset with a fixed offset, which isolates the effect of re-centering. The second turns off offset triplication, which isolates the protection.

Beating the baselines means the following. At no more than 6 bits per value, we must match FP8FedAvg-UQ's clean accuracy within 0.5 points. At the same time we must lose clearly less accuracy than both strong baselines, even with their clipping or median defenses, at fault rates where those baselines degrade. Finally, the extended energy model must show lower total energy to reach the target accuracy.

Why not just…?

Why not just use FP8 E4M3 with server-side norm clipping or median aggregation? For catastrophic flips in FP32 or BF16 this may be enough, because a $2^{128}$ outlier makes the update's norm explode and the server can discard it. The harder case is moderate damage. A flipped low-order exponent bit, or a corrupted shared exponent in block floating point, rescales many coordinates by 2–256x while leaving the overall norm within plausible bounds. Median aggregation is also known to cost accuracy when client data is non-IID. This is a real threat, so these combinations are run as baselines. If they match us under faults, the fault-tolerance part of the claim fails and only the bit and energy savings remain.

Why not just use INT8 or block floating point with a per-tensor scale? That is the $e=0$ point in our sweep. LPT-FL shows it works at 8 bits and breaks at 6 bits or fewer. Haripriya and Tudu report that INT8 has about 58.8 dB lower signal-to-noise ratio than E4M11. Our sweep at a fixed total bit budget tests whether spending 2 of 6 bits on a private exponent recovers what was lost. If $e=0$ wins at every budget, we report that private exponent bits are wasted in federated training.

Why not just use error-correcting memory, or rely on transport checksums? Commodity edge memory usually lacks error correction, and a federated protocol cannot require it. Transport checksums only catch corruption on the link. They cannot catch corruption that happened in device memory during local training. Software triplication of a few hundred offsets is the affordable middle ground, and the protection ablation measures what it buys.

Proposed Experiments

The main benchmarks are CIFAR-10 and CIFAR-100 with ResNet-18, across 80 clients with Dirichlet non-IID splits, matching LPT-FL's setup. We add Google SpeechCommands v2 with MatchboxNet and Keyword Transformer to match FP8FedAvg-UQ, and ViT-Tiny on CIFAR-100, where Haripriya and Tudu observed a 20x difference in single-flip sensitivity between formats.

For total budgets of 5 to 8 bits and every split with $e \in \{0,\dots,4\}$, we report clean accuracy, accuracy under each fault rate, uplink bits, and modeled energy to reach a target accuracy.

Three checks are decisive. The first is the dependence on local steps. With re-centering, the smallest exponent width that still converges should rise as local steps and learning rate rise. Without re-centering, it should match the widths at which Lee et al. see centralized training fail. If both conditions need the same width, server re-centering is not doing the work.

The second is attribution. At 6 bits, the fixed-budget sweep shows whether LPT-FL's collapse comes from too little range or too little mantissa precision.

The third is fault tolerance at fixed cost. At the bit budget where clean accuracy is matched, our format with offset protection must beat FP8FedAvg-UQ plus clipping and LPT-FL plus median under faults. If it does not, the proposal shrinks to a bit-allocation result and the fault-tolerance claim is dropped.