Backpropagation Through Compiled Code

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.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Mathematical Software
Published
2026-10-14
DOI
https://doi.org/10.1145/3849487
Primary Topic
Numerical Methods and Algorithms
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Backpropagation Through Compiled Code

Nicolas R. Gauger, Johannes Blühdorn, Max Aehle, Max Sagebaum
ACM Transactions on Mathematical Software
Numerical Methods and Algorithms
article

Backpropagation Through Compiled Code

Nicolas R. Gauger, Johannes Blühdorn, Max Aehle, Max Sagebaum
article en

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.

ACM Transactions on Mathematical Software
University of Kaiserslautern (DE), Rheinland-Pfälzische Technische Universität Kaiserslautern-Landau (DE)
Openalex Percentile: Top 14%
Numerical Methods and Algorithms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.