Skip to content

Arithmetic Simplicity in Stochastic Gradient Methods

Bin Fu, Pengfei Gu, Jose Nunez, Fabian Vazquez

cs.LG

Abstract

A gradient descent method is arithmetically simple if the operations are limited to +,−,×+,-, \times, and division x/2tx/2^t with integer tt. An arthmetically simple gradient method is easy to implement in chip design. We show how to transform AdaGrad, Adam, and AdamW into arithmetically simple. AdamW is based on the recursion xt+1=(1−λη)xt−ηsmtx_{t+1}=(1-λη)x_t-\frac{η}{s}m_t and Adam is the special case of AdamW with λ=0λ=0. We transform them into a static case with s=S(T)s=S(T), where TT is the number of iterations, and S(T)S(T) is a fixed function. The convergence analysis is given for a static Adam, which is also arithmetically simple.

Create a lesson