Dense vs MoE Models: Why a 671B-Parameter Model Run Faster Than a 70B One

Dense vs MoE Models: Why a 671B-Parameter Model Run Faster Than a 70B One

This sounded wrong to me. DeepSeek-V3 has 671 billion parameters and Llama 3 70B has 70 billion, yet the big one needs less compute for every token it writes. I read the DeepSeek-V3 technical report twice, sure there was a typo somewhere.

There wasn’t. The report says 671B total parameters, with 37B activated for each token. Both numbers are real, they just count different things, and most of this article is about why a model would have two of them.

And I got something wrong for a long time after reading that. I’ll come back to it, because it cost me an afternoon.

Dense models: everybody works on everything

Start with the older design, because the newer one only makes sense next to it. A dense model is the plain version of a transformer. Text goes in as tokens, and each token passes through a stack of identical layers, 80 of them in Llama 3 70B. Every layer has two parts. One is attention, which lets a token look at the other tokens around it. The other is a feed-forward network, usually called the FFN, which does the heavy processing on each token once attention is finished.

“Dense” means every weight in every layer is used for every single token. Nothing gets skipped. A comma uses all 70 billion parameters and so does a hard maths word problem.

Think of a hospital where each patient, whatever the problem, is seen by every doctor in the building. The eye surgeon looks at your sprained ankle. It works, and the results are good, but the cost per patient is the cost of the whole staff.

The numbers follow from that. A rough rule is two operations per parameter per token, so Llama 3 70B does around 140 billion operations to produce one token. Stored in 16-bit, the weights take about 140 GB, since each parameter is two bytes. Want a smarter model? Make it bigger, and the cost per token goes up by the same factor. Meta’s Llama 3.1 405B is the extreme case. It’s dense all the way through, and it needs a multi-GPU server just to answer one person’s question.

Dense isn’t bad though. It’s simple, training is predictable, fine-tuning mostly behaves, and every parameter gets updated on every token so nothing sits idle. Most small models you’ve used, like Qwen3 32B, are dense.

Mixture of experts: same building, but with departments

In most transformers the FFN holds the bulk of the parameters, roughly two thirds of each layer in the classic design. So that’s the part worth attacking.

A mixture of experts model (MoE) leaves attention alone and replaces the one big FFN in each layer with many smaller FFNs, called experts. Then it adds a router, a tiny layer that looks at a token and gives every expert a score. The top few scores win and only those experts run, and their outputs get mixed using the scores as weights. This picking is called top-k, where k is how many experts get chosen.

Back to the hospital. There’s still one building with every department in it, but now there’s a front desk. The desk looks at you and sends you to 2 specialists out of 8. The other six never see you. Staff cost per patient drops a lot, but the rent on the building doesn’t change at all.

One thing people get wrong, and I did too, is imagining “the maths expert” and “the French expert.” The Mixtral paper looked for that kind of split and didn’t find a clean one. Routing seemed to follow things like syntax and position more than subject. It also happens separately in every layer for every token, so one sentence can take a different path through the model at each step.

Mixtral 8x7B, from Mistral in December 2023, is the easiest example to hold in your head. Each layer has 8 experts and the router picks 2 per token. The name suggests 8 × 7B = 56B, but that’s wrong. Attention is shared, so the total is about 46.7B parameters and each token uses around 12.9B of them. You pay memory for a 47B model and compute for a 13B one.

DeepSeek-V3 pushes the same idea further. It uses many more experts, each much smaller: 256 routed experts per MoE layer, with the router picking 8. Choosing 2 from 8 gives 28 possible combinations. Choosing 8 from 256 gives about 410 trillion, so each token can get a very specific mix of small specialists. The model also has one shared expert that runs for every token, which handles the common stuff so the routed experts don’t each have to relearn it. Add that one and each token touches 9 experts, though a few early layers stay plain dense. The result is 37B active out of 671B, which is about 5.5%.

Let me walk one token through it, because the diagram never made this click for me. Say the word “database” arrives at layer 12 of DeepSeek-V3. Attention runs as normal. Then the router scores all 256 experts, and maybe experts 14, 77, 90, 131, 140, 188, 201 and 250 come out on top. Those 8 run, the shared expert runs too, and the mixed result goes to layer 13. There the router starts again from scratch and might choose a completely different set. The numbers 14, 77 and so on are made up by me, to be clear. The real routing is learned and nobody hand-picks it.

Training gets cheaper for the same reason. DeepSeek says the full run took 2.788 million H800 GPU hours on 14.8 trillion tokens, and it priced that at about $5.6 million using a rental rate of $2 per GPU hour. That figure leaves out earlier research and failed experiments, which the paper says itself, so don’t read it as the true cost of building the model. Still, a dense 671B model would have cost many times more in compute.

Newer models follow the pattern, and you can read it right off the name. Qwen3 235B-A22B means 235B total with 22B active. In November 2026 Moonshot released the weights of Kimi K3.1 Pro, which ThursdAI’s monthly roundup lists as 2.8 trillion total and 104B active. Think about that for a second. The active slice of that model is bigger than all of Llama 3 70B.

The catch is memory

Now the afternoon I lost. I saw “30B-A3B” in a model name, thought “3B active, so it’s basically a 3B model,” and tried it on my laptop with 16 GB. It wouldn’t load. I spent way too long checking drivers and quantization settings, and the problem itself was small. The router can pick any expert at any moment, so all 30B parameters have to sit in memory, ready, even though only 3B work on a given token.

MoE saves compute. It doesn’t save memory, and for the same quality it often needs more. The DeepSeek-V3 download on Hugging Face is 685B parameters, which is the 671B main model plus 14B for a multi-token prediction module. I remember the 14 only because it’s such a strange extra. At roughly one byte per weight in the 8-bit format DeepSeek released, that’s around 700 GB before you’ve loaded a single prompt.

So why is it faster? Generating text one token at a time is mostly limited by how fast the chip can read weights from memory, not by the arithmetic. Fewer active weights means less to read for each token. For one user on one machine that’s a straight win, as long as the whole model fits. For a hosted service it’s trickier. A batch with thousands of users’ tokens will touch almost every expert anyway, so providers spread the experts across many GPUs and keep them all busy. DeepSeek designed its serving around exactly that. MoE really suits companies with big clusters more than people with one graphics card.

There are other problems. The router can collapse, where it learns to send most tokens to a few favourite experts, those get better, so it sends even more, and the rest turn into dead weight. The old fix was an extra loss term that punishes uneven use, but that can hurt quality. DeepSeek-V3 went another way and calls it auxiliary-loss-free balancing, a small bias per expert that gets nudged up or down during training. Fine-tuning is also touchier, from what people report, because a small dataset can shift the routing in odd ways. I haven’t tested that part myself.

Something I should correct. I keep saying a 37B-active MoE is like a 37B model for compute. That’s mostly true, though I’m oversimplifying. There’s extra cost in moving tokens between GPUs, and the quality is usually better than a 37B dense model would give. Nobody has one clean formula for how much better.

The other types

Dense versus MoE only describes the FFN. The labels below describe other things, so they mix freely. Mixtral, for example, is decoder-only and MoE at the same time.

Encoder, decoder, or both

BERT, from Google in 2018, is encoder-only. It reads the whole text at once and every word can see both sides, which makes it good at understanding things like classification and search ranking. It can’t write a fluent paragraph though. Google said in 2019 that it was using BERT in Search.

T5 came a year later and is encoder-decoder. The encoder reads the input completely, then the decoder writes the output while looking back at what the encoder understood. That fits translation and summaries well. OpenAI’s Whisper, the speech-to-text model, works the same way, with the encoder listening to audio and the decoder writing the words.

GPT-style models are decoder-only. They only look left and predict the next token. Nearly every chat model today is built this way, mostly because it’s the easiest to scale and one design handles every task. All of these are usually dense.

State-space models and hybrids

Attention compares each token with every earlier token, so the cost grows with length and so does the memory for the cache. A million-token context gets expensive fast.

Mamba, from Albert Gu and Tri Dao in December 2023, takes a different route. It keeps a fixed-size state that updates as it reads each token, like writing notes in a notebook with a fixed number of pages instead of rereading the whole book for every new word. Cost grows in a straight line with length and memory stays flat. The weakness is the notebook itself. If you need an exact detail from 200 pages back, the notes are fuzzy, and attention is better at that.

Small tangent on the name. I think the authors picked it because of the hissing sound of all those S letters in “structured state space sequence model,” and a mamba is also a snake. I only remember this because the name bothered me until I looked it up.

Hybrids mix both. AI21’s Jamba from March 2024 is mostly Mamba layers with an occasional attention layer, plus MoE, at 52B total and 12B active. Nvidia’s Nemotron 3 Super, from March 2026, is 120B total and Nvidia itself calls it a hybrid Mamba-Transformer MoE. So combining hybrid and MoE is normal now. What I can’t tell is how far it has spread, because the biggest closed labs don’t say what they use.

Small tweaks inside the block

Sliding-window attention lets each token look only at the last few thousand tokens instead of everything. Mistral 7B used a 4,096-token window in 2023. Mixture-of-depths, from DeepMind in 2024, lets a router decide which tokens skip some layers entirely. It’s the MoE idea applied to depth.

Then there’s Inkling 2 Mini from Thinking Machines Lab, released on 20 November 2026. A write-up on DEV Community describes a 26.4B MoE with 128 experts per layer, 8 chosen per token, about 3.4B active, and “looped” layers that get reused more than once. I haven’t read the paper behind it, so I’m repeating that write-up. These tweaks are add-ons more than separate families, and most of them sit on top of a dense or MoE model.

Diffusion language models

Everything above writes one token at a time, left to right. A diffusion language model starts with a whole answer full of noise (masked tokens) and cleans it up over several passes, all positions at once. The pitch is speed.

Inception’s Mercury 2, from February 2026, was billed as the first reasoning diffusion model, and Mercury 3 followed on 19 October 2026 with a claim of over 1,000 tokens per second. Google has Gemini Diffusion, which as far as I can see is still a research preview, and in August 2026 it released DiffusionGemma with open weights. Quantized, it fits in about 18 GB of VRAM. LLaDA, an open 8B model from 2025, was the first one many people could actually download.

This one is unresolved. The speed numbers are vendor numbers, and one independent test I read had Mercury 3 trailing small autoregressive models on agent-style work. Nobody knows yet if quality holds as these get bigger. My guess is it ends up as a fast tier for certain jobs, not a replacement.

Where I land

For big hosted models MoE is the right default, and I don’t see why anyone would build a new 500B dense model to serve thousands of people when the per-token bill is that high. Look at who has been releasing MoE models lately: Qwen, Kimi, DeepSeek, Nvidia, Ant. Anyone saying dense is dead just hasn’t tried fitting a model on a 16 GB card.

For small and local, I used to lean dense. With a 16 or 24 GB graphics card, a dense 14B or 32B uses every byte of VRAM you’re paying for, and an MoE of similar quality needs more bytes.

That was my view until this week. The Inkling 2 Mini write-up says it fits in about 20 GB and runs on a 32 GB MacBook with only 3.4B active. On machines with big shared memory, where bandwidth is the limit and not capacity, that changes my answer. So I’m splitting it. Dense for small discrete GPUs, MoE for big-memory machines and for servers. The 70/30 itself holds.

What to actually do

Before downloading any model, find two numbers on its card, total and active. Total tells you if it fits. Multiply by 2 for 16-bit or by about 0.5 for 4-bit, then add a few GB for context. A 70B model at 4-bit is around 35 GB, and DeepSeek-V3 at 4-bit is over 340 GB. Active tells you how fast it will feel and, roughly, what an API should charge. If the name has “A3B” or “A22B” in it, that second number is the active one.

If you only use APIs, none of the memory math matters to you, and a big MoE with a low price per token is just normal now.

If you’re on a laptop, do the sum first. It will only take a minute, and I’d rather you spend that than an afternoon like me.

Post a Comment

Previous Post Next Post