October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

AI Gradient Descent: What It Is and How It Updates a Model

AI gradient descent reduces a chosen training objective by repeatedly adjusting model parameters in the direction indicated by the gradient.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

AI gradient descent is an optimization method that repeatedly adjusts a model’s parameters to reduce a chosen objective, usually its training loss. It uses the objective’s gradient to decide which way to move the parameters, while a learning rate sets the size of each update.

What gradient descent means in AI

A machine-learning model has parameters—such as weights—that affect its predictions. During training, an objective function assigns a value to the model’s current performance. Gradient descent tries to minimize that selected objective by changing the parameters.

As an Amazon Associate I earn from qualifying purchases.

For parameters θ and objective J(θ), the standard update is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

θ ← θ − α∇J(θ)

Here, ∇J(θ) is the gradient: it describes how the objective changes as the parameters change. The gradient points toward local increase, so subtracting it moves in the direction of local decrease. The learning rate α, also called the step size, scales how far the update moves. Stanford’s CS229 lecture notes present this cost-minimization framing and update rule.

#1 Best Overall
Sale
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
  • Use scikit-learn to track an example ML project end to end
  • Explore several models, including support vector machines, decision trees, random forests, and ensemble methods
  • Exploit unsupervised learning techniques such as dimensionality reduction, clustering, and anomaly detection
  • Dive into neural net architectures, including convolutional nets, recurrent nets, generative adversarial networks, autoencoders, diffusion models, and transformers
  • Use TensorFlow and Keras to build and train neural nets for computer vision, natural language processing, generative models, and deep reinforcement learning

How the training loop works

  1. Make predictions: Use the current model parameters on training examples.
  2. Calculate loss: Evaluate the chosen objective using the predictions and the target values.
  3. Compute gradients: Find how the objective changes with respect to the parameters.
  4. Update parameters: Subtract the learning rate multiplied by each parameter’s gradient.
  5. Repeat and monitor: Continue the process, checking whether the objective is improving and whether progress is flattening.

Google’s Machine Learning Crash Course explanation of gradient descent illustrates this loop with linear regression. It is an accessible example, not a claim that every model has the same objective or loss-curve shape.

What the learning rate changes

The learning rate controls the size of each parameter step. If it is too small, the objective may decrease slowly. If it is too large, updates may overshoot a lower value or oscillate, making training unstable or preventing it from settling. A loss curve can help show whether progress is continuing or flattening, but a particular number of updates does not guarantee that the model has reached a global minimum. The outcome depends on the objective’s geometry, the update method, and the chosen hyperparameters.

How gradient descent differs from backpropagation

These terms describe connected but distinct parts of neural-network training. Backpropagation applies the chain rule to compute how the loss changes with respect to network weights. Gradient descent (or another optimizer) uses those gradients to update the weights. Stanford’s CS229 Deep Learning Cheatsheet summarizes this relationship and the role of the learning rate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Batch, stochastic, and mini-batch updates

The variants differ in how many examples contribute to one update. Here, “batch gradient descent” means using the full training set for an update; some materials use “batch” more broadly for any selected group of examples.

Method Examples used per update Typical trade-off
Batch gradient descent The full training set Uses a gradient based on all training examples, but each update requires processing more data.
Stochastic gradient descent (SGD) One example Each update uses less data, but its direction is noisier.
Mini-batch gradient descent A subset of examples Balances the amount of computation per update with the noise of single-example updates; widely used in neural-network training.

The choice is a trade-off between the data used per update, computational cost, gradient noise, and memory and throughput needs. Stanford’s CS229 notes discuss gradient descent and SGD, while its deep-learning cheatsheet covers neural-network updates.

What gradient descent does—and does not do

  • It changes model parameters to minimize the objective that training has selected.
  • It does not select the loss function or change the training data.
  • It does not guarantee that training will find the objective’s global minimum.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.