Risky Giant Steps Can Solve Optimization Problems Faster
quantamagazine.org
quantamagazine.org
I wonder if this is a Rube Goldberg machine for imitating a second-order method. Gradient descent is slow because it can't correct for the curvature of the function, but maybe when you use a meta-algorithm to optimize the entire sequence of steps, you can arrive at something that approximates it. So the first half of the steps is getting you in position for a big approximate second-order step, and the second half is working to clean up the after-effects of that big step.
That this is so hard feels notable to me, like we're specifically misunderstanding something about the optimization process in higher dimensions.
And at any rate, Adam being fastest assumes that second-order methods require much more computation per iteration than first-order ones, which isn't true for a lot of practical problems. Classical optimization theory favored second-order methods because their faster convergence on many problems outweighed the extra computation per iteration.
The idea that Adam is best isn't a general principle, it's an empirical observation that, as far as I know, is limited to the context of training large neural networks.
You can in general hide quantity in the number of steps by increasing the complexity of each step (for the trivial case, imagine one step of 5-ADAM which performs the ADAM update and evaluation 5 times - 5-ADAM will converge much faster than ADAM alone when measured in steps-to-convergence).
This would imply a more genetic side component to optimization here, I believe? Since this is not a directly differentiable thing, and all of this occurs as the natural effects of a higher lr? (I.e. the evolutionary update rule being, "the parameter spaces that survive, survive". Since the parameter spaces that like to survive tend to be flat, and flatness seems to correlate with generalization, then we have a good thing our our hands.)
Adam on the other hand, I believe explicitly regularizes the update step relative to a biased (I believe, since it's not subtracted from momentum?) approximation of the diagonal of the empirical Fisher, hence being sort of a "anti-SGD" in that sense, I believe. This I think makes it really effective for models where you'll often see the data only once, and the model is ODE-like and needs information>>regularization, which we see with many LLMs these days.
Not sure if that helps any or if that's just rambling at this point, that's what I've got and what that made me think of! <3 :))))
> However, while these insights may change how researchers think about gradient descent, they likely won’t change how the technique is currently used. Grimmer’s paper focused only on smooth functions, which have no sharp kinks, and convex functions, which are shaped like a bowl and only have one optimal value at the bottom. These kinds of functions are fundamental to theory but less relevant in practice; the optimization programs machine learning researchers use are usually much more complicated...
And machine learning is by no means the only area in which the "real world" curves subject to optimization have, ah, "problematic" shapes.
On the other hand, while that is certainly useful, it pales in comparison to that being combined with a non-linear aoproach, where you’re not trying to optimize a known process but fundamentally rethink the question altogether. To me that’s reminiscent of physics in the early twentieth century, democracy and liberal economies during the enlightenment, and even modern literature, in a sense, like Joyce.
I don’t really have a point beyond that, and it’s just an analogy after all. It’s still neat to think about and recognize similarities between a discovery in the computational world and a personal observation about our own world. Even if it’s a misguided analogy, it feels true.
-- Russ Ackoff
In fact, applying the idea of "no free lunch in search and optimization" (https://en.wikipedia.org/wiki/No_free_lunch_in_search_and_op...), you'd kind of expect this result: sometimes big steps good, sometimes big steps bad.
https://news.ycombinator.com/item?id=37100283 (22 comments, 1 day ago)
https://news.ycombinator.com/item?id=36735590 (2 comments, 29 days ago)
It sort of makes sense too as you're approaching a finite goal in an optimization problem -- first, tiny steps to take any initial steps that might be huge due to any initialization differences, then annealing up to huge steps, then small steps again as you approach the end of your optimization process, and your signal:noise ratio is much lower.
This analogy can be made rigorous by looking at bisection search on a convex function instead of a simple binary search tree. The same pattern holds. "Fractal" patterns occur because the problem is invariant under scaling.
What is interesting is the initial half of small steps. I have not read the original paper to give a professional view on the mathematics, but it may just be that initial small steps are priming the optimizer to find the right scale.
Unfortunately, it may just be that the findings are not something fundamental to gradient descent or optimization in general, but just an observed property of the smooth convex cost function considered under this particular algorithmic investigation.
I meant that in academia sometimes some theories are taken for granted and land in a blind spot for improvement. But yeah, that's definitely not limited to academia. Technical debt is every where.
The general principle/innovation is to use power-law or similarly heavy-tailed distributions for step lengths as opposed to constant, Gaussian, etc. step lengths for the purpose of exiting local minima.
So... it's like binary-search, but you don't know the maximum before hand? (i.e. you double the step size until you overshoot, then do regular binary search from there)
Am I right in concluding that your work doesn't apply to that area, as it is looking at a much 'easier' case?