GPT-OSS training blew up until LinkedIn engineers fixed a sneaky MoE routing bug
Curated by the Inblix editorial team
LinkedIn’s push to build AI agents that handle multi-step recruiting and learning tasks hit a wall when GPT-OSS models simply refused to learn. The team needed a backbone model that could reason over incomplete info and coordinate tools — not just spit out answers. GPT-OSS looked promising on benchmarks but crumbled during actual agentic reinforcement learning.
Training runs on the ReTool task, where models solve math problems with a code compiler, went off the rails fast. Rewards flatlined while KL divergence and entropy exploded. Gradient norms spiked, as shown in their experiments charting the collapse. For context, a Qwen-2.5-32B model trained under identical conditions cruised to significantly higher rewards. Something specific to GPT-OSS was broken.
The culprit? A mismatch in how the Mixture of Experts architecture routed tokens during two forward passes. Proximal Policy Optimization requires the importance sampling ratio between old and current policies to be exactly one during on-policy updates. But the gating network was sending the same state-action pair to different experts on each pass, creating a tiny log-probability discrepancy. That discrepancy falsely triggered PPO’s clipping mechanism, corrupting the entire training signal.
The fix forced both passes to use identical expert routing, restoring the mathematical integrity of the on-policy update. Once the ratio stayed at one as intended, the optimization stabilized. It’s a textbook case of how a subtle architectural detail — stochastic expert assignment — can silently break a reinforcement learning pipeline that works fine on dense models. The solution applies to both the 20B and 120B GPT-OSS variants, though the blog focuses on the smaller model’s results. For teams betting on MoE architectures for agent training, this is a debugging landmark.
💡 Key Takeaways
- GPT-OSS's MoE architecture allowed different expert routing on two forward passes, breaking the core PPO requirement that the importance sampling ratio equal one during on-policy training.
- Training on ReTool agentic coding tasks completely failed until engineers aligned the expert routing between passes, instantly stabilizing rewards and gradient norms.
- This issue is invisible when fine-tuning without tool calling, meaning many teams evaluating GPT-OSS for agents could be hitting a wall they don't yet understand.
Keep reading: See related articles below for more coverage on this topic.
Get smarter about AI
The sharpest AI news, curated daily. Delivered free to your inbox.