研究问题
稀疏 MoE 可增加总容量而不同比增加 token compute,但会遇到 KV-cache、expert imbalance、跨节点通信与低精度训练稳定性。论文问:如何在 671B 总规模上把 active compute 控制到 37B/token,并以可承受的 \(H_{800}\) 训练预算维持性能?
背景
DeepSeek-\(V_{3}\) 延续 MLA 与 DeepSeekMoE:前者把 attention 的 key/value 压到共享 latent,后者组合 shared experts 与 routed experts。Figure 2 把这两个结构放在同一 Transformer block 中,优先于 benchmark 雷达图,因为它解释效率来自哪里。
模型与方法
MLA 对 KV 做 low-rank joint compression,推理缓存压缩 latent 而非完整 multi-head keys/values。DeepSeekMoE 用细粒度 routed experts 与 shared experts;router 的动态 bias 做 auxiliary-loss-free load balancing,避免较大的 balance loss 干扰主目标。 Multi-Token Prediction 在主 next-token head 之外预测后续 token,训练后可丢弃或用于 speculative decoding。系统侧采用 FP8 mixed precision、DualPipe pipeline parallelism、跨节点受限 routing 与通信/计算重叠。
核心结果与证据
Figure 2 展示单个 block 的两个压缩:MLA 把 attention state 投到 latent KV,DeepSeekMoE 每 token 只路由少数 experts;671B/37B 的稀疏比正由此实现。 作者报告 pretraining 2.664M \(H_{800}\) GPU-hours、context extension 119K、post-training 5K,总计 2.788M;按每 GPU-hour 2 美元估算 5.576M 美元,但明确不含前期研究、消融、数据和基础设施成本。 报告的 chat 模型分数包括 MMLU 88.5、MMLU-Pro 75.9、GPQA 59.1;这些是指定 prompts/evaluation harness 下的自报结果。MTP 与 load-balancing strategy 另有较小模型消融,不能把完整模型所有收益单独归因于某一模块。
Figure 2 · Inference efficiency comes from compressed KV state and sparse expert activation rather than total parameter count alone.
物理解读:The schematic omits communication topology and end-to-end serving overhead.
来源:paper.pdf \(p\). 7, Figure 2
有效性与局限
训练成本口径只含官方最终 run,不能作为从零复现实验的总预算。大量 benchmark 可能受数据污染、prompt/scoring 选择和 post-training 影响;“comparable to closed-source” 会随服务版本变化。 MoE 的总参数、激活参数、内存占用、通信量和实际推理吞吐是不同尺度;37B active 不等于 37B dense 的相同延迟。技术报告公开 checkpoints,但训练数据只做类别性描述,无法 exact data-level reproduction。
复现与资源
原文:https://arxiv.org/abs/2412.19437;代码/模型:https://github.com/deepseek-ai/DeepSeek-V3。全文 54 页,PDF SHA-256:812a3fd645c80725354de9d831a6785503007a60681461407f64e97305fa9330。 复现/评估需固定 checkpoint variant、tokenizer、precision、expert parallel topology、MLA cache convention、router bias update、MTP depth、prompt templates、sampling parameters 与 benchmark commits。完整 pretraining 数据不可获得。 Evidence status: full-text verified; no independent reproduction performed.
阅读指南
先看 Figure 2,分清 MLA 与 DeepSeekMoE;再读 Sections 2.1–2.2 的 routing、load balance 与 MTP。随后读 training infrastructure/FP8 和 Table 1 成本口径,最后审查 benchmark 表与 limitations,避免把 active parameters、总参数和实际服务成本混为一谈。
← 上一篇 An analytic theory of creativity in convolutional diffusion models
下一篇 → Sloth: scaling laws for LLM skills to predict multi-benchmark performance across families
Discussion
评论与讨论
评论公开保存在 GitHub Discussions;阅读无需登录,发表评论需要 GitHub 账号。