An alternative AD approach that seems to be faster than autograd

I am looking for people interested in benchmark testing, or helping with he development, of the following alternative approach to AD in libtorch:

I provided (under Benchmarks on the web page above) a turnkey solution to running the benchmarks in a podman ubuntu container.

Stan’s autodiff is objectively faster and scales much better than pytorch’s autodiff. I benchmarked this extensively while at SAS.

Inversion of an nxn matrix is one operation in libtorch. As I understand, Stan’s autodiff would would require order n cubed floating point scalar operations to compute an nxn matrix inverse. Did you compare this sort of case in your benchmarks ?

Not exactly but we tested and scaled algorithms with enough flops to know it scaled way better, even internal C autodiff developed in the 90s. It’s not necessary. Are you hiring?

And when in industry, for least squares problems, in practice, at a hedge fund, we used QR decomposition. We didn’t use the pseudo inverse, which is what’s taught in linear regression classes. This is one of the first things (a PhD in physics) taught me. Matrix inversion? Avoid at all costs.

It would be pretty trivial (mathematically at least) to perform a computation experiment or benchmark. You can do an experiment locally if you’d like. Use Stan’s autodiff, and then use pytorch’s autodiff, and just scale with randomly generated numbers (10,000, a basic MC simulation) to get an answer. I’d do this professionally, if you’re hiring.

Try running the following benchmark using Stan for your derivative computation and see how its compute time compares to libtorch’s autograd:

I was paid to do this at SAS, I’ve already benchmarked this extensively, again legacy code as well. I’m not interested in working for free. I was paid a salary there. Stan’s is faster, then SAS’s C legacy code, and PyTorch falls behind. I’m not trying this. You can benchmark it yourself.

If you’re paying me, I’ll do it for you. I was there for about 3 years.