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
Machine Learning
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

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
weight initialization
He initialization
Xavier initialization
vanishing activations
deep learning
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
  • 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 Prep
Sample Answer
Clarify

Plain fully connected stack, width nn, ReLU, no normalization, no residuals. Weights drawn i.i.d. with mean 0 and variance σw2\sigma_w^2; inputs standardized. Symptom: loss is flat from step 0....

Approach

Track the variance of pre-activations layer by layer and pick σw2\sigma_w^2 so it stays constant....


Submit Your Answer
Markdown supported