Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. Machine Learning /
  4. What is Gradient Descent?
Machine Learning

What is Gradient Descent?

Updated September 20, 2026 Read 3 min

Gradient descent is an optimisation algorithm that trains machine learning models by repeatedly adjusting their parameters in the direction that most reduces the error, like walking downhill step by step to reach the lowest point.

Contents 12
  1. 01Key takeaways
  2. 02Gradient descent explained in simple terms
  3. 03How does gradient descent work?
  4. 04The learning rate
  5. 05Types of gradient descent
  6. 06Popular optimisers
  7. 07Common challenges
  8. 08Gradient descent and overfitting
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

Gradient descent is an optimisation algorithm that trains machine learning models by repeatedly adjusting their parameters in the direction that reduces error the fastest. It calculates how the loss function changes with each parameter (the gradient), then takes a small step “downhill”. Repeating this thousands or millions of times moves the model toward low error. It is the engine behind most neural network training.

Key takeaways

  • Gradient descent minimises a loss function by following its slope downward.
  • The learning rate controls step size and is one of the most important settings.
  • Main variants are batch, stochastic and mini-batch gradient descent.
  • Modern optimisers such as Adam build on gradient descent with adaptive step sizes.

Gradient descent explained in simple terms

Imagine standing on a foggy hillside at night, trying to reach the valley. You cannot see the bottom, but you can feel the slope under your feet. So you take a step in the steepest downhill direction, check the slope again, and step again. Eventually you reach low ground. The hill is the loss function, your position is the model’s parameters, and each step is one update.

How does gradient descent work?

  1. Start with initial parameter values, often random.
  2. Predict on training data and calculate the loss.
  3. Compute the gradient: the direction and steepness of the loss for each parameter. In neural networks, backpropagation calculates this efficiently.
  4. Update each parameter: new value = old value − learning rate × gradient.
  5. Repeat until the loss stops improving meaningfully.

The method dates back to the mathematician Augustin-Louis Cauchy, who described it in 1847. It became central to machine learning once combined with backpropagation for neural networks.

The learning rate

Learning rateEffect
Too smallVery slow progress; may look like underfitting
Well chosenSteady, efficient convergence
Too largeOvershoots the minimum; loss jumps around or explodes

Many teams use a learning rate schedule, starting larger and shrinking over time, or a short warm-up period at the start.

Types of gradient descent

TypeData per updateProsCons
BatchEntire datasetStable, accurate stepsSlow and memory-heavy for large data
Stochastic (SGD)One exampleFast, noisy steps can escape poor areasVery noisy updates
Mini-batchSmall batch, often 32–512 examplesBalance of speed and stability; suits GPUsBatch size needs tuning

In practice, “SGD” often refers to mini-batch gradient descent.

Popular optimisers

  • Momentum: keeps moving in consistent directions, smoothing zig-zags.
  • RMSProp: adapts step size for each parameter.
  • Adam (introduced in 2014): combines momentum and adaptive step sizes; a common default for deep learning.
  • AdamW: a variant of Adam with improved weight decay, widely used for training large models.

Common challenges

  • Local minima: low points that are not the lowest overall.
  • Saddle points and plateaus: flat regions where progress stalls.
  • Vanishing and exploding gradients: gradients become tiny or huge in deep networks.
  • Poor feature scaling: features on very different scales slow convergence.

In large neural networks, poor local minima turn out to be less of a problem than once feared; flat regions and saddle points are more common obstacles.

Gradient descent and overfitting

Gradient descent keeps reducing training loss as long as it runs. Left too long, the model can overfit. Early stopping uses the validation set to halt training when validation loss stops improving.

Limitations

Gradient descent needs a loss function that can be differentiated. It does not guarantee the global best solution for complex models. Results depend on the learning rate, initialisation and batch size. And training very large models with it is computationally expensive.

Common Use Cases

01

Training neural networks

Adjust millions or billions of weights in image, speech and language models.

02

Linear and logistic regression

Fit model weights efficiently on large datasets.

03

Recommendation systems

Learn user and item representations from interaction data.

04

Fine-tuning language models

Adapt pre-trained models to specific tasks with small learning rates.

05

Online learning

Update models continuously as new data arrives, one mini-batch at a time.

06

Hyperparameter tuning

Choose learning rates and batch sizes that balance speed and stability.

Frequently Asked Questions

A method that trains models by repeatedly nudging their settings in the direction that most reduces error, like walking downhill to the lowest point.

The size of each step. Too small is slow; too large overshoots and can make training unstable.

Batch uses all data for each update. Stochastic gradient descent uses one example or a small batch, which is faster and noisier.

A popular optimiser, introduced in 2014, that combines momentum with adaptive step sizes for each parameter.

Not always. It can stall in flat regions or settle in local minima, though in large neural networks it usually finds good solutions.

Related Terms

  • Loss Function
  • Learning Rate
  • Backpropagation
  • Adam Optimiser
  • Neural Network
  • Training Dataset

Related AI Terms

What is Hyperparameter Tuning?Hyperparameter tuning is the process of systematically searching for the configuration values that make a model perform best…What is L2 Regularization?L2 regularization adds a penalty equal to the sum of the squared weights, shrinking all weights smoothly towards…What is L1 Regularization?L1 regularization, known as lasso in linear models, adds a penalty equal to the sum of the absolute…What is Cross-Validation in Machine Learning?Cross-validation is a technique that repeatedly splits data into training and validation parts, rotating which part is held…What is Stochastic Gradient Descent (SGD)?Stochastic gradient descent (SGD) updates a model's weights using one example or a small batch at a time…What is the Bias-Variance Tradeoff?The bias-variance tradeoff describes how a model's error splits into bias from overly simple assumptions and variance from…

Contents

  1. 01Key takeaways
  2. 02Gradient descent explained in simple terms
  3. 03How does gradient descent work?
  4. 04The learning rate
  5. 05Types of gradient descent
  6. 06Popular optimisers
  7. 07Common challenges
  8. 08Gradient descent and overfitting
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

AI Topic

  • Machine Learning

Related Terms

  • What is Hyperparameter Tuning?
  • What is L2 Regularization?
  • What is L1 Regularization?
  • What is Cross-Validation in Machine Learning?
  • What is Stochastic Gradient Descent (SGD)?
  • What is the Bias-Variance Tradeoff?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 20, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}