~/talk

std::autodiff - computing derivatives with your compiler

Talkat RustWeek 2025 · 2025-05-13..05-17· [rust, machine-learning]
slides:none on file

A new std::autodiff macro compiles Rust functions into extra derivative-returning variants (reverse-mode gradients, jacobians, hessians), using an Enzyme/LLVM backend integrated by modifying the compiler pipeline and requiring nightly with D set autodiff=enable. Benchmarks across LSTM, Gaussian mixtures, bundle adjustment and ODE solvers show Rust matching C++ when relying on safe Rust optimizations; using raw pointers yields 2.5x–10x slower results in some cases. GPU, MPI, batching and custom derivatives are supported but the feature remains experimental and some CMake/compile-time rough edges persist.

AI-written summary · about

  1. 0:00Intro
  2. 0:52What is autodiff
  3. 3:10Why autodiff is fast
  4. 5:40Autodiff in Rust
  5. 6:44Benchmarks
  6. 8:52Next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.