Singular-limit analysis of gradient descent with noise injection