What causes the exploding gradient problem?

Quick Overview

Asks what causes exploding gradients when training deep or recurrent neural networks. Tests understanding of how backpropagation multiplies Jacobians, the roles of initialization, recurrent weights and learning rate, the training symptoms, and fixes such as gradient clipping and residual connections.

What causes the exploding gradient problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What causes the exploding gradient problem when training deep or recurrent neural networks? ```hint Follow the chain rule Write out the gradient of the loss with respect to an early layer or time step. What kind of expression is it, and what happens to it as the number of terms grows? ``` ```hint Look beyond the architecture Some causes come from the network's weights and structure. Others come from the optimizer settings and the shape of the loss surface. ``` ### What a Strong Answer Covers - The mechanism: backpropagation multiplies many Jacobians, so the gradient can grow exponentially with depth or sequence length - Specific causes, including weight scale and initialization, recurrent weight matrices, the learning rate and sharp regions of the loss - How the problem shows up during training - The standard fixes and which cause each one addresses ### Follow-up Questions - Why does clipping by norm keep the update direction while clipping by value does not, and when does that matter? - How do residual connections change the product of Jacobians? - Why are LSTMs still usually trained with gradient clipping? - How would you tell exploding gradients apart from a batch with extreme input values?

Overview: Asks what causes exploding gradients when training deep or recurrent neural networks. Tests understanding of how backpropagation multiplies Jacobians, the roles of initialization, recurrent weights and learning rate, the training symptoms, and fixes such as gradient clipping and residual connections.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What causes the exploding gradient problem when training deep or recurrent neural networks?

What a Strong Answer Covers Guidance

  • The mechanism: backpropagation multiplies many Jacobians, so the gradient can grow exponentially with depth or sequence length
  • Specific causes, including weight scale and initialization, recurrent weight matrices, the learning rate and sharp regions of the loss
  • How the problem shows up during training
  • The standard fixes and which cause each one addresses

Follow-up Questions Guidance

  • Why does clipping by norm keep the update direction while clipping by value does not, and when does that matter?
  • How do residual connections change the product of Jacobians?
  • Why are LSTMs still usually trained with gradient clipping?
  • How would you tell exploding gradients apart from a batch with extreme input values?