Trillion-Parameter Sparse MoE LLM Architecture and Training Essentials

    This article examines the architectural and training patterns used by trillion-parameter sparse Mixture-of-Experts large language models. It focuses on long-context attention, massive expert routing, native multimodal pretraining, multi-stage context extension, and million-token agentic reinforcement learning. It also highlights three high-value techniques for engineering teams: lower-bounded decay parameterization for linear attention, auxiliary-loss-free quantile balancing for MoE routing, and block attention residual for deep transformer reuse.

    1. Introduction: Three Compounding Pressures on LLM Architecture

    In recent years, the main direction of large model pretraining has converged toward three intertwined dimensions: context length, parameter scale, and multimodal capability.

    • Context length: Context windows have expanded from a few thousand tokens to hundreds of thousands, and even to millions of tokens. Models are expected to process entire books, full code repositories, or long sequences of tool-call logs.
    • Parameter scale: Dense models at the tens-of-billions level have given way to sparse models at the trillion-parameter level, where only a small subset of parameters is activated for each token.
    • Multimodality: The field has moved from training a text model first and then attaching a vision encoder, toward native multimodal pretraining where visual and language signals are jointly learned from the beginning.

    Each of these dimensions already has mature engineering approaches when considered in isolation. The difficulty is that pushing all three to their limits at the same time does not merely add complexity; it amplifies it.

    A public technical report for a trillion-parameter sparse multimodal model provides a clear example of this compounding effect. The disclosed model parameters include:

    • Total parameters: 2.8 trillion, with about 104 billion activated per token;
    • 896 routed experts in the MoE layer;
    • Native support for visual multimodal input;
    • A context window covering four stages: 8K, 64K, 256K, and 1M tokens;
    • A final post-training stage using million-token-level agentic reinforcement learning.

    The model does not rely on a single breakthrough. Instead, it combines targeted designs across four areas: attention, expert routing, training pipeline, and post-training. This article uses that report as a reference point and abstracts a transferable methodology for building long-context, sparse, multimodal large models. It focuses on three techniques with especially high reuse value.

    1.1 Three Core Bottlenecks

    Bottleneck Manifestation Practical Impact
    Long-sequence attention efficiency Standard attention has quadratic cost in sequence length. Linear attention avoids quadratic complexity but can suffer numerical overflow and inefficient operator execution. A 1M-token sequence is impractical with standard full attention. Pure linear attention may fail to saturate matrix compute units.
    Stability at extreme MoE scale When experts number in the hundreds or thousands, routing load can become severely imbalanced. Auxiliary balancing losses may also interfere with the primary objective. Some experts are overloaded while others receive too few updates, reducing efficiency and increasing loss spikes or instability.
    Long-horizon agentic reasoning In multi-turn tool-use scenarios, trajectories grow continuously, while rewards are usually given only after final success or failure. Reinforcement learning sampling becomes expensive, credit assignment is difficult, and overall throughput can be dragged down by a few extremely long trajectories.

    1.2 A Three-Layer Solution

    Across such models, the solution can generally be summarized at three levels:

    1. Attention layer: A hybrid structure combining linear attention with gated latent attention reduces long-sequence cost. Lower-bounded decay parameterization and block attention residuals improve numerical stability and cross-layer efficiency.
    2. Expert layer: Latent-space experts reduce memory and communication overhead. Quantile-based, auxiliary-loss-free balancing keeps routing healthy. Gated GLU variants stabilize activations in deep networks.
    3. Training layer: Context is expanded through a staged curriculum from 8K to 64K, 256K, and 1M tokens. Million-token agentic reinforcement learning then extends the model’s long-horizon task capability.

    2. Overall Model Architecture: How Parameters Are Allocated

    2.1 Estimating Parameter Composition from Activation Sparsity

    A trillion-parameter MoE report usually provides two numbers: total parameters and activated parameters per token. Even without knowing the exact number of activated experts per token, a useful “parameter conservation” estimate is possible.

    For the example model:

    • Activation sparsity: 104B / 2.8T ≈ 3.7%;
    • If the activated routed experts account for a fraction k/N of all experts, the activated parameters coming from routed experts are approximately 2.8T × k/N;
    • The remaining activated parameters come from shared experts, dense feed-forward layers, and attention modules.

    For example, if k/N = 4/896, routed experts contribute roughly 12.5B parameters, or about 12% of the activated parameters. The remaining roughly 91.5B parameters are distributed across shared experts, dense layers, and attention.

    This estimate reflects a common lesson in industrial-scale sparse models: activation sparsity mainly applies to the large pool of routed experts. A model still needs a substantial always-active component to carry general capability, cross-domain knowledge, and stable feature transformations.

    Higher sparsity is not automatically better. If the activated ratio becomes too low:

    • Errors caused by incorrect routing are amplified;
    • Expert capacity is harder to utilize effectively;
    • Communication overhead rises, reducing both training and inference throughput.

    2.2 Layer-Level Structure: A Reusable Design Pattern

    Ignoring specific naming conventions, the layer design can be abstracted into a clear pipeline:

    1. Token (text / visual)
    2. ↓
    3. [Attention module]: Linear attention with lower-bounded decay + a small number of global gated latent attention layers
    4. ↓ Block attention residual: attention output shared across several layers
    5. [Feed-forward module]: Shared experts + routed experts (latent space, sigmoid gating, quantile balancing)
    6. ↓
    7. Next layer

    This pipeline can be summarized into four design principles:

    1. Most layers perform “linear” work; a few layers perform “global” work. Linear layers provide low-cost long-range state propagation, while global layers provide precise on-demand retrieval.
    2. Attention outputs can be reused across layers. Block-level residuals reduce repeated computation in deeper layers.
    3. Feed-forward parameters are sparse, but dense shared capacity remains. This balances capacity efficiency with general capability.
    4. Numerically sensitive components are explicitly constrained. This includes decay lower bounds, routing balance, activation scaling, and quantization-friendly structure.

    2.3 Native Multimodal Design

    Native multimodal support means that visual and text modalities share the same parameters and training objectives from the first stage of pretraining, rather than attaching a visual adapter to a pretrained language model.

    Common engineering components include:

    • Visual encoder: A mature vision backbone is used to extract image features.
    • Connector: Projection layers or lightweight attention modules map visual features into the language model’s embedding space.
    • Interleaved data: Text-image interleaved documents, screenshots and interfaces, charts and formulas, document layouts, and similar data are mixed according to a designed ratio so the model learns cross-modal reference and layout understanding.

    Visual input also increases token consumption significantly. High-resolution images or long document screenshots may occupy thousands or even tens of thousands of tokens. Therefore, multimodal training must be coordinated with long-context curriculum design. In early stages, visual token density should be controlled to avoid visual data crowding out text budget.

    3. Attention Design: Efficiency and Stability for Long Sequences

    3.1 Hybrid Attention: Division of Labor Between Linear and Global Layers

    The core idea of linear attention is to swap the order of softmax and value multiplication, compressing history into a matrix state S whose update cost is independent of sequence length:

    1. S_t = diag(alpha_t) · S_{t-1} + k_t v_t^T
    2. o_t = q_t^T S_t

    Here, k and v are key and value vectors, and alpha_t in (0, 1] is a decay factor.

    This leads to two useful properties:

    • Training complexity is linear with respect to sequence length and can be expressed as matrix multiplication, which is suitable for GPU parallelism.
    • During inference, each step only updates a fixed-size state, so memory usage does not grow with context length.

    However, pure linear attention also has limitations. Its state is a finite-dimensional compressed representation, making precise needle-in-a-haystack retrieval difficult. Therefore, these models usually adopt a hybrid structure:

    • Most layers use decay-gated linear attention.
    • A small number of layers use global attention for precise retrieval.

    For million-token inference, a rough order-of-magnitude estimate helps. Suppose global layers account for 1/4 of all layers, the compressed latent vector plus position-related dimension is 576, and storage is BF16. For a single sequence, the KV cache for global layers alone is approximately:

    1. 1,000,000 × 576 × 2 Byte × number_of_layers × 1/4 ≈ 17 GB

    assuming 60 layers.

    Linear attention layers carry state whose size is independent of sequence length; for one sequence, the state is on the order of a few hundred kilobytes, around 0.5 MB.

    The mixing ratio is therefore a key parameter for long-context inference cost. A lower global-layer ratio saves memory, but retrieval capability depends more heavily on the few global layers.

    3.2 Gated Multi-Head Latent Attention

    Global attention layers in such models often include two modifications:

    • Latent compression: Instead of caching raw keys and values directly, the model compresses the current hidden state into a low-dimensional latent vector and projects it back when attention computation is required. This substantially reduces KV cache size and is more friendly to both memory and communication.
    • Output gating: After attention output, each element is multiplied by a gate computed from the current token. This allows the model to decide adaptively how much historical information to absorb.

    Several studies suggest that output gating can suppress pathological behaviors such as attention sinks, where a few positions receive abnormally high attention scores for extended periods. In mixed short- and long-context training, gating can have a particularly strong effect on stability.

    3.3 Lower-Bounded Decay Parameterization: Making Linear Attention Efficient on Matrix Units

    This is one of the most reusable engineering changes in this class of models.

    Problem

    Decay-gated linear attention cannot directly use standard FlashAttention-style operators. The reason is that computation requires the reciprocal of the decay factor.

    In a typical block-parallel formulation, for a block of length C:

    • Define cumulative decay a_t = exp(g_1 + ... + g_t), where g_i = log(alpha_i) < 0.
    • Use q_tilde_t = a_t * q_t and k_tilde_j = k_j / a_j for intra-block causal matrix multiplication.
    • Let S be the cross-block state and S' the state at the end of the block.
    1. # Pseudocode: block scan of linear attention with decay gating (single head, single batch)
    2. a = exp(cumsum(g, dim=0)) # g is per-step log decay
    3. q_til = a[:, None] * q # normalized query
    4. k_til = a[:, None]^-1 * k # requires reciprocal decay
    5. S = 0 # [d_k, d_v] recurrent state
    6. for t0 in range(0, T, C):
    7. qt, kt, vt = q_til[t0:t0+C], k_til[t0:t0+C], v[t0:t0+C]
    8. A = qt @ kt.T # [C, C] attention scores
    9. A = A * causal_mask(C) # strictly lower triangular; diagonal set to zero
    10. o[t0:t0+C] = A @ vt + qt @ S # intra-block + cross-block state
    11. k_a_end = a[t0+C-1] * kt # equivalent to k_last / a_last
    12. S = k_a_end[:, None] * vt[None, :] + a[t0+C-1] * S
    13. o = o / a[:, None] # restore scale

    Both k_til and the final rescaling step depend on the reciprocal of a_t. If cumulative log decay has no lower bound, some training steps may produce extremely deep decay. Under BF16, a_t can underflow to zero, after which division produces inf or NaN.

    There is another issue. To keep numerical behavior controllable, engineering implementations often need a special computation path for diagonal blocks, where tokens within the same block interact with each other. This path is difficult to express efficiently as matrix multiplication and can cancel out the throughput advantage of linear attention.

    Solution: Compress log decay into a fixed lower bound

    The approach in the report changes the log-decay parameterization from an unbounded negative softplus form to a bounded, scaled sigmoid form:

    1. g_t = g_min · sigmoid(exp(a^T h_t) · t), where g_min = -5

    Here:

    • h_t is the current hidden state;
    • a is a learnable scaling vector;
    • t is the position index.

    The engineering intent of each component is:

    Component Purpose
    Fixed lower bound g_min = -5 Per-step log decay is restricted to (-5, 0), preventing cumulative decay from approaching zero arbitrarily.
    Scaled sigmoid Preserves the inductive bias of smooth decay with distance while remaining bounded and gradient-friendly.
    Exponential term exp(a^T h_t) Allows decay rate to adapt to content, approximating either near-zero decay or stronger decay.
    Position index t Provides distance awareness for decay rate without requiring an explicit positional encoding.

    Benefits

    1. Unified operators: Both diagonal and non-diagonal blocks can directly use general matrix multiplication. The diagonal block no longer requires a special branch. Efficient kernels can often be generated by compiled operator libraries, or implemented directly using framework operators for validation.
    2. Numerical safety: With a fixed lower bound, intra-block reciprocal scaling factors are constrained to a safe range. Combined with FP32 accumulation, this improves stability.
    3. Compatibility with no positional encoding: Decay itself carries distance information. Combined with NoPE design, linear attention layers can extrapolate more naturally, which is an important foundation for extending context to 1M tokens.

    Costs and considerations

    • g_min is a hyperparameter that requires tuning. If it is too negative, the model may lose expressive power for long-range decay. If it is too close to zero, numerical risk can return. During training, it is useful to monitor whether the decay distribution frequently hits the boundary.
    • The formula is sensitive to position t. When crossing context-extension stages, calibration on a small amount of data may be necessary.

    3.4 Block Attention Residual: Cross-Layer Sharing and Memory Optimization

    Deep transformers often face a representation bottleneck:

    • Each layer’s attention must re-retrieve information from the output of the previous layer, causing important shallow-layer relationships to be recomputed in deeper layers.
    • Deep representations can be diluted by residual streams stacked layer by layer.

    Block Attention Residual shares attention outputs across layers at block granularity. Deeper layers use a small learnable mixture to reuse attention outputs from earlier layers in the block instead of recomputing attention from scratch.

    Its benefits are threefold:

    1. Expressiveness: Deeper layers can directly access fine-grained relationships computed in shallower layers, mitigating representation degradation.
    2. Memory: Cross-layer sharing reduces the number of tensors that must be stored and backpropagated.
    3. Communication: Under tensor parallelism or pipeline parallelism, it reduces cross-layer activation transfer.
    1. # Pseudocode: block-level attention residual
    2. attn_outputs = [] # cache attention outputs within the block
    3. for layer in range(num_layers):
    4. attn_out = attention(layer_norm(h))
    5. if layer % block_size == 0: # first layer in block: recompute
    6. attn_outputs = [attn_out]
    7. else: # later layers in block: mix from cache
    8. weights = softmax(router(h)) # [block_size], may include a temperature coefficient
    9. attn_out = sum(w * o for w, o in zip(weights, attn_outputs))
    10. attn_outputs.append(attn_out)
    11. h = h + attn_out # attention residual
    12. h = h + ffn(layer_norm(h)) # feed-forward residual

    Implementation notes:

    • The mixing weights should use softmax or sigmoid form with small initialization, avoiding disruption to the residual path early in training.
    • Block size determines the sharing granularity and usually needs to be tuned against depth and memory budget.
    • Intermediate tensors cached inside a block should be included in memory accounting. Activation recomputation may be necessary.

    4. Expert Design: Keeping Massive Experts Stable

    4.1 Latent-Space MoE Architecture

    When the number of experts reaches hundreds or even thousands, a naive implementation where each expert is a large matrix creates three problems:

    • Parameter memory becomes very large;
    • All-to-All communication during expert parallelism becomes expensive;
    • Activation checkpointing overhead increases.

    Latent-space MoE, such as Stable LatentMoE, addresses this by compressing token hidden states into a low-dimensional latent space, performing expert computation there, and then projecting back to the original dimension.

    Dimension Benefit Potential Risk
    Parameters Each expert’s weight footprint is significantly reduced. Compression introduces representational loss, which may require shared experts to compensate.
    Communication All-to-All transfers operate in a lower-dimensional space. Projection layers themselves introduce computation and communication overhead.
    Activations Experts store smaller activation tensors. Optimization in a low-dimensional space can be more sensitive.

    The term “stable” in such designs usually points to training stability. In extreme sparsity and low-dimensional latent space, individual expert gradients are sparse and vary significantly in scale. Practical systems often combine several measures:

    • Shared experts provide stable dense transformations;
    • Routing scores remain numerically stable;
    • Balancing strategies are finely tuned;
    • Residual and normalization paths are carefully designed.

    4.2 Routing and Gating

    • Gating function: These models often use sigmoid gating rather than softmax. Sigmoid scores each expert independently. Combined with learnable bias terms or temperature coefficients, this better matches the sparse prior of activating a small number of experts per token.
    • Expert selection: Top-k routing is the main mechanism. Some designs also include always-active shared experts.
    • Normalization: Normalization such as RMSNorm is applied when expert outputs are merged, preventing differences in expert output scales from being amplified in deep networks.

    4.3 Activation Function: SiTU-GLU

    Gated linear unit variants are a mainstream choice for feed-forward networks. SwiGLU is effective but can produce loss spikes early in training. GeGLU is numerically smoother but somewhat less expressive.

    SiTU-GLU is a compromise. It uses a sigmoid linear unit as the gating branch and introduces scaling and bias inspired by GeGLU to gently constrain activation magnitude. Its structure can be written as:

    1. FFN(x) = (sigmoid(xW_g) ⊙ (xW_u + β)) · (xW_d)

    Here, β is a learnable bias vector.

    Design considerations:

    • The gating branch remains smooth, so gradients do not have sharp discontinuities like ReLU-family activations.
    • The bias term shifts activations near zero, mitigating spikes caused by large early activations.
    • Compared with pure softmax gating, sigmoid is less likely to saturate completely under extreme inputs.

    4.4 Quantile Balancing

    One of the hardest problems in extremely large MoE models is routing collapse: a few experts are selected repeatedly, while the remaining experts receive almost no gradient signal.

    The traditional approach adds an auxiliary balancing loss to the main objective. However, gradients from the auxiliary loss are directly added to routing and expert parameters, competing with the language modeling objective. The interference becomes more noticeable as the number of experts increases and sparsity becomes higher.

    Quantile Balancing, or QB, uses auxiliary-loss-free balancing:

    1. Track load: During training, monitor how often each expert has recently been selected, or use summed soft routing probabilities.
    2. Compute quantile thresholds: Apply quantiles such as P50, P90, and P99 to the expert load distribution, producing dynamic thresholds for normal, high, and abnormally high load.
    3. Adjust bias: For experts with high load, lower their routing bias. For experts with low load, increase their bias. The adjustment is proportional to how far the load exceeds the quantile threshold.
    1. # Pseudocode: quantile balancing (update bias once per optimizer step)
    2. # load: average load of each expert in the recent window [E]
    3. # bias: learnable or manually maintained routing bias [E]
    4. q50, q90, q99 = quantile(load, [0.50, 0.90, 0.99])
    5. delta = where(load > q99, -eta_hi,
    6. where(load > q90, -eta_mid,
    7. where(load < q50, +eta_low, 0.0)))
    8. bias = clamp(bias + delta, min=-b_max, max=b_max)

    Advantages:

    • No extra gradient: Balancing is reflected only in routing bias, without polluting the primary task gradient.
    • Adaptive: Quantiles change dynamically during training, so no manual target load needs to be specified in advance.
    • Explainable: Thresholds correspond to intuitive semantics, such as exceeding the load of a certain percentage of experts.
    • Scales naturally with many experts: As E increases, quantile estimates become more stable.

    5. Training Strategy: From Short Contexts to Million Tokens

    5.1 Multi-Stage Context Curriculum

    Context extension is not usually a one-step jump. It proceeds through stages: 8K → 64K → 256K → 1M. Each stage has a different objective and data mixture.

    Stage Context Length Main Objective Data and Strategy Notes
    1 8K Build language and multimodal foundations Use regular web data, books, and interleaved text-image data to stabilize core capabilities.
    2 64K Adapt the model to medium-length dependencies Increase long-document proportion; introduce code repositories, long-form QA, and similar tasks.
    3 256K Strengthen very long-range dependency modeling Add cross-chapter and cross-file dependency samples; combine with sequence parallelism.
    4 1M Push the length limit and extrapolation capability Mix synthetic long documents, such as needle-in-a-haystack retrieval, with real long tasks; control the number of steps.

    Important considerations when advancing stages:

    • Increase sequence length gradually: Jumping directly to the longest length sharply increases memory and communication pressure.
    • Adjust data mixture by stage: Increase the proportion of long-text samples to avoid improving length while failing to learn long-range dependencies.
    • Adapt positional encoding: If RoPE is used, adjust base frequency during extension, for example with NTK-aware or YaRN-style methods. If NoPE plus decay is used, extrapolation relies mainly on the natural behavior of decay parameters.
    • Validation: After each stage, evaluate with long-context retrieval, multi-hop QA, and similar tasks to prevent capability regression.

    5.2 Engineering Practices for Long-Context Training

    1. Sequence parallelism: When a single device cannot hold activations for a 1M-token sequence, partition along the sequence dimension. Ring Attention-style methods rotate K/V shards across devices and overlap communication to hide latency.
    2. Activation recomputation: Selectively recompute activations in attention and expert layers, trading computation for memory.
    3. Mixed precision: Use BF16 for the main attention computation, while using FP32 for decay accumulation, normalization, and loss computation.
    4. Long-sample bucketing: Organize batches by sequence length to reduce padding waste.
    5. Expert parallelism: Distribute experts across devices and overlap All-to-All communication with computation.

    5.3 Million-Token Agentic Reinforcement Learning Post-Training

    Pretraining helps a model read long contexts. Post-training helps it use them effectively. The report emphasizes million-token-level agentic reinforcement learning, which differs substantially from ordinary RLHF in both data and optimization.

    Challenges from long trajectories

    • High sampling cost: A trajectory may contain dozens of tool-call turns, each requiring a full forward pass.
    • Sparse rewards: Rewards are often given only after final success or failure, leaving intermediate steps without signal.
    • Difficult credit assignment: In very long trajectories, it is hard to attribute the final outcome to a specific earlier decision.
    • Throughput bottleneck: A few extremely long trajectories can slow down overall rollout.

    Common countermeasures

    Technique Purpose
    Partial rollout reuse Preserve intermediate state across turns to reduce repeated generation.
    Process rewards / step rewards Provide feedback for intermediate steps, mitigating reward sparsity.
    Curriculum-based task difficulty Move gradually from short tasks to long tasks to avoid cold-start failure.
    Reward normalization Penalize or normalize by length to prevent reward hacking through longer outputs.
    Long-context rollout scheduling Group extremely long trajectories separately to avoid dragging down overall throughput.

    6. Three Techniques with the Highest Reuse Value

    Considering implementation cost, benefit, and applicability, the following three techniques are especially worth adopting first.

    6.1 Lower-Bounded Decay Parameterization

    • Reuse value: High
    • Implementation cost: Low. It mainly requires replacing the parameterization of log decay while keeping other modules unchanged.
    • Core benefits:
      • Linear attention operators can use unified dense matrix multiplication, improving throughput;
      • Numerical behavior is more stable, reducing divergence risk;
      • Natural support for extrapolation without explicit positional encodings.
    • Applicable scenarios: Models using linear attention, gated linear attention, Delta Net-style structures, or similar efficient attention variants.

    6.2 Quantile Balancing (QB)

    • Reuse value: High
    • Implementation cost: Low. It mainly requires adding a bias-update step in the training loop.
    • Core benefits:
      • Auxiliary-loss-free, so it does not interfere with the primary objective;
      • Adaptive load balancing, suitable for models with hundreds or thousands of experts;
      • Explainable and easy to monitor.
    • Applicable scenarios: Large-scale MoE training, especially when the number of experts exceeds 256.

    6.3 Block Attention Residual (Block AttnRes)

    • Reuse value: Medium-High
    • Implementation cost: Medium. It requires modifying the forward pass and handling caching and parallel partitioning.
    • Core benefits:
      • Mitigates the deep representation bottleneck;
      • Reduces memory and communication overhead;
      • Works well with multi-stage long-context training.
    • Applicable scenarios: Deep transformers, especially those with more than 40 layers and long-context requirements.

    7. Practical Checklist: From Design to Deployment

    If a team plans to build a long-context, multimodal, sparse MoE model, the following checklist can guide the process.

    7.1 Design Phase

    • Define the context-length target, such as 64K, 256K, or 1M, and choose the hybrid attention ratio accordingly.
    • Estimate total parameters and activated parameters, then determine sparsity and expert count.
    • Decide whether native multimodal support is required and plan the visual token budget.
    • Choose a decay parameterization scheme; lower-bounded decay is recommended. Set an initial value for g_min.
    • Choose a balancing strategy; QB is recommended. Set quantile thresholds and bias update rates.
    • Design the block attention residual structure, including block size and initialization.

    7.2 Training Phase

    • Prepare data for the multi-stage context curriculum.
    • Configure sequence parallelism, expert parallelism, and activation recomputation.
    • Establish numerical monitoring for decay distribution, routing entropy, gradient norm, and loss spikes.
    • After each stage, validate with long-context retrieval and multi-hop QA tasks.
    • Design agentic tasks and reward functions for the post-training stage.

    7.3 Inference and Deployment

    • Evaluate KV cache memory for global attention layers and state cache for linear attention layers.
    • Optimize batching and scheduling for long-context inference.
    • Quantize or sparsify expert layers to reduce inference cost.
    • Set up production monitoring for first-token latency, long-context throughput, and routing distribution.

    8. Common Pitfalls

    1. Scaling parameters without solving routing. If the number of experts grows but balancing is inadequate, many experts may remain undertrained, wasting parameters.
    2. Jumping directly to 1M context. Skipping 64K and 256K stages makes it difficult for the model to learn long-range dependencies, while memory and communication pressure rises sharply.
    3. Ignoring numerical stability. BF16 underflow in decay terms, activation overflow, and attention sinks are common hidden risks in long-context training.
    4. Assuming heavier auxiliary loss is better. An overly strong balancing loss can interfere with the main task. Auxiliary-loss-free methods such as QB deserve priority.
    5. Rewarding only final outcomes in agentic tasks. For long trajectories, process rewards and curriculum design are often more effective than simply increasing rollout volume.

    9. Conclusion

    The value of a trillion-parameter sparse multimodal model report is not a single impressive number. It lies in systematically answering three questions:

    • How can attention remain both fast and stable at million-token scale?
      Through hybrid linear-global attention, lower-bounded decay parameterization, and block attention residual.

    • How can thousands of experts be trained stably?
      Through latent-space MoE and auxiliary-loss-free quantile balancing.

    • How can a model use long contexts effectively, not just process them?
      Through multi-stage context curriculum and million-token-level agentic reinforcement learning.

    For engineering teams, the three techniques with the highest reuse priority are:

    1. Lower-bounded decay parameterization: low change cost, high payoff, improving both operator efficiency and numerical stability for linear attention;
    2. Quantile Balancing (QB): auxiliary-loss-free, adaptive, and explainable, suitable for ultra-large MoE models;
    3. Block Attention Residual: mitigates deep-layer bottlenecks and reduces memory and communication overhead.

    These techniques are not isolated. Together, they form a complete training paradigm for long-context, large-scale sparse, multimodal, and agentic models. In practice, teams can combine their own compute resources, data, and product requirements, starting with the techniques that offer the lowest adoption cost.