---
topic: ai-technology
author: Crashtech Editorial
published: Nov 17, 2026 · read: 4 min
---

Inside Open-Weight LLM Architectures: Mixture of Experts, Multi-Head Latent Attention, and Sparsity

How open-weight models achieve frontier performance: DeepSeek V3, Kimi K2, GLM-5, sparse Mixture of Experts, Multi-Head Latent Attention, and FP8 scaling.

– –

For years, a pervasive narrative dominated the technology industry: frontier artificial intelligence would remain the exclusive preserve of closed proprietary cloud APIs.

The astronomical capital expenditure required to train hundred-billion-parameter models suggested that open weights would lag private frontier models by years.

The arrival of models like DeepSeek-V3, Kimi K2, and GLM-5 permanently shattered that assumption. Today, open-weight architectures routinely rival or exceed closed proprietary models across mathematics, coding, and reasoning benchmarks, while operating at a fraction of the inference cost.

This breakthrough was not achieved by throwing infinite compute at brute-force training. It was driven by radical architectural innovation: pioneering Sparse Mixture of Experts (MoE), inventing Multi-Head Latent Attention (MLA), mastering DualPipe parallel scheduling, and executing training in native FP8 mixed precision.

+-------------------------------------------------------------------------------+
|                       THE DEEPSEEK-V3 ARCHITECTURAL PILLARS                   |
+-------------------------------------------------------------------------------+

Pillar 1: Multi-Head Latent Attention (MLA)
  Compresses KV-Cache into a low-dimensional latent vector via matrix factorization.
  Result: 93% reduction in KV-cache VRAM footprint during inference!

Pillar 2: Fine-Grained Sparse Mixture of Experts (MoE)
  671 Billion Total Parameters ---> Only 37 Billion Activated per Token!
  (256 Fine-Grained Routed Experts + 1 Isolated Shared Expert)

Pillar 3: Native FP8 Mixed-Precision Training
  Executes forward and backward matrix multiplications in 8-bit floating point.
  Doubles compute density on Tensor Cores while cutting memory bus bandwidth by half.

Pillar 4: DualPipe Overlapping Communication Scheduling
  Completely hides inter-GPU cross-node communication behind computation phases.

1. Sparse Mixture of Experts (MoE): Fine-Grained Routing

In standard dense Transformer models, every single parameter is activated for every single processed token. A 70-billion-parameter dense model requires 70 billion floating-point operations (FLOPs) per token.

Modern open-weight models decouple total model capacity from per-token inference compute using Fine-Grained Mixture of Experts:

+-------------------------------------------------------------------------------+
|                       FINE-GRAINED MoE ROUTING TOPOLOGY                       |
+-------------------------------------------------------------------------------+

[Input Token Representation: Vector X]
       |
       +-----------------------+-----------------------+
       |                                               |
       v                                               v
[Shared Expert (Always Active)]             [Top-K Gating Router (Softmax)]
(Captures general language patterns)                   |
       |                                               v
       |                               Selects 8 of 256 Fine-Grained Experts
       |                                               |
       |                             +-----------------+-----------------+
       |                             |                 |                 |
       v                             v                 v                 v
[Shared Output]                 [Expert 14]       [Expert 89]       [Expert 204]
       |                             |                 |                 |
       +-----------------------------+-----------------+-----------------+
                                     |
                                     v
                       [Summed Weighted Layer Output]

The DeepSeek-V3 MoE Configuration

  • Total Parameters: 671 Billion (Enormous world knowledge capacity).
  • Active Parameters per Token: 37 Billion (Ultra-fast inference compute).
  • Fine-Grained Partitioning: Rather than using 8 large experts (where selecting 2 activates 25% of the model), DeepSeek splits the layer into 256 small, specialized experts, dynamically routing to the top 8.
  • Isolated Shared Expert: One expert is permanently active for all tokens, preventing the specialized routed experts from duplicating redundant basic grammar features.

2. Multi-Head Latent Attention (MLA): Crushing the KV-Cache

In traditional Multi-Head Attention (MHA), serving long-context requests (e.g., 64k or 128k tokens) exhausts GPU High Bandwidth Memory (HBM). Every past token’s Key and Value vectors must be cached in VRAM (the KV-cache).

For a 671B model, the KV-cache consumes dozens of gigabytes per concurrent user, severely limiting batch sizes.

DeepSeek invented Multi-Head Latent Attention (MLA):

+-------------------------------------------------------------------------------+
|                       MULTI-HEAD LATENT ATTENTION (MLA)                       |
+-------------------------------------------------------------------------------+

Traditional Multi-Head Attention (Heavy KV-Cache):
[Hidden State (Dim: 4096)] ---> Store Full K (Dim: 4096) + Full V (Dim: 4096)
                                 * VRAM Footprint: Gigantic!

DeepSeek Multi-Head Latent Attention (Compressed Latent State):
[Hidden State (Dim: 4096)] 
       |
       v (Low-Rank Compression Projection Matrix W_DKV)
[Compressed Latent Vector: c_KV (Dim: 512)] ---> STORE ONLY THIS IN VRAM!
       |
       v (Decompress at execution time on GPU Tensor Cores via W_UK, W_UV)
[Reconstructed Keys and Values for Multi-Head Attention]

By storing only a compact 512-dimensional latent vector (c_KV) in GPU memory instead of uncompressed Key and Value heads, MLA slashes KV-cache memory consumption by over 93%.

This enables inference servers to run massive batch sizes and 128,000-token context windows on commodity GPU clusters.


3. Native FP8 Mixed-Precision Training

Training frontier models historically required 16-bit precision (FP16 or BF16) to prevent gradient underflow.

DeepSeek-V3 engineered a custom FP8 mixed-precision framework that executes both forward and backward passes directly in 8-bit floats:

+-----------------------------------------------------------------------+
|                    FLOATING POINT FORMAT PRECISION                    |
+-----------------------------------------------------------------------+

Format      Sign Bits    Exponent Bits    Mantissa Bits    Dynamic Range
-------------------------------------------------------------------------
BF16        1            8                7                Very Wide (~10^38)
FP8 (E4M3)  1            4                3                Narrow (~448)
FP8 (E5M2)  1            5                2                Wide (~57,344)

Tile-Based Micro-Scaling

Because FP8 has a narrow dynamic range, large matrix multiplications suffer from numerical overflow or precision collapse.

DeepSeek introduced Fine-Grained Tile Scaling: tensors are partitioned into small $1 imes 128$ tile blocks, each assigned an independent scaling factor. High-precision 16-bit or 32-bit accumulators prevent loss of precision during dot-product summations.

Native FP8 halved GPU memory traffic and doubled Tensor Core matrix multiplication speed, enabling DeepSeek to train a 671B model for under $6 million in compute costs.


4. Open-Weight vs Open-Source: The Licensing Reality

Understanding the open-weight revolution requires precise legal literacy:

+-------------------------------------------------------------------------------+
|                       THE AI LICENSING SPECTRUM                               |
+-------------------------------------------------------------------------------+

1. True Open Source (OSI Approved: MIT / Apache 2.0):
   - Examples: DeepSeek-V3 (MIT), Mistral 7B (Apache 2.0).
   - Grants unconditional commercial use, modification, and self-hosting.

2. Open-Weight with Community Restrictions:
   - Examples: Meta Llama 3 (Llama Community License).
   - Free for research and commercial use up to 700M monthly active users;
     mandates special licensing if scale exceeds threshold.

3. Closed / Proprietary Cloud APIs:
   - Examples: OpenAI GPT-4o, Anthropic Claude 3.5 Sonnet.
   - Weights are proprietary; accessed strictly via managed SaaS API endpoints.

Architectural Comparison Matrix

Architectural FeatureDense Frontier (Llama 3 70B)DeepSeek-V3 (Open Weight)Closed Frontier (GPT-4o)
Parameter Scale70B Dense (70B active)671B Total (37B active)Undisclosed Sparse MoE
Attention MechanismGrouped-Query Attention (GQA)Multi-Head Latent Attention (MLA)Multi-Query / Latent variant
KV-Cache FootprintModerateUltra-Low (93% compression)Compressed
Training PrecisionBF16 Mixed PrecisionNative FP8 Micro-ScalingProprietary Mixed FP8/FP4
Self-Hosting FreedomNative on local clustersNative on local clustersImpossible (Cloud API only)

Summary and Key Takeaways

  1. Fine-grained MoE decouples scale from compute: DeepSeek-V3 packs 671 billion parameters of world knowledge while executing only 37 billion parameters per token.
  2. MLA solves the memory wall: Compressing Key and Value states into low-rank latent vectors reduces KV-cache VRAM consumption by over 93%.
  3. FP8 training cuts compute costs in half: Micro-scaled tile normalization enables stable 8-bit training, lowering frontier pre-training budgets from hundreds of millions to single-digit millions.
  4. Architectural innovation beats brute-force compute: Open-weight laboratories compete with trillion-dollar tech giants through algorithmic breakthroughs in attention, routing, and communication scheduling.
  5. Open weights grant data sovereignty: Self-hosting open-weight frontier models enables enterprise privacy, custom fine-tuning, and zero vendor lock-in.
Advertisement

/* Comments */