4 ms·
Hmm, I've just scanned through this, but it seems this gets the concept of stochastic gradient descent (SGD) completely wrong. The nice part of SGD is that you
by amelius 9y ago
Hmm, I've just scanned through this, but it seems this gets the concept of stochastic gradient descent (SGD) completely wrong.
The nice part of SGD is that you can backpropagate even functions that are not differentiable.
This is totally missed here.
- kleebeesh 9y agoHow do you compute the gradient of a non differentiable function? I'm not an expert, but that contradicts anything I've learned about gradient descent.
- Houshalter 9y agoPseudo gradients are a thing. You can pretend its a continuous function and get gradients that push it in the right direction.
- Helmet 9y agoCan you explain? I thought the entire point of back-propagation was to differentiate and calculate the weights that are contributing more to the error and thus will be "changed" more when you do GD.
- deleted 9y ago[deleted]
- albertzeyer 9y agoNo, stochastic gradient descent (SGD) needs a differentiable loss function (differentiable with respect to the trainable parameters). The stochastic bit is that you want to optimize the loss for the whole dataset but what you actually do is to do each gradient descent step on a small mini-batch of the dataset. There might be extensions where you have some non-differentiable part where you just assume some gradient in back-propagation. Like Gumble-Softmax (https://arxiv.org/abs/1611.01144 https://arxiv.org/abs/1611.01144). Or similar is the reparametrization trick in VAEs (https://arxiv.org/abs/1606.05908 https://arxiv.org/abs/1606.05908). But that are special cases. Maybe you are thinking about reinforcement learning?
- curuinor 9y agomaybe you're thinking about simulated annealing?
- Cybiote 9y agoAs others have pointed out, SGD requires differentiability. The next best match I can think of is that you're actually thinking of subgradient methods, which mostly see use in convex optimization problems.