Differentiation (in Machine Learning)
Definition
Derivations describe changes to a function and are used, for example, for the gradient-based training of neural networks.
In machine learning, differentiation determines how much the error changes when a parameter is slightly varied. Through automatic differentiation (autodiff) in the backpropagation step, neural networks learn efficiently.
Simply explained
Like the search for the steepest descent on a mountain slope in the fog: you scan the slope to get into the valley.
Why it matters in practice
Relevant for gradient-based learning methods; not every machine learning method requires derivations.
Example from business
Possible example: An image classification model calculates derivatives of its loss function to adjust weights.
Limits and pitfalls
- Numerical instabilities (vanishing/exploding gradients); confusion of symbolic, numerical and automatic differentiation.
Origin & history
Mathematical differentiation goes back a long way before machine learning. Baydin et al. provide an overview of automatic differentiation and its use in machine learning.
Use in mid-sized companies
- Technical basis of gradient-based models, for example for image recognition and forecasting; usually provided by a training library.
Frequently asked questions
What is Automatic Differentiation?
It calculates derivations of a computer program on the basis of the chain rule and differs from symbolic derivation and difference quotients.
Is it free of rounding errors?
No. Autodiff is also subject to the numerical accuracy used.
Sources
- Automatic Differentiation in Machine Learning: a Survey · Baydin et al. (2018), Automatic Differentiation in Machine Learning: a Survey
Sources checked on 10/09/2026.
Editorially reviewed on: