Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

What is the difference between SGD and GD?

Asked by Coleman Garvin Jul 2, 2024 1.8K views 10 answers
Share

About this question

 I am currently engaged in a particular task that is related to training a deep-learning model on a dataset with millions of samples. What are the advantages and also the disadvantages of using stochastic gradient descent versus traditional gradient descent in terms of convergence speed and computational Effie for this particular scenario? 

Your answer

10 Answers

Sachina Nakazawa Latest answer

Answered on Jul 6, 2026

This is a great question that many deep learning practitioners grapple with! For your scenario with millions of samples, I'd definitely lean towards stochastic gradient descent (SGD). The main advantage is its ability to make quicker progress with each update, especially early on, since it doesn't need to compute the gradient over the entire dataset for every step. This means faster convergence in terms of wall-clock time, even if it has a noisier path to the minimum. The disadvantage, however, is that this noise can make it harder to settle into a precise minimum, and you might experience more oscillations. Plus, finding the right learning rate for SGD can be like trying to find the perfect Slope Unblocked without a guide – it requires some careful tuning!



Was this helpful?

Robin Hadly

Answered on Jun 27, 2026

Monetization plays a significant role, with many visual items and characters tied to paid currency. The reason behind the popularity of CapCut Pro is the Unmatched & Unlimited features of this app. Capcut Pro apk download | Free Fire Download


Was this helpful?

Robin Hadly

Answered on Jun 16, 2026

PayPal is a pioneering digital payment platform that has transformed the way we engage in online financial activities. Want to make instant payments in one tap? Cash app lets you do that without any hassle. Paypal Login | Cash App Login


Was this helpful?

Danielle Key

Answered on Oct 20, 2025

Many titles featured on 2games are built around clever puzzle mechanics that challenge players to think creatively under pressure. Instead of overwhelming tutorials, the games push players to learn by experimenting, replaying, and refining their techniques

Was this helpful?

Aaronmarquardt

Answered on Apr 8, 2025

Great explanation of GD vs SGD! For massive datasets, SGD's faster updates are key. Think of GD as carefully planning each step, while SGD is more like quickly navigating a terrain, perhaps with a few stumbles. The randomness is akin to unexpected slopes in the Slope Game - challenging but potentially leading to faster progress. Understanding these trade-offs is crucial for effective model training.

Was this helpful?

Lily Smith

Answered on Nov 30, 2024

Gone are the days of printing out paper maps or relying on clunky GPS devices. With mapquest directions, all the information you need is right at your fingertips.

Was this helpful?

Asher Magnus

Answered on Nov 26, 2024

Thanks for sharing, I agree with this point of view! SGD is sprunki a great choice when working with huge datasets. 

Was this helpful?

Pedroahmed

Answered on Oct 9, 2024

We amazed using the evaluation a person designed to get this to specific submit amazing. Fantastic exercise!

guest posts service


Was this helpful?

Amora Pottera

Answered on Aug 8, 2024

This is an excellent explanation so that anyone can understand slope with so much granular level of detail. But you did not speak much about when to use SGD although you clarified better on GD and Mini Batch SGD.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.