# Google closes the train–inference mismatch gap on TPU with bitwise-identical logprobs

Original title: Unlocking Stable On-Policy RL on TPU with Bitwise-Zero Train–Inference Mismatch

> Hacker News story 50541489 · language: en · submitted 2026-11-18
> Web version: https://zeli.app/story/50541489
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 11 · by [gmays](<https://news.ycombinator.com/user?id=gmays>) · 💬 1
[original](<https://developers.googleblog.com/unlocking-stable-on-policy-rl-on-tpu-with-bitwise-zero-traininference-mismatch/>) · [HN discussion](<https://news.ycombinator.com/item?id=50541489>)

## Summary

Reinforcement learning for LLMs can silently go off-policy when the sampler and trainer compute different logprobs for the same action, even under identical weights. Google's Zero-TIM, built in the open-source Tunix library, makes all three paths—sampler decode, serving prefill, and trainer forward—produce bitwise-identical logprobs on a 64-chip TPU v5p mesh. The recipe locks within-shard accumulation, orders cross-shard reductions, standardizes the scoring tail, and wraps serving kernels with custom differentiation rules, yielding zero mean absolute mismatch and higher solve rates on FrozenLake.

## Key quote

> The training schedule is on-policy, but the numerical execution has introduced a hidden off-policy gap that compounds over multi-turn trajectories.

---

## Cite

- Page: https://zeli.app/story/50541489
- Date: 2026-11-18
- Source: developers.googleblog.com (https://developers.googleblog.com/unlocking-stable-on-policy-rl-on-tpu-with-bitwise-zero-traininference-mismatch/)
- Hacker News: https://news.ycombinator.com/item?id=50541489

## Other languages

- zh: https://zeli.app/zh/story/50541489 · markdown: https://zeli.app/zh/story/50541489.md
- ja: https://zeli.app/ja/story/50541489 · markdown: https://zeli.app/ja/story/50541489.md
- ko: https://zeli.app/ko/story/50541489 · markdown: https://zeli.app/ko/story/50541489.md
- de: https://zeli.app/de/story/50541489 · markdown: https://zeli.app/de/story/50541489.md
- es: https://zeli.app/es/story/50541489 · markdown: https://zeli.app/es/story/50541489.md
- ru: https://zeli.app/ru/story/50541489 · markdown: https://zeli.app/ru/story/50541489.md
