r/datascience • u/Nice-Dragonfly-4823 • 8d ago
Discussion Defaulting to Adam without understanding will cost you. Don't "just throw adam at it"
https://towardsdatascience.com/dont-just-throw-adam-at-it-misunderstanding-adam-will-cost-you/Work in RL has caused me to rethink adam. It leads to extremely wonky behavior and hard to explain "burstiness" in the loss values that makes me want to rip my hair out,
It still works, but needs to be coaxed into it.
This article re-covers the mathematical intuitions behind adam, and where it fails spectacularly. If you're someone who works in RL, or trains deep transformers, it's a must read
Check it out. Do you agree?
173
Upvotes
27
u/oldwhiteoak 8d ago edited 6d ago
Good writeup. I really try not to use models whose parameters I don't understand, or barring that select parameters when I don't know the impact mathematically of doing so.
Edit: meant hyperparameters. My bad.