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
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Phone Screen
Machine Learning
Easy

0

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
Vanishing gradients
Residual connections
Backpropagation
Initialization
Activation functions
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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: ∂L∂h1=∂L∂hn∏k=1n−1∂hk+1∂hk\frac{\partial L}{\partial h_1}=\frac{\partial L}{\partial h_n}\prod_{k=1}^{n-1}\frac{\partial h_{k+1}}{\partial h_k}. If each factor...


Submit Your Answer
Markdown supported