Gradient Descent Optimization: Learning Rate (Alpha), Local Minima Notes in Hindi & English : ग्रेडिएंट डिसेंट: लर्निंग रेट (Alpha) और कॉस्ट फंक्शन न्यूनीकरण और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Gradient Descent Optimization: Learning Rate (Alpha), Local Minima (ग्रेडिएंट डिसेंट: लर्निंग रेट (Alpha) और कॉस्ट फंक्शन न्यूनीकरण) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Gradient Descent is a first-order iterative optimization algorithm that updates model parameters opposite to the cost gradient via θ := θ − α ∇J(θ) until reaching a minimum. Its convergence speed and stability depend critically on the learning rate α, batch sampling strategy (Batch, SGD, Mini-Batch), feature scaling, and avoiding saddle points or suboptimal local minima.

अध्याय सार: ग्रेडिएंट डिसेंट एक फर्स्ट-ऑर्डर पुनरावृत्त ऑप्टिमाइजेशन एल्गोरिदम है जो कॉस्ट फंक्शन के ग्रेडिएंट की विपरीत दिशा में θ := θ − α ∇J(θ) द्वारा पैरामीटर अपडेट कर न्यूनतम त्रुटि खोजता है। इसकी गति और स्थिरता लर्निंग रेट α, बैच रणनीति (Batch, SGD, Mini-Batch), फीचर स्केलिंग तथा लोकल मिनिमा या सैडल पॉइंट की चुनौतियों पर निर्भर करती है।

Gradient Descent Optimization: Learning Rate (Alpha), Local Minima: Detailed Notes & Architecture (ग्रेडिएंट डिसेंट: लर्निंग रेट (Alpha) और कॉस्ट फंक्शन न्यूनीकरण)

1. Update Rule & Mathematical Intuition (अपडेट नियम और गणितीय सिद्धांत)

[EN] At any point θ on a differentiable cost surface J(θ), the gradient vector ∇_θ J(θ) = [∂J/∂θ₀, ..., ∂J/∂θₚ]ᵀ points in the direction of steepest ascent. Moving in the negative gradient direction produces the parameter update rule θₜ₊₁ = θₜ − α ∇_θ J(θₜ), where α > 0 is the step size (learning rate). When the derivative is positive (uphill slope to the right), subtracting α·∇J shifts θ left toward the valley; when negative, θ moves right. At a stationary point (minimum, maximum, or saddle point), ∇_θ J(θ) = 0, causing parameter updates to halt naturally.

[HI] किसी अवकलनीय कॉस्ट सतह J(θ) पर ग्रेडिएंट वेक्टर ∇_θ J(θ) सर्वाधिक तीव्र ढलान ऊपर (steepest ascent) की दिशा दर्शाता है। इसलिए कॉस्ट घटाने के लिए विपरीत दिशा में कदम बढ़ाते हुए नियम θₜ₊₁ = θₜ − α ∇_θ J(θₜ) लगाया जाता है, जहाँ α > 0 लर्निंग रेट (कदम का आकार) है। जब ढलान धनात्मक होती है तो θ बाईं ओर घटता है और जब ढलान ऋणात्मक होती है तो θ दाईं ओर बढ़ता है। स्टेशनरी पॉइंट (मिनिमा या सैडल पॉइंट) पर पहुंचने पर ग्रेडिएंट ∇J = 0 हो जाता है और अपडेट रुक जाते हैं।

2. Learning Rate (α) Dynamics & Feature Scaling (लर्निंग रेट (α) का प्रभाव और फीचर स्केलिंग)

[EN] Choosing the learning rate α is crucial: an overly tiny α requires thousands of epochs to crawl toward the minimum, while an excessively large α overshoots the valley, oscillating wildly or diverging to infinity (NaN). Adaptive schedules—such as step decay, cosine annealing, or warm restarts—start with larger exploration steps and shrink α near convergence. Additionally, unscaled features (e.g., x₁ ∈ [0, 1] and x₂ ∈ [0, 100000]) stretch level contours into narrow elliptical canyons, forcing zig-zag oscillations unless standardized to zero mean and unit variance. Proper feature standardization turns elongated ellipses into nearly circular bowls where gradients point straight at the minimum.

[HI] लर्निंग रेट α का सही चुनाव अत्यंत महत्वपूर्ण है: बहुत छोटा α कन्वर्जेंस को बेहद धीमा कर देता है, जबकि बहुत बड़ा α न्यूनतम बिंदु को पार कर दोलन (oscillation) या डाइवर्जेंस (NaN) पैदा करता है। लर्निंग रेट शेड्यूल (जैसे स्टेप डिके या कोसाइन एनीलिंग) शुरुआत में बड़े कदम लेकर अंत में α को धीरे-धीरे कम करते हैं। यदि फीचर्स अलग-अलग स्केल पर हों, तो कॉस्ट सतह संकीर्ण दीर्घवृत्त (elliptical canyon) बन जाती है जिससे ग्रेडिएंट डिसेंट टेढ़े-मेढ़े ज़िग-ज़ैग पथ पर भटकता है। स्टैंडर्डाइजेशन से यह सतह गोलाकार कटोरे जैसी बन जाती है और ग्रेडिएंट सीधे न्यूनतम बिंदु की ओर अग्रसर होता है।

3. Batch, Stochastic (SGD), and Mini-Batch Variants (बैच, स्टोकैस्टिक (SGD) और मिनी-बैच ग्रेडिएंट डिसेंट)

[EN] Batch Gradient Descent computes the exact gradient over all N training rows per update, yielding smooth deterministic trajectories but prohibitive O(N) latency on massive datasets. Stochastic Gradient Descent (SGD) updates parameters using a single randomly sampled row per step, making each iteration O(1) and adding beneficial gradient noise that helps jump out of shallow traps, at the cost of noisy convergence. Mini-Batch Gradient Descent balances both worlds by averaging gradients over b samples (typically b = 32, 64, 128, or 256), leveraging vectorized GPU matrix parallelism while keeping noise manageable. Advanced adaptive optimizers—Momentum, RMSProp, and Adam—augment mini-batch updates with exponential moving averages of past gradients and squared gradients.

[HI] बैच ग्रेडिएंट डिसेंट हर अपडेट में पूरे N डेटा बिंदुओं का सटीक ग्रेडिएंट निकालता है; इसका पथ स्मूथ होता है पर बड़े डेटासेट पर यह बहुत धीमा पड़ता है। स्टोकैस्टिक ग्रेडिएंट डिसेंट (SGD) एक समय में केवल 1 रैंडम सैंपल से अपडेट करता है, जिससे गति बढ़ती है और इसका शोर उथले लोकल मिनिमा से बाहर निकलने में मदद करता है। मिनी-बैच ग्रेडिएंट डिसेंट 32 से 256 सैंपल्स के समूह (mini-batch) का उपयोग कर GPU वेक्टराइजेशन और स्थिर कन्वर्जेंस दोनों का लाभ देता है। आधुनिक ऑप्टिमाइज़र जैसे Momentum, RMSProp और Adam पिछले ग्रेडिएंट्स का मूविंग एवरेज रखकर रफ्तार और स्थिरता और बढ़ाते हैं।

4. Convex Surfaces, Local Minima & Saddle Points (कॉन्वेक्स सतह, लोकल मिनिमा और सैडल पॉइंट्स)

[EN] Convex loss functions (like Linear Regression MSE or Logistic Regression Log Loss) possess a unique global minimum, so properly tuned Gradient Descent always reaches the optimal cost. Conversely, non-convex surfaces found in deep neural networks contain numerous local minima, flat plateaus, and high-dimensional saddle points where gradient ∇J = 0 yet the Hessian has both positive and negative eigenvalues. In high dimensions, saddle points vastly outnumber true local minima because all directions must curve upward simultaneously for a genuine minimum. Techniques like Momentum, Adam, Xavier/He weight initialization, and learning-rate warmup help escape saddle plateaus effectively.

[HI] उत्तल (Convex) कॉस्ट फंक्शन (जैसे लीनियर और लॉजिस्टिक रिग्रेशन) में केवल एक ग्लोबल मिनिमा होता है, जहाँ सही α से मॉडल सदैव सर्वोत्तम समाधान तक पहुंचता है। इसके विपरीत नॉन-कॉन्वेक्स सतहों (जैसे डीप न्यूरल नेटवर्क) में कई लोकल मिनिमा, सपाट पठार और सैडल पॉइंट्स होते हैं जहाँ ग्रेडिएंट शून्य होने के बावजूद कुछ दिशाओं में ढलान नीचे की ओर होती है। उच्च-आयामी स्पेस में लोकल मिनिमा की तुलना में सैडल पॉइंट्स की संख्या कहीं अधिक होती है। इनसे बाहर निकलने के लिए Momentum, Adam ऑप्टिमाइज़र, सही वेट इनिशियलाइजेशन और स्टोकैस्टिक शोर का उपयोग किया जाता है।

Syntax, Formula & Technical Example (Gradient Descent Optimization: Learning Rate (Alpha), Local Minima)

# 1D Gradient Descent trace for J(theta) = (theta - 3)^2
theta = 0.0
alpha = 0.25
for step in range(1, 6):
    grad = 2.0 * (theta - 3.0)       # dJ/d(theta)
    theta = theta - alpha * grad     # Gradient descent update
    cost = (theta - 3.0) ** 2
    print(f"Step {step}: theta={theta:.4f}, grad={grad:.4f}, J={cost:.6f}")
# Converges smoothly toward theta* = 3.0 where grad = 0

Gradient Descent Optimization: Learning Rate (Alpha), Local Minima Quick Reference & Comparison Table

GD Variant / TermSamples per Update & BehaviorKey Trade-off
Batch Gradient DescentAll N samples; exact gradient and smooth monotonic descentHigh memory & slow per step on huge datasets
Stochastic GD (SGD)1 random sample per step; noisy zig-zag updatesFast O(1) step; noise helps escape shallow local minima
Mini-Batch GDb samples (e.g., 32-256); vectorized GPU throughputIndustry standard balancing speed and stability
Adam OptimizerMini-batch + 1st (momentum) & 2nd moment adaptive scalingFast adaptive convergence; requires tuning beta/alpha

Gradient Descent Optimization: Learning Rate (Alpha), Local Minima Top 20 Bilingual MCQs with Answers

Q1. In the Gradient Descent update rule θ := θ − α ∇J(θ), why is the gradient subtracted rather than added?

(ग्रेडिएंट डिसेंट नियम θ := θ − α ∇J(θ) में ग्रेडिएंट को जोड़ने के बजाय घटाया क्यों जाता है?)

(A) Because subtracting α forces weights to stay negative

(B) Because ∇J(θ) points in the direction of steepest increase, so −∇J(θ) minimizes J(θ)

(C) To maximize the training error function

(D) Because gradients are always negative numbers

Correct Answer: (B)

[EN] The gradient points uphill; moving opposite (−∇J) descends down the cost surface toward a minimum.

[HI] ग्रेडिएंट सर्वाधिक तीव्र चढ़ाव की दिशा बताता है, इसलिए कॉस्ट घटाने हेतु ऋणात्मक दिशा (−∇J) में चला जाता है।

Q2. Starting at θ = 0 for J(θ) = (θ − 3)² with learning rate α = 0.25, what is θ after 1 step?

(J(θ) = (θ − 3)² के लिए θ = 0 से शुरुआत कर α = 0.25 लर्निंग रेट लेने पर 1 स्टेप बाद θ का मान क्या होगा?)

(A) 3.0

(B) 0.75

(C) 1.5

(D) -1.5

Correct Answer: (C)

[EN] dJ/dθ = 2(θ − 3). At θ = 0, grad = -6. Update: θ₁ = 0 - 0.25 * (-6) = +1.5.

[HI] dJ/dθ = 2(θ − 3) = -6; अतः θ₁ = 0 − 0.25 × (−6) = 1.5 होगा।

Q3. What happens if the learning rate α is set far too high in Gradient Descent?

(यदि ग्रेडिएंट डिसेंट में लर्निंग रेट α बहुत अधिक बड़ा रखा जाए तो क्या होगा?)

(A) Steps overshoot the minimum, causing oscillations or divergence where cost J(θ) explodes

(B) It converts Mini-Batch GD into Batch GD automatically

(C) Model variance drops to zero immediately

(D) The algorithm stops at the global minimum in 0 iterations

Correct Answer: (A)

[EN] Large steps leap past the valley bottom to steeper slopes on the opposite wall, causing diverging loss.

[HI] अत्यधिक बड़े α के कारण कदम न्यूनतम बिंदु के पार निकल जाते हैं जिससे दोलन या कॉस्ट का विस्फोट (divergence) होता है।

Q4. What characterizes a Saddle Point on a multi-dimensional loss surface?

(बहु-आयामी लॉस सतह पर सैडल पॉइंट (Saddle Point) की मुख्य पहचान क्या होती है?)

(A) The cost function achieves its lowest possible global value

(B) Gradient equals positive infinity along all dimensions

(C) Gradient ∇J(θ) = 0, but the surface curves upward along some axes and downward along others

(D) All feature inputs equal zero

Correct Answer: (C)

[EN] A saddle point is stationary (zero gradient) yet neither a local minimum nor a local maximum.

[HI] सैडल पॉइंट पर ग्रेडिएंट शून्य होता है लेकिन सतह कुछ दिशाओं में ऊपर और कुछ दिशाओं में नीचे मुड़ती है (घोड़े की काठी जैसा)।

Q5. Why is Feature Scaling (Standardization) recommended before running Gradient Descent?

(ग्रेडिएंट डिसेंट चलाने से पहले फीचर स्केलिंग (Standardization) की सलाह क्यों दी जाती है?)

(A) It makes cost contours circular rather than elongated ellipses, accelerating convergence

(B) It forces every target y into binary {0, 1}

(C) It increases the number of local minima

(D) It eliminates the need to choose a model architecture

Correct Answer: (A)

[EN] Equalizing feature scales prevents zig-zagging across steep narrow valleys and allows larger stable α.

[HI] समान स्केल करने से कॉस्ट के समोच्च वक्र संकीर्ण अंडाकार के बजाय गोलाकार बनते हैं, जिससे कन्वर्जेंस तेज होता है।

Q6. Which Gradient Descent variant computes parameter updates using only ONE randomly chosen sample per iteration?

(कौन-सा ग्रेडिएंट डिसेंट प्रकार प्रत्येक इटरेशन में केवल एक रैंडम डेटा सैंपल से पैरामीटर अपडेट करता है?)

(A) Normal Equation OLS

(B) Batch Gradient Descent

(C) Full-Hessian Newton Method

(D) Stochastic Gradient Descent (SGD)

Correct Answer: (D)

[EN] SGD processes one sample at a time, offering O(1) per-step cost and stochastic noise that escapes shallow traps.

[HI] स्टोकैस्टिक ग्रेडिएंट डिसेंट (SGD) एक समय में केवल 1 सैंपल से अपडेट करता है।

Q7. In a dataset of 100,000 rows using Mini-Batch GD with batch_size = 100, how many weight updates occur in 1 full epoch?

(100,000 पंक्तियों वाले डेटासेट पर batch_size = 100 के साथ मिनी-बैच GD चलाने पर 1 पूरे इपॉक (epoch) में कितने वेट अपडेट होंगे?)

(A) 100,000 updates

(B) 1,000 updates

(C) 100 updates

(D) 10 updates

Correct Answer: (B)

[EN] 1 epoch passes through all 100,000 rows: 100,000 / 100 = 1,000 mini-batch steps.

[HI] एक इपॉक में पूरा डेटा एक बार गुजरता है: 100,000 / 100 = 1,000 अपडेट्स।

Q8. How does Gradient Descent with Momentum improve over vanilla SGD?

(मोमेंटम (Momentum) युक्त ग्रेडिएंट डिसेंट साधारण SGD से किस प्रकार बेहतर प्रदर्शन करता है?)

(A) It removes the learning rate parameter completely

(B) It guarantees zero training loss on non-linear noisy labels

(C) It accumulates an exponentially weighted moving average of past gradients to damp oscillations and speed across flat regions

(D) It replaces multiplication with K-Means clustering

Correct Answer: (C)

[EN] Velocity v_t = β v_{t-1} + ∇J accelerates along consistent directions and cancels orthogonal zig-zags.

[HI] मोमेंटम पिछले ग्रेडिएंट्स की गति (velocity) जोड़कर ज़िग-ज़ैग दोलन कम करता है और सपाट क्षेत्रों को तेजी से पार करता है।

Q9. What problem does the 'Vanishing Gradient' or plateauing issue cause during Gradient Descent?

(ग्रेडिएंट डिसेंट के दौरान बहुत छोटे ग्रेडिएंट (पठार/Vanishing Gradient) से क्या समस्या आती है?)

(A) θ updates become negligibly tiny, stalling learning progress far from an optimal solution

(B) Learning rate automatically rises to infinity

(C) Batch size doubles every epoch

(D) Model weights jump rapidly between +1000 and -1000

Correct Answer: (A)

[EN] When ∇J(θ) ≈ 0 on flat plateaus or saturated activations, Δθ = -α ∇J becomes virtually zero.

[HI] पठारी क्षेत्र में ग्रेडिएंट लगभग शून्य होने पर पैरामीटर अपडेट नगण्य हो जाते हैं और मॉडल सीखना बंद कर देता है।

Q10. Which statement is NOT true about Batch Gradient Descent?

(बैच ग्रेडिएंट डिसेंट के बारे में निम्नलिखित में से कौन-सा कथन सत्य नहीं है?)

(A) It computes the exact empirical gradient over all N samples per step

(B) On strictly convex loss with appropriate α, it converges smoothly to the global minimum

(C) It can be memory-prohibitive when N spans tens of millions of samples

(D) It updates weights after every single individual training record

Correct Answer: (D)

[EN] Updating after every single record defines Stochastic GD (SGD), whereas Batch GD processes all N samples before one update.

[HI] प्रत्येक एकल रिकॉर्ड के बाद अपडेट करना SGD की विशेषता है, जबकि बैच GD पूरे N सैंपल्स पर एक साथ अपडेट करता है।

Q11. For J(θ) = (θ − 3)², what happens if α = 1.0 starting from θ = 0?

(J(θ) = (θ − 3)² के लिए यदि θ = 0 से α = 1.0 चुना जाए तो क्या होगा?)

(A) θ oscillates perpetually between 0 and 6 without ever converging to 3

(B) θ remains stuck at 0 forever

(C) θ diverges exponentially to +∞

(D) θ converges to 3 in 1 step

Correct Answer: (A)

[EN] grad(0) = -6 -> θ₁ = 0 - 1(-6) = 6; grad(6) = +6 -> θ₂ = 6 - 1(6) = 0, oscillating infinitely.

[HI] θ=0 पर ग्रेडिएंट -6 से θ₁=6 बनता है और θ=6 पर +6 से वापस θ₂=0 हो जाता है, यानी अंतहीन दोलन होता रहेगा।

Q12. What does the Adam optimizer combine in each parameter update?

(Adam (Adaptive Moment Estimation) ऑप्टिमाइज़र प्रत्येक अपडेट में किन दो तकनीकों को जोड़ता है?)

(A) Normal Equation inversion and K-Means centroids

(B) PCA compression and Softmax normalization

(C) L1 Lasso pruning and Decision Tree Gini split

(D) Momentum (1st moment mean of gradients) and RMSProp-style adaptive per-parameter scaling (2nd moment)

Correct Answer: (D)

[EN] Adam tracks m_t (exponentially decayed gradient mean) and v_t (decayed squared gradient) with bias correction.

[HI] Adam में मोमेंटम (प्रथम आघूर्ण) और RMSProp जैसी अनुकूली स्केलिंग (द्वितीय आघूर्ण) दोनों शामिल होते हैं।

Q13. Why are Local Minima NOT a concern in Linear Regression (MSE) or Logistic Regression (Log Loss)?

(लीनियर रिग्रेशन (MSE) या लॉजिस्टिक रिग्रेशन (Log Loss) में लोकल मिनिमा की चिंता क्यों नहीं होती?)

(A) Because their cost functions are convex, meaning any local minimum is also the global minimum

(B) Because they have zero parameters to optimize

(C) Because they never use Gradient Descent

(D) Because their loss values are always negative

Correct Answer: (A)

[EN] Convexity guarantees bowl-shaped geometry with no trapped suboptimal valleys.

[HI] उनके कॉस्ट फंक्शन उत्तल (Convex) होते हैं, इसलिए उनमें कोई भी स्थानीय मिनिमा ही एकमात्र ग्लोबल मिनिमा होता है।

Q14. In Python/PyTorch/NumPy training loops, why must gradients be reset (or recomputed fresh) at the start of each step?

(प्रशिक्षण लूप के प्रत्येक स्टेप की शुरुआत में ग्रेडिएंट्स को रीसेट या नए सिरे से गणना क्यों की जाती है?)

(A) To erase learned weights back to zero each iteration

(B) To prevent stale gradients from previous steps from accumulating and corrupting the current descent direction

(C) To convert float64 arrays into strings

(D) To increase batch size dynamically

Correct Answer: (B)

[EN] Accumulating gradients across unrelated iterations without intent distorts the true current-batch slope.

[HI] ताकि पिछले स्टेप के पुराने ग्रेडिएंट जुड़कर वर्तमान दिशा को खराब न कर दें।

Q15. What is the primary goal of a Learning Rate Decay schedule?

(लर्निंग रेट डिके (Learning Rate Decay) शेड्यूल का मुख्य उद्देश्य क्या होता है?)

(A) Allow rapid early progress with larger α, then refine closely around the minimum with smaller α

(B) Force α to grow exponentially toward infinity over epochs

(C) Increase training set size during runtime

(D) Replace validation metrics with random guesses

Correct Answer: (A)

[EN] Decaying α prevents late-stage bouncing around the minimum in SGD/Mini-Batch optimization.

[HI] शुरुआत में बड़े α से तेजी से आगे बढ़ना और अंत में छोटे α से न्यूनतम बिंदु के बिल्कुल करीब स्थिर होना।

Q16. Which statement is NOT true about Gradient Descent Optimization?

(ग्रेडिएंट डिसेंट ऑप्टिमाइजेशन के बारे में निम्नलिखित में से कौन-सा कथन गलत है?)

(A) Mini-Batch Gradient Descent always guarantees lower per-step compute cost than 1-sample SGD

(B) Gradient Descent is an iterative first-order optimization algorithm

(C) Non-convex neural network surfaces contain many saddle points

(D) Learning rate α is a critical hyperparameter requiring tuning

Correct Answer: (A)

[EN] A mini-batch of size b > 1 computes b gradients per step, costing more per update than single-sample SGD (though GPU parallelization makes wall-clock epoch time fast).

[HI] एकल सैंपल SGD की तुलना में मिनी-बैच में प्रति स्टेप b सैंपल्स की गणना होती है, हालांकि GPU समानांतरता से कुल इपॉक तेज चलता है।

Q17. Within Gradient Descent Optimization: Learning Rate (Alpha), Local Minima, which gd variant / term directly maps to: "All N samples; exact gradient and smooth monotonic descent"?

(Gradient Descent Optimization: Learning Rate (Alpha), Local Minima में कौन सा GD Variant / Term सीधे "All N samples; exact gradient and smooth monotonic descent" से संबंधित है?)

(A) Batch Gradient Descent

(B) Adam Optimizer

(C) Stochastic GD (SGD)

(D) Mini-Batch GD

Correct Answer: (A)

[EN] In Gradient Descent Optimization: Learning Rate (Alpha), Local Minima, 'Batch Gradient Descent' handles 'All N samples; exact gradient and smooth monotonic descent' (High memory & slow per step on huge datasets).

[HI] Gradient Descent Optimization: Learning Rate (Alpha), Local Minima में 'Batch Gradient Descent' का कार्य/विवरण 'All N samples; exact gradient and smooth monotonic descent' (High memory & slow per step on huge datasets) है।

Q18. Which option accurately describes 'Stochastic GD (SGD)' in Gradient Descent Optimization: Learning Rate (Alpha), Local Minima?

(Gradient Descent Optimization: Learning Rate (Alpha), Local Minima के संदर्भ में 'Stochastic GD (SGD)' की सही विशेषता कौन सी है?)

(A) Mini-batch + 1st (momentum) & 2nd moment adaptive scaling

(B) b samples (e.g., 32-256); vectorized GPU throughput

(C) All N samples; exact gradient and smooth monotonic descent

(D) 1 random sample per step; noisy zig-zag updates

Correct Answer: (D)

[EN] 'Stochastic GD (SGD)' provides '1 random sample per step; noisy zig-zag updates' — key point: Fast O(1) step; noise helps escape shallow local minima.

[HI] 'Stochastic GD (SGD)' का मुख्य विवरण '1 random sample per step; noisy zig-zag updates' है (Fast O(1) step; noise helps escape shallow local minima)।

Q19. In Gradient Descent Optimization: Learning Rate (Alpha), Local Minima, identify the correct parameter for the specification: "b samples (e.g., 32-256); vectorized GPU throughput".

(Gradient Descent Optimization: Learning Rate (Alpha), Local Minima में "b samples (e.g., 32-256); vectorized GPU throughput" विवरण किस विकल्प के लिए सही है?)

(A) Mini-Batch GD

(B) Stochastic GD (SGD)

(C) Adam Optimizer

(D) Batch Gradient Descent

Correct Answer: (A)

[EN] 'Mini-Batch GD' corresponds to 'b samples (e.g., 32-256); vectorized GPU throughput' (Industry standard balancing speed and stability).

[HI] 'Mini-Batch GD' का संबंध 'b samples (e.g., 32-256); vectorized GPU throughput' (Industry standard balancing speed and stability) से है।

Q20. Considering Gradient Descent Optimization: Learning Rate (Alpha), Local Minima, what key behavior defines 'Adam Optimizer'?

(Gradient Descent Optimization: Learning Rate (Alpha), Local Minima में 'Adam Optimizer' की मुख्य भूमिका या मान क्या है?)

(A) All N samples; exact gradient and smooth monotonic descent

(B) b samples (e.g., 32-256); vectorized GPU throughput

(C) Mini-batch + 1st (momentum) & 2nd moment adaptive scaling

(D) 1 random sample per step; noisy zig-zag updates

Correct Answer: (C)

[EN] 'Adam Optimizer' represents 'Mini-batch + 1st (momentum) & 2nd moment adaptive scaling' (Fast adaptive convergence; requires tuning beta/alpha).

[HI] 'Adam Optimizer' का अर्थ/मान 'Mini-batch + 1st (momentum) & 2nd moment adaptive scaling' है (Fast adaptive convergence; requires tuning beta/alpha)।

Gradient Descent Optimization: Learning Rate (Alpha), Local Minima — Exam FAQs

Q1: How is the optimal learning rate α chosen in practice?

व्यवहार में सही लर्निंग रेट α का चयन कैसे किया जाता है?

[EN] Practitioners commonly test logarithmic grid values (e.g., 1e-1, 1e-2, 1e-3, 1e-4) or run a Learning Rate Range Test—plotting loss while ramping α from tiny to large and picking α just below where loss diverges.

[HI] आमतौर पर लॉगरिदमिक मानों (जैसे 0.1, 0.01, 0.001, 0.0001) पर प्रयोग किया जाता है या लर्निंग रेट रेंज टेस्ट चलाकर उस मान को चुना जाता है जहाँ लॉस तेजी से घट रहा हो पर अस्थिर न हो।

Q2: Why does Gradient Descent still work well on huge Deep Neural Networks despite non-convexity?

नॉन-कॉन्वेक्स सतह होने के बावजूद बड़े डीप न्यूरल नेटवर्क्स में ग्रेडिएंट डिसेंट इतना सफल क्यों है?

[EN] Empirical and theoretical research shows most critical points in high-dimensional overparameterized networks are saddle points (escaped via SGD noise/Momentum) and almost all local minima achieve similarly low training loss.

[HI] शोध दर्शाते हैं कि उच्च-आयामी नेटवर्क्स में अधिकांश स्थिर बिंदु सैडल पॉइंट होते हैं जिन्हें SGD शोर व मोमेंटम पार कर लेते हैं, और मिलने वाले लोकल मिनिमा लगभग समान कम लॉस देते हैं।

Q3: When would you choose Second-Order methods (like Newton's Method / L-BFGS) over Gradient Descent?

ग्रेडिएंट डिसेंट की जगह सेकंड-ऑर्डर विधियां (जैसे Newton's Method या L-BFGS) कब चुनी जाती हैं?

[EN] For small-to-medium parameter counts (such as tabular Logistic Regression in scikit-learn), quasi-Newton L-BFGS uses curvature approximations to converge in far fewer iterations without manual α tuning; however, storing an O(p²) Hessian is infeasible for millions of weights.

[HI] जब पैरामीटर कम हों (जैसे सारणीबद्ध डेटा पर लॉजिस्टिक रिग्रेशन), तो L-BFGS वक्रता (Hessian अनुमान) का उपयोग कर बिना α ट्यून किए बहुत कम कदमों में सटीक हल देता है, पर लाखों वेट्स वाले डीप लर्निंग मॉडल में यह मेमोरी के कारण संभव नहीं होता।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)