Sparse MoE and Hybrid Attention: What to Know Before Choosing a Large Model

    This article explains the design of a lightweight large language model with 320B total parameters and 18B activated parameters per inference. It covers how sparse Mixture of Experts routing, dense early layers, mHC residual connections, and a mix of linear and sparse attention reduce compute and long-context memory costs. It also notes which reported figures lack the conditions needed to interpret them, and lists steps for evaluating the model before adoption.

    Model scale is no longer the only competitive factor. Teams increasingly compare how much it costs to reach a given quality level. This article summarizes the design details of an unnamed large model released by a model team. The model has 320B (320 billion) total parameters, and each inference activates 18B (18 billion) of them. The figures below reflect the disclosed details. They have not been independently reproduced, so check the official technical report before making a selection decision.

    1. How sparse MoE saves compute while keeping knowledge capacity

    Mixture of Experts (MoE) splits the feed-forward network into multiple experts. Each token calls only a small subset of them. According to the disclosed details, the model has 45 Transformer layers. Each layer contains 288 routed experts, and each token dynamically selects 8 of them.

    A large total parameter count with few activated parameters lets the model store more knowledge while keeping per-token compute close to that of a smaller model.

    This design has costs. Routing requires extra scheduling, expert load must be balanced, and the weights of all experts still need to fit in memory (VRAM). So “cheap inference” mainly refers to compute cost. Memory requirements do not fall in proportion.

    2. Why the first three layers are dense

    The source states that the first three layers do not use MoE and instead use a dense structure. The stated reason is that low-level features are mostly general, and sparse routing in shallow layers can easily lose information. The dense layers extract basic features first, and deeper layers hand fine-grained processing to sparse experts.

    This is a design rationale. The source provides no ablation results, so readers who want to know the effect of the dense layers will need to test with and without them.

    3. mHC: a residual improvement for shallow networks

    Residual connections let information pass directly across layers. The source describes mHC (Manifold-Constrained Hyper-Connections) as an extension of the residual path that lets multiple information streams mix between layers. The goal is to reduce feature degradation and information bottlenecks in shallow networks.

    According to the source, mHC improves the expressive power of the shallow model, and its base capability is close to that of a predecessor with about 40B activated parameters. The source does not list benchmarks or scores, so treat this comparison as a directional reference only.

    4. Hybrid attention: how mixing linear and sparse attention reduces long-context cost

    Standard attention compute grows with the square of sequence length, which makes long inputs expensive. The design interleaves two attention types. About 34 of the 45 layers use linear attention. Its compute grows linearly with length, and it suits local, high-frequency context relationships. The remaining roughly 11 layers use sparse attention, which retrieves only distant content relevant to the current token. The overall ratio is about 3:1.

    Linear attention cannot precisely locate arbitrary distant information. Sparse attention fills that gap. Combining the two layer types balances accuracy and cost.

    5. IndexPool and KV Cache: the key numbers for long-context memory

    IndexPool compresses the index keys used in sparse attention by about 4:1. The source reports two results: attention compute drops by about 3x, and KV Cache memory usage drops by about 4.4x. The KV Cache stores key and value vectors for past tokens, so the longer the context, the more memory it occupies. This makes the result especially relevant for inputs at the million-token scale.

    The source does not state three conditions needed to interpret these multipliers: whether they apply to all layers or only sparse layers, which baseline they compare against, and what sequence length and batch size were used in testing. Any citation of these figures should include those conditions. The source also claims that the cost of a single task can be as low as USD 0.05. It does not specify the hardware, input and output lengths, or pricing method.

    6. Native multimodality and agent benchmarks

    The source says the model was trained on 30T-scale multimodal pretraining data, supports a 1M-token context, and accepts image and video input natively. Compared with approaches that attach a multimodal encoder after text pretraining, native pretraining usually aligns different modalities in a shared representation space. Final performance still depends on the specific task.

    The source also says the model outperforms predecessors of the same class on coding and agent-related benchmarks, and that it approaches leading closed-source coding models. However, it does not name the benchmarks, give specific scores, identify the comparison models, or list decoding parameters. In a selection process, treat these claims as leads to investigate, and test with your own tasks.

    7. Steps for evaluating the model

    1. Define your requirements first. Include context length, whether you need image or video input, latency targets, and concurrency.
    2. Test with real business samples. Pull a set of tasks from your own data and record accuracy, token consumption, and response time.
    3. Calculate cost from actual usage. Multiply input and output token counts by unit prices, and factor in concurrency. Do not rely only on the vendor’s single-task cost figure.
    4. Estimate memory as well. Total parameters determine weight storage, activated parameters determine compute per inference, and KV Cache grows with context length and concurrency. Include all three.
    5. Confirm framework support. MoE models place higher demands on expert parallelism and routing scheduling. Check whether your inference framework supports this architecture.
    6. For deployment, consider containerization, elastic scaling, and monitoring with alerts. When choosing a cloud provider, compare pricing, regions, GPU availability, and compliance requirements.

    8. Common misconceptions

    First, treating activated parameters as memory requirements. A small activated parameter count means less compute per inference. The full set of weights still has to be loaded.

    Second, treating single-task cost as a general cost. Task length, cache hit rate, and concurrency can change costs substantially.

    Third, replacing an existing solution as soon as a model is described as “approaching top models.” Such claims need validation on your own data before you accept them.