3 ms·
AFAIK it was first brought forward by PyTorch. I may be wrong though.
by ggr2342 3y ago
AFAIK it was first brought forward by PyTorch. I may be wrong though.
- 6gvONxR4sf7o 3y agoIt's been a core part of automatic differentiation for decades.
- ggr2342 3y agoOh! Can you give some pointers where to read about it more?
- PartiallyTyped 3y agoThe original 2017 PyTorch paper is probably a good one.
- 6gvONxR4sf7o 3y agoThe wikipedia page for automatic differentiation and its references would be a good start. https://en.wikipedia.org/wiki/Automatic_differentiation https://en.wikipedia.org/wiki/Automatic_differentiation In particular, the section "Beyond forward and reverse accumulation" tells you how hard it is to deal with the graph in optimal ways, hence the popularity of simpler forwards and backwards traversals of the graph.
- cgearhart 3y agoIt certainly pre-dates PyTorch. Applying computational graphs to neural networks was the central purpose of the Theano framework in the early 2010s. TensorFlow heavily followed those ideas, and Theano shut down a year or two later because they were so close conceptually and a grad research lab can’t compete with the resources of Google.
- mhh__ 3y agoPyTorch's insight was to be very dynamic and simple. The underlying model is basically the same with the caveat that tensorflow uses/used something called a "tape".
- HarHarVeryFunny 3y agoBefore PyTorch there was Torch (which was Lua-based, hence the Py- prefix of the follow on PyTorch). With Torch, like the later TensorFlow 1.0, you first explicitly constructed the computational graph then executed it. PyTorch's later innovation was define-by-run where you just ran the code corresponding to your computational graph and the framework traced your code and built the graph behind the scenes... this was so much more convenient that PyTorch quickly became more popular than TensorFlow, and by the time TF 2.0 "eager mode" copied this approach it was too late (although TF shot itself in the foot in many ways, which also accelerated it's demise).