# μP / muTransfer

最大更新参数化（μP）是一种调整神经网络权重初始化与学习率的方案，目的是让最优超参数在模型宽度增长时大致保持不变；[muTransfer](https://www.edgepedia.org/zh/mutransfer)（μT）则是建立在它之上的调参流程：先在一个小型代理模型上调好超参数，再零样本迁移到全尺寸模型上，无需直接调优大模型。该方法由杨格（Greg Yang）与[微软研究院](https://www.edgepedia.org/zh/microsoft-research)（Microsoft Research）的合作者在发表于 NeurIPS 2021 的《张量程序 V》（Tensor Programs V）中提出，并与 OpenAI 的研究人员合作完成了验证。<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2203.03466v2)</sup><sup> • </sup><sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup>

对于大语言模型，μP 解决的是一个具体问题：在标准参数化下，对 4000 万参数模型最优的学习率，并不是对 67 亿参数模型最优的学习率，因此从业者要么在大规模上重新调参，要么只能靠猜。μP 让小模型上的最优值得以延续。

| 事实 | 数值 |
|---|---|
| 出处 | 《张量程序 V》，NeurIPS 2021；arXiv 版本 2022 年 3 月<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2203.03466v2)</sup> |
| 核心主张 | 在 μP 下最优超参数对宽度稳定，可在代理模型上调优后零样本迁移<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2203.03466v2)</sup> |
| 厂商头条结果 | 为一个 67 亿参数的 GPT-3 变体，用 4000 万参数的代理模型调参，成本为该模型预训练算力的 7%；经 μTransfer 得到的模型胜过原 GPT-3 论文中同尺寸的模型<sup>[2](https://arxiv.org/html/2203.03466v2)</sup><sup> • </sup><sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup> |
| 调参效率 | 在 IWSLT14 德英翻译任务上，在所测的各档算力预算下，比直接调优目标模型约高一个数量级（以 10 为底）的算力效率<sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup> |
| 独立验证 | 最优学习率可从约小 5000 倍的代理模型迁移，验证规模最高达 100 亿参数与 1900 亿 token（2024 年）<sup>[4](https://arxiv.org/html/2404.05728v4)</sup> |
| 参考实现 | 微软的 `mup` PyTorch 包；后续获 NVIDIA Megatron-LM 与 Cerebras 平台支持<sup>[5](https://github.com/microsoft/mup/)</sup><sup> • </sup><sup>[6](https://github.com/NVIDIA/Megatron-LM/pull/3058)</sup><sup> • </sup><sup>[7](https://training-api.cerebras.ai/en/rel-2.4.0/wsc/Model-zoo/tutorials/mup/mup_docs.html)</sup> |

## 机制如何运作

在标准参数化下，改变模型宽度会改变其权重、激活与梯度的有效尺度，于是使训练速度最大化的学习率与初始化方差也会随规模而变。μP 将初始化与逐参数学习率按宽度的函数重新缩放，使网络在无限宽度极限下保持在最大特征学习的区域内；μP 论文将结果描述为：不同宽度网络上的超参数景观“相当稳定”，并已在宽度上经实证验证，在深度、批大小、序列长度与训练时间上则带有若干保留条件地得到验证。<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[8](https://arxiv.org/html/2407.17465)</sup>

参考实现让这一方案落到实处。每个参数张量都带有一个 `infshape` 属性，记录其每一维是“无限”的（会被放大或缩小，如 `d_model`）还是“有限”的（固定，如词表大小）。隐藏层权重的 Adam 学习率随后按 `globalLR / width_mult` 计算，其中 `width_mult` 本质上是 `fan_in / base_fan_in`；其初始化标准差按 \(\sigma / \sqrt{\mathrm{width\_mult}}\) 缩放；嵌入层与输出层则保持基础学习率。<sup>[5](https://github.com/microsoft/mup/)</sup><sup> • </sup><sup>[6](https://github.com/NVIDIA/Megatron-LM/pull/3058)</sup> `mup` 仓库中有一个小示例，用这些缩放规则把一个宽度 256 的模型放大到宽度 8192。<sup>[5](https://github.com/microsoft/mup/)</sup>

实际后果是：一旦在小模型上找到基础学习率与基础初始化标准差，它们就可以原封不动地用于大得多的模型。剩下的自由度（嵌入乘子、输出 logit 乘子）则在代理模型上搜索。

## 起源与关键人物

μP 与 μTransfer 出自杨格及微软研究院同事的《张量程序 V：通过零样本超参数迁移调优大型神经网络》（Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer），发表于 NeurIPS 2021；arXiv 版本日期为 2022 年 3 月。<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2203.03466v2)</sup> 微软研究院团队发布 `mup` 包，是因为从零实现 μP 容易出错；他们与 OpenAI 的研究人员合作，在贴近现实的场景中验证了该方法的实际优势。<sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup> 杨格后续的工作（被 [EleutherAI](https://www.edgepedia.org/zh/eleutherai) 与 Cerebras 的实践者指南引作 Yang et al. 2023）将分析扩展到深度对最优值的影响，为如何构建代理模型提供了参考。<sup>[9](https://blog.eleuther.ai/mutransfer/)</sup>

## 实测效果：用数字说话

原工作（微软研究院，与 OpenAI 合作）中厂商报告的结果：

- 从 4000 万参数的代理模型迁移到 67 亿参数的 GPT-3 变体，所用调参算力相当于最终模型预训练算力的 7%；经 μTransfer 得到的模型胜过原论文中同尺寸的 GPT-3 模型，表现与参数量翻倍的模型相近。<sup>[2](https://arxiv.org/html/2203.03466v2)</sup><sup> • </sup><sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup>
- 在 BERT 预训练中，μTransfer 为 BERT-base 带来 40 倍的总加速（测试损失 1.970，对比 Megatron 默认的 1.995），为 BERT-large 带来 220 倍加速（1.683 对 1.731）；不使用 μP 的朴素迁移在 BERT-large 上发散了。调优 BERT-large（3.5 亿参数）的成本相当于把它预训练一次。<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2203.03466v2)</sup>
- 在 IWSLT14 德英翻译上，在所测的所有算力预算档位上，μTransfer 的调参算力效率都比直接调优约高一个数量级（以 10 为底）。<sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup>

独立验证：一项 2024 年的研究（2024 年 4 月首次发布）在最高 12 亿参数与 330 亿 token 的规模上做了大量消融实验，另有一项最高达 100 亿参数与 1900 亿 token 的大规模研究，发现最优学习率可从约小 5000 倍的代理模型迁移而来。μTransfer 在大多数受测情形下都按预期奏效，包括乘性非线性、多查询注意力，以及大批量与小批量训练。<sup>[4](https://arxiv.org/html/2404.05728v4)</sup> 同一项研究指出了这个问题为何需要回答：原报告最大的模型是 67 亿参数，以 FP32 训练，其位置编码与学习率调度都不同于它的 FP16 基线；而此前的工作（Dey 等）只在最高 27 亿参数上使用过 μP transformer，因此 μP 模型在更大规模上是否稳定、是否仍有竞争力，仍悬而未决。<sup>[4](https://arxiv.org/html/2404.05728v4)</sup>

没有来源报告以 GPU 小时或 FLOPs 计的绝对效果；上述数字都是百分比与加速倍数。

## 用在哪里

2024 年 7 月的一篇论文称，μP“已被若干开放大语言模型训练工作采用”，并指出前沿实验室使用它的两条线索：GPT-4 技术报告的参考文献中列有 μP 论文，但未直接引用；Grok 代码库中出现的乘子暗示了它的使用。这些只是线索，而非确认；没有任何来源证实 μP 被用于任何具名的 2025–2026 年前沿模型。<sup>[8](https://arxiv.org/html/2407.17465)</sup>

框架支持已更加广泛。NVIDIA 的 [Megatron-LM](https://www.edgepedia.org/zh/megatron-lm) 在 PR #3058 中加入 μP 支持，实现了自动初始化缩放（隐藏层用 σ/√width_mult）与 Adam 学习率缩放（隐藏层用 lr/width_mult，嵌入层与输出层用基础学习率）。<sup>[6](https://github.com/NVIDIA/Megatron-LM/pull/3058)</sup> Cerebras 的平台为仅解码器的 [GPT-2](https://www.edgepedia.org/zh/gpt-2)、GPT-3、Bloom、Llama、Falcon、Starcoder 与 MPT 架构实现了 μP，截至 2.3 版对 GPTJ、T5 与 BERT 提供测试版支持，并兼容 [ALiBi](https://www.edgepedia.org/zh/alibi)、RoPE、相对位置与固定位置嵌入、多查询注意力以及 SwiGLU 激活。<sup>[7](https://training-api.cerebras.ai/en/rel-2.4.0/wsc/Model-zoo/tutorials/mup/mup_docs.html)</sup> EleutherAI 与 Cerebras 联合发表了一份实践者指南，详细描述了这一工作流程。<sup>[9](https://blog.eleuther.ai/mutransfer/)</sup><sup> • </sup><sup>[10](https://www.cerebras.ai/blog/the-practitioners-guide-to-the-maximal-update-parameterization)</sup>

有文档记载的采用流程在设计上就很廉价：训练一个隐藏层大小为 256 的代理模型（足够大，使底层的极限行为得以收敛），深度与大模型大致相当，按每参数 20 个 token 训练（遵循 Hoffmann 等），然后对四个超参数做随机搜索：基础初始化标准差、基础学习率、嵌入乘子与输出 logit 乘子。<sup>[9](https://blog.eleuther.ai/mutransfer/)</sup><sup> • </sup><sup>[10](https://www.cerebras.ai/blog/the-practitioners-guide-to-the-maximal-update-parameterization)</sup>

## 与其他方案相比

相对于在大规模上暴力调参，μP 把对大模型的扫描换成对小数千倍的模型的扫描；实测的一个数量级调参效率提升与“预训练算力的 7%”这一数字量化了差别。<sup>[2](https://arxiv.org/html/2203.03466v2)</sup><sup> • </sup><sup>[3](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)</sup> 不用 μP 时，把超参数从小模型朴素迁移到大模型，在 BERT-large 实验中发散了。<sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup>

竞争方案由 DeepSeek-AI 提出，是一个仅以算力预算表示最优学习率的缩放定律。2024 年的独立研究认为，拟合出的经验缩放定律受自变量选择与拟合数据的强烈影响，因此拟合出的定律未必能迁移到其他设置；而 μP 基于参数化的迁移则与架构本身绑定。<sup>[4](https://arxiv.org/html/2404.05728v4)</sup> 进一步的扩展 u-μP（2024 年 7 月）将 μP 与单位缩放结合，定义了使最优超参数值在不同模型尺寸间保持一致的缩放规则，同时确保无限宽度极限下的最大特征学习。<sup>[8](https://arxiv.org/html/2407.17465)</sup>

## 近期进展

主要进展是规模。最初的演示止步于一个以 FP32 训练的 67 亿参数模型，其条件与它自己的基线并不相同；2024 年 4 月的独立研究以 100 亿参数、1900 亿 token 的验证填补了这一空白，确认了从约小 5000 倍的代理模型迁移学习率，并展示了其在各种注意力变体、批大小与非线性下的稳健性。<sup>[4](https://arxiv.org/html/2404.05728v4)</sup> 工具链同步成熟：Megatron-LM 合并了 μP 支持，Cerebras 交付了覆盖 2023–2024 年主要仅解码器架构的生产级实现。<sup>[6](https://github.com/NVIDIA/Megatron-LM/pull/3058)</sup><sup> • </sup><sup>[7](https://training-api.cerebras.ai/en/rel-2.4.0/wsc/Model-zoo/tutorials/mup/mup_docs.html)</sup> 研究扩展随着 u-μP 的单位缩放变体继续推进，而关于 μP 在前沿工作中足迹的记载，仍只停留在线索而非确认的层面（GPT-4 的参考文献列表、Grok 代码库中的乘子）。<sup>[8](https://arxiv.org/html/2407.17465)</sup> 证据基础中没有任何已确认的 2025–2026 年前沿采用，而 μP 能否跨深度、跨优化器选择、跨数据分布迁移，仍只得到部分确立：数据集迁移由 Cerebras 及 Yang et al. 2021 以轶事方式报告，但深度与优化器的问题仍悬而未决。<sup>[9](https://blog.eleuther.ai/mutransfer/)</sup><sup> • </sup><sup>[1](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)</sup>

## References

1. [Tensor Programs V (NeurIPS 2021 version)](https://papers.neurips.cc/paper_files/paper/2021/file/8df7c2e3c3c3be098ef7b382bd2c37ba-Paper.pdf)
2. [Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer](https://arxiv.org/html/2203.03466v2)
3. [µTransfer: A technique for hyperparameter tuning of enormous neural networks (Microsoft Research blog)](https://www.microsoft.com/en-us/research/blog/%C2%B5transfer-a-technique-for-hyperparameter-tuning-of-enormous-neural-networks/)
4. [A Large-Scale Exploration of μ-Transfer](https://arxiv.org/html/2404.05728v4)
5. [microsoft/mup (reference implementation)](https://github.com/microsoft/mup/)
6. [μP: Maximal Update Parameterization · Pull Request #3058 · NVIDIA/Megatron-LM](https://github.com/NVIDIA/Megatron-LM/pull/3058)
7. [Cerebras μP tutorial documentation](https://training-api.cerebras.ai/en/rel-2.4.0/wsc/Model-zoo/tutorials/mup/mup_docs.html)
8. [u-μP: The Unit-Scaled Maximal Update Parametrization](https://arxiv.org/html/2407.17465)
9. [The Practitioner's Guide to the Maximal Update Parameterization (EleutherAI)](https://blog.eleuther.ai/mutransfer/)
10. [The Practitioner's Guide to the Maximal Update Parameterization (Cerebras)](https://www.cerebras.ai/blog/the-practitioners-guide-to-the-maximal-update-parameterization)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Large language model architecture and scaling

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/p-mutransfer

English original: https://www.edgepedia.org/p-mutransfer
