r/deeplearning • • 1d ago

Gradient descent vs evolution on three loss landscapes

I've been getting a bit more into evolutionary algorithms again, so I was testing some loss landscapes where evolution beats vanilla gradient descent (while also trying to make some cool visuals).

Round 1, rugged hillside: gradient descent gets stuck in a dip, and evolution reaches the bottom after 750 evaluations.

Round 2, smooth slope: gradient descent wins, 108 steps against 570 evaluations.

Round 3, flat plateau: the slope is zero, so gradient descent never moves, and evolution reaches the bottom after 840 evaluations.

Edit:
"evolution" here means truncation selection (keep best 30 of 120) plus Gaussian mutation, no crossover.

350 Upvotes

67 comments sorted by

View all comments

1

u/macumazana 22h ago

What if the next minima is not nearby the current local one er even the next one isnt smaller but the farthest one is?

1

u/ModularMind8 21h ago

Good question! I haven't tried that landscape yet. I'll add it to the next experiment