Local gain adaptation in stochastic gradient descent | Synapse