Mistura do ADAM e do SGD: um Método de Otimização Combinado
Mixing ADAM and SGD: a Combined Optimization Method
Mixing ADAM and SGD: a Combined Optimization Method
@misc{landro2020mixing,
title = {Mixing ADAM and SGD: a Combined Optimization Method},
author = {Nicola Landro and Ignazio Gallo and Riccardo La Grassa},
year = {2020},
eprint = {2011.08042},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2011.08042}
}
Landro, N., Gallo, I., & Grassa, R. L. (2020). Mixing ADAM and SGD: a Combined Optimization Method [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.08042
LANDRO N, GALLO I, GRASSA RL. Mixing ADAM and SGD: a Combined Optimization Method[EB/OL]. (2020-11-16)[2026-11-30]. https://arxiv.org/abs/2011.08042.
Resumo
Os métodos de otimização (otimizadores) recebem atenção especial para o treinamento eficiente de redes neurais no campo do aprendizado profundo. Na literatura, existem muitos trabalhos que comparam modelos neurais treinados com o uso de diferentes otimizadores. Cada trabalho demonstra que, para um problema específico, um otimizador é melhor que os outros, mas à medida que o problema muda, esse tipo de resultado deixa de ser válido e temos que começar do zero. Neste trabalho, propomos o uso da combinação de dois otimizadores muito diferentes, mas quando usados simultaneamente, eles podem superar o desempenho dos otimizadores individuais em problemas muito diversos. Propomos um novo otimizador chamado MAS (Mixing ADAM and SGD), que integra SGD e ADAM simultaneamente ponderando as contribuições de ambos através da atribuição de pesos constantes. Em vez de tentar melhorar o SGD ou o ADAM, exploramos ambos ao mesmo tempo, tomando o melhor de cada um. Realizamos vários experimentos em classificação de imagens e documentos de texto, utilizando diversas CNNs, e demonstramos experimentalmente que o otimizador MAS proposto produz melhor desempenho do que os otimizadores individuais SGD ou ADAM. O código-fonte e todos os resultados dos experimentos estão disponíveis online no seguinte link: https://gitlab.com/nicolalandro/multi_optimizer
Optimization methods (optimizers) get special attention for the efficient training of neural networks in the field of deep learning. In literature there are many papers that compare neural models trained with the use of different optimizers. Each paper demonstrates that for a particular problem an optimizer is better than the others but as the problem changes this type of result is no longer valid and we have to start from scratch. In our paper we propose to use the combination of two very different optimizers but when used simultaneously they can overcome the performances of the single optimizers in very different problems. We propose a new optimizer called MAS (Mixing ADAM and SGD) that integrates SGD and ADAM simultaneously by weighing the contributions of both through the assignment of constant weights. Rather than trying to improve SGD or ADAM we exploit both at the same time by taking the best of both. We have conducted several experiments on images and text document classification, using various CNNs, and we demonstrated by experiments that the proposed MAS optimizer produces better performance than the single SGD or ADAM optimizers. The source code and all the results of the experiments are available online at the following link https://gitlab.com/nicolalandro/multi_optimizer