Three New LLM Architecture Designs: How to Evaluate and Deploy Them

    This article examines three architectural designs—KDA, AttnRes, and LatentMoE—proposed in an unnamed source, and explains how to verify their origins, understand the technical trade-offs behind sparse attention, attention-residual fusion, and latent-space mixture-of-experts, and evaluate their real impact on memory usage, long-context performance, and deployment feasibility.

    1. Verify the Names and Sources First

    The original text introduces three abbreviations—KDA, AttnRes, and LatentMoE—without naming a model, paper, or repository, so readers cannot verify any of the claims directly. This article therefore starts with the verification method before discussing the general principles.

    Before doing anything else, confirm three things: which paper or official technical report each name corresponds to; which model version each design appears in; and whether the official configuration file (such as config.json) contains the corresponding fields. The same abbreviation can refer to different mechanisms in different teams, so judging by name alone is a common source of mistakes.

    Based on currently available information, Moonshot’s Kimi Linear includes a module called KDA (Kimi Delta Attention). It is a form of linear attention built on the gated recurrence of Gated DeltaNet, not block-level sparse selection. If you are evaluating the same model, this distinction directly changes your conclusions about memory usage and long-context performance. New models are released frequently, and the information here may not be the latest—always defer to official sources for conclusions.

    2. Sparse Attention: Distinguish the Approaches First

    “Sparse attention” covers several different techniques. Three are most common:

    • Block-level sparsity: Split the KV sequence into blocks and use a scoring function to select a small number of relevant blocks for computation.
    • Sliding window: Each token only attends to the most recent w tokens, often combined with a few global tokens.
    • Linear attention: Replace per-token caching with a fixed-size state matrix, so compute grows roughly linearly with sequence length.

    The three approaches behave very differently in terms of memory. Block-level sparsity and sliding windows still need to retain part or all of the KV cache, while linear attention only stores a fixed-size state.

    KV cache size can be estimated as follows:

    KV cache bytes = 2 × number of layers × number of KV heads × head dimension × sequence length × bytes per element

    For example, with 60 layers, 8 KV heads, head dimension 128, a sequence length of 128k, and FP16 (2 bytes per element), the cache is approximately 2 × 60 × 8 × 128 × 128000 × 2 ≈ 31.5 GB. That is the cache for a single request, not counting weights or batching. Quantizing the KV cache to 8 bits reduces it to roughly 15.7 GB.

    Sparse approaches come with three costs. Block scoring itself adds compute overhead. Selecting the wrong blocks loses long-range detail, which shows up as degraded performance on needle-in-a-haystack-style tests. And sparse strategies usually need to be incorporated during training—swapping them in at inference time typically hurts accuracy. Evaluation should therefore use long-document QA, cross-file code understanding, and retrieval recall tests, rather than relying on the nominal context window length.

    3. Residual-Attention Fusion: Start with the Formula

    A standard Pre-LN Transformer sublayer can be written as x_{l+1} = x_l + Attn(LN(x_l)). In deep networks, the variance of the residual stream grows with depth, diluting the relative magnitude of the attention branch—a common source of training instability.

    The industry already has two widely used remedies. The first is LayerScale, written as x_{l+1} = x_l + γ ⊙ Attn(LN(x_l)), where γ is a learnable per-channel coefficient initialized to a very small value. The second is QK normalization, which normalizes queries and keys before the dot product to bound the magnitude of attention logits.

    The AttnRes described in the original text is a fusion-style design that lets cross-layer information participate in attention computation. Judging its value requires answering three questions: In what form does the residual information enter the attention computation (a bias term, an extra projection, or a gate)? How many extra parameters and how much extra per-layer compute does it add? Does training still depend on learning-rate warmup? If none of these are publicly documented, there is no way to determine its incremental benefit over LayerScale or QK normalization.

    For deployment, extra gates or projections increase the operator count. Whether the inference framework supports a fused operator for the structure determines its actual latency. Gains from this kind of design usually show up in training stability; whether hyperparameter sensitivity at inference time actually decreases must be measured on your target tasks.

    4. Latent-Space MoE: Parameters, Memory, and Routing

    A standard MoE layer computes y = Σ_{i∈TopK} g_i(x) · E_i(x) for each token, and all expert weights must be kept in memory.

    A common latent-space variant works like this: first compress the hidden dimension d down to r (r < d) with z = W_down x, perform the expert computation and weighting in z, then map back to d dimensions through W_up. With d = 4096 and r = 1024, each projection matrix has about 4.2M parameters. The savings come mainly from reducing the dimensionality of the experts themselves; the overhead of the projection matrices is relatively small.

    One point is easily confused: a small quantized file does not mean small runtime memory. Model memory roughly equals total parameter count multiplied by bytes per parameter, plus the KV cache and activations. For example, a 300B-parameter model at 4-bit quantization requires about 150 GB for weights alone—far beyond a single 24 GB GPU. Whether it can run on a single card depends on total parameter count, activated parameter count, and whether CPU or disk offloading is enabled. The original text claims the model “can even run on a single GPU” but provides no parameter count, bit width, or offloading conditions, so that claim should not be taken at face value.

    Routing-level risks include: uneven expert load, where some experts are almost never selected; the need for auxiliary losses or bias correction to balance the load; and reduced routing discriminability in low-dimensional space, which can undermine expert specialization.