cd /news/artificial-intelligence/mixture-of-experts-how-sparse-gating… · home topics artificial-intelligence article
[ARTICLE · art-84800] src=pub.towardsai.net ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Mixture of Experts: How Sparse Gating Enables 1T-Parameter LLMs

Mixture of Experts (MoE) architectures enable 1-trillion-parameter large language models by activating only a subset of expert networks per token, achieving 8× parameter count with only ~2× compute. Mixtral 8×7B, with 47B total and 13B active parameters, exemplifies this efficiency, as do GPT-4 and Gemini.

read1 min views1 publishedAug 3, 2026
Mixture of Experts: How Sparse Gating Enables 1T-Parameter LLMs
Image: Pub (auto-discovered)

Member-only story

A 1-trillion-parameter model sounds impossible to run — until you realize that most of those parameters are inactive for any given token. Mixture of Experts (MoE) architectures replace the dense feed-forward layer with N parallel “expert” networks, activating only the top-k for each token via a learned router. The result: 8× the parameter count (expert count N=8 vs a single dense FFN) and only ~2× the compute (top-k=2 routing activates 2/8 = 25% of experts per token). Mixtral 8×7B sits at ~47B total / ~13B active parameters — a 3.6× ratio rather than a clean 4× because shared attention layers don’t multiply with experts. This is how Mixtral, GPT-4 (reportedly), and Gemini achieve large effective capacity at tractable inference cost.

Disclaimer: The opinions expressed in this article are my own and do not represent the views of Google. This content is based solely on publicly available information.

The Basic Mechanism #

Before measuring the gains, it helps to see the routing logic in code — the contrast with a dense FFN (feed-forward network) makes the FLOPs (floating-point operations) arithmetic immediate.

A standard transformer FFN processes every token through the same parameters:

FFN(x) = W_down × ReLU(W_up × x)
── more in #artificial-intelligence 4 stories · sorted by recency
── more on @mixtral 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mixture-of-experts-h…] indexed:0 read:1min 2026-08-03 ·