Teaching MoE Models When Not to Think: A Simple Explanation of ZEDA

By Youssef Hosni

Published: 2026-05-31

URL: https://todatabeyond.substack.com/p/why-half-the-experts-in-an-moe-model


Mixture-of-Experts (MoE) models reduce inference cost by activating only a subset of experts for each token, but most deployed MoE models still use a fixed expert budget. This means that predictable tokens, structured code fragments, and difficult reasoning steps may all receive the same number of expert activations.

The ZEDA paper addresses this limitation by converting already post-trained MoE models into more dynamic ones through zero-expert self-distillation. The method adds zero-output experts to the routing pool, allowing the router to skip part of the normal expert computation without removing the original experts. The adapted model is then trained using the original MoE as a frozen teacher, preserving behavior while learning when skipping is safe.

To Data & Beyond is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

Across Qwen3–30B-A3B and GLM-4.7-Flash, ZEDA replaces more than half of expert activations with zero experts, achieves around 1.20× inference speedup, and keeps average accuracy close to the original models. This blog explains the method, motivation, results, and why ZEDA is better understood as learned token-level compute skipping rather than pruning.

Table of Contents:

  1. Why Post-Trained MoE Efficiency Still Matters?
  1. MoE Models Are Efficient, But Still Waste Compute
  1. Dynamic MoE: The Natural Next Step
  1. The Core Idea of ZEDA: Add Experts That Do Nothing
  1. Adding Zero Experts Changes the Routing Problem
  1. Self-Distillation: The Original Model Becomes the Teacher
  1. Group Auxiliary Loss: Controlling How Often Zero Experts Are Used
  1. Experimental Setup: What Did They Test?
  1. Main Results: Half the Expert Compute, Small Accuracy Loss
  1. What Actually Determines When Experts Are Skipped?
  1. Why Code and Math Can Use Fewer Experts
  1. Why ZEDA Beats Naive Expert Truncation
  1. Practical Implications, Limitations, and Final Takeaway

Want to Learn Claude Cowork in a Practical Way?

I’m hosting a live 1.5-hour workshop: Hands-On Claude Cowork: From Prompts to Deliverables & Automated Workflows

We will cover how to use Claude Cowork to move from simple prompts to real deliverables, structured workflows, and practical automation.


1. Why Post-Trained MoE Efficiency Still Matters?

Mixture-of-Experts (MoE) models have become one of the most important architectural directions for scaling large language models because they increase the total capacity of the model without requiring every parameter to be used for every token.

Instead of passing each token through one large feed-forward network, an MoE layer contains multiple smaller feed-forward networks called experts, and a router selects only a small subset of these experts for each token. This design allows the model to store knowledge and capabilities across a large number of parameters while keeping the active computation per token relatively limited.

\Figure 1.A standard MoE layer routes each token to a fixed number of normal experts. ZEDA adds zero-output experts to the routing pool, allowing some selected expert slots to perform no computation while preserving the same nominal top-K routing structure.\

This is the principle behind models such as Qwen3–30B-A3B and GLM-4.7-Flash. These models contain many more total parameters than they activate during inference, which makes them more efficient than a dense model of comparable total size.

However, the standard MoE design still has an important limitation: the number of activated experts is usually fixed. Once the model is configured to select a certain number of experts per token, every token receives the same expert budget, regardless of whether that token is difficult, predictable, or structurally simple.

This fixed routing budget creates a practical inefficiency. A token that appears in the middle of a complex reasoning step and a token that appears as part of a predictable code pattern may both be routed to the same number of experts.

In other words, standard MoE models are sparse, but they are not fully adaptive in the amount of expert computation assigned to each token. They reduce computation compared with dense models, but they do not automatically reduce computation further when fewer experts would be sufficient.

The ZEDA paper, titled Post-Trained MoE Can Skip Half Experts via Self-Distillation, addresses this problem by proposing a method for converting an already post-trained MoE model into a more dynamic MoE model.

The key point is that ZEDA does not require pre-training a new model from scratch. Instead, it starts from an existing post-trained MoE model, adds zero-output experts to its MoE layers, and then uses self-distillation to adapt the modified model while preserving the behavior of the original one.

The zero-output expert is the central mechanism in this approach. Unlike a normal expert, it produces an output of exactly zero, which means that selecting it allows the model to skip part of the expert computation.

The router still selects the same nominal number of expert slots, but some of those slots can now be assigned to zero experts rather than normal experts. As a result, the effective number of active normal experts can vary from token to token, even though the top-K routing structure remains formally unchanged.

The reported results are notable because they show that this conversion can remove more than half of the expert computation while keeping the average performance close to the original model.

Across Qwen3–30B-A3B and GLM-4.7-Flash, ZEDA replaces around 51–53% of expert activations with zero experts and achieves approximately 1.20× end-to-end inference speedup, with only a marginal average accuracy drop across math, code, and instruction-following benchmarks.

\Figure 2.ZEDA reduces expert-level computation by more than half while keeping the adapted model close to the original post-trained MoE across the paper’s benchmark suite.\

The main contribution of ZEDA is therefore not simply that it reduces inference cost, but that it provides a practical method for making post-trained MoE models more compute-adaptive after training.

Rather than permanently removing experts or applying a fixed reduction to every token, ZEDA teaches the router to identify when normal expert computation can be skipped while remaining close to the behavior of the original model. This makes the method closer to learned conditional computation than to traditional pruning.


2. MoE Models Are Efficient, But Still Waste Compute

To understand why ZEDA is useful, it is important first to understand what problem MoE models were designed to solve. LLMs are expensive because each generated token requires many matrix operations across many layers.

In a dense transformer model, the same set of model parameters is used for every token, which means that the computation cost grows directly with the size of the model. As models become larger, this approach becomes increasingly expensive during both training and inference.

MoEs models reduce this cost by changing how part of the transformer layer is computed. Instead of using one large feed-forward network for every token, an MoE layer contains a collection of smaller feed-forward networks called experts.

A routing module then decides which experts should process each token. The model may contain many experts in total, but only a small subset of them is activated at a time. This allows the model to have a large total capacity while keeping the active computation for each token much smaller than the full model size.

\Figure 3.A dense transformer layer applies the same feed-forward computation to every token. An MoE layer replaces this with a router and multiple experts, allowing only selected experts to run for each token.\

This design is one of the reasons MoE models have become common in modern large language model architectures. They provide a practical way to increase parameter count without forcing every token to pass through every parameter.

For example, a model can store different capabilities across many experts, while the router selects only the experts that appear most relevant for the current token. In this sense, MoE is already a form of conditional computation because the path taken by each token depends on the router’s decision.

However, standard MoE routing still has a limitation that becomes important during inference. Although the identity of the selected experts can change from token to token, the number of selected experts is usually fixed. This is commonly described as a top-K routing policy.

If the model is configured to activate eight experts per token, then every token activates eight experts. The selected experts may differ, but the computation budget remains largely the same.

This creates a gap between expert selection and compute allocation. The router can decide which experts should be used, but it usually cannot decide how many experts are actually necessary.

A token that requires complex semantic processing and a token that appears in a highly predictable pattern may receive the same number of expert activations. From a serving perspective, this means that the model may still spend unnecessary expert computation on tokens where fewer experts would have been sufficient.

The problem becomes clearer when we separate model capacity from active computation. MoE models are efficient because they avoid activating the full model for every token.

Yet this does not mean that the active part of the model is always used optimally. A fixed top-K policy assumes that the same expert budget is appropriate across different tokens, contexts, and response patterns. In practice, this assumption is too rigid because not all tokens have the same level of uncertainty or computational need.

\Figure 4.In a standard top-K MoE router, different tokens can be routed to different experts, but they still receive the same number of expert activations. This creates a gap between expert selection and computer allocation.\

Dynamic MoE methods attempt to address this limitation by allowing the number of activated experts to vary across tokens. Under this view, the model should be able to allocate more computation when the next token is uncertain and less computation when the continuation is easier or more predictable. This would make the model not only sparse but also adaptive in the amount of expert computation it spends.

The practical difficulty is that many dynamic MoE approaches require architectural decisions during pre-training or involve substantial changes to the routing mechanism.

This limits their usefulness for the open-weight MoE models that practitioners already deploy. In real production settings, the model has often already gone through pre-training, supervised fine-tuning, preference optimization, and other post-training stages. Repeating that entire process only to obtain a more dynamic routing policy is usually not realistic.

\Figure 5.Static MoE models typically use a fixed expert budget per token, whereas dynamic MoE methods aim to vary the amount of expert computation based on the token or context.\

This is the specific gap that ZEDA tries to address. The goal is not to design a new MoE model from scratch, but to start from an already post-trained MoE model and make it more compute-adaptive after the main training pipeline has finished. If this can be done with limited adaptation cost, then existing MoE models can become cheaper to serve without discarding the capabilities they acquired during their original training process.


3. Dynamic MoE: The Natural Next Step

The limitation of standard MoE routing is not that the router lacks flexibility entirely. In fact, the router already makes an input-dependent decision by selecting different experts for different tokens.

A token in a mathematical derivation, a token in a code block, and a token in a general instruction-following response may all be routed to different expert subsets. This means that static MoE models already have some form of conditional computation, because the path taken by each token can vary according to its hidden representation.

The remaining limitation is that this flexibility usually applies to expert identity, not to the amount of expert computation. In a standard top-K MoE layer, the router decides which experts are selected, but the number of selected experts remains fixed by the model design. If K is set to 8, then each token activates 8 experts. If K is set to 4, then each token activates 4 experts. The selected experts may change from token to token, but the expert budget itself does not usually change.

Dynamic MoE is the natural extension of this idea. Instead of assigning every token the same number of activated experts, a dynamic MoE model aims to make the computation budget token-dependent.

\Figure 6.Static MoE models typically keep the number of activated experts fixed for every token, while dynamic MoE methods aim to vary the expert budget according to token-level computation needs.\

Tokens that require more computation can be routed through more normal experts, while tokens that are easier, more predictable, or less sensitive to expert transformation can be processed with fewer experts. The goal is not only to choose the right experts, but also to decide how much expert computation is needed for the current token.

This distinction is important because token difficulty is not uniform across a generated response. A model may move through several different regimes within the same answer. Some parts may involve ambiguous reasoning, where the next token depends on subtle context.

Other parts may follow a more regular pattern, such as formatting, code syntax, repeated mathematical notation, or predictable connective text. Treating all of these tokens as if they need the same expert budget is unlikely to be optimal from an inference-efficiency perspective.

Dynamic MoE, therefore, changes the question asked by the router. A static router effectively asks: which K experts should process this token? A dynamic router asks a broader question: how much expert computation does this token need, and which experts should provide it? This second question is more aligned with the practical goal of efficient inference, because it allows the model to reduce computation when the full expert budget is not necessary.

\Figure 7.Static MoE routing primarily changes which experts are selected, while dynamic MoE routing also changes how much expert computation is assigned to each token.\

The appeal of this idea is straightforward. If many tokens can be processed with fewer experts while preserving output quality, then the model can reduce inference cost without reducing its total parameter capacity. The experts remain available when needed, but they do not have to be used with the same intensity for every token. This gives the model a more fine-grained way to trade computation for quality at inference time.

However, making MoE routing dynamic is not only a matter of changing a hyperparameter. The routing behavior of a post-trained MoE model is the result of a long training process.

During pre-training and post-training, the model learns how to distribute tokens across experts, how to combine their outputs, and how to maintain stable behavior across many tasks. If we directly change the number of activated experts after training, we risk disturbing this learned routing structure and damaging the capabilities of the model.

This is why many previous dynamic MoE approaches are difficult to apply directly to existing open-weight MoE models. Some methods require the dynamic routing behavior to be introduced during pre-training, while others adapt models in more task-specific settings.

These approaches may be useful for designing new models, but they are less convenient for practitioners who already have a fully trained MoE model and want to make inference cheaper without repeating the full training pipeline.

The practical question is therefore more specific: can an already post-trained static MoE model be converted into a dynamic MoE model with limited additional training, while preserving most of its original capabilities?

\Figure 8.Dynamic MoE is easier to design during training than to add after a model has already been post-trained. ZEDA targets this practical conversion problem.\

This is the setting that makes ZEDA interesting. Rather than assuming we can redesign the model from the beginning, ZEDA starts from the model that already exists and asks whether its router can be adapted to spend less expert computation when that computation is not needed.


4. The Core Idea of ZEDA: Add Experts That Do Nothing

ZEDA begins from a simple but unusual idea: instead of directly reducing the number of selected experts, it expands the set of routing choices by adding new experts whose output is always zero.

These are called zero experts. Unlike normal MoE experts, they do not contain a feed-forward transformation that produces a meaningful hidden-state update. For any input representation, their contribution is defined to be exactly zero.

At first, this may seem counterintuitive. Adding experts usually means increasing model capacity or giving the router more specialized modules to choose from. ZEDA does something different.

It adds experts that do not add new knowledge, do not perform useful computation, and do not change the token representation directly. Their purpose is not to make the model more expressive, but to give the router a safe way to allocate less expert computation when less computation is sufficient.

\Figure 9.ZEDA expands the router’s candidate pool by adding zero-output experts. The router still selects the same number of slots, but selecting a zero expert skips the corresponding normal expert computation.\

To understand why this works, it helps to look again at top-K routing. In a standard MoE layer, the router selects K experts from the existing pool of normal experts.

If K is set to 8, then all 8 selected slots are occupied by normal experts, and each of these experts performs its feed-forward computation. The model may select different experts for different tokens, but every selected slot still corresponds to real expert computation.

ZEDA changes the candidate pool seen by the router. Instead of selecting K experts only from the original normal expert pool, the router now selects K slots from a larger pool containing both normal experts and zero experts. The value of K does not need to change.

What changes is the meaning of a selected slot. Some selected slots may still correspond to normal experts, while others may correspond to zero experts.

This creates dynamic computation without changing the nominal top-K structure. For example, suppose the router is still configured to select 8 experts. In the original static MoE model, this means that every token activates 8 normal experts.

After zero experts are introduced, the router may still select 8 slots, but only 4 of them may be normal experts, while the other 4 are zero experts. In that case, the token effectively uses only 4 normal expert transformations, even though the router still operates with a top-K value of 8.

\Figure 10.ZEDA keeps the same top-K routing interface while allowing some selected slots to become zero-output skip slots.\

This is the key design choice behind ZEDA. It does not force the model to permanently reduce K for every token, and it does not remove any of the original experts.

Instead, it allows the model to learn a token-dependent effective expert count. Some tokens can still use many normal experts, while others can route part of their expert budget to zero experts and therefore skip unnecessary computation.

This distinction is important because it separates ZEDA from naive expert reduction. If we simply reduce K from 8 to 4, then every token is forced to use fewer normal experts, including tokens that may still require more computation.

ZEDA provides a more flexible alternative because the router can decide, token by token, how many of the selected slots should correspond to normal experts and how many can be assigned to zero experts.

The original experts remain available throughout this process. ZEDA does not delete them, prune them, or replace their weights. The post-trained MoE model keeps its normal expert pool, and the zero experts are added as additional routing candidates.

\Figure 11.ZEDA should not be understood as pruning. It keeps the original expert pool intact and adds zero-output routing options that allow token-level conditional skipping.\

This means the method is better understood as learned conditional skipping rather than structural pruning. The model is not being told that some experts are globally unnecessary. It is being given a mechanism to avoid using normal expert computation when a specific token does not appear to need it.

There is still a challenge, however. The router of the original MoE model was not trained with zero experts in its candidate pool. It learned its routing behavior under the assumption that every selected expert would be a normal expert.

If zero experts are added without adaptation, the routing distribution may become unstable, and the model’s output can drift away from the behavior of the original post-trained model.

For this reason, zero-expert injection is only the first part of ZEDA. The method also needs an adaptation process that teaches the modified model how to use these new zero-output options while preserving the capabilities of the original MoE.

This is where self-distillation becomes central: the original post-trained MoE model is used as a teacher, and the zero-expert-augmented model is trained to remain close to it while learning when expert computation can be skipped.


5. Adding Zero Experts Changes the Routing Problem

Adding zero experts creates a mechanism for reducing expert computation, but it does not automatically produce a reliable dynamic MoE model. The original MoE model was not trained with zero-output experts in its candidate pool.

Its router learned to assign tokens across a fixed set of normal experts, and its downstream layers learned to receive outputs produced under that routing structure. Once zero experts are introduced, the model is no longer operating under exactly the same conditions.

This is an important point because MoE routing is not an isolated component. The router, the experts, and the rest of the transformer are trained together. During pre-training and post-training, the model learns not only what each expert should compute, but also how the router should distribute tokens across those experts and how the combined expert output should affect the hidden representation. This learned routing behavior becomes part of the model’s capability.

If zero experts are added without adaptation, the router suddenly receives new choices that were not present during the original training process. Some of these choices produce no transformation at all. Selecting them too often can weaken the expert contribution to the hidden state. Selecting them in the wrong places can change the model’s internal computation in ways that may be small at one layer but accumulate across many layers and many generated tokens.

\Figure 12.Zero-expert injection expands the routing space. The original router was trained to select among normal experts, so the augmented model needs adaptation before zero experts can be used reliably.\

The problem is therefore not only how to skip computation, but how to skip it without changing the model’s behavior too much. A post-trained MoE model has already gone through a long training pipeline that may include pre-training, supervised fine-tuning, reinforcement learning, preference optimization, or distillation.

Its routing patterns are part of the final model that users actually deploy. A method that makes inference cheaper but damages these learned patterns would not be useful in practice.

This is why a naive approach is risky. One simple option would be to directly reduce the top-K value, such as changing the model from selecting eight experts per token to selecting four. This would save computation, but it would impose the same reduction on every token. Tokens that still require the original expert budget would also be forced to use fewer experts. The method would be efficient, but too rigid.

Another simple option would be to add zero experts and immediately allow the router to select them. This is more flexible than reducing K globally, but it still creates a distribution shift inside the model.

The router was originally calibrated for a pool of normal experts. After zero-expert injection, the same router must decide between normal experts that transform the hidden state and zero experts that contribute nothing. Without training, there is no guarantee that this new decision boundary will preserve the original model’s capabilities.

ZEDA addresses this problem by treating zero-expert injection as an architectural conversion that must be followed by adaptation. The goal is to make the modified model behave like the original post-trained MoE model while gradually learning when zero experts can be selected safely. In this setup, the original model acts as a reference point. The adapted model is allowed to reduce computation, but it is trained not to drift far from the behavior of the original model.

This is also why self-distillation becomes central to the method. ZEDA does not rely on an external teacher model that is larger or more capable. Instead, the original post-trained MoE model becomes the teacher, and the zero-expert-augmented version becomes the student. The student learns to keep producing outputs close to the teacher while using fewer active normal experts.

\Figure 13.ZEDA adaptation balances two goals: increasing zero-expert usage for efficiency and preserving the behavior of the original post-trained MoE model.\

The main challenge is therefore a stability problem. ZEDA must introduce a new routing option that enables computation skipping, but it must do so without disrupting the original expert structure too aggressively. The method has to balance two goals that naturally compete with each other: increasing zero-expert usage to reduce inference cost, and preserving the output behavior of the original model to maintain quality.

This framing makes the next part of the method easier to understand. The zero experts provide the mechanism for skipping computation, but self-distillation teaches the model when that mechanism is safe to use.


6. Self-Distillation: The Original Model Becomes the Teacher

After the zero experts are added, ZEDA needs a way to make the modified model reliable. The goal is not only to increase the number of skipped expert computations, but to do so while preserving the behavior of the original post-trained MoE model. This is why the adaptation stage is framed as self-distillation.

In a standard distillation setup, a student model is trained to imitate a teacher model. The teacher is usually a stronger, larger, or more expensive model, and the student is trained to reproduce its behavior at a lower cost. ZEDA uses the same general idea, but with an important difference: the teacher and the student come from the same original model.

The teacher is the original post-trained MoE model before the zero experts are added. It is kept frozen during adaptation, which means its parameters do not change. This teacher represents the behavior that ZEDA wants to preserve. It contains the original routing patterns, expert interactions, and output distributions that were produced by the full training pipeline.

The student is the zero-expert-augmented version of the same model. It starts from the original MoE weights, but its MoE layers now include zero-output experts as additional routing options. The student, therefore, has the ability to skip some normal expert computation, but it also faces a new routing problem that the original model was not trained to solve.

\Figure 14.ZEDA uses the original post-trained MoE as a frozen teacher and trains the zero-expert-augmented student to stay close to the teacher while learning when expert computation can be skipped.\

The objective of self-distillation is to train the student to remain close to the teacher while learning, when the zero experts can be used safely. If the student uses zero experts too aggressively, its outputs may drift away from the original model. If it avoids zero experts too often, the model will preserve behavior but gain little efficiency. The adaptation process must therefore teach the student both imitation and selective skipping.

ZEDA performs this adaptation in two stages. The first stage is supervised fine-tuning on teacher-generated responses. The original MoE teacher receives prompts and generates responses. These responses are then used as training data for the student. In this stage, the student is trained to produce the teacher’s responses while operating with the new zero-expert-augmented architecture.

This first stage is mainly about stabilization. The student has inherited the original model weights, but its routing space has changed because zero experts were added. Supervised fine-tuning gives the student a stable imitation target and helps it adjust to the new architecture before it is asked to learn from its own generations. In practical terms, this stage teaches the student to behave like the original model even though the internal routing choices are now different.

The second stage is on-policy distillation. This step is important because, during real inference, the student will not always follow teacher-generated trajectories. It will generate its own tokens, and those tokens will define the contexts seen by the model in later steps. If the student is trained only on teacher-generated responses, it may still struggle when it enters states produced by its own earlier decisions.

In on-policy distillation, the student generates its own responses. The teacher then evaluates the same token trajectories and provides token-level guidance. This allows the student to learn under the conditions they will actually face during inference. The model is no longer only copying teacher outputs from teacher-generated data; it is learning how to stay close to the teacher while operating on its own rollout distribution.

This distinction between the two stages is important. Supervised fine-tuning helps the student survive the architecture change. On-policy distillation then refines the student under its own generated contexts. The first stage makes the transition from static MoE to zero-expert-augmented MoE stable, while the second stage reduces the remaining gap between the student and the teacher.

\Figure 15. ZEDA first stabilizes the zero-expert-augmented student using teacher-generated responses, then refines it via on-policy distillation, in which the student generates its own rollouts and the teacher provides token-level guidance.\

The result is a model that can use zero experts, without being trained from scratch or relying on an external teacher. The original post-trained MoE provides the behavioral reference, while the augmented student learns a cheaper routing policy that remains close to that reference.

This is the central role of self-distillation in ZEDA. Zero experts provide the mechanism for skipping computation, but self-distillation teaches the model when that skipping can be done without losing the behavior that made the original model useful.


7. Group Auxiliary Loss: Controlling How Often Zero Experts Are Used

Zero-expert injection gives the model a way to skip computation, and self-distillation teaches the student to stay close to the original teacher model. However, there is still one important control problem: the model must learn how often zero experts should be used.

If the student rarely selects zero experts, the adapted model will remain close to the original MoE, but the efficiency gain will be limited. In that case, the new zero-output experts exist in the routing pool, but they do not meaningfully reduce the amount of active expert computation. On the other hand, if the student selects zero experts too often, the model may skip too much computation and drift away from the behavior of the original post-trained MoE.

\Figure 16.ZEDA uses group-level balancing rather than forcing all experts to be used uniformly. This allows the model to regulate the total use of zero experts while preserving the learned routing patterns among the original normal experts.\

ZEDA addresses this by adding a Group Auxiliary Loss. The purpose of this loss is to regulate the relative activation frequency between normal experts and zero experts. In simpler terms, it helps control the balance between two competing outcomes: using enough zero experts to reduce inference cost, while still using enough normal experts to preserve model quality.

This design is important because a post-trained MoE model already has a learned routing structure. The router does not necessarily use all normal experts equally, and this non-uniform behavior can be useful. Some experts may be used more often for certain types of tokens, domains, or internal representations. Therefore, forcing every expert to be used uniformly can damage routing patterns that the model learned during pre-training and post-training.

This is why ZEDA does not apply balancing at the level of individual experts. Instead, it treats the original normal experts as one group and the newly added zero experts as another group. The loss then regulates the competition between these two groups, rather than forcing all experts inside each group to have the same usage frequency.

\Figure 14.The zero-expert group weight acts as a control knob for the quality-efficiency trade-off. Increasing it encourages more zero-expert usage, but too much skipping can reduce accuracy.\

This distinction is subtle but important. ZEDA does not tell the router that all normal experts should be used equally. It mainly tells the router how much total routing mass should go toward the normal-expert group versus the zero-expert group. This allows the model to preserve the relative routing behavior among the original normal experts while still learning to use zero experts for compute reduction.

The paper introduces a weight parameter that controls the target preference for zero-expert usage. Increasing this weight encourages the router to select zero experts more often, which reduces active normal expert computation. However, this also creates a stronger pressure to skip computation, and if the pressure becomes too large, accuracy can decline. This gives ZEDA a controllable quality-efficiency trade-off.

The role of the Group Auxiliary Loss can be understood as a steering signal. The self-distillation objective tells the student to imitate the teacher, while the group-level balancing objective tells the router to make use of the new zero-expert options. The final adapted model emerges from the interaction between these two forces. It must remain close to the teacher, but it is also encouraged to replace some normal expert activations with zero experts when doing so is safe.

This is one of the reasons ZEDA is more stable than simply adding zero experts and hoping the router will learn the right behavior on its own. Without a mechanism to control zero-expert usage, the model may either ignore the zero experts or overuse them. With group-level balancing, the adaptation process has a clearer target: to preserve the original routing structure among normal experts while learning a controlled level of computation skipping through the zero-expert group.

In practical terms, the Group Auxiliary Loss is the part of ZEDA that makes skipping tunable. It does not replace self-distillation, and it does not decide the final behavior alone. Instead, it gives the training process a way to regulate how aggressively the model should trade expert computation for efficiency.


8. Experimental Setup: What Did They Test?

After introducing the method, the next question is whether this conversion actually works in practice. ZEDA is not only claiming that zero experts can reduce computation. It is making a stronger claim: an already post-trained MoE model can be converted into a more dynamic version, use substantially fewer normal expert activations, and still preserve most of the original model’s performance.

\Table 1.Performance of ZEDA and baselines on Qwen3–30B-A3B and GLM-4.7-Flash.\

To evaluate this claim, the paper tests ZEDA on two post-trained MoE models: Qwen3–30B-A3B and GLM-4.7-Flash. These models are useful test cases because they are already trained MoE models with fixed expert activation patterns. They are not toy models built only for this experiment. This makes the setting closer to the practical deployment problem: taking an existing MoE model and making inference cheaper after the main training process has already finished.

The two models also have different expert configurations, which helps test whether the method is tied to one specific architecture. In the paper’s setup, Qwen3–30B-A3B contains 128 normal experts and activates 8 experts per token. GLM-4.7-Flash contains 64 normal experts and activates 4 experts per token. ZEDA then adds zero experts to these MoE layers, allowing part of the fixed top-K budget to be occupied by zero-output experts instead of normal experts.

The evaluation covers 11 benchmarks across three broad categories: math reasoning, code generation, and instruction following. This matters because the method should not only work on one narrow task. If reducing expert computation damages a specific capability, it may look acceptable on average while still being risky for real use. Testing across different task families gives a better view of whether the adapted model preserves the original model’s general behavior.

For math reasoning, the paper evaluates on benchmarks such as AIME, GSM8K, and MATH-500. These benchmarks test whether the model can solve mathematical problems, follow multi-step reasoning, and produce correct final answers. This category is important because reasoning tasks are often assumed to require more computation, so they provide a useful stress test for expert skipping.

For code generation, the paper evaluates on LiveCodeBench, HumanEval+, and MBPP+. These benchmarks test whether the adapted model can generate correct programs and solve coding tasks. Code is especially interesting in the context of ZEDA because it contains both difficult problem-solving and highly structured token patterns. A model may need substantial reasoning to plan a solution, but once it enters a code pattern, many tokens become more predictable.

For instruction following, the paper uses IFEval and IFBench. These benchmarks test whether the model can follow user constraints and produce responses that match instructions. This is important because an adapted model should not only preserve reasoning and coding ability; it should also preserve alignment with user intent and formatting constraints.

The paper compares ZEDA against several alternatives. The first reference point is the original post-trained MoE model, which acts as the quality baseline. This comparison answers the most important question: how much performance is lost after adding zero experts and adapting the model?

The second set of comparisons includes prior dynamic MoE baselines such as AdaMoE and Dynamic Skipping. These baselines help show whether ZEDA is more effective than existing approaches for this post-trained conversion setting. The paper also includes ZEDA variants, such as using only the supervised fine-tuning stage, to isolate the contribution of different parts of the method.

Another important baseline is naive expert truncation. This approach directly reduces the number of activated experts, rather than giving the router zero-output options. It is a simple way to save computing, but it applies the same reduction everywhere. Including this baseline helps test whether ZEDA’s token-dependent skipping mechanism is better than simply forcing every token to use fewer experts.

This evaluation setup is useful because it separates several questions that could otherwise be mixed together. First, does ZEDA preserve performance compared with the original model? Second, does it reduce expert computation by a meaningful amount? Third, does it outperform simpler ways of cutting expert compute? Fourth, does the method remain effective across different MoE architectures and different task categories?

These are the questions the results section needs to answer. If ZEDA only reduced computation but caused a large drop in benchmark performance, it would be difficult to justify. If it preserved performance but barely used zero experts, it would not solve the efficiency problem. The value of the method depends on achieving both at the same time: high zero-expert usage and limited quality degradation.


9. Main Results: Half the Expert Compute, Small Accuracy Loss

The main result of ZEDA is that a post-trained MoE model can skip a large fraction of expert computation while preserving most of its original performance. This is the central claim that the experiments are designed to test. If the adapted model used many zero experts but lost too much accuracy, the method would not be useful. If it preserved accuracy but rarely selected zero experts, it would not solve the efficiency problem.

The value of ZEDA depends on achieving both outcomes at the same time.

The results show that ZEDA reaches this balance on both evaluated models. On Qwen3–30B-A3B, the original model has an average benchmark score of 74.9, while the ZEDA-adapted version reaches 74.2. At the same time, the adapted model achieves an average zero-expert activation ratio of 51.2%. This means that slightly more than half of the expert activations are replaced by zero experts, while the average score decreases by only 0.7 points.

A similar pattern appears for GLM-4.7-Flash. The original model has an average score of 72.5, while the ZEDA-adapted model reaches 71.8. The average zero-expert activation ratio is 53.0%. Again, the average score drops by only 0.7 points, while more than half of expert activations are replaced with zero-output experts.

\Figure 15. Inference efficiency comparison between the original MoE and ZEDA at 8192 sequence length. Speedup is defined relative to the original MoE.\

A compact way to read the main result is as follows:

ModelOriginal Avg. ScoreZEDA Avg. ScoreDifferenceAvg. Zero-Expert ActivationQwen3–30B-A3B74.974.2–0.751.2%GLM-4.7-Flash72.571.8–0.753.0%

This result is important because the accuracy drop is small compared with the amount of expert computation being skipped. ZEDA is not only removing a small number of unnecessary expert calls. It is replacing roughly half of the selected expert activations with zero experts, while keeping the adapted model close to the original model across the benchmark suite.

The comparison with the baselines also matters. The paper compares ZEDA with prior dynamic MoE methods such as AdaMoE and Dynamic Skipping, as well as simpler variants such as naive expert truncation. These baselines are useful because they represent more direct ways to reduce expert computation. However, the results show that saving compute is not enough by itself. Some methods reduce computation but cause larger capability drops or uneven performance across task categories.

For example, direct expert reduction applies the same compute cut to all tokens. This is efficient, but it does not allow the model to preserve more computation for tokens that need it. ZEDA performs better because it does not impose a fixed reduction everywhere. Instead, it gives the router zero-output choices and uses adaptation to learn when those choices can be selected safely.

The benchmark results also show that ZEDA does not only work in one category. The adapted models remain competitive across math reasoning, code generation, and instruction following. This is important because a method that only preserves average accuracy by performing well on easier categories could still be risky for practical deployment. The paper’s results suggest that ZEDA maintains a more balanced profile across domains than the compared dynamic MoE baselines.

The inference-speed results provide the second part of the evaluation. Since ZEDA reduces expert computation, the expected benefit is faster inference. The paper measures inference efficiency at an 8192 sequence length using SGLang on one H200 GPU. The results show consistent speedups in both prefill and decode. For Qwen3–30B-A3B, ZEDA improves prefill throughput by about 18% and decode throughput by about 19%. For GLM-4.7-Flash, the reported gains are about 26% in prefill and 19% in decode.

This speedup is significant, but it should be interpreted carefully. Replacing half of the expert activations does not mean the entire model becomes twice as fast. Expert feed-forward computation is only one part of inference. Attention computation, routing overhead, memory movement, batching behavior, and the inference engine itself also affect end-to-end latency and throughput.

Therefore, a roughly 50% reduction in expert-level computation translates into a smaller, but still meaningful, end-to-end speedup.

This distinction is important for understanding the practical value of ZEDA. The method does not claim that the whole model becomes 2× faster. Instead, it shows that a large reduction in expert computation can produce around 20% end-to-end inference improvement while keeping model quality close to the original.

For serving workloads where MoE inference cost is high, this kind of gain can be meaningful, especially because it is achieved by adapting an already post-trained model rather than training a new dynamic MoE model from scratch.

The main takeaway from the results is that ZEDA provides a practical quality-efficiency trade-off. It reduces more than half of expert activations, preserves most of the original model’s benchmark performance, and produces measurable inference speedups. This supports the broader idea behind the method: post-trained MoE models may contain substantial unused efficiency potential, and part of that potential can be recovered by teaching the router when expert computation can be skipped.


10. What Actually Determines When Experts Are Skipped?

One of the most interesting parts of the ZEDA paper is not only that the model can skip a large fraction of expert computation, but also where this skipping happens. A natural assumption would be that the model uses more normal experts for difficult tasks and more zero experts for easy tasks. Under this assumption, a hard math problem should require more expert computation, while a simple instruction-following response should require less.

The paper shows that this assumption is incomplete. Zero-expert activation does not appear to be mainly controlled by the overall difficulty of the task. Instead, it is more closely related to token-level behavior inside the response. In other words, the model does not simply decide that an entire benchmark or task category is hard or easy. It adjusts computation at a finer level, depending on what is happening at each generated token.

The authors analyze this by studying the zero-expert activation ratio, usually written as rZE. This value measures how often the router selects zero experts instead of normal experts. A higher rZE means that more selected expert slots are assigned to zero experts, so the model is using less normal expert computation. A lower rZE means that the model is relying more heavily on normal experts.

\Figure 16.The model’s zero-expert usage is influenced more by token-level factors such as teacher-student disagreement, uncertainty, and response structure than by broad task labels alone.\

The analysis shows a clear relationship between zero-expert usage and the gap between the teacher and student models. When the student’s prediction is farther from the teacher’s prediction, the model tends to use fewer zero experts and more normal experts.

This makes sense in the context of self-distillation. If the student is uncertain or is drifting away from the teacher, the training objective pushes it to preserve more of the original model’s behavior.

In those cases, skipping computation becomes riskier.

A similar pattern appears with model uncertainty. Tokens with higher entropy, meaning the student is less confident about the next token, tend to receive more normal expert computation. Tokens with lower uncertainty can often tolerate more zero-expert selection.

This suggests that ZEDA’s dynamic routing is not simply a static cost-cutting mechanism. It becomes a form of uncertainty-aware compute allocation, where the model spends more expert computation when the next-token decision is less stable.

This is an important distinction. The model is not asking a broad question, such as whether the entire task is difficult. It is responding to a more local question: whether the current token prediction is stable enough to allow some expert computation to be skipped.

A response can contain both high-computation and low-computation regions. The same answer may include uncertain reasoning steps, predictable formatting, structured code, and repeated mathematical notation, each with different computation needs.

The paper also finds that response patterns matter. Structured code fragments and mathematical expressions often show higher zero-expert activation, meaning that they use less normal expert computation.

At first, this may seem counterintuitive because code and math are often treated as difficult domains. However, difficulty at the task level is not the same as uncertainty at the token level. Once a model is inside a structured pattern, many tokens may become relatively predictable, even if the overall problem required reasoning to reach that point.

\Figure 17.Distribution of token-level 𝑟𝑍𝐸 versus teacher-student logp-diff (left) and entropy (right) for all generated tokens across 110 rollouts. Each point represents a single token. Response Pattern. Aligning per-token 𝑟𝑍𝐸 of the 11\

For example, code contains syntax, indentation, brackets, repeated variable names, and common control-flow patterns. Mathematical solutions contain symbols, equations, substitutions, and repeated formatting patterns. These local structures can make the next token easier to predict, even when the broader problem is challenging. ZEDA’s analysis suggests that the model can exploit this difference by using fewer normal experts in these more predictable regions.

The task-difficulty analysis reinforces this point. The paper compares zero-expert activation across different difficulty levels in MATH-500 and also compares them with AIME24, which is generally considered a harder benchmark. The zero-expert activation ratios remain relatively similar across these difficulty levels. This indicates that the model’s compute allocation is not strongly determined by the human-labeled difficulty of the whole problem.

This finding changes how we should interpret dynamic MoE behavior. It is tempting to describe dynamic compute as a system where easy tasks receive less computation and hard tasks receive more. ZEDA suggests a more precise interpretation: compute is allocated according to token-level uncertainty and teacher-student alignment, not only task-level difficulty.

This also explains why ZEDA can reduce expert computation without simply weakening the model everywhere. The router learns to preserve normal expert computation where the student needs it most, and to use zero experts where the prediction is more stable. The result is not a uniform reduction in computation, but a learned redistribution of computation across tokens.

This is why the paper’s analysis is important beyond the headline speedup. The main insight is that expert computation in MoE models may be more flexible than expected. Some tokens need the full expert budget, while others can be processed with fewer normal experts. ZEDA provides one way to expose this flexibility in a post-trained model by giving the router a zero-output option and then teaching it when that option can be used safely.


11. Why Code and Math Can Use Fewer Experts

One of the more counterintuitive observations in the ZEDA analysis is that structured code and mathematical expressions can often use fewer normal experts than natural-language reasoning text. This may appear surprising at first because code and mathematics are usually treated as difficult domains in language-model evaluation.

However, the apparent contradiction comes from mixing two different levels of analysis: the difficulty of the task as a whole and the predictability of individual tokens inside the generated response.

A coding problem can be difficult because the model must understand the problem, design an algorithm, reason about edge cases, and produce a correct implementation. Similarly, a mathematical problem can be difficult because it may require several reasoning steps, symbolic manipulation, and careful final-answer extraction. At the task level, these are demanding problems.

However, once the model has already chosen a solution path, many of the individual tokens inside code or mathematical expressions can become highly structured. Code contains syntax rules, indentation patterns, brackets, function calls, variable reuse, and common control-flow structures. Mathematical derivations contain repeated symbols, equation formats, substitutions, fractions, summations, and predictable notation. These local patterns often reduce the uncertainty of the next token.

This distinction matters because ZEDA’s expert skipping appears to operate at the token level, not only at the task level. The router is not deciding whether an entire coding problem or math problem is easy.

It is deciding whether the current token can be processed with less normal expert computation while keeping the student close to the teacher. If the next token is part of a stable structure, the model may be able to route more of its expert slots to zero experts without changing the output too much.

For example, after a model begins writing a Python loop, the following tokens often follow familiar syntax patterns. A line such as for i in range(n): constrains what can come next. The same applies to indentation, repeated variable names, list indexing, and return statements. The model may still need deep reasoning to decide what algorithm to implement, but not every token inside the implementation carries the same reasoning burden.

A similar pattern appears in mathematical text. Once the model has established that it is expanding an expression, simplifying a fraction, or writing a final boxed answer, the local token sequence can become more predictable.

The symbols and formatting may follow conventions the model has seen many times during training. These regions can therefore tolerate more zero-expert selection than open-ended natural-language reasoning, where the next token may depend more strongly on context and semantic judgment.

This does not mean that code and math are easy for the model. It means that difficulty is unevenly distributed across the response. A single answer can contain high-uncertainty reasoning regions and low-uncertainty structured regions.

The same coding response may require substantial computation while planning the algorithm, and less computation while emitting routine syntax. The same math response may require more normal expert computation during a key reasoning step, and less during a predictable formatting or substitution sequence.

This is why benchmark labels can be misleading when discussing dynamic computation. Calling a task “math” or “code” does not tell us how much computation every token in the answer needs. The model’s internal uncertainty can vary sharply within the same response. ZEDA’s analysis suggests that the router can learn to exploit this variation by preserving normal expert computation where prediction is less stable and increasing zero-expert usage where the local pattern is more predictable.

This also helps explain why a uniform expert reduction strategy is less attractive. If we simply reduce the number of active experts for every token, we treat all parts of the response as equally reducible. ZEDA provides a more flexible mechanism. It allows the model to reduce computation in structured regions while still keeping more normal expert computation available in tokens that are more uncertain or more sensitive to the teacher-student gap.

The broader lesson is that model computation should not always be understood at the level of entire tasks. In many generated responses, the need for computation changes from token to token. Code and math make this especially visible because they combine high-level reasoning with low-level structure. ZEDA’s contribution is that it gives a post-trained MoE model a practical way to act on this structure during inference.


12. Why ZEDA Beats Naive Expert Truncation

A straightforward way to reduce MoE inference cost is to directly reduce the number of activated experts. If a model normally activates 8 experts per token, one could force it to activate only 4. This approach is simple, and it immediately reduces expert computation. However, it also introduces an important limitation: every token receives the same reduced expert budget.

This is the main weakness of naive expert truncation. It treats all tokens as equally reducible. A predictable formatting token, a routine code syntax token, and a difficult reasoning token are all forced to use fewer normal experts. The method saves computation, but it does not give the model a way to decide where the reduction is safe and where the original expert budget may still be needed.

ZEDA takes a different approach. It keeps the nominal top-K routing structure unchanged and adds zero experts as additional routing candidates. This means the router still selects the same number of slots, but some of those slots can be assigned to zero-output experts. As a result, the effective number of active normal experts can vary from token to token.

This distinction matters because the need for expert computation is not uniform across a response. Some tokens may be stable enough to tolerate substantial skipping. Other tokens may require more normal expert computation to remain close to the original model’s behavior. A fixed reduction cannot express this difference. ZEDA can.

For example, consider a model that normally selects 8 experts per token. Naive truncation might reduce this to 4 experts for every token. In contrast, ZEDA can still operate with 8 selected slots, but the composition of those slots can change. One token may use 2 normal experts and 6 zero experts, while another may use 7 normal experts and only 1 zero expert. The top-K interface remains stable, but the effective computation becomes token-dependent.

This is why ZEDA is not just a more complicated version of expert truncation. It changes the nature of the compute reduction. Naive truncation applies a global rule. ZEDA learns a routing policy. The former assumes the same reduction is suitable everywhere, while the latter allows the model to decide when normal expert computation can be skipped.

The experimental results support this distinction. The paper compares ZEDA with naive expert truncation variants that reduce expert activation more directly. These baselines can save computation, but they generally perform worse than the full ZEDA method. This suggests that the flexibility of zero-expert selection is important. Reducing computation is not enough; the model also needs a way to preserve computation for tokens where skipping would be harmful.

Self-distillation is also part of this advantage. ZEDA does not simply give the router zero experts and leave it to behave randomly. The zero-expert-augmented student is trained against the original post-trained MoE teacher, so the student learns to reduce computation while staying close to the teacher’s output behavior. This makes the skipping policy more informed than a fixed truncation rule.

The difference can be summarized as follows: naive expert truncation reduces the expert budget structurally, while ZEDA reduces it conditionally. In truncation, the model is forced to use fewer experts everywhere. In ZEDA, the model learns where fewer normal experts are sufficient.

This is a better match for how language-model responses are generated. A single response can contain uncertain reasoning, stable formatting, structured code, mathematical notation, and final-answer text. These regions do not all need the same amount of expert computation. ZEDA’s advantage is that it gives the model a mechanism to respond to this variation instead of applying the same compute cut across the entire response.

The broader lesson is that MoE efficiency should not only be measured by how much computation is removed, but also by how selectively it is removed. A method that removes computation uniformly may be efficient, but it can damage important parts of the model’s behavior. ZEDA is more useful because it tries to remove computation where the model can afford to remove it.


Practical Implications, Limitations, and Final Takeaway

The practical value of ZEDA comes from the fact that it targets already post-trained MoE models. This is different from designing a new dynamic MoE architecture from the beginning. In many real deployment settings, the model has already gone through pre-training, supervised fine-tuning, preference optimization, and other post-training steps. Repeating that entire process only to obtain a cheaper routing policy is usually unrealistic.

ZEDA avoids this by treating dynamic routing as a post-training adaptation problem. The original model is kept as the teacher, zero experts are added to the student, and the student is trained to preserve the original model’s behavior while learning when normal expert computation can be skipped. According to the paper, this adaptation required less than 31 hours for Qwen3–30B-A3B and less than 62 hours for GLM-4.7-Flash on 8 NVIDIA H200 GPUs.

This is still a meaningful compute cost, but it is small compared with training or post-training a large MoE model from scratch.

This makes the method relevant for serving. If an organization already uses a post-trained MoE model, a technique like ZEDA suggests that there may still be unused efficiency inside the routing system. The model does not necessarily need to be smaller to become cheaper. Instead, the router can be adapted to spend less computation on tokens where the full expert budget is not necessary.

This also changes how we should think about the role of the router. In a standard MoE model, the router is mainly understood as a mechanism for choosing which experts should process each token. ZEDA pushes this further. The router becomes closer to a compute controller. It is not only deciding which experts are relevant, but also learning when some expert slots can be safely replaced by zero-output options.

There are still limitations. The experiments are conducted on two 30B-scale MoE models, so the results should not automatically be assumed to transfer unchanged to much larger frontier-scale MoE systems.

The evaluation also focuses on benchmark tasks in math, code, instruction following, and some out-of-distribution tests. These are useful, but they do not fully capture long-horizon agentic workloads, multi-turn tool use, retrieval-heavy systems, or production traffic with complex latency constraints.

The speedup should also be interpreted carefully. ZEDA replaces around half of expert activations with zero experts, but this does not mean that the whole model becomes twice as fast. Expert computation is only one part of inference. Attention, routing overhead, memory movement, batching behavior, communication, and the serving engine all affect the final speed. This is why the paper reports an end-to-end speedup of around 1.20× rather than a 2× speedup.

Another point is that the reported results come from the paper’s experimental setting. Real deployment gains may vary depending on the inference framework, hardware, batch size, sequence length, expert parallelism strategy, and workload distribution. For this reason, ZEDA should be viewed as a promising post-training efficiency method, not as a universal guarantee that every MoE serving setup will receive the same improvement.

The main takeaway, however, is clear. ZEDA shows that post-trained MoE models can be made more compute-adaptive without being trained again from scratch. By adding zero-output experts and using self-distillation, the model learns to skip a large fraction of normal expert computation while staying close to the original model’s behavior.

This is why ZEDA should not be understood as ordinary pruning. Pruning removes or disables parts of the model. ZEDA keeps the original expert pool intact and gives the router a learned way to skip computation at the token level. The difference is important: the method does not say that half of the experts are globally useless. It says that many tokens do not need the full normal expert budget.

In that sense, the most important idea in the paper is not only the reported speedup. It is the framing of MoE efficiency as learned conditional computation after post-training. The future of efficient MoE serving may not only depend on smaller models or fewer experts. It may also depend on routers that are better at deciding when computation is actually needed.


Want to Learn Claude Cowork in a Practical Way?

I’m hosting a live 1.5-hour workshop: Hands-On Claude Cowork: From Prompts to Deliverables & Automated Workflows

We will cover how to use Claude Cowork to move from simple prompts to real deliverables, structured workflows, and practical automation.

  • Date: Saturday, 6th of May
  • Time: 7:30 PM EEST
  • Price: $30

You can book your seat here:

To Data & Beyond is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.