From MLA to Sparse Attention: The Three-Generation Architecture Evolution of an Open-Source LLM Family

    This article traces the architectural evolution of a major open-source LLM family from V3 through V3.1, V3.2-Exp, V3.2, and V3.2-Speciale. It explains the core techniques behind each milestone—Multi-head Latent Attention (MLA), sparse MoE, reinforcement learning with verifiable rewards (RLVR), hybrid thinking, sparse attention, self-verification and self-correction, and GRPO—and distills practical engineering lessons for teams deploying large models on their own infrastructure.

    From MLA to Sparse Attention: The Three-Generation Architecture Evolution of an Open-Source LLM Family

    1. Background: An Architectural Leap Across Three Versions

    In December 2024, an open-source large model released its V3 version. At the time, it did not immediately shake the industry—what truly brought the model into the spotlight was the reasoning model subsequently built on the same architecture. Over the following year, this model family went through multiple stages, including V3.1, V3.2-Exp, V3.2, and V3.2-Speciale, with each iteration leaving clear technical footprints in architecture, training methods, and inference strategies.

    This evolution path is worth studying in depth because it condenses nearly all the important trends in the LLM field over the past two years: cost optimization of attention mechanisms, reasoning capabilities emerging from reinforcement learning, the trade-off between long context and sparsity, and the productization of hybrid reasoning modes. Understanding this path means understanding one mainstream route of modern LLM engineering.

    2. The V3 Foundation: Sparse MoE and Multi-head Latent Attention

    The base architecture of V3 consists of several key components, the most notable being Multi-head Latent Attention (MLA).

    Traditional multi-head attention requires caching the Key/Value matrices for every head at inference time. As context length grows, the KV cache becomes the main bottleneck for memory and bandwidth. MLA’s approach is to project Keys and Values into a low-dimensional latent space, caching only the compressed latent vector; when attention needs to be computed, the per-head Keys/Values are restored through an up-projection. Combined with a decoupled rotary position encoding design, MLA significantly compresses the KV cache while preserving the expressive power of attention.

    For developers, the direct benefit of MLA is clear: lower serving costs for long-context inference and a lower deployment barrier. This is also the key engineering prerequisite that allows open-weight models to run on small- and medium-scale hardware.

    Beyond MLA, V3 also adopted a sparse Mixture-of-Experts (MoE) architecture, where each token activates only a subset of experts, balancing parameter scale against compute cost. This foundation provided a stable base for all subsequent versions.

    3. The Emergence of Reasoning: Reinforcement Learning with Verifiable Rewards

    After V3 was released, the team trained a reasoning model on top of it (the R1 series), with the core training method being Reinforcement Learning with Verifiable Rewards (RLVR).

    Unlike RLHF, which depends on human preference annotations, RLVR applies to tasks with objectively checkable outcomes: math computation, code execution, logical deduction, and so on. The reward signal comes from a verifier—whether an answer is correct can be checked directly, and whether code passes tests can be verified by running it. This brings several engineering advantages:

    1. High reward fidelity: no subjective drift from human annotation;
    2. Scalability: verification can be automated without large annotation teams;
    3. Emergence of long reasoning chains: driven by verifiable signals, the model learns to generate a longer thinking process before answering—i.e., chain-of-thought reasoning.

    In practice, this training approach not only improves accuracy on verifiable tasks but also shows generalization gains on tasks that cannot be directly verified, such as writing. This reminds us that reasoning ability may be a relatively general capability rather than one limited to math and code.

    4. V3.1: Hybrid Thinking Becomes a First-Class Citizen

    The most important change in the V3.1 stage was introducing hybrid thinking into the model. Previously, reasoning and non-reasoning models were two separate branches: the former output a full thinking process for every request, with high latency and heavy token consumption; the latter responded quickly but underperformed on complex tasks.

    Hybrid thinking allows on-demand switching within a single model: thinking can be turned off for direct answers, or enabled for hard problems. From an API perspective, this typically appears as a configurable switch. This design is highly practical—use the fast mode for customer-support Q&A and the slow mode for math and coding tasks, choosing dynamically by scenario to balance cost and quality.

    Notably, hybrid thinking is not simply adding “please think first” to the system prompt. It requires the model to learn both output forms during training, and switching reasoning modes must not break general capabilities—this is the real difficulty in the training recipe.

    5. V3.2-Exp: A New Approach to Sparse Attention and Long Context

    In the V3.2-Exp stage, the attention mechanism itself was upgraded: sparse attention.

    Although MLA already compresses the KV cache, the computational complexity of attention still grows quadratically with sequence length, and inference latency remains significant in long-context scenarios. The basic idea of sparse attention is that each token does not need to compute attention against all historical tokens—selecting a relevant subset can approximate full attention. Concrete implementations typically include three components:

    • Local attention: attends only to tokens within a nearby window, capturing local syntax and semantics;
    • Compressed context representation: distant history is compressed, with a small number of shared tokens carrying global information;
    • Selection/routing mechanism: learned scoring determines which historical tokens deserve fine-grained attention.

    This design keeps quality close to full attention while reducing long-context compute cost to near-linear, clearing the compute obstacles for scenarios such as ultra-long document understanding and large codebase analysis.

    6. Lessons from DeepSeekMath V2: Self-Verification and Self-Correction

    The upgrade of the math reasoning module revealed another path to improving reliability—instead of relying solely on external verifiers, the model checks itself.

    Self-verification: after giving an answer, the model generates a verification question, solves it independently, and compares the verification result with the original answer. This effectively trains the model to “re-check its work,” significantly reducing error rates in scenarios that demand high accuracy, such as math.

    Self-correction: when verification finds an inconsistency, the model re-examines its reasoning steps, locates the faulty step, and corrects it. This requires the model to have metacognitive awareness of its own reasoning process.

    Training both capabilities also relies on verifiable rewards: the model attempts verification and correction, and only receives a reward when the final answer is correct—thus learning effective checking strategies rather than superficial repetition.

    7. V3.2 and V3.2-Speciale: Architectural Convergence and Extended Thinking

    Released on December 1, 2025, V3.2 is a culmination release:

    1. Architecture: retains the combination of MLA + MoE + sparse attention, with refined attention routing and expert load balancing;
    2. Training: the reinforcement learning pipeline matured further, with updates to GRPO (Group Relative Policy Optimization) making training more stable and sample-efficient;
    3. Product form: V3.2-Speciale introduces “extended thinking,” allowing the model to generate longer, more structured thinking processes at inference time, targeting high-difficulty reasoning tasks.

    The core idea of GRPO is to sample a group of responses to the same question and use the group’s relative performance as the baseline for computing advantages, removing the dependence on a value network in traditional methods. This reduces training overhead and mitigates the instability caused by value estimation bias. For teams doing RL on verifiable tasks, this is currently a mainstream choice.

    8. Summary and Engineering Takeaways

    Looking back at the evolution from V3 to V3.2, several lessons emerge for engineering teams:

    • Prioritize memory and bandwidth optimization: MLA and sparse attention show that inference cost is the primary constraint on LLM deployment, and architectural innovation often revolves around it;
    • Verifiable rewards beat human preferences (on verifiable tasks): automated, high-signal rewards are the fuel for emergent reasoning capabilities;
    • Hybrid thinking is a necessary engineering form: a one-size-fits-all “fast” or “slow” mode cannot satisfy real business needs; on-demand switching is the norm;
    • Reliability comes from self-checking mechanisms: self-verification and self-correction make models more trustworthy on high-stakes tasks;
    • Version evolution results from the synergy of training recipes and architecture: single-point breakthroughs are hard to sustain; systematic iteration is the real moat.

    For teams that need to deploy large models on their own infrastructure, this technical roadmap provides a clear capability checklist: a low-memory attention implementation, long-context sparsification, controllable reasoning switches, and a verifiable-reward post-training pipeline. Whether building from scratch or doing secondary development on open-weight models, understanding the motivations behind these designs matters more than memorizing specific numbers.

    Going forward, as attention sparsification and RL-based post-training mature further, “adjustable reasoning depth” may become a standard LLM capability—and this roadmap is the best reference point for it.