CoChat

On the Implicit Bias of Adam

Cattaneo, Matias D., Klusowski, Jason M., Shigida, Boris · 2023 · arXiv
PreprintCited by 1

The DOI matches its DataCite record; 4 of the 4 references it cites were found in a registry or an index.

Abstract

In previous literature, backward error analysis was used to find ordinary differential equations (ODEs) approximating the gradient descent trajectory. It was found that finite step sizes implicitly regularize solutions because terms appearing in the ODEs penalize the two-norm of the loss gradients. We prove that the existence of similar implicit regularization in RMSProp and Adam depends on their hyperparameters and the training stage, but with a different "norm" involved: the corresponding ODE terms either penalize the (perturbed) one-norm of the loss gradients or, conversely, impede its reduction (the latter case being typical). We also conduct numerical experiments and discuss how the proven facts can influence generalization.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2309.00079

Cites

4 of 4 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 55

  1. Andriushchenko, M., Croce, F., Müller, M., Hein, M., and Flammarion, N. A modern look at the relationship be- tween sharpness and generalization. In Proceedings of the 40th International Conference on Machine Learning, ICML'23. JMLR.org, 2023.
  2. Balles, L., Pedregosa, F., and Roux, N. L. The geometry of sign gradient descent. arXiv preprint arXiv:2002.08056, 2020. · arXiv
  3. Barakat, A. and Bianchi, P. Convergence and dynamical behavior of the adam algorithm for nonconvex stochastic optimization. SIAM Journal on Optimization, 31(1):244- 274, 2021.
  4. Barrett, D. and Dherin, B. Implicit gradient regularization. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum? id=3q5IqUrkcF.
  5. Beneventano, P. On the trajectories of sgd without replace- ment. arXiv preprint arXiv:2312.16143, 2023. · arXiv
  6. Beyer, L., Zhai, X., and Kolesnikov, A. Better plain vit base- lines for imagenet-1k. arXiv preprint arXiv:2205.01580, 2022. · arXiv
  7. Chen, J., Zhou, D., Tang, Y., Yang, Z., Cao, Y., and Gu, Q. Closing the generalization gap of adaptive gradi- ent methods in training deep neural networks. arXiv preprint arXiv:1806.06763, 2018. URL https:// arxiv.org/pdf/1806.06763. · arXiv
  8. Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, G., Roberts, A., Barham, P., Chung, H. W., Sutton, C., Gehrmann, S., et al. Palm: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022. · arXiv
  9. Cohen, J., Kaur, S., Li, Y., Kolter, J. Z., and Talwalkar, A. Gradient descent on neural networks typically oc- curs at the edge of stability. In International Confer- ence on Learning Representations, 2021. URL https: //openreview.net/forum?id=jh-rTtvkGeM.
  10. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. · arXiv
  11. Ernst Hairer, C. L. and Wanner, G. Geometric numerical integration. Springer-Verlag, Berlin, 2 edition, 2006. ISBN 3-540-30663-3.
  12. Even, M., Pesme, S., Gunasekar, S., and Flammarion, N. (s) gd over diagonal linear networks: Implicit regularisa- tion, large stepsizes and edge of stability. arXiv preprint arXiv:2302.08982, 2023. · arXiv
  13. Farazmand, M. Multiscale analysis of accelerated gradient methods. SIAM Journal on Optimization, 30(3):2337- 2354, 2020.
  14. Foret, P., Kleiner, A., Mobahi, H., and Neyshabur, B. Sharpness-aware minimization for efficiently improving generalization. In International Conference on Learning Representations, 2021. URL https://openreview. net/forum?id=6Tm1mposlrM.
  15. Franc ¸a, G., Jordan, M. I., and Vidal, R. On dissipative symplectic integration with applications to gradient-based optimization. Journal of Statistical Mechanics: Theory and Experiment, 2021(4):043402, 2021.
  16. Ghosh, A., Lyu, H., Zhang, X., and Wang, R. Implicit regu- larization in heavy-ball momentum accelerated stochastic gradient descent. In The Eleventh International Confer- ence on Learning Representations, 2023. URL https: //openreview.net/forum?id=ZzdBhtEH9yB.
  17. Granziol, D. Flatness is a false friend. arXiv preprint arXiv:2006.09091, 2020. · arXiv
  18. Gunasekar, S., Lee, J., Soudry, D., and Srebro, N. Charac- terizing implicit bias in terms of optimization geometry. In International Conference on Machine Learning, pp. 1832-1841. PMLR, 2018a.
  19. Gunasekar, S., Lee, J. D., Soudry, D., and Srebro, N. Im- plicit bias of gradient descent on linear convolutional networks. Advances in neural information processing systems, 31, 2018b.
  20. Hoffer, E., Hubara, I., and Soudry, D. Train longer, general- ize better: closing the generalization gap in large batch training of neural networks. Advances in neural informa- tion processing systems, 30, 2017.
  21. Ji, Z. and Telgarsky, M. Gradient descent aligns the layers of deep linear networks. arXiv preprint arXiv:1810.02032, 2018a. · arXiv
  22. Ji, Z. and Telgarsky, M. Risk and parameter convergence of logistic regression. arXiv preprint arXiv:1803.07300, 2018b. · arXiv
  23. Ji, Z. and Telgarsky, M. The implicit bias of gradient descent on nonseparable data. In Conference on Learning Theory, pp. 1772-1798. PMLR, 2019.
  24. Ji, Z. and Telgarsky, M. Directional convergence and align- ment in deep learning. Advances in Neural Information Processing Systems, 33:17176-17186, 2020.
  25. Jiang, K., Malik, D., and Li, Y. How does adaptive opti- mization impact local neural network geometry? arXiv preprint arXiv:2211.02254, 2022. · arXiv
  26. Keskar, N. S. and Socher, R. Improving generalization per- formance by switching from adam to sgd. arXiv preprint arXiv:1712.07628, 2017. · arXiv
  27. Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
  28. Kovachki, N. B. and Stuart, A. M. Continuous time analysis of momentum methods. Journal of Machine Learning Research, 22(17):1-40, 2021.
  29. Kumar, A., Shen, R., Bubeck, S., and Gunasekar, S. How to fine-tune vision models with sgd. arXiv preprint arXiv:2211.09359, 2022. · arXiv
  30. Kunin, D., Sagastuy-Brena, J., Ganguli, S., Yamins, D. L., and Tanaka, H. Neural mechanics: Symmetry and bro- ken conservation laws in deep learning dynamics. arXiv preprint arXiv:2012.04728, 2020. · arXiv
  31. Lee, C.-Y., Xie, S., Gallagher, P., Zhang, Z., and Tu, Z. Deeply-supervised nets. In Artificial intelligence and statistics, pp. 562-570. Pmlr, 2015.
  32. Li, Q., Tai, C., and E, W. Stochastic modified equations and adaptive stochastic gradient algorithms. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th Inter- national Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2101- 2110. PMLR, 8 2017. URL https://proceedings. mlr.press/v70/li17f.html.
  33. Lyu, K. and Li, J. Gradient descent maximizes the mar- gin of homogeneous neural networks. arXiv preprint arXiv:1906.05890, 2019. · arXiv
  34. Ma, C., Wu, L., and Weinan, E. A qualitative study of the dynamic behavior for adaptive gradient algorithms. In Mathematical and Scientific Machine Learning, pp. 671-692. PMLR, 2022.
  35. Malladi, S., Lyu, K., Panigrahi, A., and Arora, S. On the sdes and scaling rules for adaptive gradient algorithms. Advances in Neural Information Processing Systems, 35: 7697-7711, 2022.
  36. Miyagawa, T. Toward equation of motion for deep neu- ral networks: Continuous-time gradient descent and dis- cretization error analysis. In Oh, A. H., Agarwal, A., Belgrave, D., and Cho, K. (eds.), Advances in Neural Information Processing Systems, 2022. URL https: //openreview.net/forum?id=qq84D17BPu.
  37. Molybog, I., Albert, P., Chen, M., DeVito, Z., Esiobu, D., Goyal, N., Koura, P. S., Narang, S., Poulton, A., Silva, R., et al. A theory on adam instability in large-scale machine learning. arXiv preprint arXiv:2304.09871, 2023. · arXiv
  38. Nacson, M. S., Gunasekar, S., Lee, J., Srebro, N., and Soudry, D. Lexicographic and depth-sensitive margins in homogeneous and non-homogeneous deep models. In International Conference on Machine Learning, pp. 4683- 4692. PMLR, 2019a.
  39. Nacson, M. S., Lee, J., Gunasekar, S., Savarese, P. H. P., Srebro, N., and Soudry, D. Convergence of gradient descent on separable data. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 3420-3428. PMLR, 2019b.
  40. Nacson, M. S., Srebro, N., and Soudry, D. Stochastic gradi- ent descent on separable data: Exact convergence with a fixed learning rate. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 3051-3059.
  41. PMLR, 2019c.
  42. Qian, Q. and Qian, X. The implicit bias of adagrad on sepa- rable data. Advances in Neural Information Processing Systems, 32, 2019.
  43. Rosca, M. C., Wu, Y., Dherin, B., and Barrett, D. Discretiza- tion drift in two-player games. In International Con- ference on Machine Learning, pp. 9064-9074. PMLR, 2021.
  44. Smith, S. L., Dherin, B., Barrett, D., and De, S. On the origin of implicit regularization in stochastic gradient descent. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum? id=rq_Qr0c1Hyo.
  45. Soudry, D., Hoffer, E., Nacson, M. S., Gunasekar, S., and Srebro, N. The implicit bias of gradient descent on sepa- rable data. The Journal of Machine Learning Research, 19(1):2822-2878, 2018.
  46. Tieleman, T., Hinton, G., et al. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural networks for machine learning, 4 (2):26-31, 2012.
  47. Wang, B., Meng, Q., Chen, W., and Liu, T.-Y. The im- plicit bias for adaptive optimization algorithms on homo- geneous neural networks. In Meila, M. and Zhang, T. (eds.), Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Ma- chine Learning Research, pp. 10849-10858. PMLR, 7 2021. URL https://proceedings.mlr.press/ v139/wang21q.html.
  48. Wang, B., Meng, Q., Zhang, H., Sun, R., Chen, W., Ma, Z.- M., and Liu, T.-Y. Does momentum change the implicit regularization on separable data? Advances in Neural Information Processing Systems, 35:26764-26776, 2022.
  49. Wilson, A. C., Roelofs, R., Stern, M., Srebro, N., and Recht, B. The marginal value of adaptive gradient methods in machine learning. Advances in neural information processing systems, 30, 2017.
  50. Woodworth, B., Gunasekar, S., Lee, J. D., Moroshko, E., Savarese, P., Golan, I., Soudry, D., and Srebro, N. Ker- nel and rich regimes in overparametrized models. In Conference on Learning Theory, pp. 3635-3673. PMLR, 2020.
  51. Xie, Z., Wang, X., Zhang, H., Sato, I., and Sugiyama, M. Adaptive inertia: Disentangling the effects of adaptive learning rate and momentum. In International conference on machine learning, pp. 24430-24459. PMLR, 2022.
  52. Zhang, J., Karimireddy, S. P., Veit, A., Kim, S., Reddi, S., Kumar, S., and Sra, S. Why are adaptive methods good for attention models? Advances in Neural Information Processing Systems, 33:15383-15393, 2020.
  53. Zhao, Y., Zhang, H., and Hu, X. Penalizing gradient norm for efficiently improving generalization in deep learning. In International Conference on Machine Learning, pp. 26982-26992.
  54. PMLR, 2022.
  55. Zhou, P., Feng, J., Ma, C., Xiong, C., Hoi, S. C. H., et al. Towards theoretically understanding why sgd generalizes better than adam in deep learning. Advances in Neural Information Processing Systems, 33:21285-21296, 2020.

Cited by

See all 1

Metadata

Authors
Cattaneo, M. D., Klusowski, J. M., & Shigida, B.
Venue
arXiv
Publisher
arXiv
Published
2023
References
4
Type
Preprint

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.