buf = momentum · buf + grad (on the first step, buf = grad) param = param − lr · buf