MoE Multimodal Large Model: Three Stability Designs
This article explains three design choices for stability in a mixture-of-experts multimodal large model, as described in a technical introduction with no linked official paper or release. It covers a lower-bounded decay parameterization that avoids underflow in linear attention over long sequences, quantile-based load balancing for MoE routing without an auxiliary loss, Block Attention Residuals combined with the SiTU-GLU activation, and a staged training schedule that extends context from 8K to 1M tokens. The reported figures have not been independently verified. The article also outlines what engineering teams can check before adopting these ideas.
The source introduction is not an official release, so the model name, parameter scale, and experimental results have not been independently verified. Check the original paper or official release before relying on them. All figures below are as reported.
1. Background: Sparse Activation and Long Context Must Be Considered Together
According to the introduction, the model has about 2.8 trillion total parameters, but only about 104 billion parameters are activated in a single forward pass. The activation ratio is slightly below 4%. The design aims to keep a large capacity for storing knowledge while keeping the compute for each inference within a manageable range.
Long context is another challenge. In a traditional dense Transformer, attention compute grows quadratically with sequence length, so processing million-token inputs is very expensive. According to the introduction, the model is designed directly for a 1-million-token context window. It does not rely on sliding windows or retrieval augmentation to avoid the long-text problem. This means the attention mechanism and MoE routing both need dedicated design. Simply combining existing components is not enough.
2. Numerical Issues in Linear Attention and a Lower-Bounded Decay Parameterization
Linear attention replaces Softmax with decomposable kernel functions. This reduces attention complexity from O(N²) to O(N). Implementing these operators efficiently on GPUs, however, is not straightforward.
Chunked computation requires maintaining a cumulative decay factor. Common implementations use an unbounded Negative-Softplus parameterization. When sequences reach hundreds of thousands or even a million tokens, the reciprocal of the decay factor can underflow easily in BF16 precision. After underflow, the computation falls back to a pairwise, position-by-position path. This path cannot use the matrix multiply instructions of Tensor Cores, so throughput on long sequences drops noticeably.
According to the introduction, the model solves this with the lower-bounded decay parameterization from KDA (Kimi Delta Attention). It replaces the unbounded function with a lower-bounded Scaled Sigmoid in the form g = g_min · Sigmoid(parameter), where g_min is set to -5. This limits the numeric range of the scaling factor within each 16-token tile.
According to the introduction, this brings two benefits. First, diagonal and off-diagonal blocks can both call a unified dense GEMM kernel, which reduces branch divergence. Second, the design naturally supports NoPE (no positional encoding), so the 1-million-token context can be extrapolated directly.
Two points need attention. First, the introduction does not explain how the value g_min = -5 was chosen. Values that are too large or too small both change the expressive range of the decay, so ablation experiments are needed to confirm it. Second, “direct extrapolation” is the original text’s conclusion. When reproducing the work, check perplexity and retrieval accuracy on long sequences, not only throughput.
3. MoE Routing: From Auxiliary Loss to Quantile Bias
The MoE layer has 896 routed experts. As the number of experts grows, load balancing becomes harder.
The traditional approach adds an auxiliary loss to the training objective, which encourages tokens to spread evenly across experts. The weight of this loss is hard to tune. If it is too small, some experts receive no tokens for long periods and training becomes unbalanced. If it is too large, the auxiliary term interferes with the gradients of the main task.
According to the introduction, Quantile Balancing (QB) does not depend on an auxiliary loss. It tracks the number of tokens each expert receives in real time and calculates load thresholds at certain quantiles, such as P50 and P90. When an expert’s load exceeds the threshold, the routing scoring function subtracts a bias term. This redirects excess tokens to experts with lower load. The approach resembles an online water-filling algorithm.
The table below compares several load-balancing methods for reference when choosing a design.
| Method | Extra loss term | What it adjusts | Main cost |
|---|---|---|---|
| Auxiliary loss | Yes, weight must be tuned | Training objective | Sensitive to weight, may interfere with the main task |
| Capacity factor | No | Expert capacity limit | Overflowing tokens are dropped or rerouted |
| QB (as reported) | No | Routing score bias | The bias update rule needs validation |
The original text says QB “completely avoids” the objective shift caused by an auxiliary loss. This claim should be read carefully. The bias still affects routing results. Whether it leaves the training objective unchanged depends on when the bias is updated and on the specific implementation. Readers should check the algorithm formulas and run controlled experiments on the same data.
4. SiTU-GLU and Block Attention Residuals
In the expert feed-forward networks, the model reportedly uses the SiTU-GLU activation function. Compared with the standard SwiGLU, it adds one more gating tensor, which gives finer control over information flow within each expert. The introduction argues that under sparse activation, each expert carries a heavier information compression load. A smoother gradient flow helps reduce training fluctuation. The original does not give the full formula, so the position and initialization of the gating tensor must be checked in the original implementation.
Block Attention Residuals (Block AttnRes) is used to reduce representation homogenization in deep Transformers. It builds cross-layer residual connections between Blocks, where each Block contains several layers. This goes beyond relying only on per-layer residuals.
The introduction gives the example “every 4 layers form a Block, and Block 4 receives the dimension-reduced outputs of Block 1 and Block 2.” This is only an illustration and does not represent a confirmed partitioning scheme. The introduction says the mechanism can improve representation diversity and reduce how often activations must be transferred across devices. The communication benefit depends on the parallelism strategy and cluster topology. Measure it in your own environment before relying on it.
5. Training Pipeline: Staged Context Extension from 8K to 1M
According to the introduction, the model was not trained directly from scratch at 1 million tokens. Instead, the context length was extended step by step through four stages: 8K, 64K, 256K, and 1M.
The reason for this curriculum is gradient stability. If the context is too long early in training, the long-range dependency signals are sparse and weak, and the model struggles to converge. The model first learns grammar, local semantics, and basic reasoning on short contexts. Then the window expands gradually, and each stage builds on parameters that have already converged in the previous stage.
The introduction does not give the switching criteria, data mixture, or step count for each stage. To reproduce the process, you would need to define your own switching conditions. For example, you could move to the next stage when validation perplexity stops decreasing for a set number of steps.
After training, the model enters an Agentic RL post-training stage. According to the introduction, this stage aims to improve planning in long-horizon tasks. In tasks such as code debugging and multi-hop question answering, the model must repeatedly run a loop of planning, acting, observing, and re-planning. Training uses dense or process rewards that score intermediate steps. These rewards guide the model to choose query strategies, filter useful information, and correct wrong paths. The introduction does not specify the type of reward model and does not give the training cost.
6. What Engineering Teams Can Take Away
All three designs address the same problem. As model scale and sequence length grow together, numerical stability, load balancing, and training efficiency become harder to maintain.
Teams developing their own large models can consider the following points.
- Investigate numerical issues at the operator level. If linear attention or a similar structure shows an abnormal throughput drop on long sequences, first check for underflow under low precision.
- Routing stability needs direct monitoring. Record the number of tokens each expert receives at every step, compute their coefficient of variation, and watch for experts that stay near zero load for long periods.
- Long-context training needs rules for stage switching. Do not switch only at fixed step counts. Use validation metrics to decide when to move to the next stage.
- Every gain needs a control. At minimum, compare against a baseline trained on the same data. Report long-context and short-context performance separately, so conclusions do not rest only on favorable benchmarks.
These methods have limited scope. For a small model, or for tasks with contexts of only a few thousand tokens, the complexity of the routing and attention layers may bring little benefit and may add maintenance cost. Test these methods on a small scale with your own tasks and hardware before deciding whether to adopt them.
