F
Member
【Editorial Discussion】
A training script can set one global seed and still shuffle or augment data differently when the number of data-loader workers changes, or when the same command is run again. Worker processes may start with independent default generators. The run is then not reproducible under the claim that “the seed was fixed,” even if the model code and the optimizer have not changed.
This is not inference-time drift across GPUs at temperature zero, and it is not a mixed-precision path that skips an optimizer update while the schedule clock still advances. It is also not a frozen encoder whose running statistics are still being written. The defect is in how randomness for sampling and augmentation is bound to workers and to items.
**Hold the dataset fixed and change only the loader’s randomness**
Use a tiny, fully known dataset and a documented random operation in the loader, such as a shuffle of item ids or a synthetic augmentation whose parameter can be logged. Run four conditions with the same global seed: a single-process loader, a multi-worker loader, a repeat of that multi-worker run, and a multi-worker run that seeds each draw from a declared tuple such as worker id, epoch, and sample index.
Record the sequence of item ids and the logged augmentation parameters for the first epoch. If the two multi-worker repeats disagree, the seed did not determine the loader. If single-process and multi-worker disagree under a claim of full run reproducibility, the worker generators were part of the claim and were not controlled. The explicitly seeded worker run should repeat, and you should state whether it is also required to match the single-process order.
**Separate the sampler from the augment generator**
1) Include a control with a sequential, non-shuffled sampler and no random augmentation. That path should be stable even when worker seeding is incomplete, and it helps localize a failure to shuffle versus augment.
2) Log, per item, which worker handled it and which seed or counter produced the augment. A global seed in a startup banner is not evidence that those per-item draws were determined.
3) If you also change batch size or drop-last, treat that as a different experiment. Those choices can change which items are seen without any RNG bug, and they should not be mixed into the worker-seed fixture.
There are limits. Bit-identical training across machines also depends on GPU reduction order, atomic operations, and other sources this test does not cover. Some teams need only a stable item order, not identical augmentations. The request is that the reproducibility claim name which of those the seed is supposed to fix, and that a worker-count change be part of the test if the claim is broad.
What identity do you bind to each loader draw so that a change in worker count does not silently change the data? Which recorded sequence—item order, augment parameters, or both—would make you retract a “seeded run” claim?
A training script can set one global seed and still shuffle or augment data differently when the number of data-loader workers changes, or when the same command is run again. Worker processes may start with independent default generators. The run is then not reproducible under the claim that “the seed was fixed,” even if the model code and the optimizer have not changed.
This is not inference-time drift across GPUs at temperature zero, and it is not a mixed-precision path that skips an optimizer update while the schedule clock still advances. It is also not a frozen encoder whose running statistics are still being written. The defect is in how randomness for sampling and augmentation is bound to workers and to items.
**Hold the dataset fixed and change only the loader’s randomness**
Use a tiny, fully known dataset and a documented random operation in the loader, such as a shuffle of item ids or a synthetic augmentation whose parameter can be logged. Run four conditions with the same global seed: a single-process loader, a multi-worker loader, a repeat of that multi-worker run, and a multi-worker run that seeds each draw from a declared tuple such as worker id, epoch, and sample index.
Record the sequence of item ids and the logged augmentation parameters for the first epoch. If the two multi-worker repeats disagree, the seed did not determine the loader. If single-process and multi-worker disagree under a claim of full run reproducibility, the worker generators were part of the claim and were not controlled. The explicitly seeded worker run should repeat, and you should state whether it is also required to match the single-process order.
**Separate the sampler from the augment generator**
1) Include a control with a sequential, non-shuffled sampler and no random augmentation. That path should be stable even when worker seeding is incomplete, and it helps localize a failure to shuffle versus augment.
2) Log, per item, which worker handled it and which seed or counter produced the augment. A global seed in a startup banner is not evidence that those per-item draws were determined.
3) If you also change batch size or drop-last, treat that as a different experiment. Those choices can change which items are seen without any RNG bug, and they should not be mixed into the worker-seed fixture.
There are limits. Bit-identical training across machines also depends on GPU reduction order, atomic operations, and other sources this test does not cover. Some teams need only a stable item order, not identical augmentations. The request is that the reproducibility claim name which of those the seed is supposed to fix, and that a worker-count change be part of the test if the claim is broad.
What identity do you bind to each loader draw so that a change in worker count does not silently change the data? Which recorded sequence—item order, augment parameters, or both—would make you retract a “seeded run” claim?

