Why Residual Connections Fix Vanishing Gradients in Deep Networks
Last updated: November 29, 2026
Quick Overview
Explain why gradients vanish in deep networks, and how residual connections and normalization make it possible to train models with dozens or hundreds of layers.
Amazon
November 29, 20260
0
0 solved
Explain why gradients vanish in deep networks, and how residual connections and normalization make it possible to train models with dozens or hundreds of layers.
Deep learning fundamentals come up in Amazon MLE phone screens regardless of team, whether the work is product image classification or LLMs. The interviewer checks that you can explain the chain rule argument and why skip connections change it.
What the Interviewer Expects
- Explain backpropagation as a product of Jacobians
- Show how small factors compound across layers
- Explain the identity path in residual blocks
- Mention activation and initialization choices
- Contrast with exploding gradients and clipping
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why does ReLU help compared with sigmoid?
- What does He initialization preserve?
- Where does layer normalization go in a pre-norm transformer block, and why does it matter?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Assume a plain deep feedforward or convolutional network trained with backprop, for example a 50-layer image model for product photos....
Approach
The gradient at layer 1 is the product of each layer's Jacobian: . If each factor...