Mainstream LLM Architectures: MoE, MLA, and Training Trade-offs

    This article examines the architectural similarities and differences among mainstream large language models (LLMs), focusing on Mixture of Experts (MoE) and Multi-head Latent Attention (MLA). By comparing models like DeepSeek-V3 and Kimi K2 based on public technical reports, it breaks down the trade-offs in parameter configuration, KV Cache compression, data quality, and optimizer choices, providing a practical checklist for architecture selection and infrastructure evaluation.

    The architectural differences among mainstream large language models (LLMs) are smaller than what most marketing materials suggest. Most leading models adopt the sparse Mixture of Experts (MoE) structure, use latent attention to compress the KV Cache, and complete pre-training on trillions of tokens. The gaps between models primarily stem from parameter configurations, training stability techniques, and engineering implementation details. Based on public technical reports, this article explains the benefits and trade-offs of each design choice item by item.

    1. MoE: Separating Total and Activated Parameters

    The Mixture of Experts (MoE) approach works by having a gating network select a few expert networks for each token’s computation, while the remaining experts sit out that specific forward pass. This allows the model to possess a massive total parameter count, while only using a small fraction for a single inference.

    The configurations of the following two models can be directly compared. The data in the table is taken from their respective technical reports; for updated model versions, refer to the official documentation.

    Item DeepSeek-V3 (Released Dec 2024) Kimi K2 (Released 2025)
    Total parameters 671B 1.04T
    Activated parameters per token 37B 32B
    Routed experts (excluding shared experts) 256 384
    Attention heads 128 64
    Pre-training tokens 14.8T 15.5T

    The total parameter count of both models is relatively similar, but Kimi K2 features more routed experts. An increase in experts means finer division of labor among experts, but each expert receives less training data. The routing requires better load balancing, and cross-device communication overhead increases accordingly. Therefore, when making a selection, you shouldn’t just look at the expert count; you must also consider the routing strategy and deployment method.

    When selecting an MoE model, you can follow these steps:

    1. Calculate the VRAM cost corresponding to the total parameters and the compute cost corresponding to the activated parameters separately.
    2. Confirm the load balancing strategy used by the model to observe if experts are chronically idle or overloaded.
    3. Evaluate the communication overhead of expert parallelism; this is typically the bottleneck in multi-node deployments.

    2. MLA: Compressing KV Cache via Low-Dimensional Latent Space

    Standard Multi-Head Attention (MHA) stores full Keys and Values for each head, meaning the KV Cache consumes a massive amount of VRAM in long-context scenarios. Grouped-Query Attention (GQA) allows multiple query heads to share the same set of KVs, thereby reducing the cache size. Multi-head Latent Attention (MLA) projects Keys and Values into a low-dimensional latent vector for caching and restores them during inference, further minimizing the cache footprint.

    Mechanism Cached Content Cache Size Implementation Complexity
    MHA Independent K, V per head Largest Low
    GQA Shared K, V across multiple query heads Medium Low
    MLA Low-dimensional latent vector Smaller Higher

    Both reports retain a hidden dimension of 7168, with an intermediate dimension of 2048 for individual experts. On this basis, Kimi K2 reduces the number of attention heads from 128 to 64. Reducing the head count lowers the attention compute and related cache overhead, but the expressiveness of each head also decreases. Whether model performance is affected must be tested on the target task; conclusions from the reports cannot be directly applied to other scenarios.

    The value of cache compression depends on the use case. In long-context or high-concurrency scenarios, a smaller cache footprint helps increase the number of concurrent requests that can be served. The specific benefits also depend on sequence length, batch size, and hardware VRAM capacity.

    3. Pre-training: Token Quality and Optimizers

    The number of tokens is just the starting point. DeepSeek-V3 uses 14.8T tokens, and Kimi K2 uses 15.5T tokens; their magnitudes are similar. Differences in data quality are much harder to quantify. Common practices include the following:

    1. Filtering low-quality text by combining rules and model classifiers.
    2. Deduplication, addressing both exact and approximate duplicates to reduce the over-reinforcement of model memory on repeated content.
    3. Adjusting data mixtures, such as the ratio of code, math, and multilingual data, and verifying the mixture’s effectiveness through small-scale ablation experiments.
    4. Retaining validation sets to monitor downstream task metrics, rather than solely focusing on training loss.

    Regarding optimizers, AdamW remains the default choice for most teams. The Kimi K2 report utilizes the Muon series of optimizers and incorporates methods like QK-clip to suppress loss spikes (sudden jumps in training loss). These methods have publicly reported effectiveness in ultra-large-scale training, but whether they suit your own model requires verifying the learning rate, training stability, and convergence speed at a smaller scale first.

    4. Selection and Infrastructure Checklist

    The infrastructure that LLM training and inference rely on can be checked across the following four categories:

    • Scheduling: Does the GPU cluster support containerized scheduling and elastic scaling? Are training tasks and inference tasks isolated from each other?
    • Storage: Can data read throughput keep up with the GPU’s compute speed? If GPU utilization is consistently low, troubleshoot the data pipeline first.
    • Fault tolerance: Is the checkpoint saving interval and recovery time acceptable? This is especially critical when training cycles span weeks or months.
    • Monitoring: GPU utilization, VRAM usage, internode network bandwidth, training loss, and gradient norms.

    Before making an architecture selection, you should also answer the following questions:

    • Is the business primarily long-context or high-concurrency short requests? This determines the value of KV Cache compression.
    • Can the team handle the multi-node deployment and communication optimization required by MoE?
    • Is there enough data and compute power to support small-scale ablation experiments?

    There are three common pitfalls. First, comparing only total parameters while ignoring activated parameters and deployment VRAM. Second, directly copying hyperparameters from one model to another. Third, treating the best results in technical reports as universal performance.

    5. Conclusion

    Mainstream LLM architectures share more commonalities than differences. What truly impacts the outcome is whether the parameter configuration matches the business scenario, and whether the training data and optimizers can be validated through small-scale experiments. When making a selection, first clarify the scenario constraints, then compare against data from public reports, and finally test using your own tasks.