Implementation of Parallel Optimization Algorithms for NLP: Mini-batch SGD, SGD with Momentum, AdaGrad Adam
Abstract
With the rapid development of machine learning technology, optimization algorithms and optimizers have become key to the development of related technologies contemporarily. Models need the help of optimizers to meet other performance indicators while saving computing resources. This research focuses on comparisons between optimizers, in the context of text sentiment classification tasks. The optimizers mainly compared in this article are mini batch SGD, momentum SGD, Adagrad and Adam. Through comparative experiments, it was found that SGD and its variants have a high dependence on the initial learning rate setting, while the performance of Adagrad and Adam is relatively balanced. Although the training time of Adagrad is shorter than that of Adam, its principal formula has flaws, which are not reflected in this task. The conclusions drawn in this article through comparison can point out the advantages and disadvantages of each optimizer, and can help realize better optimizers in subsequent research.
References
- Turing A M 1950 Mind Mind vol 59(236) pp 433-460
- Samuel A L 1959 Some studies in machine learning using the game of checkers IBM Journal of research and development vol 3(3) pp 210-229
- Cover T and Hart P 1967 Nearest neighbor pattern classification IEEE transactions on information theory vol 13(1) pp 21-27
- Quinlan J R 1986 Induction of decision trees Machine learning vol 1 pp 81-106
- LeCun Y and Bengio Y 1995 Convolutional networks for images speech and time series The handbook of brain theory and neural networks vol 3361(10) p 1995
- Cortes C and Vapnik V 1995 Support vector machine Machine Learning vol 20(3) pp 273-297
- Breiman L 2001 Random forests Machine learning vol 45 pp 5-32
- Hinton G E, Osindero S and Teh Y W 2006 A fast learning algorithm for deep belief nets Neural computation vol 18(7) pp 1527-1554
- Vaswani A 2017 Attention is all you need Advances in Neural Information Processing Systems
- Robbins H and Monro S 1951 A stochastic approximation method The annals of mathematical statistics pp 400-407
- Qian N 1999 On the momentum term in gradient descent learning algorithms Neural networks vol 12(1) pp 145-151
- Nesterov Y 2019 A method of solving a convex programming problem with convergence rate 𝑂 (1/𝑘2) Proceedings of the USSR Academy of Sciences vol 269 p 3
- Duchi J, Hazan E and Singer Y 2011 Adaptive subgradient methods for online learning and stochastic optimization Journal of machine learning research vol 12 p 7
- Kingma D P 2014 Adam: A method for stochastic optimization arXiv preprint arXiv:14126980
- Ruder S 2016 An overview of gradient descent optimization algorithms arXiv preprint arXiv:160904747