← 研踪 PaperTrailarXiv:2611.37869 · v1
Different Parallelism, Same Bits: Bitwise-Consistent LLM Reinforcement Learning with Unimatch
不同并行,相同比特:基于Unimatch的比特级一致LLM强化学习
首次提交 2026-11-28 02:24
版本更新 2026-11-28 02:24
雷达观测 2026-11-30 14:38
摘要
Reinforcement learning (RL) of LLMs computes each token's probability twice, once in rollout and once in the trainer, and expects the two to be bitwise consistent. In practice they differ, and this training-inference mismatch (TIM) can make training collapse. TIM mainly comes from parallelism. An engine splits its computation across GPUs, runs the pieces in parallel, and combines their results by a reduction, mostly an addition. Floating-point addition is non-associative, so adding in different orders gives different results. Existing work takes two directions. The first forces rollout and the trainer to add in one agreed order. Each engine then gives up its own configuration (e.g., its batch size and parallel degrees), which can cost up to 91% of the training throughput. The second keeps parallelism and mitigates TIM in the algorithm, which adds up to 47% to the step time and leaves the mismatch. Both thus trade parallelism against bitwise consistency, and the two appear to conflict. Our key insight is that what really conflicts with bitwise consistency is not parallelism, but the non-associative reductions in parallelism. If these reductions are eliminated, the two can coexist. We present Unimatch, which makes these reductions associative with two techniques. Structural elimination changes how a computation is split, so that each GPU computes complete outputs and the reduction is a gather without any addition. Arithmetic elimination changes the operation of a reduction to integer addition, which is associative. With Unimatch, the two engines return bitwise-identical results under their own configurations, and Unimatch achieves the performance of the unmodified engines (0.98-1.04x their step time). In 300 RL steps on Qwen3-30B-A3B, training on the unmodified engines collapses, with and without a standard algorithmic mitigation, and training with Unimatch keeps improving.
作者备注:19 pages, 10 figures, 1 table
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v1 · 2026-11-28 02:24 · 最新观测版本
Different Parallelism, Same Bits: Bitwise-Consistent LLM Reinforcement Learning with Unimatch
Reinforcement learning (RL) of LLMs computes each token's probability twice, once in rollout and once in the trainer, and expects the two to be bitwise consistent. In practice they differ, and this training-inference mismatch (TIM) can make training collapse. TIM mainly comes from parallelism. An engine splits its computation across GPUs, runs the pieces in parallel, and combines their results by a reduction, mostly an addition. Floating-point addition is non-associative, so adding in different orders gives different results. Existing work takes two directions. The first forces rollout and the trainer to add in one agreed order. Each engine then gives up its own configuration (e.g., its batch size and parallel degrees), which can cost up to 91% of the training throughput. The second keeps parallelism and mitigates TIM in the algorithm, which adds up to 47% to the step time and leaves the mismatch. Both thus trade parallelism against bitwise consistency, and the two appear to conflict. Our key insight is that what really conflicts with bitwise consistency is not parallelism, but the non-associative reductions in parallelism. If these reductions are eliminated, the two can coexist. We present Unimatch, which makes these reductions associative with two techniques. Structural elimination changes how a computation is split, so that each GPU computes complete outputs and the reduction is a gather without any addition. Arithmetic elimination changes the operation of a reduction to integer addition, which is associative. With Unimatch, the two engines return bitwise-identical results under their own configurations, and Unimatch achieves the performance of the unmodified engines (0.98-1.04x their step time). In 300 RL steps on Qwen3-30B-A3B, training on the unmodified engines collapses, with and without a standard algorithmic mitigation, and training with Unimatch keeps improving.
查看此版本解读 →查看此版本原文 ↗