tokens: In the context of large - scale empirical risk minimization problems , the gradient can not be calculated at every iteration , and instead stochastic approximations of the gradient are used , as in the stochastic gradient descent ( SGD ) method and its variants .