On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stability
Read first: Mamba: Linear-Time Sequence Modeling with Selective State Spaces · Gated Delta Networks: Improving Mamba2 with Delta Rule
TL;DR. Qwen3.8-Flash-Next is an MoE with 125B total and 6B active parameters, plus 51B parameters of n-gram tables kept in host memory. Its base model leads the 397B-A17B predecessor on 8 of 14 benchmarks and trails by at most 2.6 points on the rest. It does so with 1/3 the active parameters, 1/3 the tokens and about 1/9 the training FLOPs. Four parts carry the design: a 3:1 Gated DeltaNet / attention hybrid; Qwen Sparse Attention (QSA) for long context; a gated 4-branch residual (GR); and Muon. The report judges every change on three axes: loss and benchmarks, training/serving cost, and effect on hyperparameters and stability.
Why it matters now. The report shows clear cases where loss and accuracy disagree. That matters for anyone who picks models or data by perplexity alone. It also gives one of the most careful public studies of Muon at scale: batch size, learning-rate scaling and stress tests at 2–4× the learning rate. Its sparse attention keeps long-context retrieval (RULER, MRCR) intact while cutting attention cost at 1M tokens.
Key idea
Section titled “Key idea”Hybrid token mixing. Three Gated DeltaNet (GDN) layers compress the prefix into a fixed-size state. One full-attention layer in four keeps exact token-level retrieval. GDN uses a sigmoid output gate (more stable than SiLU), L2-normalized q/k and a short convolution. A NoPE variant of the full layers was rejected because it caused endless generation after post-training.
Qwen Sparse Attention. At continued pretraining (256K), full attention becomes QSA. An MQA indexer with 4 query heads scores keys pooled in blocks of , and attention reads the top tokens plus the recent tail. The indexer is first distilled to match the dense attention distribution (KL, 1,000 steps), then trained sparse (8,000 steps). Indexing cost drops from to .
Gated Residual. The residual is widened to branches . Each block normalizes every branch, predicts one sigmoid gate per branch and channel from all branches through a low-rank bottleneck, and averages the gated branches (Eqs. 30–32):
This is the paper’s GatedNorm stabilizer applied to the widened stream. The write back is a simple per-branch scalar.
Key results
Section titled “Key results”- Base model (Tab. 11). Leads Qwen3.7-Plus-Base (397B-A17B) on 8 of 14 benchmarks, trails by at most 2.6 on the others, and beats Qwen3.8-27B-Base on all 14.
- Hybrid ablation (Tab. 1, 25B-A3B). The GDN hybrid beats a full-attention Transformer on 8 of 9 benchmarks and a sliding-window hybrid on 7 of 9.
- QSA (Tab. 3). RULER at 512K–1M rises from 90.08 to 93.00. MRCR 8-needle rises from 30.66 to 40.53 at 512K and from 20.71 to 26.44 at 1M. Short-context average moves from 75.9 to 76.8. At 1M, the attention kernel is 7.6× faster in prefill and 4.9× in decode.
- Gated Residual (Tab. 5). Static widening: −0.021 loss, +1.58 points. Data-dependent read: only −0.002 more loss but +1.98 points.
What transferred
Section titled “What transferred”Qwen3.8 openly assembles ideas from other labs: GDN from NVIDIA and MIT’s linear-attention work; the indexer route of DeepSeek-V3.2; index reuse across MTP steps from GLM-5; hyper-connections, also used by DeepSeek’s mHC; n-gram tables like DeepSeek’s Engram; and Muon at scale, as in Kimi K2. Its own additions are block-pooled indexing, the gated residual, and a clear Muon hyperparameter study.
Limitations & open questions
Section titled “Limitations & open questions”- Token count, depth, expert count and post-training are not stated, so the “1/3 tokens, 1/9 FLOPs” claim is only relative.
- MRCR falls from about 94 at 256K to 30–40 at 512K for both full attention and QSA, so the 1M context is only partly usable.
- Most ablations are at 25B-A3B or smaller, with 400–560B tokens.
- Loss and benchmarks disagree in several places. The report states this honestly but leaves the cause open.
Connections
Section titled “Connections”- Linear attention: Gated DeltaNet, Mamba; hybrid comparison in Nemotron-H.
- Sparse attention: Native Sparse Attention, DeepSeek-V4 CSA, DeepSeek-V4.1-Flash (also has an n-gram memory, Engram).
- N-gram embeddings: SCONE.
- Optimizer and stability: Muon, AdamW, μP, Kimi K2.
- Long-context evaluation: RULER, NoLiMa, context rot. Loss against accuracy: emergence as a mirage.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Qwen3.8 uses 3 GDN layers per full-attention (later QSA) layer, and QSA's indexer pools keys in blocks of r = 4 and keeps K = 2,048 tokens. For a 1M-token context, estimate (a) how the KV cache compares with an all-attention model of the same depth, (b) the indexer's scoring cost compared with token-level DSA, and (c) what fraction of the context each QSA query attends to.
What a strong answer covers
- (a) GDN layers keep a fixed-size recurrent state, so only 1 layer in 4 stores a KV cache. The cache is about 1/4 of an all-attention model, before any other compression.
- (b) Token-level indexing scores about n²/2 pairs. Pooling keys in blocks of 4 cuts the scored pairs to about n²/(2r), so indexing work drops 4× and stays quadratic, matching the paper's O(n²/r).
- (c) 2,048 of 10^6 tokens is about 0.2% of the context per query (512 blocks plus the recent tail), while the GDN layers carry a compressed summary of everything.
- The measured speedups at 1M (7.6× prefill, 4.9× decode for the attention kernel) come from both the sparse attention and the cheaper indexer.
- Mechanism
Explain why the Gated Residual's data-dependent read gate improves benchmark accuracy by about +2 points while lowering loss by only 0.002 more than static widening, and why the gate also helps stability under high learning rates.
What a strong answer covers
- Static 4-branch widening already gives most of the loss gain (−0.021 loss, +1.58 average points in Tab. 5). The gated read adds −0.002 loss but reaches +1.98 points.
- The gate lets each block choose, per element, which branches it reads. This can route specific features to specific depths (some branches carry long skips of about 10 layers) without changing average token loss much.
- Loss is an average over all tokens; benchmarks depend on a small set of hard tokens. A change can help those without moving the average.
- A sigmoid gate bounds and rescales what each block reads. Under 3× learning rate, GatedNorm alone cut spikes from 32.0 to 3.2 per 10k steps and clip crossings from 256 to 20.
- What if…
The n-gram embedding lowers loss monotonically as its vocabulary grows from 20× to 200× the base vocabulary, yet benchmark scores saturate. Design an ablation that tests whether the lower loss is memorization of surface n-grams rather than better reasoning.
What a strong answer covers
- Hold active parameters and tokens fixed, and sweep n-gram vocabulary size at 300 tokens per parameter as in the report.
- Split evaluation tokens by n-gram frequency in the training data: loss gains concentrated on frequent n-grams point to lookup, not generalization.
- Test on paraphrased or newly written benchmark items where n-gram overlap with training is low.
- Compare against spending the same parameters on more experts, which the fixed-budget table shows is a different trade-off (best loss at 10× vocabulary for 25% of the budget, but no benchmark gain).
- Critique
QSA lifts RULER beyond 512K from 90.08 to 93.00 and MRCR at 1M from 20.71 to 26.44. Yet MRCR drops from about 94 at 256K to 30–40 at 512K for both full attention and QSA. What does that cliff say, and how should we read the claim of 1M-token support?
What a strong answer covers
- Training ran at 256K. Both models degrade sharply past it, so the cliff is about length extrapolation, not about QSA.
- RULER stays above 90 beyond 512K while MRCR collapses. Synthetic single-needle tasks overstate usable context; multi-needle tasks with similar distractors are much harder.
- QSA's gain at long lengths may come from ignoring distractors, which is also a risk: when evidence is not selected, it is lost.
- A fair claim is "retrieval quality holds to 256K; beyond that it is partial". Report per-length accuracy rather than one context number.
- Design
Using the report's optimizer evidence, design a training recipe for a new 100B-scale MoE with Muon. Which parameters stay on AdamW, how do you pick batch size and learning rate, and do you use batch-size warmup?
What a strong answer covers
- Muon (Nesterov 0.95, Polar Express, 8 Newton–Schulz steps) on 2-D linear maps, splitting fused matrices such as qkv before orthogonalizing.
- AdamW for embeddings, head, router, gates and low-rank GR projections. The router stays on AdamW because Muon destabilizes it early. N-gram tables use Adam without weight decay.
- Use a fitted rule for learning rate and batch: the 156B-A7B prediction (lr 1.76e-3, batch 8.4M) beat the old recipe by 7.8e-3 loss with lower gradient norm.
- Skip batch warmup: it was slightly worse and needed 18.8% more optimizer steps.
- Stress-test at 2–4× the learning rate before the real run, and track spikes and clip crossings. Muon + GR had no spikes even at 4×.
- Connect
Compare three ways of handling long context in 2026 reports: Qwen3.8 (GDN + QSA), DeepSeek-V4 (CSA + HCA + sliding window) and MAI-Thinking-1 (5 local : 1 global NoPE). What does each keep at full resolution, and what does each give up?
What a strong answer covers
- Qwen3.8: 3 of 4 layers are recurrent with constant memory; the 4th layer attends sparsely to 2,048 selected tokens from the full KV.
- DeepSeek-V4: every layer has a 128-token sliding window plus compressed global memory (4× with top-k, or 128× dense).
- MAI: 5 of 6 layers see only a 512-token window; the 6th has full global attention with GQA.
- Each keeps exact local detail and trades global precision for memory: recurrent compression, learned compression with selection, or plain sparsity in layer count.
- Only MAI keeps full uncompressed global attention, so it pays the most KV memory at 256K.