Backpropagation Through Compiled Code
Max Aehle, Johannes Blühdorn, Max Sagebaum, Nicolas R. Gauger
Key points
From the paper's conclusion- In contrast, Derivgrind , a novel AD tool that inserts forward-mode differentiation logic on the machine code level via dynamic binary instrumentation, supports an unprecedented range of programming languages with minimal manual integration efforts.
Abstract
Algorithmic differentiation (AD) tools provide accurate derivatives of computer-implemented functions, for use in gradient-based optimization tasks like the training of neural networks or the improvement of computational engineering designs. Typically, AD tools require the source code to be available in a restricted set of programming languages, and often necessitate manual modifications because the language standard is only partially supported. In contrast, Derivgrind , a novel AD tool that inserts forward-mode differentiation logic on the machine code level via dynamic binary instrumentation, supports an unprecedented range of programming languages with minimal manual integration efforts. In this work, we extend Derivgrind with tape-recording logic, enabling reverse-mode AD for compiled code.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- VAPY: Circuit Optimization with BackpropagationarXiv · 2026
- Handling JAXarXiv · 2026
- Deegen: A JIT-Capable VM Generator for Dynamic LanguagesProceedings of the ACM on Programming Languages · 2026
- A CPU Inside an LLM: Zero-Gradient Compilation of Exact Circuits into Pretrained WeightsarXiv · 2026
- Recursive Improvement of a Differentiable Scientific Software EcosystemarXiv · 2026
- ADSPICE: A Method of Automatic Differentiation for Gradient-Based Lumped Circuit Optimization with Native SPICEarXiv · 2026