Kimi K2: Open Agentic Intelligence
TL;DR. Kimi K2 is a 1.04T-parameter MoE with 32B active parameters, trained on 15.5T tokens “without a single loss spike”. Its main contribution is MuonClip: the token-efficient Muon optimizer with weight decay, RMS-matched updates and QK-Clip, which rescales query and key weights per head when attention logits grow too large. Post-training adds large-scale agentic tool-use data synthesis and RL with verifiable rewards plus a self-critique rubric reward.
Key idea
Section titled “Key idea”For each head , track the largest pre-softmax logit in the batch. If it exceeds (100 for K2), shrink that head’s weights after the step:
Only heads whose logits explode are touched. In K2’s run, max logits hit the cap of 100 early and fell back into a stable range after about 30% of training.
Results and discussion. As a non-thinking model, K2 reports Tau2-Bench 66.1, ACEBench (En) 76.5, SWE-bench Verified 65.8, SWE-bench Multilingual 47.3, LiveCodeBench v6 53.7, AIME 2025 49.5 and GPQA-Diamond 75.1. On a 9B-active / 53B-total MoE, vanilla Muon let attention logits exceed 1,000 (Fig. 2), which is the instability QK-Clip fixes. What transferred: Muon at trillion-parameter scale became credible, and DeepSeek-V4 also adopts Muon. Kimi K2.5 (2602.02276) continues from the K2 checkpoint with about 15T mixed text and vision tokens and adds Agent Swarm, a parallel multi-agent framework that cuts latency by up to 4.5×.
Post-training & agentic RL recipe
Section titled “Post-training & agentic RL recipe”From Sections 3.1–3.3 of the report.
-
Tool-use data synthesis.
- Tools: 3000+ real MCP tools taken from GitHub, plus over 20,000 synthetic tools generated by evolving categories into domains and then into tools.
- Agents and tasks: thousands of agents, each a synthesized system prompt plus a tool subset. Every task comes with an explicit rubric.
- Rollouts: LLM-simulated users with personas interact with the agents. A stateful tool simulator, which the report calls “functionally equivalent to a world model”, injects controlled stochasticity.
- Filtering: an LLM judge keeps only trajectories that pass the rubric.
- Real sandboxes: coding and SWE tasks run in real sandboxes on Kubernetes, with over 10,000 concurrent instances.
-
Verifiable RL gym. A Gym-like framework covers:
- math, STEM and logic;
- instruction following, with code and LLM-judge checks plus a hack-check against claimed but unmet compliance;
- a sentence-level faithfulness judge used as a reward;
- competitive coding and SWE;
- safety red-teaming.
-
Self-critique rubric reward. For non-verifiable tasks, K2 acts as its own critic and ranks its outputs pairwise against core, prescriptive (anti-hacking) and human rubrics. The critic is continually refined on on-policy rollouts from verifiable prompts. This closed loop is meant to keep subjective rewards grounded in objective ones; see rubrics as rewards.
-
RL algorithm. The loss is the K1.5 squared-error objective
optimized with Muon. Three additions:
- per-task token budgets, where responses that exceed the budget are truncated and penalized;
- a PTX loss on hand-selected high-quality data to prevent forgetting;
- temperature decay, moving from exploration to exploitation.
-
Infrastructure.
- Colocated training and inference engines.
- A distributed checkpoint engine that completes a full K2 parameter update in under 30 seconds.
- Partial rollout: long-tail agent trajectories are paused and resumed in the next iteration.
Connections
Section titled “Connections”- Tech reports for agent builders, and Kimi K3 (+ K2.5), the successor.
- Muon and AdamW.
- DeepSeek-V3 and MLA, whose design K2 follows.
- DeepSeek-V4, which also trains with Muon.
- Data-constrained scaling, on repeating vs. new data.
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
In K2's MLA, a head's max attention logit is S = 250 and the QK-Clip threshold is τ = 100. Compute γ_h and the scale applied to q^C, k^C and q^R. Show that the next logit for the same inputs is capped at 100, and explain why the shared rotary key k^R is left untouched.
What a strong answer covers
- γ_h = min(1, τ/S) = 100/250 = 0.4.
- q^C and k^C are each multiplied by √0.4 ≈ 0.632, so their dot product scales by 0.4; q^R is multiplied by 0.4 and k^R by 1, so that dot product also scales by 0.4.
- The whole logit q·k = q^C·k^C + q^R·k^R therefore scales by 0.4: 250 → 100.
- k^R is shared across heads, so scaling it would change every head, not only the one with exploding logits.
- The clip is applied to the weights after the optimizer step, so the forward and backward pass of the current step are unchanged.
- What if…
Table 1 tests knowledge rephrasing on SimpleQA with an early K2 checkpoint. Read off the three settings and explain what the result does and does not show about synthetic data in pretraining.
What a strong answer covers
- Raw wiki text repeated 10 epochs: 23.76. One rephrasing repeated 10 epochs: 27.39. Ten different rephrasings, 1 epoch each: 28.94.
- More diverse rewrites of the same facts help more than repeating the same text, which supports rephrasing as a way to use scarce high-quality data.
- The rewrites are chunked and autoregressive for long documents, and fidelity checks compare them to the source.
- Limits: one benchmark, an early checkpoint, and no control for hallucinated facts in the rewrites. The paper itself calls synthetic data scaling an open question.
- Connect
Table 2 compares K2 with DeepSeek-V3. Explain each change (experts, attention heads, dense layers) and the reasoning the paper gives.
What a strong answer covers
- Experts 256 → 384 with 8 active and 1 shared: a sparsity scaling law with Muon showed loss keeps improving as sparsity rises, and 48 was chosen to balance quality and infrastructure cost.
- Attention heads 128 → 64: at 128K context, 128 heads would add 83% inference FLOPs for small gains, which matters for long agentic runs.
- Dense layers 3 → 1 and no expert grouping. Total 1.04T vs 671B; active 32.6B vs 37B.
- MLA is kept from V3, while the optimizer changes from AdamW to MuonClip.