Very Large MoE Models: Sparse Attention and Asynchronous RL Training Explained
This article breaks down how open-source models are closing the gap with leading closed-source models through system-level engineering rather than parameter scaling alone. It covers the fundamentals of very large Mixture-of-Experts (MoE) designs (total vs. activated parameters, expert routing, training data composition), low-rank latent attention compression with per-head orthogonalized optimization, multi-token prediction, dynamic sparse attention, and a fully asynchronous agent reinforcement learning framework with its supporting RL infrastructure. It concludes with practical guidance on evaluation and reproducibility for developers and enterprises.
1. Background: Why the Gap Between Open-Source and Leading Closed-Source Models Is Narrowing
A notable signal in recent public technical discussions is that while leading closed-source models are still regarded as the strongest overall, the best open-source models have clearly narrowed the gap. In one public general-intelligence benchmark, an open-source model entered the top tier for the first time; in text and coding arenas, open-source models have also shown competitiveness on par with top closed-source models. This shift does not come from parameter scaling alone, but from the joint optimization of model architecture, training data, reinforcement learning systems, and inference infrastructure.
Based on public technical reports, the core discussion centers on several directions: capacity and activation design in very large MoE models, low-rank latent attention compression, multi-token prediction, dynamic sparse attention, and a fully asynchronous agent RL training framework with its supporting RL infrastructure. None of these techniques is new in isolation, but combined into a complete training stack, they significantly improve effective learning efficiency per unit of compute. This article proceeds in the order of: model fundamentals → architectural changes → training systems → evaluation and reproduction.
2. Fundamentals: Capacity, Activation, and Data Composition of a Very Large MoE
One class of configuration described in public reports: roughly 700B total parameters with about 40B activated per inference, using 256 experts across 80 layers; pretraining on roughly 28.5T tokens, split into 27T for pretraining and 1.5T for mid-training. Compared with the previous generation at roughly 300B total and 30B activated parameters, total parameters doubled while activated parameters grew only slightly. This indicates that capacity expansion happens mainly in the expert layers, while inference cost remains controlled by the activation ratio.
The core of MoE is routing: each token passes through a gating network that selects a small number of experts, activating only a fraction of the parameters. The advantage is large capacity with controllable inference FLOPs; the cost is expert-parallel communication, load balancing, and training stability. If routing is too concentrated, some experts overload while others sit idle, causing throughput degradation and representation collapse. Training therefore typically requires load-balancing losses, capacity factors, expert dropout strategies, and communication overlap. With roughly 40B activated out of 700B total parameters, the activation ratio is about 5%–6%. Inference memory and communication complexity are far higher than a dense model with the same activation, but far lower than full-parameter activation.
The 1.5T tokens of mid-training deserve attention. This phase is typically used to adjust the mixture for long context, code, math, and agent trajectory capabilities, rather than simply continuing pretraining. For developers, evaluating this class of model requires looking beyond total parameters to activated parameters, expert count, context length, training data stage composition, and KV cache management during serving.
3. Attention and Optimizer: Low-Rank Compression and Per-Head Orthogonalization
The model adopts a low-rank latent attention compression scheme that projects K/V into a low-dimensional latent space, reducing KV cache dimensionality, which lowers memory usage for long-text inference and improves throughput. Its goal is similar to grouped-query attention, but the compression method differs: the former compresses the cached representation, while the latter shares K/V heads. Both involve trade-offs among long-context recall, memory, and compute.
Public reports mention a key engineering issue: when an optimizer with orthogonalization was combined with low-rank latent attention, training performance initially lagged behind the simpler grouped-query attention scheme. The likely reason is that orthogonalizing the entire projection matrix as one block couples the scale and update direction of different attention heads, and head-wise statistics diverge more after low-rank compression. The fix is to orthogonalize each attention head separately—a “per-head split”:
for each attention_head h:W_h = projection_matrix[h]W_h = orthogonalize(W_h) # orthogonalize only the current headW_h = rescale_to_unit_norm(W_h)projection_matrix[h] = W_h
The significance of this change: it keeps the weight distribution within each head uniform, avoids global orthogonalization destroying inter-head differences, and stabilizes optimizer updates, bringing the training performance of the low-rank attention scheme back to—or beyond—the simpler scheme. Practical points include per-head statistics, scaling coefficients, interaction with residual connections and normalization layers, and small-scale ablations where necessary. If you swap the attention structure without adapting the optimizer, it is easy to wrongly conclude that the architecture itself is ineffective.
4. Multi-Token Prediction: From Single-Step to Multi-Step Training Objectives
Multi-token prediction trains the model to predict several future tokens at once instead of only the next one. Benefits include improved sample efficiency, forcing the model to learn longer-range dependencies, and stronger planning ability; on the inference side, it can also serve as an auxiliary draft or verification signal. Implementations typically share the backbone network and add multiple output heads or lightweight prediction heads, with loss weighting across different steps.
Note that multi-token prediction does not necessarily mean multi-step decoding at inference time. After the training objective changes, the model’s representations attend more to the structure of the next several steps, but inference can still proceed token by token in an autoregressive manner. Engineering risks include train/inference mismatch, excessive noise in multi-step prediction, and increased memory and communication overhead. Common practices include curriculum-style increases in prediction steps, down-weighting distant tokens, strict alignment with causal masking, and ablations to verify that gains come from the multi-step objective rather than simply adding parameters.
5. Dynamic Sparse Attention: Trading Selection for Long-Context Efficiency
Standard attention has quadratic complexity over sequence length. Dynamic sparse attention reduces computation by using routing, scoring, or block selection to compute only important token pairs or blocks. Public reports state that sparse attention with a significantly smaller token budget can approach the effect of dense attention with a larger budget, suggesting that the sparse structure itself provides a useful prior and improves data efficiency.
Engineering implementation requires attention to three points. First, the selection mechanism must be consistent between training and inference, otherwise long-context recall degrades. Second, top-k or block sparsity must be paired with kernel fusion and paged KV cache to avoid “saving compute while adding memory traffic.” Third, sparse attention may miss critical long-range dependencies, so recall should be evaluated with retrieval-style long-context tasks, cross-file code references, and multi-turn dialogue memory. For developers, sparse attention is not an unconditional accelerator; it pays off only when matched with sequence length, batch size, and caching strategy.
6. Fully Asynchronous Agent RL: Removing Waiting from the Training Critical Path
Agent reinforcement learning involves multi-turn interaction, tool calls, environment feedback, and reward computation. The bottleneck of synchronous RL is the long tail: some trajectories finish quickly while some environment calls are slow, leaving GPU training idle. A fully asynchronous framework decouples rollout generation, environment execution, reward computation, and training updates: rollout workers continuously produce trajectories, an environment pool executes in parallel, a reward service scores asynchronously, and the trainer samples updates from an experience queue.
Illustrative pseudocode:
replay = ExperienceQueue(max_staleness=K)spawn rollout_workers:while running:traj = policy.generate_with_env(env_pool)traj.version = current_policy_versionreplay.push(traj)spawn trainer:while running:batch = replay.sample_priority(max_staleness=K)adv = compute_advantage(batch, clip_stale=True)loss = policy_loss(batch, adv)update_policy(loss)
The key to asynchrony is controlling policy lag. Samples from stale policy versions inflate importance-sampling variance, so the system needs version tags, stale-sample eviction, priority sampling, clipping, and asynchronous advantage estimation. Reward noise and long-tail trajectories also require environment pool isolation, timeout retries, and reproducible logging. Full asynchrony is not “lock-free chaos”—it uses queues and version control to move waiting off the training critical path.
7. RL Infrastructure: Decoupling, Queues, and General-Purpose Cloud Capabilities
Supporting this training framework requires a set of RL infrastructure: environment sandboxes, trajectory storage, reward services, scheduling and orchestration, logging, and monitoring. General cloud product categories can fill these roles—for example, general-purpose categories on Baidu AI Cloud such as object storage, message queues, container platforms, log services, and monitoring/alerting can be used respectively for trajectory persistence, asynchronous decoupling, running environment sandboxes, log collection, and anomaly alerting. The point is not the specific product, but decoupling the GPU training pool from the CPU environment pool, scaling elastically with task long tails, and retaining complete trajectories for post-hoc analysis.
For cost optimization, focus on the CPU-to-GPU ratio for environments, trajectory cache hit rate, reward batching, retry limits for failures, and the proportion of stale samples. Without monitoring, an asynchronous system can easily produce the false optimization of “throughput up, effective samples down.”
8. Evaluation and Reproduction: Don’t Just Look at Parameter Count
Evaluating this class of model should cover at least: trends in general-intelligence benchmarks, text and coding arena performance, long-context recall, agent multi-turn task completion rates, inference activation cost, and KV cache footprint. For reproduction, focus on data deduplication and mixture ratios, routing load balance, sparse attention recall, the staleness cap in asynchronous RL, evaluation contamination, and inference-serving batching strategy. Open-source model competition has shifted from “parameter scale” to “training system efficiency”—very large MoE, low-rank compression, multi-token prediction, dynamic sparse attention, and asynchronous agent RL form a combined playbook.
9. Conclusion
The direction shown in public technical reports demonstrates that open-source models approach leading closed-source models not by stacking parameters, but through the synergy of architecture, optimizer adaptation, sparsification, multi-step training objectives, and asynchronous RL systems. For developers, model selection should weigh activation cost, long-context efficiency, agent training throughput, and infrastructure decoupling capability. For enterprises, using general-purpose cloud infrastructure for trajectory storage, message queues, container sandboxes, and monitoring/alerting supports long-term iteration better than locking into single-point solutions.
