Whenever you're ready, walk me through how you'd approach this.
What is the vanishing gradients problem, and how would you handle it?
Explain the mechanism mathematically, show how you would detect it during training, and implement a small diagnostic experiment comparing an unstable deep network with a mitigated version. Discuss when initialization, activation choice, normalization, residual connections, learning-rate changes, or gated architectures are appropriate. Your answer should distinguish vanishing gradients from exploding gradients and optimization failure.