How does the choice of optimization algorithm shape a model's ability to learn features? To address this question for steepest descent methods --including sign descent, which is closely related to Adam --we introduce steepest mirror flows as a unifying theoretical framework. This framework reveals how optimization geometry governs learning dynamics, implicit bias, and sparsity and it provides two explanations for why Adam and AdamW often outperform SGD in fine-tuning. Focusing on diagonal linear networks and deep diagonal linear reparameterizations (a simplified proxy for attention), we show that steeper descent facilitates both saddle-point escape and feature learning. In contrast, gradient descent requires unrealistically large learning rates to escape saddles, an uncommon regime in fine-tuning. Empirically, we confirm that saddle-point escape is a central challenge in fine-tuning. Furthermore, we demonstrate that decoupled weight decay, as in AdamW, stabilizes feature learning by enforcing novel balance equations. Together, these results highlight two mechanisms how steepest descent can aid modern optimization.
Figures & tables
Figure 1: For a deep diagonal linear network initialized close to a saddle point, sign gradient flow (SignGF) converges faster than gradient flow (GF).
Figure 2: Illustration of different steepest mirror flows (with varied q ). On the left side, the metric exponent is shown dependent on the associated depth. A high metric exponent increases the difficulty to escape zero and the instability of the flow. The right side illustrates saddle escape by plotting the solutions of the ODE’s corresponding to the metric exponents, dxt=xtqdt , with x0=0.1 (from the origin). Concluding, SignGF does not get stuck near saddles and still allows feature learning by entering the green strip in the plot on the left, effectively inducing sparsity.
Figure 3: The balance equation for q∈{1,1.5,2} and initialization m=0.1,w=0 . Observe that the (curved) path away from the initialization to a point on the curve mw=x with x=±0.1 (in the plot) is shorter for smaller q , indicating faster saddle escape.
Coupled
Decoupled
q=1 (SignGF)
(L1,log)
(L23,L1)
q=1.5
(L1,log)
(L45,L21)
q=2 (GF)
(L1,log)
(L1,log)
Table 1: Comparison of the effect of coupled or decoupled weight decay ( Mreg ) for two reparameterization depths, namely, (L=2,L=∞) . Note that the infinite depth would lead to a non-convex logarithmic regularizer (log) in the coupled case, potentially leading to instability.
Figure 4: The L∞− margin for Adam with high and low depth L . The green region indicates the non-zero ground truth features. Higher depth leads to sparse ground truth recovery in line with Corollary 4.13 .
Figure 5: Eigenvalue spectra in finetuning for an ImageNet pretrained ResNet-18 on CIFAR-10 (a) and weight sparsity in reparameterized training for a ResNet-50 on Imagenet (b).
Algorithm 1 Adam with Coupled ( α1 ) and Decoupled ( α2 ) Weight Decay
gt←∇xf(xt−1)+α1xt−1
Appendix
Algorithm 2 SignGD with Coupled ( α1 ) and Decoupled ( α2 ) Weight Decay
Figure 6: Resulting L∞ margins for optimizers SignGD, Adam and GD, where the green strip indicates the contributing ground truth features. Observe the similarity between Adam and SignGD for all depth.
Model
Q (%)
K (%)
Total (%)
Avg ΔL1
<%,L1
Avg ΔL2
<%,L2
LLaMA-3.1 8B
1.25
0.87
1.57
-624.13
100
-20.28
100
LLaMA-3.2 3B
4.37
3.50
5.04
-1757.04
100
-101.71
100
LLaMA-3.2 1B
4.73
3.24
6.11
-891.76
100
-66.15
100
Appendix
Table 3: Parameter sign flips per group type, overall, and average L1/L2 differences for LLaMA models. We also indicate with <% the percentage of the layers that have a negative delta
Figure 7: Underdetermined linear regression ( k=80 ), for depth L=1 we do net get close to the ground truth in all cases, for L=2 gradient flow gets close to the ground truth as in line with Theorem B.10 and in for higher depth L=10 the sign gradient flow (SignGF) converges close to ground truth which we would expect based on the dynamic reformulation.
Figure 8: Recovering the ground truth with small batch size 5 for underdetermined regression with k=80 .
Figure 9: Recovering the ground truth with full batch for underdetermined regression with k=40 .
Figure 10: Recovering the ground truth with small batch size 5 for underdetermined regression with k=40 .
Depth L
α1
α2
Balance Dist.
Groundtruth Dist.
1
0
1e-4
0
7.1
1e-4
0
0
7.0
0
1e-3
0
7.1
1e-3
0
0
5.8
0
1e-2
0
7.1
1e-2
0
0
1.0
Appendix
Table 4: Effect of Regularization Strengths on theoretical balance according to Lemma 4.5 and the distance the ground truth. For the decoupled weight decay ( α1 ) indeed stays close the theoretical predicted balance.
Dataset
Model
LR
Epochs
Batch Size
Optim
Schedule
CIFAR-10
ResNet-20
0.001
150
512
Adam, AdamW
Triangular
Imagenet
ResNet-50
0.001
100
1024
Adam, AdamW
Triangular
Appendix
Table 5: Training details for all experiments presented on sparse reparameterizations.
Figure 11: Adam with coupled weight decay trained with various depth reparameterizations for ResNet-20 on CIFAR-10. On the left is high regularization 1e−1 and on the right is less regularization 1e−4 .
Figure 12: AdamW (decoupled weight decay) trained with various depth reparameterizations for ResNet-20 on CIFAR-10. On the left is high regularization 1e−1 and on the right is less regularization 1e−4 .
Optimizer
Depth
Weight Decay
Accuracy ± CI
AdamW
2
1e−1
89.75±0.20
Adam+wd
2
1e−1
64.36±2.70
AdamW
2
1e−4
89.29±0.28
Adam+wd
2
1e−4
88.27±0.08
AdamW
4
1e−1
89.73±0.18
Adam+wd
4
1e−1
58.23±4.98
Appendix
Table 6: Test Accuracy (%) ± 95% CI for AdamW and Adam+wd across depths and weight decays training a ResNet-20 on CIFAR-10.
Figure 13: Adam with coupled weight decay trained with various depth reparameterizations for ResNet-50 on Imagenet. On the left is high regularization 1e−1 and on the right is less regularization 1e−4 .
Figure 14: AdamW (decoupled weight decay) trained with various depth reparameterizations for ResNet-50 on Imagenet. On the left is high regularization 1e−1 and on the right is less regularization 1e−4 .
Figure 15: L1 norm of the weights during training for Adam with coupled weight decay strength 1e−4 and AdamW with 1e−1 . The dashed lines correspond to depth L=10 and solid lines to L=2 . The training setup is ResNet-20 on CIFAR-10
Optimizer
Depth
Weight Decay
Accuracy ± CI
AdamW
2
1e−1
76.23±0.07
Adam+wd
2
1e−1
1.95±0.48
AdamW
2
1e−4
73.32±0.11
Adam+wd
2
1e−4
73.35±0.05
AdamW
10
1e−1
62.20±0.25
Adam+wd
10
1e−1
0.58±0.06
Appendix
Table 7: Test Accuracy (%) ± 95% CI for AdamW and Adam+wd across depths and weight decays training a Resnet 50 on Imagenet.
Metric
SGD ( η=0.001 )
SGD ( η=0.8 )
Adam ( η=0.001 )
Val Acc
19.15±2.82
93.60±0.38
95.19±0.21
L1
424911.48±34308.92
477750.60±10343.88
693101.67±13509.59
L2
29640.98±985.56
28409.58±219.53
27833.50±494.50
Appendix
Table 8: Validation accuracy and parameter distance traveled in terms of L1 and L2 norm for finetuning ResNet18 on CIFAR-10.
Metric
SGD ( η=0.002 )
SGD ( η=0.4 )
Adam ( η=0.002 )
Val Acc
1.22±0.53
62.13±1.10
80.50±1.38
L1
206325.76±1327.51
173882.76±2967.69
618592.47±3445.18
L2
10124.38±76.52
7015.04±226.30
11432.11±350.38
Appendix
Table 9: Validation accuracy and parameter distance traveled in terms of L1 and L2 norm for finetuning ResNet18 on Flowers.
Figure 16: Normalized top-50 eigenvalues for a ResNet-18 finetuned on Flowers.
Figure 17: The eigen value evolution for seed 123 on CIFAR-10.
Figure 18: The eigen value evolution for seed 456 on CIFAR-10.
Figure 19: The eigen value evolution for seed 789 on CIFAR-10.
Figure 20: The eigen value evolution for seed 1000 on CIFAR-10.
Figure 21: The eigen value evolution for seed 123 on Flowers.
Figure 22: The eigen value evolution for seed 456 on Flowers.
Figure 23: The eigen value evolution for seed 789 on Flowers.
Figure 24: The eigen value evolution for seed 1000 on Flowers.
Metric
SGD ( η=0.0001 )
SGD ( η=0.01 )
Adam ( η=0.0001 )
Val Acc
73.27±3.68
99.07±0.35
99.28±0.07
L1
460.47±219.86
24617.83±14406.4
453934.906±22278.43
L2
0.48±0.059
6.25±4.29
39.47±1.01
Appendix
Table 10: Validation accuracy and parameter distance traveled in terms of L1 and L2 norm for finetuning ViT-Large on CIFAR-10.
Metric
SGD ( η=0.0001 )
SGD ( η=0.01 )
Adam ( η=0.0001 )
Val Acc
1.03±0.82
98.94±0.05
99.37±0.08
L1
25.71±30.48
4655.83±576.49
108583.62±2078.48
L2
0.04±0.02
1.50±0.12
8.35±0.16
Appendix
Table 11: Validation accuracy and parameter distance traveled in terms of L1 and L2 norm for finetuning ViT-Large on Flowers.
Figure 25: The eigen value evolution for seed 7 on finetuning ViT-Large on CIFAR-10.
Figure 26: The eigen value evolution for seed 42 on finetuning ViT-Large on CIFAR-10.
Figure 27: The eigen value evolution for seed 1234 on finetuning ViT-Large on CIFAR-10.
Figure 28: The eigen value evolution for seed 7 on finetuning ViT-Large on Flowers.
Figure 29: The eigen value evolution for seed 42 on finetuning ViT-Large on Flowers.
Figure 30: The eigen value evolution for seed 1234 on finetuning ViT-Large on Flowers.
Figure 31: Top 25 eigenvalues of Hessian at solution obtained by SGD and Adam after finetuning ViT-Large on CIFAR10.
Figure 32: Top 25 eigenvalues of Hessian at solution obtained by SGD and Adam after finetuning ViT-Large on Flowers.
Metric
SGD ( η=7e−5 )
SGD ( η=0.1 )
Adam ( η=7e−5 )
Val Acc
43.87±24.02
84.80±1.00
85.95±0.64
L1
5002.44±0.0
6066.93±34.33
31079.54±754.26
L2
0.73±0.00
1.26±0.01
5.57±0.24
Appendix
Table 12: Validation accuracy and parameter distance traveled in terms of L1 and L2 norm for finetuning Bert-base on MRPC.
Figure 33: The eigen value evolution for seed 7 on finetuning Bert-base on MRPC.
Figure 34: The eigen value evolution for seed 42 on finetuning Bert-base on MRPC.
Figure 35: The eigen value evolution for seed 1234 on finetuning Bert-base on MRPC.
Figure 36: Top 50 eigenvalues of Hessian at solution obtained by SGD and Adam after finetuning Bert-base on MRPC.
Neural network training dynamics studies how parameters and representations change during optimization and how those changes shape learning, stability, and generalization.