Spectral Condition for P under Width-Depth Scaling
Organizations: Gaoling School of AI, Renmin University of China · ByteDance Seed
Abstract
Generative foundation models are increasingly scaled in both width and depth, posing significant challenges for stable feature learning and reliable hyperparameter (HP) transfer across model sizes. While maximal update parameterization (P) has provided a principled solution to both problems for width scaling, existing extensions to the joint width-depth scaling regime remain fragmented, architecture- and optimizer-specific, and often rely on technically involved theories. In this work, we develop a simple and unified spectral framework for P under joint width-depth scaling. For deep residual networks whose residual blocks contain transformations, the framework specifies how the norms of weights and their per-step updates should scale with width and depth. It reveals a fundamental transition from to , unifying previously disparate P formulations and identifying the case as more appropriate for practical architectures with multi-transformation branches such as Transformers. Building on this framework, we derive a general recipe for implementing P across a broad class of optimizers by mapping spectral constraints to concrete HP parameterizations, recovering existing results and extending them to additional optimizers. Finally, experiments on GPT-2 style language models show that the P formulation derived from the case achieves stable feature learning and robust HP transfer under width-depth scaling, whereas standard parameterization and P in the case often fail to do so. These results support the practical effectiveness of the proposed spectral framework.
Figures & tables
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) |
Appendix figures & tables50 assets
Supplementary material from the paper’s appendix.
Appendix
| Optimizer family | Detailed parameterization |
|---|---|
| Muon-Kimi | Table 3 |
| Muon / Shampoo / SOAP | Table 4 |
| SGD | Table 5 |
| AdamW / Lion / Sophia | Table 6 |
| SSO | Table 7 |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ||
| Weight Decay | ( ) |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ( ) | |
| Weight Decay | ( ) | ( ) | |
| Shampoo | ( ) | ( ) | ( ) |
| Input weights & biases | Hidden weights | Output weights | Hidden biases | |
|---|---|---|---|---|
| Block Multiplier | ( ) | ( ) | ( ) | |
| Initial Variance | or | ( ) | ||
| Learning Rate | ( ) | ( ) | ( ) | ( ) |
| Weight Decay | ( ) | ( ) | ( ) | ( ) |
| Input weights & biases | Hidden weights | Output weights | Hidden biases | |
|---|---|---|---|---|
| Block Multiplier | ( ) | ( ) | ( ) | |
| Initial Variance | or | ( ) | ||
| Learning Rate | ( ) | |||
| Weight Decay | ( ) | |||
| AdamW | ( ) | ( ) | ( ) | ( ) |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ||
| Weight Decay | ( ) |
| Optimizer family | Detailed parameterization |
|---|---|
| Muon-Kimi | Table 9 |
| Muon / Shampoo / SOAP | Table 10 |
| SGD | Table 11 |
| AdamW / Lion / Sophia | Table 12 |
| SSO | Table 13 |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ||
| Weight Decay | ( ) |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ( ) | ( ) |
| Weight Decay | ( ) | ( ) | |
| Shampoo | ( ) | ( ) | ( ) |
| Input weights & biases | Hidden weights | Output weights | Hidden biases | |
|---|---|---|---|---|
| Block Multiplier | ( ) | ( ) | ( ) | |
| Initial Variance | or | ( ) | ||
| Learning Rate | ( ) | ( ) | ( ) | |
| Weight Decay | ( ) | ( ) | ( ) | ( ) |
| Input weights & biases | Hidden weights | Output weights | Hidden biases | |
|---|---|---|---|---|
| Block Multiplier | ( ) | ( ) | ( ) | |
| Initial Variance | or | ( ) | ||
| Learning Rate | ( ) | ( ) | ||
| Weight Decay | ( ) | |||
| AdamW | ( ) | ( ) | ( ) | ( ) |
| Input weights | Hidden weights | Output weights | |
|---|---|---|---|
| Block Multiplier | ( ) | ( ) | |
| Initial Variance | or | ( ) | |
| Learning Rate | ( ) | ( ) | |
| Weight Decay | ( ) |
| URL | Citation | License |
|---|---|---|
| https://github.com/EleutherAI/nanoGPT-mup/tree/completep | [ 10 ] | MIT |
| https://github.com/karpathy/nanoGPT | [ 23 ] | MIT |
| https://skylion007.github.io/OpenWebTextCorpus/ | [ 11 ] | Creative Commons CC0 |
| -10 | -9 | -8 | -7 | -6 | -5 | |
|---|---|---|---|---|---|---|
| 128 | 5.127 | 4.685 | 4.45 | 4.373 | 4.364 | 4.372 |
| 256 | 4.552 | 4.219 | 4.081 | 4.053 | 4.062 | 4.091 |
| 512 | 4.093 | 3.886 | 3.819 | 3.833 | 3.837 | 4.062 |
| 1024 | 3.817 | 3.699 | 3.672 | 3.68 | 3.952 | 5.603 |
| 2048 | 3.654 | 3.571 | 3.555 | 3.798 | 5.472 | 6.438 |
| 4096 | 3.56 | 3.516 | 3.747 | 5.557 | 6.159 | 6.552 |
| -10 | -9 | -8 | -7 | -6 | -5 | |
|---|---|---|---|---|---|---|
| 128 | 4.875 | 4.53 | 4.42 | 4.374 | 4.383 | 4.397 |
| 256 | 4.561 | 4.227 | 4.081 | 4.059 | 4.079 | 4.104 |
| 512 | 4.305 | 3.974 | 3.83 | 3.811 | 3.828 | 3.873 |
| 1024 | 4.125 | 3.798 | 3.654 | 3.646 | 3.676 | 3.726 |
| 2048 | 3.957 | 3.636 | 3.516 | 3.515 | 3.552 | 3.689 |
| 4096 | 3.882 | 3.531 | 3.446 | 3.461 | 3.523 | 3.752 |
| -9 | -8 | -7 | -6 | -5 | |
|---|---|---|---|---|---|
| 4 | 4.219 | 4.081 | 4.056 | 4.067 | 4.09 |
| 8 | 4.109 | 3.985 | 3.952 | 3.973 | 4.013 |
| 16 | 4.016 | 3.893 | 3.864 | 3.889 | 3.929 |
| 32 | 3.949 | 3.824 | 3.799 | 3.82 | 3.885 |
| 64 | 3.916 | 3.777 | 3.747 | 3.777 | 3.91 |
| 128 | 3.898 | 3.75 | 3.723 | 3.772 | 4.031 |
| -9 | -8 | -7 | -6 | -5 | |
|---|---|---|---|---|---|
| 4 | 4.228 | 4.081 | 4.06 | 4.075 | 4.098 |
| 8 | 4.089 | 3.972 | 3.938 | 3.957 | 3.988 |
| 16 | 4.01 | 3.886 | 3.85 | 3.874 | 3.907 |
| 32 | 3.96 | 3.826 | 3.8 | 3.828 | 3.879 |
| 64 | 3.917 | 3.771 | 3.747 | 3.796 | 3.942 |
| 128 | 3.878 | 3.715 | 3.694 | 3.754 | 4.002 |
| -9 | -8 | -7 | -6 | -5 | -4 | |
|---|---|---|---|---|---|---|
| 4 | 4.225 | 4.081 | 4.06 | 4.067 | 4.095 | 4.971 |
| 8 | 4.149 | 3.988 | 3.923 | 3.934 | 3.951 | 4.03 |
| 16 | 4.198 | 3.963 | 3.871 | 3.857 | 3.88 | 3.922 |
| 32 | 4.325 | 3.987 | 3.843 | 3.796 | 3.814 | 3.855 |
| 64 | 4.517 | 4.052 | 3.825 | 3.728 | 3.725 | 3.768 |
| 128 | 4.666 | 4.242 | 3.912 | 3.745 | 3.7 | 3.746 |
| -13 | -12 | -11 | -10 | -9 | |
|---|---|---|---|---|---|
| 4 | 7.318 | 6.394 | 5.784 | 5.169 | 13.77 |
| 8 | 6.775 | 5.974 | 5.426 | 4.811 | NaN |
| 16 | 6.115 | 5.631 | 5.052 | 4.409 | 10.814 |
| 32 | 5.809 | 5.328 | 4.706 | 4.233 | 4.282 |
| 64 | 5.519 | 5.038 | 4.516 | 4.189 | 7.251 |
| 128 | 5.316 | 4.896 | 4.484 | 4.313 | NaN |
| -11 | -10 | -9 | -8 | -7 | |
|---|---|---|---|---|---|
| 4 | 5.791 | 5.169 | 11.6 | NaN | 345.85 |
| 8 | 5.741 | 5.084 | 131.43 | NaN | NaN |
| 16 | 5.73 | 5.059 | 8.732 | 246.45 | 122.99 |
| 32 | 5.734 | 5.069 | 4.275 | 3.964 | 3.894 |
| 64 | 5.73 | 5.051 | 4.253 | 3.912 | 3.815 |
| 128 | 5.728 | 5.052 | 4.214 | 3.862 | 3.742 |
| -4 | -3 | -2 | -1 | 0 | |
|---|---|---|---|---|---|
| 128 | 4.361 | 4.359 | 4.375 | 4.478 | 4.975 |
| 256 | 4.026 | 4.019 | 4.013 | 4.061 | 4.327 |
| 512 | 3.809 | 3.79 | 3.77 | 3.789 | 3.971 |
| 1024 | 3.642 | 3.614 | 3.585 | 3.582 | 3.724 |
| 2048 | 3.574 | 3.514 | 3.467 | 3.45 | 3.545 |
| 4096 | 4.711 | 4.032 | 3.478 | 3.406 | 3.444 |
| -4 | -3 | -2 | -1 | 0 | |
|---|---|---|---|---|---|
| 128 | 4.359 | 4.35 | 4.352 | 4.406 | 4.74 |
| 256 | 4.039 | 4.029 | 4.033 | 4.073 | 4.357 |
| 512 | 3.785 | 3.767 | 3.766 | 3.815 | 4.109 |
| 1024 | 3.622 | 3.617 | 3.602 | 3.659 | 3.966 |
| 2048 | 3.493 | 3.48 | 3.475 | 3.539 | 3.847 |
| 4096 | 3.412 | 3.398 | 3.392 | 3.463 | 3.782 |
| -4 | -3 | -2 | -1 | 0 | |
|---|---|---|---|---|---|
| 4 | 4.03 | 4.021 | 4.017 | 4.062 | 4.328 |
| 8 | 3.919 | 3.911 | 3.905 | 3.965 | 4.314 |
| 16 | 3.842 | 3.832 | 3.832 | 3.905 | 4.259 |
| 32 | 3.784 | 3.773 | 3.781 | 3.876 | 4.246 |
| 64 | 3.734 | 3.726 | 3.735 | 3.862 | 4.244 |
| 128 | 3.675 | 3.661 | 3.68 | 3.831 | 4.242 |
| -4 | -3 | -2 | -1 | 0 | |
|---|---|---|---|---|---|
| 4 | 4.041 | 4.037 | 4.033 | 4.071 | 4.343 |
| 8 | 3.905 | 3.896 | 3.89 | 3.954 | 4.267 |
| 16 | 3.834 | 3.824 | 3.825 | 3.906 | 4.232 |
| 32 | 3.776 | 3.765 | 3.77 | 3.863 | 4.192 |
| 64 | 3.699 | 3.686 | 3.693 | 3.807 | 4.143 |
| 128 | 3.669 | 3.657 | 3.669 | 3.794 | 4.137 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 128 | 4.88 | 4.544 | 4.416 | 4.377 | 4.375 |
| 256 | 4.38 | 4.168 | 4.061 | 4.067 | 4.055 |
| 512 | 4.054 | 3.888 | 3.831 | 3.819 | 3.818 |
| 1024 | 3.848 | 3.711 | 3.655 | 3.648 | 3.923 |
| 2048 | 3.742 | 3.595 | 3.532 | 3.553 | 5.137 |
| 4096 | 3.735 | 3.586 | 3.543 | 3.795 | 5.992 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 128 | 4.671 | 4.473 | 4.385 | 4.385 | 4.387 |
| 256 | 4.403 | 4.187 | 4.076 | 4.073 | 4.077 |
| 512 | 4.169 | 3.947 | 3.834 | 3.823 | 3.825 |
| 1024 | 4.02 | 3.75 | 3.677 | 3.668 | 3.682 |
| 2048 | 3.868 | 3.624 | 3.548 | 3.571 | 3.669 |
| 4096 | 3.771 | 3.537 | 3.486 | 3.532 | 4.672 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 4 | 4.381 | 4.169 | 4.064 | 4.062 | 4.055 |
| 8 | 4.267 | 4.059 | 3.968 | 3.956 | 3.961 |
| 16 | 4.201 | 3.973 | 3.893 | 3.883 | 3.925 |
| 32 | 4.153 | 3.917 | 3.841 | 3.857 | 4.047 |
| 64 | 4.124 | 3.884 | 3.804 | 3.868 | 4.772 |
| 128 | 4.084 | 3.835 | 3.766 | 3.886 | 5.798 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 4 | 4.402 | 4.187 | 4.082 | 4.072 | 4.075 |
| 8 | 4.259 | 4.044 | 3.961 | 3.946 | 3.981 |
| 16 | 4.198 | 3.972 | 3.888 | 3.888 | 3.95 |
| 32 | 4.152 | 3.91 | 3.832 | 3.854 | 3.995 |
| 64 | 4.09 | 3.842 | 3.767 | 3.849 | 4.223 |
| 128 | 4.076 | 3.819 | 3.753 | 3.869 | 4.415 |
| -7 | -6 | -5 | -4 | -3 | -2 | |
|---|---|---|---|---|---|---|
| 4 | 4.402 | 4.189 | 4.078 | 4.07 | 4.073 | 4.068 |
| 8 | 4.323 | 4.067 | 3.97 | 3.937 | 3.96 | 3.983 |
| 16 | 4.368 | 4.052 | 3.909 | 3.862 | 3.881 | 3.947 |
| 32 | 4.477 | 4.073 | 3.884 | 3.809 | 3.823 | 3.902 |
| 64 | 4.649 | 4.12 | 3.874 | 3.754 | 3.735 | 3.834 |
| 128 | 4.793 | 4.262 | 3.946 | 3.78 | 3.722 | 3.795 |
| -8 | -7 | -6 | -5 | -4 | |
|---|---|---|---|---|---|
| 128 | 4.925 | 4.749 | 4.614 | 4.516 | 4.521 |
| 256 | 4.688 | 4.407 | 4.294 | 4.239 | 4.236 |
| 512 | 4.481 | 4.242 | 4.147 | 4.084 | 4.097 |
| 1024 | 4.385 | 4.229 | 4.059 | 3.992 | 4.067 |
| 2048 | 4.338 | 4.205 | 4.042 | 3.981 | 6.002 |
| 4096 | 4.366 | 4.247 | 4.148 | 4.604 | 7.476 |
| -8 | -7 | -6 | -5 | -4 | |
|---|---|---|---|---|---|
| 128 | 4.969 | 4.796 | 4.61 | 4.548 | 4.552 |
| 256 | 4.689 | 4.404 | 4.291 | 4.246 | 4.249 |
| 512 | 4.44 | 4.159 | 4.057 | 4.012 | 4.012 |
| 1024 | 4.272 | 3.995 | 3.919 | 3.874 | 3.887 |
| 2048 | 4.131 | 3.873 | 3.787 | 3.754 | 3.771 |
| 4096 | 3.995 | 3.761 | 3.699 | 3.658 | 3.694 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 4 | 4.696 | 4.617 | 4.503 | 4.425 | 4.62 |
| 8 | 4.721 | 4.638 | 4.511 | 4.421 | 4.634 |
| 16 | 4.728 | 4.662 | 4.61 | 4.491 | 4.811 |
| 32 | 4.783 | 4.754 | 4.72 | 4.704 | 4.966 |
| 64 | 4.886 | 4.855 | 4.851 | 4.802 | 5.131 |
| 128 | 5.033 | 5.023 | 4.994 | 4.983 | 5.276 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 4 | 4.696 | 4.605 | 4.511 | 4.487 | 4.623 |
| 8 | 4.567 | 4.391 | 4.335 | 4.339 | 4.535 |
| 16 | 4.544 | 4.293 | 4.265 | 4.273 | 4.415 |
| 32 | 4.451 | 4.267 | 4.172 | 4.166 | 4.373 |
| 64 | 4.407 | 4.198 | 4.134 | 4.109 | 4.625 |
| 128 | 4.381 | 4.176 | 4.112 | 4.163 | 5.603 |
| -7 | -6 | -5 | -4 | -3 | |
|---|---|---|---|---|---|
| 4 | 4.704 | 4.613 | 4.534 | 4.471 | 4.616 |
| 8 | 4.693 | 4.472 | 4.383 | 4.349 | 4.548 |
| 16 | 4.749 | 4.56 | 4.337 | 4.314 | 4.425 |
| 32 | 4.82 | 4.597 | 4.439 | 4.277 | 4.377 |
| 64 | 4.913 | 4.651 | 4.457 | 4.314 | 4.433 |
| 128 | 5.045 | 4.787 | 4.575 | 4.428 | 4.493 |
| -16 | -15 | -14 | -13 | -12 | -11 | |
|---|---|---|---|---|---|---|
| 128 | 7.485 | 6.982 | 6.43 | 5.935 | 5.54 | 5.648 |
| 256 | 6.293 | 5.97 | 5.603 | 5.232 | 5.143 | 5.361 |
| 512 | 5.506 | 5.257 | 4.946 | 5.005 | 4.986 | 5.28 |
| 1024 | 4.924 | 4.682 | 4.536 | 4.48 | 4.708 | 5.988 |
| 2048 | 4.457 | 4.289 | 4.157 | 4.249 | 5.651 | 6.169 |
| 4096 | 4.321 | 4.209 | 4.413 | 5.677 | 5.964 | 6.101 |
| -15 | -14 | -13 | -12 | -11 | -10 | |
|---|---|---|---|---|---|---|
| 128 | 6.133 | 5.788 | 5.446 | 5.474 | 5.571 | 5.781 |
| 256 | 5.969 | 5.613 | 5.235 | 5.143 | 5.362 | 5.756 |
| 512 | 5.903 | 5.521 | 5.124 | 4.955 | 5.113 | 5.707 |
| 1024 | 5.863 | 5.455 | 5.055 | 4.98 | 4.976 | 5.598 |
| 2048 | 5.827 | 5.419 | 5.01 | 4.932 | 4.919 | 5.555 |
| 4096 | 5.833 | 5.406 | 4.991 | 4.831 | 4.88 | 5.419 |
| -15 | -14 | -13 | -12 | -11 | |
|---|---|---|---|---|---|
| 4 | 5.967 | 5.61 | 5.235 | 5.249 | 5.314 |
| 8 | 5.902 | 5.547 | 5.189 | 4.999 | 5.315 |
| 16 | 5.881 | 5.541 | 5.226 | 5.263 | 5.76 |
| 32 | 5.894 | 5.58 | 5.267 | 5.525 | 5.737 |
| 64 | 5.922 | 5.65 | 5.402 | 6.047 | 6.29 |
| 128 | 6.041 | 5.731 | 5.492 | 5.95 | 6.389 |
| -15 | -14 | -13 | -12 | -11 | |
|---|---|---|---|---|---|
| 4 | 5.966 | 5.603 | 5.242 | 5.319 | 5.375 |
| 8 | 5.895 | 5.544 | 5.178 | 4.935 | 5.225 |
| 16 | 5.861 | 5.532 | 5.19 | 4.994 | 5.362 |
| 32 | 5.812 | 5.497 | 5.162 | 4.906 | 5.237 |
| 64 | 5.837 | 5.527 | 5.238 | 5.154 | 5.402 |
| 128 | 5.861 | 5.599 | 5.329 | 5.384 | 5.915 |
| -15 | -14 | -13 | -12 | -11 | -10 | -9 | |
|---|---|---|---|---|---|---|---|
| 4 | 5.969 | 5.609 | 5.234 | 5.329 | 5.356 | 5.938 | 6.264 |
| 8 | 5.966 | 5.612 | 5.231 | 4.936 | 5.212 | 5.515 | 6.252 |
| 16 | 5.99 | 5.67 | 5.302 | 5.052 | 4.939 | 5.438 | 6.061 |
| 32 | 6.028 | 5.73 | 5.402 | 5.095 | 5.026 | 5.014 | 5.97 |
| 64 | 6.051 | 5.785 | 5.515 | 5.231 | 5.072 | 5.077 | 5.218 |
| 128 | 6.066 | 5.83 | 5.609 | 5.39 | 5.252 | 5.118 | 5.359 |
Deep Learning Optimization
Deep learning optimization develops algorithms and training strategies that help neural networks converge, generalize, and use compute efficiently.
See all 199 papers