Re:Why is so much memory needed for deep neural networks?
by pjreddie on Thursday March 23, 2017 @04:30AM
(#13938146)
Mini-batches are not an ugly hack, batch gradient descent is too slow since you have to go through the whole data and stochastic gradient descent is too high variance (plus you can't do cool things like batch-norm). Mini-batches give you stability and speed, the best of both worlds.
[ Parent
| on HN ]
Re:Why is so much memory needed for deep neural networks?
by chestervonwinch on Thursday March 23, 2017 @08:07AM
(#13939030)
drewm1980 is not totally incorrect, though. I don't believe that people began using batch gradient descent because they knew a priori that it had decent properties. I would venture to guess that, initially, people were constrained my memory and computational tractability and only observed after-the-fact that SGD actually worked and in fact, often worked nicer than non-stochastic descent.
I'm not sure really at what point SGD was linked to stochastic approximation, and theoretical explanation of convergence behavior was really pinned down. It feels recent (see work by Leon Bottou, in particular), but I'm certainly no expert in this area.
--- edits: grammar
Re:Why is so much memory needed for deep neural networks?
by jg8610 on Thursday March 23, 2017 @10:01AM
(#13939770)
So interestingly, SGD has a nice intuitive explanation for why it is better than GD.
If you compute the gradient step for all data, you're expending computational power on redundant data. You're going to get to the minimum with fewer data if you make steps as you get useful information.
Re:Why is so much memory needed for deep neural networks?
by p1esk on Thursday March 23, 2017 @05:31AM
(#13938365)
A brain learns one example at a time, which probably means a gradient descent is not a very good learning mechanism.
Re:Why is so much memory needed for deep neural networks?
by jacquesm on Thursday March 23, 2017 @08:08AM
(#13939039)
These are not brains, they are not even models of brains even if they use the word 'neuron'.
Re:Why is so much memory needed for deep neural networks?
by p1esk on Thursday March 23, 2017 @11:39AM
(#13940710)
That was kind of my point. Brain learns well using one example at a time. ANNs don't. Hence my conclusion.