Gradient Descent

Category: Foundations of ML/AI

An iterative optimization algorithm that minimizes a loss function by updating parameters in the direction opposite to the gradient.

Full Explanation

Gradient descent is the foundational optimization algorithm used to train machine learning models. It computes the gradient of the loss function with respect to each parameter and updates parameters in the direction that reduces the loss. The learning rate controls the step size of each update. In its vanilla form (batch gradient descent), the gradient is computed over the entire training dataset before each update, which can be computationally expensive. The algorithm converges to a local minimum for non-convex functions and to the global minimum for convex functions. Gradient descent forms the basis for nearly all neural network training. Variants like stochastic gradient descent and mini-batch gradient descent improve efficiency by computing gradients on subsets of data.

Related Terms

More in Foundations of ML/AI

Explore More