ComplexSystems
4 hours ago
This article is saying that it can be numerically unstable in certain situations, not that it's theoretically incorrect.
adgjlsfhk1
an hour ago
This is less about numerical instability and more that iterative algorithms with error control their error, but when you run AD on them you are ADing the approximation and a derivative of an approximation can be arbitrarily different from an approximation of a derivative.
ogogmad
an hour ago
That makes more sense. The title is flat out wrong IMO.
omnicognate
4 hours ago
Yeah, perhaps the actual title would be better: "The Numerical Analysis of Differentiable Simulation". (Rather than the subtitle, which is itself a poor rewording of the actual subtitle in the video.)
goosedragons
3 hours ago
It can be both. A mistake in AD primitives can lead to theoretically incorrect derivatives. With the system I use I have run into a few scenarios where edge cases aren't totally covered leading to the wrong result.
I have also run into numerical instability too.
froobius
3 hours ago
> A mistake in AD primitives can lead to theoretically incorrect derivatives
Ok but that's true of any program. A mistake in the implementation of the program can lead to mistakes in the result of the program...
goosedragons
3 hours ago
That's true! But it's also true that any program dealing with floats can run into numerical instability if care isn't taken to avoid it, no?
It's also not necessarily immediately obvious that the derivatives ARE wrong if the implementation is wrong.
froobius
2 hours ago
You can pretty concretely and easily check that the AD primatives are correct by comparing them to numerical differentiation.
srean
2 hours ago
> It's also not necessarily immediately obvious that the derivatives ARE wrong if the implementation is wrong.
It's neither full proof or fool proof but an absolute must is a check that the loss function is reducing. It quickly detects a common error that the sign came out wrong in my gradient call. Part of good practice one learns in grad school.