Tehnika (Jan 2023)

Differentiable programming in machine learning

  • Kostić Marija A.,
  • Drašković Dražen D.

DOI
https://doi.org/10.5937/tehnika2306699K
Journal volume & issue
Vol. 78, no. 6
pp. 699 – 711

Abstract

Read online

This paper explains automatic differentiation, discussing two primary modes - forward and backward - and their respective implementation methods. In the context of issues encountered in machine learning and deep learning, the forward mode is deemed more suitable as it efficiently differentiates functions with numerous inputs compared to outputs. Given Python's pivotal role in the ML landscape, the paper elaborates on two widely used deep learning libraries-PyTorch and TensorFlow. While both these libraries support automatic differentiation, they adopt distinct approaches, each carrying its unique strengths and weaknesses.

Keywords