What are exploding gradients?

Exploding gradients are when numbers get too big and mess up learning in a neural network, like when you shout too loud and your friend can't hear anything.

Imagine you're playing a game where you pass a message from one person to the next. Each time, they add something to it. If they add a lot each time, by the end, the message might be super big, so big that it becomes hard to understand or even makes everything go wrong.

Like passing a balloon

Think of gradients as balloons. When you pass them from one person to another in the game, sometimes they get bigger and bigger, like blowing up a balloon too much. If the balloons are exploding gradients, they're so big that they pop, making it hard for everyone to keep playing properly.

In real life, this happens when numbers grow really fast while learning, confusing the computer and slowing down progress, just like if your friend heard only a loud noise instead of your message!

Take the quiz →

Examples

  1. Imagine you're trying to teach a kid math, but the numbers get so big they become impossible to handle, that's like exploding gradients in a neural network.
  2. If your calculator starts spitting out errors because it can't handle huge numbers, that's similar to what happens with exploding gradients.
  3. It’s like a snowball rolling down a hill and getting bigger and bigger until it becomes uncontrollable.

Ask a question

See also

Discussion

Recent activity