|
|
|
|
|
by ogogmad
1680 days ago
|
|
I don't know whether this belongs here, but... Formally, there is a generalisation of differentiation which can handle functions like ReLU (i.e. locally Lipschitz non-differentiable functions) by allowing a derivative to be set-valued. It's called the Clarke gradient. The Clarke gradient of ReLU at 0 is the closed interval [0,1]. Note that the Clarke gradient doesn't satisfy the chain rule (except in a weakened form) which might seriously mess up some assumptions about autodiff. Is this generalised derivative useful in autodiff? I imagine that this is a largely theoretical tool that's useful in analysing algorithms but useless for actually computing things. |
|
[0] https://en.m.wikipedia.org/wiki/Subderivative