Skip to content
DAH

A bitwise-reproducible all-reduce independent of topology with under 5% overhead

OpenTo verify: GPU benchmarkPosed by Non-associativity of floating-point addition in collective reductions
AI-reviewed
On this page16 sections
Difficulty
39/100Hard
How far from a resolution. P vs NP = 100
Application value
37/100Indirect
Realistic practical impact if resolved. P vs NP = 100
Leverage
31/100Local
How much other knowledge hinges on it. P vs NP = 100

Difficulty 39: fixed-order tree reductions already give bitwise determinism (TP-invariant inference, OPEN-1B), but doing it at bandwidth-optimal speed across 1 MB to 1 GB pulls numerics and systems design together. Application value 37: exact restarts, debugging, auditable training and removing train-inference mismatch in RL, not raw speed. Leverage 31: reproducible and auditable training builds on it.

The problem

Can GPUs add up numbers in a way that always gives exactly the same bits, without slowing down?

  1. 1Rounding makes grouping change results
  2. 2Different patterns give different bits
  3. 3Large runs cannot be restarted exactly
  4. 4Fix the order or add exactly
  5. 5Same bits, within 5% of NCCL speed

What is asked. When many GPUs train one model, they repeatedly add up their results with an all-reduce: every GPU contributes a tensor and receives the sum. Floating-point addition is not associative. (a+b)+c(a + b) + c can differ from a+(b+c)a + (b + c) in the last bits, because each addition rounds. So the sum's exact bits depend on the order in which partial sums are combined, and that order changes with the algorithm, the number of GPUs and how they are wired. The problem asks for an all-reduce (and reduce-scatter) whose output is bitwise identical across repeated runs, across ring versus tree algorithms, and across different assignments of ranks to GPUs. It must handle BF16 and FP32 sums, and run within 5% of NCCL's speed for messages from 1 MB to 1 GB on 8 H100s.

A worked example. In BF16 (8 significant bits), take a=256a = 256, b=1b = 1, c=1c = 1. Adding left to right, 256+1=257256 + 1 = 257 is not representable (neighbours are 256 and 258) and rounds back to 256. Then 256+1256 + 1 rounds to 256 again. Adding b+cb + c first gives 2, and 256+2=258256 + 2 = 258 is exact. Same numbers, different answers. The analogy is a cashier who drops pennies when the total is large. The result depends on whether the pennies are counted first. It breaks because the GPUs can be forced to count in one agreed order, which costs coordination.

Why it is hard. Two routes exist. One fixes the order, for example a binary tree that always pairs the same partial sums. But the fastest all-reduce algorithms (rings) choose their order to match the network, so fixing it may waste bandwidth. The other route adds in a way whose result does not depend on order, such as wider or exactly rounded accumulators. Those cost extra memory traffic.

State of the art. NCCL, NVIDIA's standard library, offers no topology-independent deterministic mode. Zhang et al. make language-model inference bitwise identical across different numbers of GPUs, using a fixed binary-tree all-reduce written in Triton. OPEN-1B makes a whole training run bitwise reproducible across different hardware, using a fixed-order sum after an all-to-all exchange. Neither reports bandwidth against NCCL across 1 MB to 1 GB, so the cost of determinism at training-scale message sizes is unknown.

What a solution looks like. Public code and a test suite showing bit-for-bit equality across all listed configurations, and at least 95% of NCCL's bandwidth at every size, reproduced independently.

Go deeper

The full technical text.

Design and implement an all-reduce (and reduce-scatter) whose output is bitwise identical across runs, across ring versus tree algorithm choices, and across different rank-to-GPU placements on the same node, for BF16 and FP32 sums, with throughput within 5% of NCCL's default for messages from 1 MB to 1 GB on 8x H100.

Words on this page (9)
Words on this page
all-reduce
A collective operation that sums a tensor across all GPUs and leaves the full sum on every GPU.
reduce-scatter
A collective operation that sums a tensor across GPUs and leaves each GPU with one slice of the sum.
associativity
The rule (a+b)+c = a+(b+c); exact for real numbers but not for rounded floating-point numbers.
rounding error
The difference between a true value and the nearest number the format can store.
floating point
Scientific notation in binary: a sign, a fraction (mantissa) and an exponent.
NCCL
NVIDIA's library of collective operations between GPUs, the standard baseline.
reproducibility
Getting the same result when the same computation is run again.
memory bandwidth
How many bytes per second can move between memory and the processor.
NVLink
NVIDIA's high-speed link between GPUs inside one server.
New to this? Read first (3)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then
    • A bitwise-reproducible all-reduce independent of topology with under 5% overheadThe problem

State of the art

Floating-point addition is not associative, so the result of a reduction depends on the order in which partial sums are combined. For a fixed NCCL configuration, a given algorithm and rank order generally produce a fixed order, but different algorithms, protocols, rank counts or topologies give different bits, and library documentation notes that results are not guaranteed to match across configurations. NCCL offers no topology-independent deterministic mode. Order-independent summation schemes exist (higher-precision or exactly-rounded accumulation). Two recent systems fix the reduction order instead: Zhang et al. (arXiv:2511.17826) make LLM inference bitwise identical across tensor-parallel sizes with a fixed binary-tree all-reduce written in Triton, and OPEN-1B (arXiv:2609.17380) makes a training run bitwise reproducible across heterogeneous hardware with a fixed-order local sum after an all-to-all. Neither reports bus bandwidth against NCCL across 1 MB to 1 GB, so the cost of determinism at training-scale message sizes is not established.

Realistic applications

Debugging, regression testing and exact restart of large training runs are easier when parallel configuration changes do not change the numerics.

What counts as solved

Public code and a test suite showing bit equality across the listed configurations and overhead under the bound, reproduced independently.

How it gets verified

To verify: GPU benchmark

A kernel run and timed on stated hardware against a baseline.

Hardware: one node with 8x H100 SXM 80 GB. Operation: sum all-reduce and reduce-scatter, BF16 and FP32, sizes 1 MB to 1 GB (powers of 4), random normal inputs and adversarial inputs with mixed magnitudes. Reproducibility test: outputs bitwise equal across 100 repeated runs, across NCCL_ALGO in {Ring, Tree} for the baseline (to show it differs), and across at least 5 random permutations of rank-to-GPU assignment, for the candidate. Baseline: NCCL latest stable, pinned, default settings, measured with nccl-tests. Metric: bus bandwidth, median of 100 iterations; pass if at least 95% of NCCL's at every size. Harness: public script and test suite at a pinned commit.

Claims

No claimed results on this problem.

Where the work is

Theory
30%
New mathematical or conceptual ideas
Engineering
45%
Building instruments, chips, systems, software, formal proofs
Compute
10%
Raw computation, search, simulation
Empirical
15%
Observation, experiment, data collection

Numerics research on summation order combined with systems engineering.

Connected problems

No connected problems.

Progress

  1. Nov 21, 2025
    Tree all-reduce for TP-invariant inference

    A fixed binary-tree all-reduce makes outputs bitwise identical across tensor-parallel sizes (preprint).

    source