← Back to article

Equation 1 · Comparing the Main Approaches to AI Inference Economics

What does this equation mean?

CdenseCMoE≈NdenseNactive\frac{C_{\mathrm{dense}}}{C_{\mathrm{MoE}}} \approx \frac{N_{\mathrm{dense}}}{N_{\mathrm{active}}}

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

This equation gives an approximation: it relates the quantities while allowing an approximation. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

CdenseC_{\mathrm{dense}}

Symbol C_dense

CdC_dense occurs above the fraction bar. The numerator is divided by the entire denominator below it.

Understand this part →

CMoEC_{\mathrm{MoE}}

Symbol C_MoE

CMC_MoE occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

NdenseN_{\mathrm{dense}}

Symbol N_dense

NdN_dense occurs above the fraction bar. The numerator is divided by the entire denominator below it.

Understand this part →

NactiveN_{\mathrm{active}}

Symbol N_active

NaN_active occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

fraction

fraction

Divide the expression above the line by the one below it.

Understand this part →

See an illustrated explanation →
≈

≈

Approximately equal to; the equality is not exact.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

How to interpret it

With a fixed numerator, increasing a nonzero denominator reduces the fraction. Its accuracy depends on the assumptions and range of use described in the article.

What the article says around this equation

For inference cost specifically, what matters is that per-token compute tracks activated parameters, not total parameters. Approximating compute per token as proportional to the parameter count actually touched [ 13 , 11 ] , the ratio of dense to MoE compute at equal activated size is approximately CdenseCMoE≈NdenseNactive\frac{C_{\mathrm{dense}}}{C_{\mathrm{MoE}}} \approx \frac{N_{\mathrm{dense}}}{N_{\mathrm{active}}}. for a dense model with NdenseN_{\mathrm{dense}} parameters compared against an MoE model activating NactiveN_{\mathrm{active}} of its NtotalN_{\mathrm{total}} parameters per token. What this ratio hides is exactly what a compute-only comparison always hides: memory. Serving an MoE model requires holding all NtotalN_{\mathrm{total}} parameters resident — on one device or, more often, sharded across…
Read the full surrounding passage
For inference cost specifically, what matters is that per-token compute tracks activated parameters, not total parameters. Approximating compute per token as proportional to the parameter count actually touched [ 13 , 11 ] , the ratio of dense to MoE compute at equal activated size is approximately CdenseCMoE≈NdenseNactive\frac{C_{\mathrm{dense}}}{C_{\mathrm{MoE}}} \approx \frac{N_{\mathrm{dense}}}{N_{\mathrm{active}}}. for a dense model with NdenseN_{\mathrm{dense}} parameters compared against an MoE model activating NactiveN_{\mathrm{active}} of its NtotalN_{\mathrm{total}} parameters per token. What this ratio hides is exactly what a compute-only comparison always hides: memory. Serving an MoE model requires holding all NtotalN_{\mathrm{total}} parameters resident — on one device or, more often, sharded across several with communication between them whenever a batch’s tokens route to different experts — even though only NactiveN_{\mathrm{active}} of them do arithmetic on any given token. A dense model of the same activated size carries no such requirement. The compute saving is real and is the reason MoE models can be commercially attractive to serve; the memory and networking cost it trades against is equally real, and neither the Switch Transformer paper, the Mixtral paper nor the DeepSeek-V3 report discloses enough about any specific production serving stack to say where the net trade lands for a given deployment.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to Comparing the Main Approaches to AI Inference Economics

See this formula across 1 published context →

Browse the mathematical compendium →