Opportunistic Expert Activation: Batch-Aware Expert Routing for Faster Decode Without Retraining
Abstract
Lay Summary
Large language models are increasingly built from many specialized components, called “experts,” where each word activates only a few experts instead of the whole model. This design can make models more powerful, but during text generation it can also become slow: when many user requests are processed together, the system may need to load many different experts into fast memory, even if each individual word uses only a small number of them. We propose Opportunistic Expert Activation, a method that makes this generation step faster without retraining the model. For each word, our method first keeps the most important experts so that the model still has the computations it most needs. It then lets words reuse additional experts that are already being loaded for other words in the same batch, avoiding extra memory movement. This simple change reduces the number of experts that must be loaded during generation, which lowers latency. On large Qwen3 mixture-of-experts models, our method substantially speeds up the expert layers while largely preserving answer quality, making these models more practical for real-time serving.