---
type: "post"
id: "true-on-policy-rl-bit-exact-rollout-and-08aeef"
slug: "true-on-policy-rl-bit-exact-rollout-and-08aeef"
title: "True On-Policy RL: Bit-Exact Rollout and Training with SGLang and Miles"
description: "RadixArk’s Miles team describes True On-Policy (TOP), a SGLang-and-Miles approach that makes trainer log-probabilities match rollout log-probabilities bit for bit across several model families."
retrieval_nugget: "RadixArk’s Miles team describes True On-Policy (TOP), a SGLang-and-Miles approach that makes trainer log-probabilities match rollout log-probabilities bit for bit across several model families. The method removes kernel mismatch, but not stale-weight lag in asynchronous RL, and the reported whole-step throughput is 0.90–0.93× the standard setup on two measured models."
published_at: "2026-11-28"
updated_at: "2026-11-28"
record_date: "2026-11-28"
date_kind: "published_at"
topics: ["ai-infrastructure","inference","models"]
entities: ["Miles","SGLang","RadixArk","Megatron","DeepSeek-V4","GLM-5.3","Qwen3.6"]
related_patterns: []
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://miles.radixark.com/blogs/true-on-policy-rl-bit-exact-rollout-and-training-with-sglang-and-miles"
source_urls: ["https://miles.radixark.com/blogs/true-on-policy-rl-bit-exact-rollout-and-training-with-sglang-and-miles"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-28T08:19:46.541Z","independent_sources":1,"notes_synthesized":null,"writer_model":null,"critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"high","human_review":"selective"}
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:true-on-policy-rl-bit-exact-rollout-and-08aeef"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/true-on-policy-rl-bit-exact-rollout-and-08aeef/","markdown":"https://newruntime.com/posts/true-on-policy-rl-bit-exact-rollout-and-08aeef.md","json":"https://newruntime.com/posts/true-on-policy-rl-bit-exact-rollout-and-08aeef.json"}
markdown_url: "https://newruntime.com/posts/true-on-policy-rl-bit-exact-rollout-and-08aeef.md"
---

# True On-Policy RL: Bit-Exact Rollout and Training with SGLang and Miles

## Retrieval answer

RadixArk’s Miles team describes True On-Policy (TOP), a SGLang-and-Miles approach that makes trainer log-probabilities match rollout log-probabilities bit for bit across several model families. The method removes kernel mismatch, but not stale-weight lag in asynchronous RL, and the reported whole-step throughput is 0.90–0.93× the standard setup on two measured models.

## Summary
RadixArk’s Miles team describes True On-Policy (TOP), a SGLang-and-Miles approach that makes trainer log-probabilities match rollout log-probabilities bit for bit across several model families. The method removes kernel mismatch, but not stale-weight lag in asynchronous RL, and the reported whole-step throughput is 0.90–0.93× the standard setup on two measured models.

## What happened
In its November 23, 2026 announcement, Yiming Li of the RadixArk Miles Team explains the mismatch that TOP is designed to address. Reinforcement learning systems commonly generate samples with an inference engine and update weights in a separate trainer. PPO and GRPO assume samples came from the policy being updated. But differences in kernels, batch shapes, precision, or mixture-of-experts routing can make the trainer calculate a different probability for a sampled token. That discrepancy makes the update off-policy unless corrected.

TOP aims to eliminate this kernel-induced gap by reproducing the rollout’s log-probabilities in the trainer. The announcement defines exactness narrowly: FP32 log-probability bytes must match for every token. The team reports bitwise forward parity across DeepSeek-V4-Flash and V4.1-Flash, GLM-5.2/5.3 and 5.3-Flash, dense Qwen3, the Qwen3.5 family, and Qwen3.8-Flash-Next. It says this includes speculative decoding where used, and reports tests on Hopper and Blackwell GPUs. Precision varies by family, with listed configurations using FP8 or BF16.

The team compares TOP with its “standard” setup, using the usual rollout and training kernels, alongside R3, which replays rollout MoE routing, and TIS, truncated importance sampling. In synchronous experiments on DeepSeek-V4-Flash, GLM-5.2, and DeepSeek-V4.1, TOP’s train/rollout log-probability difference was zero at every step. In an asynchronous Qwen3.6-35B-A3B text-to-SQL run, fresh tokens also matched exactly. Stale tokens still differed because the trainer was scoring samples generated by older weights. The team separates this weight lag from kernel mismatch: TOP removes the latter, leaving lag to be managed by the training recipe.

For Qwen3.6, the standard kernels’ equal-weight mismatch was 0.006–0.0095 per token, and the trainer and rollout disagreed on 94–98% of tokens. TOP’s kernel component was zero at each check. However, stale-token importance weights had a heavy tail. With weights uncapped, TOP without routing replay and standard plus R3 both saw weights in the thousands and lost accuracy mid-run. TOP plus R3 remained smooth; alternatively, truncating weights at 2 kept TOP plus TIS and standard plus R3 plus TIS smooth in the reported comparison.

The post also quantifies costs. On 64 H200s, whole-step token throughput was 0.90× standard for DeepSeek-V4-Flash and 0.93× for GLM-5.2. Rollout token rates were 0.79× and 0.88×, respectively. TOP does not yet support tensor parallelism, which can hurt single-request latency, and the team describes additional memory, synchronization, and expert-parallel overhead. The source says code changes, model-support skills, gate tests, and experiment launch recipes will be released as branches of the SGLang and Miles repositories.

## What the archive adds
New Runtime’s earlier coverage on [mixed-precision, mixed-accelerator samplers](https://newruntime.com/posts/toward-rl-on-mixed-precision-mixed-accelerator-samplers-e45555/) on October 16, 2026, noted that heterogeneous RL samplers can be useful when training explicitly corrects for policy mismatch. TOP is a new event on the same broad training-consistency problem, with a distinct claim: matching rollout and trainer arithmetic exactly can remove kernel mismatch rather than correcting for it after the fact.

## Trend signal
This supports the idea that [agent economics is shifting toward completed work](https://newruntime.com/patterns/agent-economics-moves-to-completed-work/), though only indirectly: the result makes verified training behavior, not nominal token throughput alone, part of the engineering trade-off. The more direct signal is that an RL system’s correctness depends on what happens across the rollout-to-training boundary. TOP’s measured overhead and its remaining lag problem show why teams need to evaluate the full training run, not treat parity at one interface as a complete solution.

## Why now
The Miles team says large RL runs are increasingly asynchronous to avoid waiting for long rollout responses to finish before training can begin. That makes stale weights an operational reality and raises the value of isolating their effects from accidental kernel mismatch. TOP’s experiments are framed around this problem, including an asynchronous multi-turn text-to-SQL run.

## Why it matters
For teams training models with asynchronous rollouts, a single “off-policy gap” number can hide different causes. Kernel mismatch exists even when weights are equal; weight lag appears because the rollout used an earlier policy. TOP’s approach makes the first component measurable and, in the reported setup, removes it. That can make importance-sampling decisions more interpretable: a team can target stale-policy correction without also compensating for numerical differences between systems.

The results are not a blanket recommendation to replace a standard trainer. Throughput, memory, parallelism, and numerical behavior all matter, and TOP’s whole-step results show a cost. The practical contribution is a way to reason about that cost against a correctness property, then test how it behaves in the actual model family and asynchronous recipe. Any team considering a similar design should evaluate full-run reward and task metrics alongside parity, speed, and stability rather than relying on token-level equality alone.

## Limits and uncertainty
The reported results come from experiments described by the Miles team; they are not an independent replication. The post says synchronous runs were one comparison per arm in specified settings, and the 64-H200 whole-step comparison reports means over steps 1–5 after excluding warmup. The source does not establish how broadly the performance trade-offs generalize to other hardware, workloads, or model sizes. TOP lacks tensor parallelism at the time of the announcement, and exact rollout parity does not remove stale-weight lag or determine the right importance-weight correction. The announced code and supporting branches are not described as generally released in the post.

## Skill to build now
For an asynchronous RL run, instrument the two sources of probability difference separately: compare trainer and rollout at equal weights to estimate kernel mismatch, then measure the additional difference on stale tokens. If MoE routing can change under lag, test routing replay separately. Compare capped and uncapped importance weights against reward and evaluation curves; do not assume exact kernels alone make uncapped updates safe.

## Reader takeaway
TOP’s central contribution is diagnostic as much as numerical: it removes rollout/trainer kernel mismatch so teams can see weight lag on its own. The reported approach reaches bit-exact parity across several model families, but incurs throughput and systems costs and still needs a strategy for stale weights.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Ai Infrastructure](https://newruntime.com/topics/ai-infrastructure.md): Explore the ai-infrastructure topic hub.
- topic hub: [Inference](https://newruntime.com/topics/inference.md): Explore the inference topic hub.
- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
