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

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

The combination of SGLang and Miles enables truly bit-level exactness in on-policy RL training. The trainer can reproduce the log-probabilities from the rollout phase bit by bit, avoiding the numerical deviations common in traditional asynchronous training.

System Design Highlights

This approach strictly aligns the rollout and training processes to ensure consistency between kernel computation and weight updates. Experiments cover multiple mainstream model families, validating its stability at different scales.

SGLang Miles architecture diagram

Training Results and Performance Analysis

  • Exact matching significantly reduces errors caused by kernel mismatch
  • It can clearly distinguish weight lag issues in asynchronous training
  • The performance overhead is within an acceptable range and suitable for large-scale deployment

This method provides a more reliable foundation for RL training on benchmarks such as Chatbot Arena.

This article is from LMSYS blog, translated in full by Winzheng (winzheng.com). Click here to view the original When republishing the translation, please credit the source. Thank you!