What is Exploding gradients can be explosive enough?

Exploding gradients are when numbers get too big and cause problems during learning.

Imagine you're playing a game where each time you take a step forward, someone tells you how far to go next, but sometimes they shout instructions that make you jump really high or fall backward. That's like exploding gradients in action. They can be so loud and big that instead of helping you learn, they mess up your whole game.

When it gets too big

Think about a seesaw in the playground. If one side goes way up, the other side goes way down, really fast! That’s like gradients exploding, the numbers go from tiny to huge in no time. Your brain (or your computer) tries to keep up, but it gets confused and might even stop working properly.

Why it matters

It's like when you're trying to draw a picture, but someone keeps changing the size of the paper every second. You can't focus on what you're drawing, everything becomes too big or too small. That’s how exploding gradients feel for computers learning new things!

Take the quiz →

Examples

  1. Imagine a robot trying to learn how to walk, but every step it takes makes it fall over harder, that's like exploding gradients.
  2. A student is learning math problems, but each mistake they make increases the difficulty tenfold, this is similar to exploding gradients in learning.
  3. When you're baking a cake and one ingredient gets too hot, it causes everything else to burn quickly, exploding gradients work similarly in machine learning.

Ask a question

See also

Discussion

Recent activity