Grafy News
Try Grafy free

New Study Diagnoses MoE Routing Flips and RL Instability

Researcher Zhiyuan Zhang identifies how bitwise mismatches cause routing flips in MoE models, explaining critical instabilities in reinforcement learning.

Illustration for the news story: New Study Diagnoses MoE Routing Flips and RL InstabilitySource: Grafy Research Lab

A new research paper has identified the precise mechanics behind instability in Mixture-of-Experts (MoE) models during reinforcement learning (RL). The study, authored by Zhiyuan Zhang from the University of Hertfordshire, reveals how tiny numerical discrepancies between training and inference lead to "routing flips" that disrupt model performance.

What are MoE routing flips?

In sparse Mixture-of-Experts architectures, a router decides which specific "expert" sub-networks should process a given token. According to the study, a mismatch often exists between how a model decodes a response (sequential sampling) and how it is trained (parallel teacher forcing). This mismatch arises from differences in matrix shapes, floating-point reduction orders, and hardware-specific rounding.

When these numerical differences occur, the router might choose a different expert during training than it would during inference. Zhang's research shows that these routing flips can cascade significantly; the study found that routing flips can multiply by a factor of 14.7 across the depth of a model. This phenomenon is a primary driver of instability in RL processes like Group Relative Policy Optimization (GRPO).

How does bitwise-exact arithmetic solve the problem?

To isolate the causes of these errors, the researcher employed a row-scaled Ozaki integer reference. This method uses integer arithmetic to provide a bitwise-exact baseline, eliminating the rounding errors inherent in standard BF16 (Bfloat16) precision.

By using this high-precision reference, the study was able to reduce BF16 routing flips to 0.000% across several major MoE families. Specifically, the research applied this to OLMoE-1B-7B, DeepSeek-V2-Lite, and Qwen3-30B-A3B-Base. The results showed zero divergence across different hardware architectures, including NVIDIA RTX 4090, A100, and H100 GPUs. Furthermore, the implementation of full-layer integer KV caching provided a 14.16\times speedup for the A100 decoder.

Why does PPO clipping cause asymmetric silencing?

Beyond simple routing errors, the paper explores how Proximal Policy Optimization (PPO) clipping interacts with these numerical mismatches. The study identifies a phenomenon called "asymmetric silencing," where the model's ability to learn from certain signals is disproportionately suppressed.

According to the findings, PPO clipping induces a 2:1 asymmetric suppression of high-entropy positive-advantage signals compared to negative signals. This means that when the model discovers a highly informative (high-entropy) correct path, the clipping mechanism is more likely to silence that signal than it is to silence a negative signal. This imbalance can hinder the model's ability to optimize effectively during the RL phase.

What is the impact of optimizer memory on model shifts?

The research also examined how the state of the optimizer affects parameter updates. The study utilized "warm AdamW curvature" analysis to track how parameter shifts evolve over time.

Zhang found that the curvature of the AdamW optimizer damps parameter shifts at step 50 by a factor of 4.6 to 14.5 compared to "cold-start" probes. This suggests that early-stage training measurements may overestimate how much the model's weights will actually move in a stable, ongoing training run. This distinction is vital for researchers trying to predict the convergence or stability of large-scale MoE training sessions.

How can researchers apply these findings?

For developers and researchers working on large-scale model training, these findings suggest that ensuring bitwise consistency between training and inference is not merely a matter of precision, but a requirement for stable RL. The study highlights that even a small percentage of routing flips can lead to significant performance drops in complex MoE architectures.

If you are currently reviewing similar technical papers or exploring the mathematical foundations of transformer architectures, you can use Reader to analyze complex PDFs and research papers. This allows you to query specific sections of dense academic texts to better understand the implications of numerical stability in your own AI workflows.

Frequently asked questions

What causes routing flips in MoE models?

Routing flips are caused by discrepancies between the training and inference environments. These mismatches stem from differences in how floating-point numbers are rounded across different hardware, different matrix shapes, and variations in the order of operations during parallel training versus sequential decoding.

How much does the Ozaki integer reference reduce routing flips?

The Ozaki integer reference reduces BF16 routing flips to 0.000% across the tested models. This includes OLMoE-1B-7B, DeepSeek-V2-Lite, and Qwen3-30B-A3B-Base, ensuring that the router's decisions remain consistent regardless of the GPU architecture used.

Does PPO clipping affect all signals equally?

No, PPO clipping induces asymmetric silencing. The research demonstrates that it suppresses high-entropy signals with a positive advantage approximately 2:1 compared to negative signals. This imbalance means the model may fail to properly learn from highly informative positive feedback during reinforcement learning.


Source: Grafy Research Lab — Beyond Routing Flips: Asymmetric Silencing, Phase Bifurcation, and Bitwise-Exact Diagnosis of MoE Reinforcement Learning