LLVM Code Optimisation for Automatic Differentiation: When Forward and Reverse Mode Lead in the Same Direction

Maximilian E. Schüle, Maximilian Springer, Alfons Kemper, Thomas Neumann

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

2 Scopus citations

Abstract

Both forward and reverse mode automatic differentiation derive a model function as used for gradient descent automatically. Reverse mode calculates all derivatives in one run, whereas forward mode requires rerunning the algorithm with respect to every variable for which the derivative is needed. To allow for in-database machine learning, we have integrated automatic differentiation as an SQL operator inside the Umbra database system. To benchmark code-generation to GPU, we implement forward as well as reverse mode automatic differentiation. The inspection of the optimised LLVM code shows that nearly the same machine code is executed after the generated LLVM code has been optimised. Thus, both modes yield similar runtimes but different compilation times.

Original languageEnglish
Title of host publicationProceedings of the 6th Workshop on Data Management for End-To-End Machine Learning, DEEM 2022 - In conjunction with the 2022 ACM SIGMOD/PODS Conference
PublisherAssociation for Computing Machinery, Inc
ISBN (Electronic)9781450393751
DOIs
StatePublished - 12 Jun 2022
Event6th Workshop on Data Management for End-To-End Machine Learning, DEEM 2022 - In conjunction with the 2022 ACM SIGMOD/PODS Conference - Philadelphia, United States
Duration: 12 Jun 202212 Jun 2022

Publication series

NameProceedings of the 6th Workshop on Data Management for End-To-End Machine Learning, DEEM 2022 - In conjunction with the 2022 ACM SIGMOD/PODS Conference

Conference

Conference6th Workshop on Data Management for End-To-End Machine Learning, DEEM 2022 - In conjunction with the 2022 ACM SIGMOD/PODS Conference
Country/TerritoryUnited States
CityPhiladelphia
Period12/06/2212/06/22

Keywords

  • GPU
  • automatic differentiation
  • in-database machine learning

Fingerprint

Dive into the research topics of 'LLVM Code Optimisation for Automatic Differentiation: When Forward and Reverse Mode Lead in the Same Direction'. Together they form a unique fingerprint.

Cite this