Weight Sync$SYNC

99% of the weights didn't change. Send the 1%.

After a reinforcement-learning step, the trainer has to push new weights to the machines generating the next batch. Most of a BF16 copy is identical to the last one. wsync is an open-source library that sends only the elements that changed, bit for bit, with hashes so nothing is applied to the wrong state.

TrainerRollout
step 0 changed — patch — full copy —

01 · Diff

Why 99% of a BF16 copy stays the same.

BF16 keeps 8 significant bits. A weight of 0.02 only changes when its FP32 master copy has drifted by about 0.00008, and an Adam step at a learning rate of 1e-6 moves it by about 0.000001. Run a small trainer here and watch how many BF16 values actually change at each step.

A toy model: Adam on noisy gradients with FP32 master weights. Published measurements on real RL post-training report about 99% of BF16 elements unchanged per step.

—of BF16 values unchanged per step, on average

02 · Encode

A patch is a header, the gaps, the values and a checksum.

Indices are stored as the gaps between changed elements, as variable-length integers: at 1% density most gaps fit in one byte. Values are the new BF16 bit patterns, written as overwrites, so a patch applied twice gives the same tensor. Below is a real patch, made in your browser from one training step of 4,096 weights.

BytesFieldHere

patch.wsp


      
    

03 · Send

What it saves on your model and your link.

A full anchor goes out every so often, deltas in between. Pick a model size, how dense the changes are and how fast the link is.

Model

Link

Full copy every sync

——

wsync, average per sync

——

— less, every sync

Published for comparison: about 108 MB per sync for a 14 GB BF16 model (PULSE), and an average 20.3 GiB delta for a 1,024 GiB checkpoint (Fireworks). This estimate assumes the changed elements are spread at random.

04 · Apply

Break it on purpose.

A sender and a receiver, 20,000 weights, anchors every 8 syncs. Step it, lose a patch, flip a byte on the wire or send the same patch twice. The receiver should refuse what it cannot verify and end on the sender's exact hash.

Sender

seq —

—

Receiver

seq —

—

—

    05 · Verify

    The poster.

    The research behind wsync, laid out the way it would hang at a conference: what is known, what wsync does, what it measured on its own examples, and where it stops.

    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

    1. Cast FP32 to BF16, round to nearest even.
    2. Compare bit patterns; keep changed positions.
    3. Encode gaps as LEB128, values as u16, hashes before and after, checksum.
    4. Anchor first, every N syncs, or when denser than 30%.
    5. 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 rateChanged / step
    1e-70.31%
    1e-62.25%
    1e-514.17%
    1e-459.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.

    References. E. Miahi, E. Belilovsky, arXiv 2602.03839 (PULSE) · L. Hu et al., arXiv 2605.07330 (SparseRL-Sync) · X. Jiang et al., arXiv 2609.25442 (WeightBridge) · AI Infrastructure Knowledge Base, Delta Weight Sync for RL (Fireworks and PULSE figures). 2602.03839 · 2605.07330 · 2609.25442 · ai-infrastructure.net

    06 · Source

    One file, no dependencies, fourteen tests.

    Everything above runs on the same library. Pick a file, or take the package and run the tests.

    README.md

    Download wsync 0.1.0

    unzip wsync-0.1.0.zip && cd wsync && npm test