~/satyajit

Mach-Mind-4-Flash: specialize, then integrate

mdjsonmcp

2026-07-13 · 10 min · llm · reinforcement-learning · knowledge-distillation · mixture-of-experts · explainer

The dominant recipe for a better model is still scale the pre-training — more parameters, more tokens, more compute. Mach-Mind-4-Flash, from Li Auto's Foundation Model team, is a bet on the other axis. It starts from an existing compact base — Qwen3.5-35B-A3B, a Mixture-of-Experts model with 35B total parameters but only 3B active per token — and pushes it toward the score band of 100B-class models using post-training only: reinforcement learning, expert fusion, and inference-time efficiency. No extra pre-training compute.

The one idea to leave with is the shape of that post-training: specialize, then integrate. Rather than run one big mixed-reward RL job — which tends to rob Peter to pay Paul across capabilities — the team trains more than ten domain specialists in parallel (across Reasoning, General, and Agent tracks), then fuses them into a single deployable generalist. The fusion is the paper's headline contribution, Multi-Teacher On-Policy Distillation (MOPD), and a second stage, HMPO, trims the model's reasoning length without paying for it in accuracy.

The post-training pipeline. A base model goes through Overall SFT, then fans out into three parallel RL tracks: Reasoning RL (Math, Code, STEM experts), General RL (Instruct-Following, Writing, Safe experts), and Agent RL (Code Agent, Tool Use, DeepSearch, Claw Agent experts). All the resulting experts feed into a MOPD block, then a Token Efficiency RL block, producing Mach-Mind-4-Flash.
Specialize-then-integrate. From an SFT base, a dozen domain experts are trained in parallel across three tracks, fused by MOPD into one student, then compressed by token-efficiency RL (Foundation Model Team, 2026, Figure 4).

The fusion problem, and MOPD

If you train separate RL experts — a math expert, a code-agent expert, a safety expert — each is excellent in its lane. The naive way to get one model with all of those skills is to mix every domain's reward into a single RL objective. In practice that fails in a specific way the paper names see-saw degradation: the gradients from different rewards collide, so a gain on one capability is "routinely offset by regressions on others." You climb one hill by sliding down another.

MOPD sidesteps the collision. Every training sample carries a routing key kk that deterministically selects the one frozen domain teacher πTk\pi_{T_k} that should supervise it. The student generates a rollout under its own policy, and each token is pulled toward its routed teacher with a token-level reverse-KL:

LMOPD(θ)=E(x,k)D  Eyπθ(x) ⁣[1yt=1yDKL ⁣(πθ(x,y<t)    πTk(x,y<t))]\mathcal{L}_{\text{MOPD}}(\theta) = \mathbb{E}_{(x,k)\sim\mathcal{D}}\;\mathbb{E}_{y\sim\pi_\theta(\cdot\mid x)}\!\left[\frac{1}{|y|}\sum_{t=1}^{|y|} D_{\mathrm{KL}}\!\big(\pi_\theta(\cdot\mid x,y_{<t})\;\big\|\;\pi_{T_k}(\cdot\mid x,y_{<t})\big)\right]

Two things matter here. It is on-policy — the distillation runs on the student's own generations, not a fixed teacher corpus — which is what makes it behave like RL rather than plain SFT. And it is routed, so each domain's gradient stays clean: no averaging of conflicting rewards. (Under the hood the reverse-KL is optimized with a single-sample k1k_1 estimator and a clipped policy-gradient surrogate; domains are mixed in a strict 1:1 ratio.) Flip between the two regimes below and drag the training progress — watch how mixed reward lets the weakest capability stall while MOPD lets all three climb together:

fusing the domain experts · one student, many teachersillustrative
Reasoning expertfrozen RL expertGeneral expertfrozen RL expertAgent expertfrozen RL expertStudent · one shared policytoken-level reverse-KL, per routed teacher90Reasoning88General87Agentcapability after fusion →
fusion
weakest capability 87 / 100
training progress (drag)

Each sample is routed to one frozen teacher and the student is pulled toward it with a token-level reverse-KL on its own rollouts. Every domain gets its own clean gradient, so all three capabilities climb together — the weakest one never gets starved.

MOPD sits inside a unified RL/OPD objective, L=αLOPD+βLRL\mathcal{L} = \alpha\,\mathcal{L}_{\text{OPD}} + \beta\,\mathcal{L}_{\text{RL}}, so the same framework can run pure RL (α=0\alpha=0), pure distillation (β=0\beta=0), or a joint blend — and new teachers register as config nodes with "zero intrusion into the framework's core logic." A pilot on the tool-agent domain shows the mechanism converging: the teacher-student top-KK token-overlap rate climbs from 0.73 to 0.84 over training.

Fusion is not perfectly lossless, and the paper is candid about it. Across the three tracks it reports three distinct outcomes: capability anchoring for Reasoning (the frozen expert prevents the student from regressing during fusion), full retention for General, and mixed results for Agent — where the fused model sometimes lands below its own expert teacher (SWE-bench Verified 71.1 after fusion vs. 73.8 for the standalone expert). Long-horizon agent behavior is the hardest thing to distill without smoothing away.

HMPO: pay for correct-and-short

The second stage attacks overthinking — reasoning chains far longer than the task needs, which inflate latency and serving cost for no accuracy gain. Hybrid Median-length Policy Optimization (HMPO) is a single-stage token-efficiency method with a neat trick for the length budget: don't set a threshold, measure one. For each query the policy samples a group of G=10G=10 rollouts, and the budget bb is the median length of the correct ones:

b=median{niiC}b = \operatorname{median}\{\,n_i \mid i \in \mathcal{C}\,\}

where C\mathcal{C} is the set of correct rollouts. The token reward is a cosine decay that starts at 1 and fades toward λ\lambda as a correct trace grows, then cliffs to zero the instant it runs over budget — and any incorrect trace earns zero at any length:

Rtoken={min ⁣(1, cos(πn2b)+λ)if correct and n<b0otherwiseRfinal=RaccRtokenR_{\text{token}} = \begin{cases}\min\!\big(1,\ \cos(\tfrac{\pi n}{2b}) + \lambda\big) & \text{if correct and } n < b\\[4pt] 0 & \text{otherwise}\end{cases} \qquad R_{\text{final}} = R_{\text{acc}}\cdot R_{\text{token}}

The multiplicative composition enforces a strict correctness-first, length-second hierarchy: wrong or over-budget traces get exactly zero reward, so efficiency gradients never flow to bad answers. And because bb is the group median, it self-tightens as the policy gets more concise — an implicit curriculum with, in the authors' words, zero tuning. Drag the candidate length, the training progress, and λ\lambda:

HMPO · median budget + cosine-decay token rewardillustrative lengths
group of G = 10 rollouts, placed by length →median b = 12800λ1R_token01k2k3k4kresponse length n (tokens)R_acc 1 · R_token 1.00R_final = 1.00short & correct
trace
λ
budget 1280 tokens · 7/10 correct
candidate length n (drag)
training progress → policy gets concise (drag)

The budget b is just the median length of the group's correct rollouts — no threshold to tune. Reward decays from 1 toward λ as a correct trace grows, then falls off a cliff to 0 the moment it runs over budget, and an incorrect trace earns 0 at any length (correctness first, length second). Push training progress and the whole distribution slides left, so b self-tightens as the model learns to be concise.

HMPO overview. Left: a query goes into the policy model, which samples a group of G rollouts, each labelled correct or incorrect with its length. Right: a token-level reward curve that decays from 1 to lambda over the budget then drops to zero, and a length-distribution histogram with a red dashed median line b separating a 'prefer shorter' positive-reward region from a 'no reward' region. The final reward is R_acc times R_token, with default lambda = 0.8.
HMPO derives the length budget b from the median length of the group's correct rollouts, then rewards short-and-correct traces on a cosine decay and zeroes everything over budget or incorrect (Foundation Model Team, 2026, Figure 13).

Trained on a compact set of ~6.5K math problems (group size G=10G=10, λ=0.8\lambda=0.8), HMPO cuts generation length by 19-46% with at most a 0.7-percentage-point accuracy drop — and although the training is math-only, the learned length control generalizes to unseen domains: code generation, science QA, and instruction following. As a single-pass method it also costs 1.5-2.5× fewer GPU-hours than the multi-stage length-control baselines it replaces.

The infrastructure that makes it cheap

None of this is free unless the training loop is fast, and the third contribution is the plumbing: a unified RL/OPD framework with operator-level acceleration reported at a 17% end-to-end training speedup. The wins are Hopper-specific kernel work — a deep integration of SonicMoE into Megatron that implements an efficient Indexed Grouped GEMM for the MoE MLPs (using TMA copy, warp specialization, and multi-stage producer-consumer pipelines), a gate-up fusion, and a segmented fusion with the shared expert that overlaps communication and computation by splitting the shared expert into AllGather / compute / ReduceScatter stages staggered against the routed experts. It also leans on multi-token prediction and multi-dimensional hybrid parallelism. This is the same category of problem as stabilizing MoE RL and cutting RL's cost: the algorithm is only as good as the systems that let you run it at scale.

The numbers

The result is a 3B-active model that trades blows with much larger ones. On raw reasoning it is strong but not the frontier — at AIME'26 it lands ahead of the 122B-active Qwen3.5 but behind the 309B MiMo-V2-Flash and the 1T-parameter Kimi-K2.5:

AIME'26 accuracy by model (%)
Mach-Mind (3B act)
92.7%
Qwen3.5 (35B)
91.9%
Qwen3.5 (122B)
91.7%
Nemotron-3 (120B)
89.9%
MiMo-V2 (309B)
93.8%
Kimi-K2.5 (1T)
93.3%
050100

Where it genuinely leads the pack — beating both the 122B-active Qwen3.5 and the 1-trillion-parameter Kimi-K2.5 — is on instruction-following, safety, tool use, and Chinese web search. These are the axes the specialize-then-integrate recipe was built to lift:

Benchmarks where the 3B-active model leads (%)
IFBench
82.8%
Behavioral-Safety
80.7%
BFCL-v4
75.8%
LexInstructEval
74.6%
BrowseComp-zh
72.3%
050100

For context on those: IFBench 82.8 vs. 76.1 (Qwen 122B) and 67.4 (Kimi 1T); Behavioral-SafetyBench 80.7 vs. 29.9 and 67.8; BFCL-v4 75.8 vs. 72.2 and 74.5. Elsewhere it is competitive rather than dominant — GPQA-Diamond 83.1, LiveCodeBench-V6 80.9, SWE-bench Verified 70.6, τ2\tau^2-bench 80.0 — solidly in the mix for a model activating a fraction of its rivals' parameters. And the efficiency story is where the whole thing pays off: on AIME'26, HMPO puts Mach-Mind-4-Flash at the upper-left of the accuracy-vs-tokens frontier, matching frontier accuracy at far fewer tokens per trajectory than models of much larger active scale.

A scatter plot of accuracy versus average tokens per trajectory on AIME'26, where upper-left is better. Mach-Mind-4-Flash (a gold star) sits at about 92.5% accuracy and ~15.3K tokens, to the left of MiMo-V2-Flash-309B and Kimi-K2.5-1T at similar accuracy but ~16.5K tokens, and well left of Qwen3.5-35B and GLM-4.7-Flash which use 19-20K tokens at lower accuracy.
Token efficiency on AIME'26 (upper-left is better). The HMPO-trained model reaches near-frontier accuracy using fewer tokens per trajectory than models with far larger activated parameter counts (Foundation Model Team, 2026, Figure 14).

The take

Mach-Mind-4-Flash's contribution isn't a new architecture — it reuses an off-the-shelf 35B-A3B MoE — it's a post-training recipe that composes cleanly. MOPD turns "train many experts, ship one model" from a lossy averaging problem into a routed distillation where each capability keeps its own gradient, and the see-saw that plagues mixed-reward RL mostly disappears. HMPO is the tidy companion: make the length budget a measured group-median instead of a tuned hyperparameter, gate it behind correctness, and reasoning gets shorter for almost free. Set against the field's default answer — spend more pre-training compute — this is the argument that a lot of headroom is still sitting in the post-training stack, reachable by a compact model that only lights up 3B parameters at a time. Whether a 35B model can truly close the last gap to a trillion-parameter frontier on the hardest long-horizon tasks is the open question the paper's own limitations point at — but as a demonstration that specialize-then-integrate scales to a dozen domains without falling apart, it's a clean result.


Built on the Mach-Mind-4-Flash Technical Report (Foundation Model Team, Li Auto Inc., 2026; CC BY-NC-ND 4.0). All benchmark and efficiency figures are quoted from the report; the MOPD and HMPO interactives are illustrations of the mechanism, and the capability curves in the fusion diagram are illustrative, not measured. Related on this site: Mixture of Experts, from scratch, Rollout Routing Replay, and MiMo-V2-Flash, which also leans on multi-teacher distillation.

Cite this article

For attribution, please use the following reference or BibTeX:

Satyajit Ghana, "Mach-Mind-4-Flash: specialize, then integrate", ai.thesatyajit.com, July 2026.

bibtex
@misc{ghana2026machmind4flash,
  author = {Satyajit Ghana},
  title  = {Mach-Mind-4-Flash: specialize, then integrate},
  url    = {https://ai.thesatyajit.com/articles/mach-mind-4-flash},
  year   = {2026}
}
share