MAI-Thinking-1: Building a Hill-Climbing Machine
TL;DR. MAI-Thinking-1 is Microsoft AI’s first frontier reasoning model, trained from scratch. The base model, MAI-Base-1, is a 78-layer MoE with 34.7B active and 962B total parameters. Pretraining used 30T tokens from public and licensed human-generated sources, without intentionally added LM-generated synthetic data, open-source training datasets or distillation from other labs’ models; the team also attempted to filter AI-generated content from collected sources. Pretraining choices were made on a scaling ladder using an efficiency-gain metric and NLL evaluations. RL then “climbs” from the mid-trained model, with no prior reasoning traces, in three specialist runs (STEM, agentic, helpfulness/safety) that are merged with SFT.
Why it matters now. Most labs bootstrap reasoning by distilling from a stronger model. MAI shows the full path without that shortcut and explains how it chose each part. For students, it is the most complete public recipe for running scaling ladders, data-mixture search and long RL runs. For search and agents, it also reports long-context and tool-use results from a model whose data excludes synthetic text.
Key idea
Section titled “Key idea”Measure everything on a ladder. Model sizes are tied to depth: the layer count is a multiple of 6, hidden size , and query heads equal rounded up to a multiple of 16. Ablations train at 100–200 tokens per parameter. For each change, MAI fits to the baseline and reports an efficiency gain:
the compute the baseline would need to reach the variant’s loss , divided by the compute the variant used. EG is reported both in FLOPs and in wall-clock time, so a change that is better on paper but slower on GB200s is caught.
Architecture. Attention follows Gemma 3: 5 local layers (sliding window 512, RoPE base 10K) per 1 global layer with no positional encoding (NoPE). All use GQA with 8 KV heads, head dim 128 and QK-norm. FFNs alternate dense and LatentMoE blocks. LatentMoE, from NVIDIA, applies one shared down-projection before the all-to-all, so 8 of 512 experts work in a smaller latent space.
Key results
Section titled “Key results”- Headline (§1, Table 11). SWE-Bench Pro 52.8%, AIME 2025 97.0%, AIME 2026 94.5%, LiveCodeBench v6 87.7%. The authors say it does not lead the field but is competitive with Sonnet 4.6, and close to Opus 4.6 on SWE-Bench Pro.
- Base model (Fig. 10). MAI-Base-1 has lower bits-per-byte than DeepSeek-V3.2, V4-Pro, Kimi-K2 and Gemma 4 31B on held-out tasks.
- Ablations (Table 2). MoE in every layer (8/384) gives EG 0.94 in FLOPs and 0.73 in time, against the interleaved baseline. With a shared expert it reaches 1.03 and 0.82. So the interleaved layout wins on wall-clock.
- Data scaling (Fig. 6). A STEM-heavy mix wins at small scale but loses to a code-heavy mix at 23B active over about 20T tokens. Mixture rankings change with scale.
What transferred
Section titled “What transferred”MAI is mostly a consumer of other labs’ ideas, combined carefully: Gemma 3’s 5:1 local/global attention and sandwich norms, NVIDIA’s LatentMoE, Qwen’s global-batch balancing, DAPO-style token-level GRPO, and DeepSeek-V3.2’s top-p masking in RL. Its own contributions are methodological: efficiency gain measured in time, rank-changing data ladders, and a zero-init gain for attention output.
Limitations & open questions
Section titled “Limitations & open questions”- Only aggregate data shares are published. The data itself and the model are proprietary, so results cannot be reproduced.
- No synthetic data is a principle, not an ablated choice. The report does not show what it costs.
- The SWE training uses only bash and string replace, with no terminal environments. Terminal-Bench 2.0 is 46.0, below the other models in Table 11.
- Benchmarks are averages of 4 runs; competitor numbers come from model cards with different harnesses.
Connections
Section titled “Connections”- Attention design from Gemma 3; compare GQA and RoPE.
- MoE lineage: Switch Transformers, Mixtral, DeepSeekMoE; Nemotron-H for NVIDIA’s other efficiency work.
- Scaling method: Chinchilla, overtraining laws, data-constrained scaling, μP.
- Data: FineWeb, DCLM, against synthetic-heavy Phi-4.
- Precision: FP8 training, AdamW. RL: PPO, CoT monitorability, SWE-Bench Pro.
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
MAI compares architectures with an efficiency gain (EG). Fit L(C) = A·C^(−α) + E on the baseline's ladder, run a variant at compute C′ with loss L′, and define EG as the baseline compute needed to reach L′ divided by C′. Derive the closed form, then explain why Table 2 can give EG 0.94 in FLOPs but 0.73 in wall-clock time for the same variant.
What a strong answer covers
- Invert the fit: C_base(L′) = ((L′ − E) / A)^(−1/α). Then EG = C_base(L′) / C′. EG above 1 means the variant reaches the loss with less compute than the baseline.
- The irreducible term E matters. When L′ is close to E, small loss differences turn into large compute ratios, so EG estimates are noisy near the floor.
- The time version replaces FLOPs with measured GPU time. An every-layer MoE has more all-to-all traffic and smaller GEMMs per layer, so it loses more in time (0.73) than in FLOPs (0.94).
- Adding a shared expert (7 routed + 1 shared) lifts the every-layer variant to 1.03 in FLOPs but only 0.82 in time, so the interleaved dense/MoE layout still wins on the machine.
- Sanity check on budget: 30T tokens over 35B active parameters is about 860 tokens per parameter, inside the 500–1,000 band the report gives for the main run.
- Mechanism
At initialization, MAI found that attention acts like causal mean pooling and causes heavily unbalanced MoE routing, and it fixed this by zero-initializing the attention output's RMSNorm gain. Explain the chain from near-uniform softmax to routing imbalance, and why the fix works.
What a strong answer covers
- With random weights, attention scores are nearly equal, so each position outputs roughly the average of all earlier values.
- Neighbouring positions then get almost the same attention output. Added to the residual, this makes token representations highly correlated (Fig. 8a), increasingly so with depth.
- The router sees nearly identical inputs for many tokens, so it sends them to the same few experts. That gives large violation rates and imbalance early in training.
- A zero gain makes each block start as a per-token feed-forward stack. Token diversity is preserved, and cross-token mixing grows in as the gain is learned.
- The report confirms that the lower early imbalance improves quality as measured by efficiency gain (§2.6.2).
- Critique
Figure 6 shows a STEM-heavy data mix beating a code-heavy mix on held-out STEM loss at small scale, then losing at 23B active parameters over about 20T tokens. What does this imply for mixture search done on small proxy models, and how would you change the search?
What a strong answer covers
- Rankings of data mixes are not invariant to scale. Proxy experiments can pick the wrong mix for the final run.
- The authors trace it to two STEM sources with more fuzzy duplication and less diversity (11.8% of one mix, 0.3% of the other). Repetitive high-quality data helps small models more than large ones.
- Fix: test candidate mixes at several ladder sizes and look at the trend, not one size. Track diversity and duplication per source, not only quality.
- Also link to repetition rules from data-constrained scaling: the final mix repeats math 5.28× and code 2.22× but uses web text only 0.55× and multilingual 0.06×.
- NLL-based targets are cheaper than accuracy, but a weighted NLL target (50% code, 17.5% STEM, 17.5% math) also builds in a bias toward the climbs MAI planned.
- What if…
MAI alternates dense FFN and LatentMoE layers (8 of 512 experts) and reports that shared experts help an every-layer MoE but not the interleaved layout. Design an ablation on the scaling ladder that separates the effect of layout, sparsity and shared experts.
What a strong answer covers
- Grid: layout (interleaved dense/MoE against MoE every layer) × routed experts (for example 8 of 384 and 8 of 512) × shared expert on or off. Hold active and total parameters fixed.
- Measure EG in FLOPs and in time on at least two ladder sizes, using the same data, tokens per parameter and schedule.
- Add per-category NLL. Fig. 3 shows gains from sparsity differ across task categories, so one average can hide trade-offs.
- Check load balance and all-to-all volume. LatentMoE compresses before dispatch, which changes the communication cost of every arm.
- Design
You must choose an RL recipe for a long agentic climb that will run for thousands of steps. Using MAI's choices (token-level GRPO, adaptive upper clip, outer ratio clip, self-distillation restarts), design the stability toolkit and the signals you would monitor.
What a strong answer covers
- Use token-level normalization over the whole global batch so long responses are not down-weighted.
- Control entropy with an adaptive upper clip, (1 − ε)^(−1) + k, where k moves by ±δ toward a target entropy (for example 0.3, k_max 1.0). The report found this better than an entropy bonus.
- Add an outer clip on the ratio in all branches. The branches PPO leaves unclipped caused gradient-norm spikes.
- Plan for collapse: periodically SFT a mid-trained checkpoint on the run's own rollouts (self-distillation) and resume from it. This also moves the run from a raw prompt to the chat format.
- Monitor entropy, gradient norm, train/inference log-prob mismatch (with routing and top-p mask replay), and held-out curves such as AIME and a hard LiveCodeBench subset.
- Research idea
MAI excludes all LLM-generated text and open datasets from pretraining and does not distill from other labs' models. Propose a study that measures what this costs or gains compared with a mix that includes synthetic data.
What a strong answer covers
- Train matched ladder models: human-only data against the same mix plus a fixed share of high-quality synthetic data (rephrased web, synthetic math).
- Compare held-out NLL, downstream accuracy, and especially the post-RL result after a fixed RL budget, since MAI argues learned capabilities climb better.
- Track contamination and diversity: synthetic data may duplicate benchmarks or collapse style.
- Measure steerability and robustness (refusal balance, instruction following), which the authors claim distilled models lack.