DaCe AD: Unifying High-Performance Automatic Differentiation for Machine Learning and Scientific Computing

Afif Boudaoud, Alexandru Calotoiu, Marcin Copik, Torsten Hoefler
9/2/2025
cs.LGcs.PFcs.PL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Automatic differentiation (AD) is a set of techniques that systematically applies the chain rule to compute the gradients of functions without requiring human intervention. Although the fundamentals of this technology were established decades ago, it is experiencing a renaissance as it plays a key role in efficiently computing gradients for backpropagation in machine learning algorithms. AD is also crucial for many applications in scientific computing domains, particularly emerging techniques that integrate machine learning models within scientific simulations and schemes. Existing AD frameworks have four main limitations: limited support of programming languages, requiring code modifications for AD compatibility, limited performance on scientific computing codes, and a naive store-all solution for forward-pass data required for gradient calculations. These limitations force domain scientists to manually compute the gradients for large problems. This work presents DaCe AD, a general, efficient automatic differentiation engine that requires no code modifications. DaCe AD uses a novel ILP-based algorithm to optimize the trade-off between storing and recomputing to achieve maximum performance within a given memory constraint. We showcase the generality of our method by applying it to NPBench, a suite of HPC benchmarks with diverse scientific computing patterns, where we outperform JAX, a Python framework with state-of-the-art general AD capabilities, by more than 92 times on average without requiring any code changes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{boudaoud2025dace,
  title  = {DaCe AD: Unifying High-Performance Automatic Differentiation for Machine Learning and Scientific Computing},
  author = {Afif Boudaoud and Alexandru Calotoiu and Marcin Copik and Torsten Hoefler},
  year   = {2025},
  eprint = {2509.02197},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.02197v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.02197.svg)](https://codeofpaper.com/paper/2509.02197)

Discussion