This work shows how to compute subderivatives efficiently without errors.
problem Inefficient and incorrect computation of subderivatives in ML libraries.
method Developed a method to compute provably correct generalized subderivatives at a cost close to the function itself.
result Provable correct generalized subderivatives can be computed at a cost within a factor of 6 of the function itself.