Sending only what changed: bit-exact sparse weight sync for RL post-training
wsync 0.1.0 · an open implementation · 10 October 2026
Background
Decoupled RL systems train in one place and generate rollouts in another, so every policy update has to travel. Moving updated parameters from trainers to rollout generators is a major bottleneck (WeightBridge, 2026).
Miahi and Belilovsky report that about 99% of per-step updates are invisible after the BF16 cast, because Adam steps at RL learning rates fall below BF16's rounding threshold. Lossless sparse BF16 patches cut weight-sync traffic by over 100× (PULSE). SparseRL-Sync estimates about 100× less traffic at 99% sparsity.
Question
Can the idea be packaged as a small, dependency-free library that a receiver can trust: bit-exact, refusing patches it cannot verify, and cheap to reason about in bytes and seconds?
Method
- Cast FP32 to BF16, round to nearest even.
- Compare bit patterns; keep changed positions.
- Encode gaps as LEB128, values as u16, hashes before and after, checksum.
- Anchor first, every N syncs, or when denser than 30%.
- Receiver: in order, matching base hash, verified result; otherwise ask for an anchor.
Robustness
In the example run, patch 17 of 30 is lost: the receiver refuses 18 and 19 rather than applying them to the wrong base, the anchor at 20 heals it, and the run ends on the sender's exact hash. A flipped byte fails the checksum; a repeated patch is harmless because values are overwrites.
Results
| Learning rate | Changed / step |
|---|---|
| 1e-7 | 0.31% |
| 1e-6 | 2.25% |
| 1e-5 | 14.17% |
| 1e-4 | 59.50% |
Toy Adam model, 100,000 weights, mean of 10 steps (why-99.js).
At 1% density with anchors every 50 syncs: 505 MB per sync for a 7B model instead of 14 GB, 28× less; 72 GB instead of 2 TB for 1T parameters (what-it-saves.js). Example run of 30 syncs: 6.5× less than full copies with anchors every 10.
Limits
Estimates assume randomly spread changes. FP8 or INT4 rollouts change more densely. Fingerprints are not signatures. Layout mapping and sharding are left to the caller.