AI Skills AI技能 1d ago Updated 20h ago 更新于 20小时前 50

From Pretraining to Agentic K3: How Moonshot Trained the Architecture 从预训练到Agentic K3:Moonshot如何训练架构

Kimi K3 is a 2.8-trillion-parameter multimodal model with native vision training (MoonViT-V2 trained from scratch alongside the language backbone), a million-token context window via Kimi Delta Attention, and agentic reasoning capabilities Moonshot designed training as a unified pipeline rather than bolted stages: Architecture → Pretraining → Base Model → SFT → Reinforcement Learning → MOPD → Unified K3 Nine specialist RL policies were trained across three domains (General Tasks, General Agents, Kimi K3采用"架构→预训练→SFT→强化学习→MOPD"的端到端训练流程,将多模态、百万token上下文、推理和智能体能力统一设计而非后期拼接 视觉编码器MoonViT-V2与语言模型同步从头训练,比预训练视觉编码器联合训练更稳定且性能相当 通过渐进式上下文扩展(8K→64K→256K→1M)和刻意分散的长距离依赖训练数据,教会模型真正利用百万token上下文 采用9个专家策略(3任务域×3推理强度)进行强化学习专业化训练,再通过多教师在线策略蒸馏(MOPD)合并为单一部署模型 构建统一白盒强化学习环境支持跨工具框架(Kimi Code/Claude Code/Codex等)训练,避免模

68
Hot 热度
78
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • Kimi K3 is a 2.8-trillion-parameter multimodal model with native vision training (MoonViT-V2 trained from scratch alongside the language backbone), a million-token context window via Kimi Delta Attention, and agentic reasoning capabilities
  • Moonshot designed training as a unified pipeline rather than bolted stages: Architecture → Pretraining → Base Model → SFT → Reinforcement Learning → MOPD → Unified K3
  • Nine specialist RL policies were trained across three domains (General Tasks, General Agents, Coding Agents) and three reasoning effort levels (Low, High, Max), then consolidated into one model via Multi-Teacher On-Policy Distillation (MOPD)
  • Progressive context expansion (8K → 64K → 256K → 1M tokens) and deliberately scattered long-context training examples were critical to teaching the model to actually use its million-token window
  • Agentic RL required persistent rollout and sandbox state infrastructure, plus a Unified White-Box RL Environment supporting multiple harnesses (Kimi Code, Claude Code, Codex, OpenClaw, Hermes) to prevent overfitting to a single interface

Why It Matters

This article provides one of the most detailed public breakdowns of how a frontier multimodal reasoning model is trained end-to-end, revealing that architectural innovations like KDA and Gated MLA are only half the story—the real challenge lies in training methodology. For AI practitioners, the nine-policy specialization-then-consolidation approach and cross-harness agentic training offer practical blueprints for building capable agent systems without overfitting to specific tool interfaces.

Technical Details

  • Native Multimodal Training: MoonViT-V2 vision encoder was trained from scratch jointly with the language backbone, rather than being pretrained separately and attached later. This produced more stable gradient norms during training compared to the pretrained baseline, achieving comparable visual performance with easier optimization.
  • Progressive Context Expansion: K3 did not begin pretraining at million-token length. Context grew progressively from 8K to 64K during main pretraining, then extended to 256K and finally 1M tokens. Long-context training examples deliberately scattered useful information across distant parts of sequences (Clue A → gap → Clue B → gap → Clue C → gap → question requiring all three), forcing the model to learn genuine long-range dependency reasoning rather than local pattern matching.
  • Nine RL Specialist Policies: Reinforcement learning was organized along two axes—task domain (General Tasks, General Agents, Coding Agents) and reasoning effort (Low, High, Max)—producing nine distinct policies. These are separate from the 896 MoE experts (which are architectural, not training-level). Each policy specializes in a specific domain-effort combination before consolidation.
  • Persistent Rollout & Cross-Harness Agentic Training: Agentic RL infrastructure maintained persistent sandbox state across hundreds-step trajectories, distinguishing between long context (history of events) and persistent environment (consequences of actions). A Unified White-Box RL Environment instantiated multiple agent harnesses (Kimi Code, Claude Code, Codex, OpenClaw, Hermes) to prevent the model from overfitting to any single tool schema or command convention.
  • Multi-Teacher On-Policy Distillation (MOPD): The nine specialist RL policies served as teachers to distill their specialized behaviors into a single unified student policy, eliminating the need to serve nine separate 2.8T-parameter checkpoints while preserving the behavioral diversity learned during specialization.

Industry Insight

  • The "specialize-then-consolidate" paradigm (nine RL policies → MOPD) offers a scalable alternative to monolithic RL training, suggesting that frontier models may increasingly be built through targeted specialization rather than attempting to optimize a single policy for all capabilities simultaneously.
  • Cross-harness agentic training represents a practical solution to a widely ignored overfitting risk: agent models trained in isolated tool environments often fail to generalize when tool interfaces change. The unified white-box environment approach should be adopted as a standard practice for any production agentic system.
  • The distinction between architecture (what can happen) and training (what does happen) is critical for practitioners: investing in architectural innovations like recurrent memory and gated global attention is necessary but insufficient—equally rigorous investment in curriculum design, progressive scaling, and training infrastructure is required to realize those architectural possibilities.

TL;DR

  • Kimi K3采用"架构→预训练→SFT→强化学习→MOPD"的端到端训练流程,将多模态、百万token上下文、推理和智能体能力统一设计而非后期拼接
  • 视觉编码器MoonViT-V2与语言模型同步从头训练,比预训练视觉编码器联合训练更稳定且性能相当
  • 通过渐进式上下文扩展(8K→64K→256K→1M)和刻意分散的长距离依赖训练数据,教会模型真正利用百万token上下文
  • 采用9个专家策略(3任务域×3推理强度)进行强化学习专业化训练,再通过多教师在线策略蒸馏(MOPD)合并为单一部署模型
  • 构建统一白盒强化学习环境支持跨工具框架(Kimi Code/Claude Code/Codex等)训练,避免模型过拟合单一工具接口

为什么值得看

本文揭示了Moonshot将复杂架构转化为实际智能体能力的关键训练方法论,特别是"9个专家策略→MOPD合并"的设计思路为多能力统一模型提供了可复用的工程范式。其对长上下文训练数据构造和跨工具泛化的解决方案,对构建生产级智能体系统具有重要参考价值。

技术解析

  • 原生多模态训练:MoonViT-V2视觉编码器与语言模型同步从头训练,避免预训练视觉编码器带来的梯度不稳定问题,图像和文本共同进入自回归主干网络
  • 渐进式上下文扩展:预训练阶段上下文长度从8K逐步扩展到64K,后期再扩展至256K和1M token;训练数据刻意设计为线索分散在长序列不同位置的格式,迫使模型学习跨距离信息整合
  • 九策略强化学习架构:按任务域(通用任务/通用智能体/编码智能体)和推理强度(低/高/最大)划分9个专家策略,专业化训练后再通过MOPD蒸馏合并
  • 统一白盒强化学习环境:支持Kimi Code、Claude Code、Codex、OpenClaw、Hermes等多种工具框架的实例化,确保模型学习工具调用逻辑而非特定接口约定
  • 持久化Rollout与沙箱状态:智能体训练需要同时维护模型上下文记忆和环境状态记忆,确保长轨迹中工具执行结果的一致性

行业启示

  • 架构与训练需协同设计:K3证明复杂架构机制(如KDA、Gated MLA)必须配合专门的训练策略才能发挥价值,单纯架构创新不足以产生实际能力
  • 多能力统一模型可通过"分而治之再整合"实现:9个专家策略专业化训练后合并为单一模型的路径,为平衡模型通用性与专业性提供了可行方案
  • 智能体训练需关注环境泛化性:跨工具框架训练避免过拟合特定接口,这一思路对构建可部署的智能体系统具有直接指导意义

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Training 训练 Multimodal 多模态 Agent Agent Research 科学研究