DeepSeek-V4's first layers route by token-id hash, no learned router

Nouamanetazi · x · 2026-11-06

Does the router need to learn which experts a token gets? Not in DeepSeek-V4's first 3 MoE layers: a fixed hash of the token id picks them. V4.1-Flash went back to learned routing everywhere and moved the token-id lookup into Engram, n-gram tables whose embeddings are added instead. The figure compares learned routing, hash layers, and Engram on one sentence: the hash layer gives all four "the"s the same six experts (overlap 1), while Engram picks no experts (overlap 0).

Related event: Hugging Face Publishes Ultimate MoE Training Handbook Built on 500K GPU Hours(17 posts)→

Original post →

More from Research

Research channel →