Publications

Mixture-of-Experts at Scale: What Mixtral and DeepSeek Changed

By Satwik ยท April 23, 2026

Mixture-of-Experts decouples a model's total parameter count from the compute spent per token by routing each token to a few specialized subnetworks. Mixtral and DeepSeek proved the approach at production scale and shifted the frontier from dense to sparse.

The sparse idea

A dense transformer runs every parameter for every token. Mixture-of-Experts breaks that coupling. In an MoE layer the feed-forward block is replaced by many parallel experts plus a small router network. For each token the router picks the top few experts (often two), and only those experts run. The model can therefore hold an enormous number of total parameters while spending compute proportional to only the active fraction.

The idea is old, going back to work in the early 1990s and revived for transformers by Shazeer and colleagues with the sparsely-gated MoE layer in 2017 and later Switch Transformer. What changed in 2023 was that open, high-quality MoE models shipped and worked. Mistral's Mixtral 8x7B used eight experts per layer with two active per token, giving roughly the quality expectations of a much larger dense model at the inference cost of a far smaller one. DeepSeek then pushed the design with fine-grained experts, shared always-on experts, and auxiliary-loss-free load balancing, scaling to hundreds of billions of total parameters with a small active count.

Why it mattered

MoE changed the unit economics of the frontier. Dense scaling ties capability to compute-per-token linearly, so every quality gain costs proportional inference. Sparse scaling lets you buy capacity with memory rather than per-token FLOPs. Total parameters, which correlate with knowledge and capability, grow while the active compute that determines latency and cost stays modest. For anyone serving models at volume, this is the difference between a viable and an unviable product.

DeepSeek's contribution was to show the design could be trained efficiently and openly. Fine-grained experts (more, smaller experts) give the router a richer palette to specialize, shared experts capture common computation so the specialized experts do not waste capacity relearning it, and load-balancing without a heavy auxiliary loss avoids the training instabilities that plagued earlier MoEs. The result reframed expectations: a well-built sparse model could match dense frontier quality at a fraction of the serving cost, which is why sparse architectures now dominate the efficiency conversation.

The engineering that makes it hard

MoE trades one problem for several. Routing must balance load, or a few popular experts become bottlenecks while others idle, wasting capacity and hurting throughput. Training can collapse toward a small set of experts unless the objective explicitly encourages balance. Serving is a memory and communication challenge: all experts must be resident even though most are idle per token, and in distributed serving the router scatters tokens across devices, making the all-to-all communication a dominant cost. These are the real reasons MoE took years to move from research to reliable production, and why the 2023 open releases were a milestone rather than a starting gun.

The security angle

The sparse structure introduces failure modes a dense model does not have, and our lab treats them as underexamined.

The first is routing as an attack surface. Behavior now depends on which experts fire, and the router is a learned function of the input. In principle an adversary who understands the routing can craft inputs that steer tokens toward or away from particular experts. If safety-relevant behavior is unevenly distributed across experts, an input that avoids the experts carrying refusal behavior could weaken guardrails. This is speculative in the open literature but structurally plausible, and it is the kind of asymmetry sparse models create that dense ones do not.

The second is cross-batch interference. Because expert selection and load balancing operate over batches, one request can, through routing and capacity limits, affect how another request in the same batch is processed. Tokens that exceed an expert's capacity may be dropped or rerouted. In a multi-tenant serving system this is a potential side channel: a crafted request could influence a co-located victim request's routing, and timing differences from expert load could leak information about what others are asking. Treating batch composition as a trust boundary matters here.

The third is uneven behavioral coverage. Safety tuning on a sparse model may not touch every expert equally. If refusal and alignment behavior concentrate in some experts, then inputs that route around them, or fine-tunes that perturb the router, could produce inconsistent safety behavior that dense evaluation misses. Evaluators should probe across the input distribution that exercises different routing paths, not just the common case.

Where this leaves us

Mixture-of-Experts is the dominant answer to the question of how to keep scaling capability without scaling per-token cost, and Mixtral and DeepSeek are the proof points that made it real and open. The efficiency is genuine and the architecture is here to stay. Our contention is that the security community has not caught up: the router is a new, learned, input-dependent control-flow mechanism, and any input-dependent control flow inside a model deserves the same adversarial scrutiny we give retrieval and tools. Sparse models are cheaper to serve and, in ways we are only beginning to map, differently attackable.