Sliding Networks: A Family of Residual Structures Preserving Feature Learning and Feature Diversity
Organizations: Laboratoire Jacques-Louis Lions (LJLL) & Laboratoire de Probabilités, Statistique et Modélisation (LPSM) · Oden Institute and Department of Neuroscience University of Texas at Austin
Abstract
Deep learning models tend to perform best at large widths and depths. The growing interest in scaling laws, especially in the language modeling domain, has motivated procedures for scaling up network widths and depths in order to preserve stability and computational efficiency of training dynamics. Existing depth-scaling approaches force a choice between retaining locally maximal feature learning and preserving a form of feature diversity in the residual stream arising from random differences between channels. We examine a joint scaling recipe that preserves both. With residual width , hidden width , and depth , the key quantity is, by default, the limiting ratio , while correlated initialization (Half Copy) can partially relax the resulting shape constraints. Theory and residual-MLP experiments support convergence at fixed positive to an SDE limit with locally maximal feature learning. Hidden computations can then be redistributed between width and depth while preserving this limit, like turning melody into harmony and back. Language-model experiments nevertheless show performance differences under regrouping at fixed parameter count. These results distinguish approximating a limit (ODE or SDE) from scaling for better performance.
Figures & tables
| Quantity | Input | Up | Down | Output |
|---|---|---|---|---|
| Initialization std. | ||||
| SGD learning rate | ||||
| Adam learning rate | ||||
| Muon learning rate | ||||
| Muon clipping threshold |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Optimizer | Quantity | W_in | W_up | W_down | W_out |
|---|---|---|---|---|---|
| Initialization std. | |||||
| SGD | LR (code) | ||||
| LR (standard Gaussian) | |||||
| Muon | LR (code) | ||||
| Clip (code) | |||||
| LR (standard Gaussian) | |||||
| Residual pair | SGD | Taylor | Adam |
|---|---|---|---|
| Seeds | Full-step | Limit ( 131 ) | ||||
|---|---|---|---|---|---|---|
| 1024 | 16 | 1 | 128 | 19.32 | ||
| 1024 | 16 | 2 | 128 | 72.32 | ||
| 2048 | 16 | 1 | 256 | 84.00 | ||
| 1024 | 6 | 1 | 256 | 228.38 | ||
| 1024 | 4 | 1 | 128 | 1645.33 | ||
| 2048 | 8 | 1 | 256 | 1645.33 |
| Epoch | |||||||
|---|---|---|---|---|---|---|---|
| 24 | 0 | 0.0173 | 0.0023 | 0.0136 | 0.0002 | 0.0106 | 0.0016 |
| 24 | 1 | 0.2480 | 0.0628 | 0.2073 | -0.0209 | 0.1866 | 0.0369 |
| 24 | 10 | 1.1092 | -0.1466 | 1.0145 | 0.1718 | 0.9123 | -0.1930 |
| 36 | 0 | 0.0124 | -0.0005 | 0.0100 | 0.0002 | 0.0082 | -0.0010 |
| 36 | 1 | 0.2118 | 0.0927 | 0.1550 | -0.0097 | 0.1498 | -0.0211 |
| Parameter group | Stored-weight Adam rate | Gradient unit |
|---|---|---|
| Token embedding | ||
| Readout | ||
| MLP up | ||
| MLP down | ||
| Attention Q | ||
| Attention K |
| ODE / compensated / Half Copy | Fixed ratios | ||||||
|---|---|---|---|---|---|---|---|
| (M) | (M) | ||||||
| 4 | 16 | 512 | 256 | 25.165824 | 1024 | 128 | 25.165824 |
| 5 | 20 | 640 | 400 | 49.152000 | 1432 | 179 | 49.214976 |
| 6.25 | 25 | 800 | 625 | 96.000000 | 2000 | 250 | 96.000000 |
| 8 | 32 | 1024 | 1024 | 201.326592 | 2896 | 362 | 201.283584 |
| 10 | 40 | 1280 | 1600 | 393.216000 | 4048 | 506 | 393.271296 |
| — |
| Recipe | |||
|---|---|---|---|
| ODE route | |||
| Fixed ratios | |||
| Compensated coupling | |||
| Half Copy |
| Seed | Recipe | Uniform | Width allocation | Depth mesh | |
|---|---|---|---|---|---|
| 8 | 100001 | ODE | 0.506104 | 0.477521 | — |
| 8 | 100001 | Half Copy | 0.397821 | 0.380109 | — |
| 8 | 100002 | ODE | — | 0.483269 | 0.488810 |
| 8 | 100002 | Half Copy | — | 0.402959 | 0.388330 |
| 10 | 100001 | ODE | — | 0.432979 | 0.435738 |
| 10 | 100001 | Half Copy | — | 0.339870 | 0.337943 |
| Construction | Stages | Validation CE | HellaSwag |
|---|---|---|---|
| Parallel regrouping | 1 | 3.6148 | 0.2808 |
| Parallel regrouping | 2 | 3.2359 | 0.2927 |
| Parallel regrouping | 4 | 3.1347 | 0.2942 |
| Original | 12 | 3.0764 | 0.3091 |
| Split blocks | 24 | 3.0627 | 0.3061 |
| Stages | Updates | ||||
|---|---|---|---|---|---|
| 12 | 0 | 0.000801 | 0.08099 | ||
| 12 | 15,000 | 0.001385 | 7.84837 | 1.85463 | 0.006261 |
| 24 | 0 | 0.000801 | 0.08406 | 0.000121 | 0.00000726 |
| 24 | 15,000 | 0.001394 | 6.40892 | 3.91831 | 0.006519 |
| 24 | 19,072 | 0.001338 | 5.63515 | 2.70808 | 0.005173 |
| Initialization | Update 4500 | |||
|---|---|---|---|---|
| First-block variable | Skewness | Excess kurt. | Skewness | Excess kurt. |
| Pre-GELU | ||||
| Post-GELU | ||||
| MLP increment | ||||
| Post-block residual | ||||
| Stages | Intervention | Validation CE | HellaSwag |
|---|---|---|---|
| 12 | Fitted tail, HC | 3.0878 | 0.2996 |
| 24 | Two ends, HC | 3.0611 | 0.3089 |
| 12 | Mild tail, HC | 3.0741 | 0.3075 |
| 24 | Soft head, HC | 3.1034 | 0.3037 |
| 24 | Strong head, HC | 3.0981 | 0.3011 |
Neural Scaling Laws
Neural scaling laws describe how model performance changes with training data, compute, model capacity, and other resources.
See all 83 papers