Choose Weight Initialization So a Deep ReLU Network Trains
Last updated: November 29, 2026
Quick Overview
A 20-layer ReLU network trained for a content understanding task produces near-zero activations and does not learn. Explain why, and how Xavier and He initialization fix it, with a quick numerical demonstration.
Meta
November 29, 20260
0
0 solved
A 20-layer ReLU network trained for a content understanding task produces near-zero activations and does not learn. Explain why, and how Xavier and He initialization fix it, with a quick numerical demonstration.
Meta's content understanding models are deep, and initialization bugs show up as flat loss curves. The interviewer wants the variance-propagation argument and a candidate who would check activation statistics empirically.
What the Interviewer Expects
- Derive how activation variance changes per layer with weight variance
- Explain the factor of 2 for ReLU in He initialization
- Contrast Xavier (fan-in plus fan-out) and He (fan-in) initialization
- Show or describe a quick experiment of activation scale by depth
- Mention how normalization and residuals reduce sensitivity
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
- What changes for tanh or GELU activations?
- How would you diagnose this from training logs alone?
- Why do some transformer codebases scale output projections by depth at init?
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
Plain fully connected stack, width , ReLU, no normalization, no residuals. Weights drawn i.i.d. with mean 0 and variance ; inputs standardized. Symptom: loss is flat from step 0....
Approach
Track the variance of pre-activations layer by layer and pick so it stays constant....