Unlocking Stable On-Policy RL on TPU with Bitwise-Zero Train–Inference Mismatch
Google•How-to••by Yuxuan Zhang, Lin Chai, Lance Wang, Tianshu Bao and Weiren Yu•Google Developers Blog
How we eliminated floating-point train–inference logprob drift for on-policy LLM reinforcement learning across 64 Cloud TPU v5p chips using a generalizable four-part JAX and Pallas recipe in Tunix.
Zero-TIM makes sampler, prefill and trainer compute bitwise-identical logprobs for LLM RL on TPU, using batch-invariant Pallas kernels, ordered cross-shard reductions and custom VJPs in Tunix.
Who it is for
Teams running on-policy LLM reinforcement learning on Cloud TPU with JAX and Tunix who see unstable training from train-inference logprob mismatch.
Key points
Verified on 64 TPU v5p chips in a DP8xTP8 mesh with a Qwen3-8B baseline on synthetic FrozenLake.
Authors report zero mean absolute sampler-trainer logprob difference in the tested 200-step window; this is a single-seed test.
Prototype is part of the open-source Tunix library; the authors say linear-attention and MoE support is in progress.
AI:Google Cloud reports MLPerf Training v6.1 results: Ironwood TPUs and NVIDIA Blackwell GPUs trained target models in minutes, including a first agentic reinforcement learning benchmark.
AI:Autofinetune runs an AI agent that edits a fine-tuning script, runs jobs on Cloud TPUs and keeps changes that raise an accuracy metric, shown on FunctionGemma SFT and Gemma 3 1B GRPO.
AI:Google describes a TPU microbenchmark suite that measures network, compute, memory, host transfer and attention performance, and shows how to use the results to find bottlenecks.