← 📊 Evaluation & ML FoundationsNEXT IN EVALUATION & ML FOUNDATIONSTraining Neural Nets: Init, Normalization, Dropout, LR Schedules→
Core
Vanishing and Exploding Gradients
In a deep or recurrent network the backward gradient is a product of many per-layer Jacobians, so its magnitude compounds: factors mostly below one drive it toward zero (early layers stop learning) and factors above one make it explode (training diverges into NaNs). The root cause is that repeated multiplication, and the standard fixes attack it head-on: residual connections to hand gradient a shortcut, normalization to keep activations in scale, gating to hold signal across time, gradient clipping to cap the blow-up, and careful initialization. AI, ML, and GenAI engineer interviews probe it because it is the mechanism behind most deep-net training failures you have to diagnose.
a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS
Machine Learning & Data ScienceWhat is batch normalization, why does it help training, and how does it differ at train vs inference?→Machine Learning & Data ScienceWhat causes vanishing and exploding gradients, and how do activations, initialization, and residuals fix them?→SQL & Data EngineeringExplain dimensional modeling: star vs snowflake schema, facts vs dimensions, and normalize vs denormalize for analytics.→Machine Learning & Data ScienceExplain backpropagation. Walk through the chain rule for a simple two-layer network.→Coding & DSAImplement Layer Normalization (and RMSNorm) from scratch.→Coding & DSAImplement batch normalization (forward pass, train and inference) from scratch.→
COMPANIES THAT ASSUME THIS
