Stabilizing MoE Reinforcement Learning by Aligning Training and Inference Routers

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ma, Wenhan, Zhang, Hailin, Zhao, Liang, Song, Yifan, Wang, Yudong, Sui, Zhifang, Luo, Fuli
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917030353960960
author Ma, Wenhan
Zhang, Hailin
Zhao, Liang
Song, Yifan
Wang, Yudong
Sui, Zhifang
Luo, Fuli
author_facet Ma, Wenhan
Zhang, Hailin
Zhao, Liang
Song, Yifan
Wang, Yudong
Sui, Zhifang
Luo, Fuli
contents Reinforcement learning (RL) has emerged as a crucial approach for enhancing the capabilities of large language models. However, in Mixture-of-Experts (MoE) models, the routing mechanism often introduces instability, even leading to catastrophic RL training collapse. We analyze the training-inference consistency of MoE models and identify a notable discrepancy in routing behaviors between the two phases. Moreover, even under identical conditions, the routing framework can yield divergent expert selections across repeated forward passes. To address this foundational inconsistency, we propose Rollout Routing Replay (R3), a method that records routing distributions from the inference engine and replays them during training. R3 significantly reduces training-inference policy KL divergence and mitigates extreme discrepancies without compromising training speed. Extensive experiments on various settings confirm that R3 succeeds in stabilizing RL training, preventing collapse and outperforming methods such as GSPO and TIS. We believe this work can offer a new solution for stabilizing RL in MoE models.
format Preprint
id arxiv_https___arxiv_org_abs_2510_11370
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Stabilizing MoE Reinforcement Learning by Aligning Training and Inference Routers
Ma, Wenhan
Zhang, Hailin
Zhao, Liang
Song, Yifan
Wang, Yudong
Sui, Zhifang
Luo, Fuli
Computation and Language
Artificial Intelligence
Machine Learning
Reinforcement learning (RL) has emerged as a crucial approach for enhancing the capabilities of large language models. However, in Mixture-of-Experts (MoE) models, the routing mechanism often introduces instability, even leading to catastrophic RL training collapse. We analyze the training-inference consistency of MoE models and identify a notable discrepancy in routing behaviors between the two phases. Moreover, even under identical conditions, the routing framework can yield divergent expert selections across repeated forward passes. To address this foundational inconsistency, we propose Rollout Routing Replay (R3), a method that records routing distributions from the inference engine and replays them during training. R3 significantly reduces training-inference policy KL divergence and mitigates extreme discrepancies without compromising training speed. Extensive experiments on various settings confirm that R3 succeeds in stabilizing RL training, preventing collapse and outperforming methods such as GSPO and TIS. We believe this work can offer a new solution for stabilizing RL in MoE models.
title Stabilizing MoE Reinforcement Learning by Aligning Training and Inference Routers
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2510.11370