When all you have is a hammer, ... you split up your house into wood and nails, and reduce it to a previously solved problem!
In all seriousness, this is super interesting. I really like the idea of implementing gradient descent solving branch by branch, and turning it into an optimization-level option for codebases.
I feel like this would normally be something commercialized by Intel's compiler group; it's hard for me to know how to get this out more broadly -- it would probably need to be standardized in some way?
Anyway, thanks for working on it and opening it up -- very cool. Needs more disco balls.