Introduction: the ball in a bowl that does not exist
The popular picture of learning shows a ball rolling down a bowl. Height is loss, position is the parameter vector, the gradient is the slope, and the ball reaches the bottom. This picture is locally useful and globally misleading.
Modern networks may have millions or billions of parameters. Their loss functions contain flat directions, symmetries, saddles, connected valleys and changing curvature. Training usually sees only mini-batches. Gradients are noisy. Numbers have finite precision. Computation is distributed. Yet optimization works.
The real question is not simply how to move downhill. It is why local, noisy and incomplete updates find useful functions in such enormous spaces.
What exactly converges?
Possible notions include: training loss, gradient norm, parameters, predictions, update distribution, validation performance, a low-loss region. They are not equivalent.
Weights may keep moving while predictions barely change. Training loss may improve while validation worsens. A network may converge to a valley rather than one point.
A model may keep moving its parameters while its predictions barely change. Parameter convergence is not always the right object.
A parameterized function
Write the network as f_θ(x). The empirical loss is the average of ℓ(f_θ(xᵢ), yᵢ) over all examples. Training seeks low empirical loss, but the objective is nonconvex and the dataset is only a sample.
The objective is nonconvex. The dataset is only a sample. Low training loss does not guarantee low future error. Many parameter vectors may represent nearly the same function.
Backpropagation and the gradient
Backpropagation applies the chain rule efficiently. It computes ∇_θ L. It is not the optimizer. SGD, AdamW, SAM or Muon decide how to turn that gradient into an update.
Backpropagation computes the gradient. SGD, AdamW or Muon decide the update. This distinction matters.
Gradient descent on a quadratic
For L(θ) = ½ θᵀ H θ, the update is θ_{t+1} = (I − η H) θ_t. In an eigenvector direction: z_{t+1,i} = (1 − η λᵢ) z_{t,i}. Convergence requires 0 < η < 2/λ_max. The largest curvature limits the learning rate.
The trajectory depends on the condition number λ₂/λ₁, the learning rate and the optimizer. With momentum and complex eigenvalues, the projection may spiral.
Curvature and the Hessian
The Hessian H = ∇²L describes local gradient variation. The directional curvature is v^T H v. Positive eigenvalues curve upward. Negative eigenvalues indicate saddle directions. Near-zero eigenvalues indicate flat directions.
The full Hessian is usually too large to form. Practical analysis uses Hessian-vector products, power iteration or Lanczos. The local Hessian does not describe the full global geometry.
Positive eigenvalues → upward curvature. Negative → saddle direction. Near-zero → flat direction. Illustrative data.
Ill-conditioned valleys
In a narrow valley, the gradient points mainly across the valley. Plain gradient descent zigzags. The condition number κ = λ_max/λ_min measures anisotropy for a positive quadratic. One global step size must obey the stiffest direction.
Large κ → gradient points across the valley → slow zigzag. Illustrative data.
Learning rate
A small learning rate is stable but slow. A moderate one is efficient and may oscillate. A large one can diverge. Curvature changes during training, so practical learning rates use schedules.
Small η: slow convergence. Moderate: fast with oscillations. Large: divergence. Illustrative data.
Momentum and local spirals
Polyak momentum uses v_{t+1} = μ v_t + g_t and θ_{t+1} = θ_t − η v_{t+1}. For a quadratic, each eigendirection follows a second-order recurrence. Complex roots generate damped oscillation.
A 2D projection may therefore spiral toward a fixed point. This is one real origin of an optimization spiral. Momentum may accelerate persistent directions but can destabilize badly chosen settings.
When characteristic roots are complex with modulus < 1, the 2D trajectory spirals inward. Illustrative data.
Nesterov momentum
Nesterov evaluates the gradient at an extrapolated point. It is a precise mathematical correction, not literal future prediction. Its convex acceleration theory is important, while deep-network behavior depends on noise and schedules.
Nesterov evaluates the gradient at the extrapolated position θ + μv. The correction reduces oscillations. Illustrative data.
Stochastic gradient noise
A mini-batch gradient can be written g_B = g + ξ. The noise covariance depends on data, model, batch and position. Noise may help exploration, act as implicit regularization or create instability. SGD is a stochastic dynamical system.
SGD noise can help escape flat regions, prevent point convergence, explore a valley, act as implicit regularization or degrade stability. It is not always beneficial.
Each trajectory uses the same base seed offset. Noise can explore or destabilize depending on σ and η. Data is synthetic and reproducible.
Batch size and critical scale
Small batches create noisy updates and more steps per epoch. Large batches improve parallelism and gradient accuracy. Beyond a critical scale, larger batches may give diminishing returns. Linear learning-rate scaling works only in a limited regime. Warmup is often required.
Batch size is also a statistical hyperparameter. The critical scale depends on the model, training phase and gradient statistics.
| Property | Small batch | Large batch |
|---|---|---|
| Gradient noise | High | Low |
| Updates / epoch | Many | Few |
| Hardware parallelism | Low | High |
| Generalization | Often better | Sometimes worse |
| Memory cost | Low | High |
| η ∝ B rule | N/A | Limited regime |
Qualitative summary. Exact values depend on model, task and training phase.
Adam and adaptive preconditioning
Adam maintains first and second moments. The update divides by √v̂_t + ε. Different coordinates receive different effective step sizes. Adam is a diagonal adaptive preconditioner with momentum. It is widely used for transformers and language models.
Each coordinate receives a different effective step η/√v̂. High-variance coordinates get smaller steps. Illustrative data.
AdamW
AdamW decouples weight decay from the adaptive gradient update. This changes the optimization geometry and generally makes regularization easier to tune. It is widely used for transformers and language models.
AdamW is not simply Adam with an L2 penalty. Decoupling weight decay changes the update and the implicit bias.
Adam convergence caveats
Adam is empirically successful but does not possess a universal convergence guarantee. Counterexamples motivated AMSGrad and further theory. Empirical success and mathematical guarantee must remain separate.
Deep loss landscapes
A 2D landscape is usually L(θ₀ + α d₁ + β d₂). The picture depends on the chosen directions and normalization. It is a slice, not the complete geometry.
A PCA projection can artificially create a spiral or loop. Every figure must specify the projection, directions, scale and normalization.
The visible geometry depends entirely on the chosen directions d₁, d₂. No 2D slice summarizes a billion-dimensional space. Illustrative data.
Saddles, plateaus and symmetries
High-dimensional critical points often have saddle directions. Neuron permutations and layer rescalings create families of equivalent parameters. Minima are frequently manifolds or connected regions rather than isolated points.
In high dimensions, saddles are more common than strict minima. The gradient is zero but the Hessian has mixed-sign eigenvalues. Illustrative data.
Overparameterization
Overparameterization creates many interpolating solutions. It can open low-loss paths and simplify optimization. The modern question is often which interpolating solution the optimizer selects.
Why zero loss can be easy to reach
In the interpolation regime, the network fits all training examples. This does not automatically mean pure memorization. The modern question is which interpolating solution the optimizer selects.
Implicit bias
Optimization chooses among many solutions even without explicit regularization. Examples include minimum-norm linear regression and maximum-margin directions for separable logistic classification. The optimizer is therefore part of the model-selection mechanism.
GD from zero on an underdetermined system converges to the minimum-norm solution (left). On separable data, direction converges to the max-margin separator (right). Illustrative data.
Margin and directional convergence
For separable logistic regression, weight norms may diverge while normalized direction converges. Parameter convergence is not always the right object. Function or direction convergence may be more meaningful.
On separable data with logistic loss, ‖w‖ → ∞ but w/‖w‖ → max-margin separator. Illustrative data.
Flatness and sharpness
Flat regions may tolerate parameter perturbations. Sharpness can be measured by Hessian eigenvalues or worst-case neighborhood loss. But sharpness depends on coordinates, scaling and metric.
Sharpness depends on the metric. A geometric notion without a metric choice is incomplete. Specify parameterization, normalization, neighborhood and invariance.
Reparameterization caveat
ReLU layer rescaling can change Hessian sharpness without changing the represented function. Sharpness measures must specify normalization and geometry.
SAM
SAM optimizes min_θ max_{‖ε‖≤ρ} L(θ+ε). It seeks neighborhoods with uniformly low loss. It can improve generalization but costs additional computation and is not universally superior.
Edge of stability
Classical quadratic theory suggests η λ_max < 2. In neural-network training, λ_max often rises near 2/η. Short-term loss oscillates while long-term loss decreases. This edge-of-stability regime shows that the network and curvature coevolve.
On a non-quadratic function, λ_max rises toward 2/η. Loss oscillates short-term but its trend decreases. The network and curvature coevolve.
Synthetic function — not representative of a real network
Learning-rate schedules
Warmup increases the rate gradually. Cosine decay lowers it smoothly. Restarts periodically raise it. Schedules affect stability, noise and implicit bias, not only speed.
Warmup stabilizes early steps. Cosine decay lowers η smoothly. Restarts raise η to explore. Illustrative data.
Gradient clipping and mixed precision
Norm clipping limits exploding updates. Mixed precision uses FP16 or BF16 with higher-precision accumulation. Loss scaling prevents underflow in FP16. Numerical representation is part of practical optimization.
Distributed optimization
Large models distribute gradients, parameters and optimizer states. Communication, synchronization, batch size and fault tolerance matter. Adam stores two moments per parameter. Sharding methods distribute this memory across devices. Optimization becomes a systems problem.
Each device computes a gradient on its mini-batch. Gradients are aggregated (AllReduce). Weights and Adam states are synchronized or sharded. Illustrative diagram.
Muon and matrix-aware optimizers
Muon treats weight matrices as structured objects. A practical version computes matrix momentum, approximately orthogonalizes it with Newton–Schulz iterations, rescales the update, and often adds weight decay.
Recent studies report promising training efficiency on some transformers and language models. Theory is still developing. Muon should be presented as an emerging direction, not a settled replacement for AdamW.
Muon is promising but still recent. Results depend on architecture, scale and protocol. Do not present it as a settled replacement for AdamW.
Honest visualization
A toy quadratic can be shown exactly. A neural-network surface is only a slice. A training path is only a projection. High-dimensional statistics should accompany visual pictures.
A spiral visible at level 1 may be exact. At level 3, it may be a projection artifact. Each figure must indicate its level, directions, normalization and scale.
Interactive laboratory
The following modules allow exploring the dynamics described in this article. All data is synthetic and reproducible by seed. No computation represents a real training run.
| Opt. | Steps | Gradient evals | Final loss |
|---|---|---|---|
| GD | 120 | 120 | 2.86e-4 |
| MOMENTUM | 120 | 120 | 5.57e-6 |
| NESTEROV | 120 | 120 | 7.68e-8 |
| ADAM | 120 | 120 | 2.30e-6 |
| ADAMW | 120 | 120 | 2.77e-6 |
| SAM | 120 | 240 | 8.71e-3 |
| MUON | 120 | 120 | 1.45e-2 |
SAM costs ~2× gradient evaluations. Muon (toy) orthogonalizes the update. Data is synthetic.
Muon: orthogonalized direction (toy 2D, not representative of large models)
Decision boundary
Train loss / Val loss
2→8→8→1 network on synthetic data (two spirals). Data is generated by seed and does not represent real data.
Synthetic data — reproducible by seed
Where is the spiral?
A local second-order system can have complex eigenvalues and spiral toward a fixed point. A projected deep-learning trajectory may also look spiral. But deep learning is not universally spiral descent.
The robust shared ideas are iteration, memory, oscillation and convergence. Rigor means showing the spiral when it is mathematically present and refusing to impose it when it is not.
Conclusion
Neural-network optimization combines local gradients, momentum, noise, preconditioning, overparameterization, schedules, implicit bias, and numerical and distributed systems.
Training may converge to a function, direction, valley, distribution or stable regime. The spiral is only one possible form of this dynamics.
The essential question is not merely where the minimum lies. It is which solution the dynamics select and why that solution generalizes.
References
- [ ]Robbins, H., & Monro, S.. (1951). A Stochastic Approximation Method. The Annals of Mathematical Statistics, 22(3), 400–407. https://doi.org/10.1214/aoms/1177729586
- [ ]Polyak, B. T.. (1964). Some Methods of Speeding Up the Convergence of Iteration Methods. USSR Computational Mathematics and Mathematical Physics, 4(5), 1–17. https://doi.org/10.1016/0041-5553(64)90137-5
- [ ]Nesterov, Y.. (1983). A Method for Solving the Convex Programming Problem with Convergence Rate O(1/k²). Soviet Mathematics Doklady, 27, 372–376
- [ ]Rumelhart, D. E., Hinton, G. E., & Williams, R. J.. (1986). Learning Representations by Back-Propagating Errors. Nature, 323, 533–536. https://doi.org/10.1038/323533a0
- [ ]LeCun, Y., Bottou, L., Orr, G. B., & Müller, K.-R.. (1998). Efficient BackProp. Neural Networks: Tricks of the Trade
- [ ]Bottou, L.. (2010). Large-Scale Machine Learning with Stochastic Gradient Descent. Proceedings of COMPSTAT. https://doi.org/10.1007/978-3-7908-2604-3_16
- [ ]Duchi, J., Hazan, E., & Singer, Y.. (2011). Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. Journal of Machine Learning Research, 12, 2121–2159
- [ ]Tieleman, T., & Hinton, G.. (2012). Lecture 6.5 — RMSProp. Coursera Neural Networks for Machine Learning
- [ ]Kingma, D. P., & Ba, J.. (2015). Adam: A Method for Stochastic Optimization. ICLR. https://arxiv.org/abs/1412.6980
- [ ]Reddi, S. J., Kale, S., & Kumar, S.. (2018). On the Convergence of Adam and Beyond. ICLR. https://openreview.net/forum?id=ryQu7f-RZ
- [ ]Loshchilov, I., & Hutter, F.. (2019). Decoupled Weight Decay Regularization. ICLR. https://openreview.net/forum?id=Bkg6RiCqY7
- [ ]Xie, S., & Li, Z.. (2024). Implicit Bias of AdamW: ℓ∞-Norm Constrained Optimization. Proceedings of ICML, PMLR 235, 54488–54510
- [ ]Dauphin, Y. N., Pascanu, R., Gulcehre, C., Cho, K., Ganguli, S., & Bengio, Y.. (2014). Identifying and Attacking the Saddle Point Problem in High-Dimensional Non-Convex Optimization. NeurIPS
- [ ]Choromanska, A., Henaff, M., Mathieu, M., Arous, G. B., & LeCun, Y.. (2015). The Loss Surfaces of Multilayer Networks. AISTATS, PMLR 38
- [ ]Kawaguchi, K.. (2016). Deep Learning without Poor Local Minima. NeurIPS
- [ ]Li, H., Xu, Z., Taylor, G., Studer, C., & Goldstein, T.. (2018). Visualizing the Loss Landscape of Neural Nets. NeurIPS. https://arxiv.org/abs/1712.09913
- [ ]Garipov, T., Izmailov, P., Podoprikhin, D., Vetrov, D., & Wilson, A. G.. (2018). Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs. NeurIPS
- [ ]Draxler, F., Veschgini, K., Salmhofer, M., & Hamprecht, F.. (2018). Essentially No Barriers in Neural Network Energy Landscape. ICML, PMLR 80
- [ ]Jacot, A., Gabriel, F., & Hongler, C.. (2018). Neural Tangent Kernel: Convergence and Generalization in Neural Networks. NeurIPS
- [ ]Du, S. S., Zhai, X., Poczos, B., & Singh, A.. (2019). Gradient Descent Provably Optimizes Over-Parameterized Neural Networks. ICLR
- [ ]Allen-Zhu, Z., Li, Y., & Song, Z.. (2019). A Convergence Theory for Deep Learning via Over-Parameterization. ICML, PMLR 97
- [ ]Chizat, L., Oyallon, E., & Bach, F.. (2019). On Lazy Training in Differentiable Programming. NeurIPS
- [ ]Soudry, D., Hoffer, E., Nacson, M. S., Gunasekar, S., & Srebro, N.. (2018). The Implicit Bias of Gradient Descent on Separable Data. Journal of Machine Learning Research, 19(70), 1–57
- [ ]Gunasekar, S., Lee, J. D., Soudry, D., & Srebro, N.. (2018). Characterizing Implicit Bias in Terms of Optimization Geometry. ICML, PMLR 80
- [ ]Lyu, K., & Li, J.. (2020). Gradient Descent Maximizes the Margin of Homogeneous Neural Networks. ICLR
- [ ]Zhang, C., Bengio, S., Hardt, M., Recht, B., & Vinyals, O.. (2017). Understanding Deep Learning Requires Rethinking Generalization. ICLR
- [ ]Keskar, N. S. et al.. (2017). On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima. ICLR
- [ ]Dinh, L., Pascanu, R., Bengio, S., & Bengio, Y.. (2017). Sharp Minima Can Generalize for Deep Nets. ICML, PMLR 70
- [ ]Hochreiter, S., & Schmidhuber, J.. (1997). Flat Minima. Neural Computation, 9(1), 1–42. https://doi.org/10.1162/neco.1997.9.1.1
- [ ]Foret, P., Kleiner, A., Mobahi, H., & Neyshabur, B.. (2021). Sharpness-Aware Minimization for Efficiently Improving Generalization. ICLR
- [ ]Izmailov, P., Podoprikhin, D., Garipov, T., Vetrov, D., & Wilson, A. G.. (2018). Averaging Weights Leads to Wider Optima and Better Generalization. UAI
- [ ]Cohen, J. M., Kaur, S., Li, Y., Kolter, J. Z., & Talwalkar, A.. (2021). Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability. ICLR. https://arxiv.org/abs/2103.00065
- [ ]Arora, S., Li, Z., & Panigrahi, A.. (2022). Understanding Gradient Descent on the Edge of Stability in Deep Learning. ICML, PMLR 162
- [ ]Damian, A., Nichani, E., & Lee, J. D.. (2023). Self-Stabilization: The Implicit Bias of Gradient Descent at the Edge of Stability. ICLR
- [ ]Goyal, P. et al.. (2017). Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour. arXiv: 1706.02677. https://arxiv.org/abs/1706.02677
- [ ]Smith, S. L., Kindermans, P.-J., Ying, C., & Le, Q. V.. (2018). Don't Decay the Learning Rate, Increase the Batch Size. ICLR
- [ ]McCandlish, S., Kaplan, J., Amodei, D., & OpenAI Dota Team. (2018). An Empirical Model of Large-Batch Training. arXiv: 1812.06162. https://arxiv.org/abs/1812.06162
- [ ]Loshchilov, I., & Hutter, F.. (2017). SGDR: Stochastic Gradient Descent with Warm Restarts. ICLR
- [ ]Pascanu, R., Mikolov, T., & Bengio, Y.. (2013). On the Difficulty of Training Recurrent Neural Networks. ICML, PMLR 28
- [ ]Micikevicius, P. et al.. (2018). Mixed Precision Training. ICLR
- [ ]Rajbhandari, S., Rasley, J., Ruwase, O., & He, Y.. (2020). ZeRO: Memory Optimizations Toward Training Trillion Parameter Models. SC20. https://doi.org/10.1109/SC41405.2020.00024
- [ ]Jordan, K. et al.. (2024). Muon: An Optimizer for Hidden Layers in Neural Networks. Prépublication / Preprint
- [ ]Liu, J. et al.. (2025). Muon Is Scalable for LLM Training. arXiv: 2502.16982 (prépublication). https://arxiv.org/abs/2502.16982
- [ ]Shah, I. et al.. (2025). Practical Efficiency of Muon for Pretraining. arXiv: 2505.02222 (prépublication). https://arxiv.org/abs/2505.02222
- [ ]Shen, W. et al.. (2025). On the Convergence Analysis of Muon. arXiv: 2505.23737 (prépublication). https://arxiv.org/abs/2505.23737
- [ ]Sato, N., Naganuma, H., & Iiduka, H.. (2025). Convergence Bound and Critical Batch Size of Muon Optimizer. arXiv: 2507.01598 (prépublication). https://arxiv.org/abs/2507.01598
- [ ]de Courcel, A. C. et al.. (2026). Gradient Descent at the Edge of Stability: Free Energy, SDEs, and the Emergence of Flat Minima. arXiv: 2606.05326 (prépublication — vérifier version finale). https://arxiv.org/abs/2606.05326