Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Quantitative Finance›Greeks via Automatic Differentiation
Machine learningComputational Methods

Greeks via Automatic Differentiation

Automatic Differentiation for Greeks Computation · Also known as: AD Greeks, Algorithmic Differentiation, Autodiff

Automatic differentiation (AD) is a computational technique for computing derivatives (Greeks) by differentiating the computer code that computes the option price. AD avoids manual derivation of formulas and finite-difference approximations, yielding exact sensitivities with machine precision. It has become essential for real-time risk management in modern trading systems.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Greeks via Automatic Differentiation
Bates ModelLocal Volatility (Dupire)Risk-Neutral Valuation

When to use it

Use AD for pricing exotic or complex derivatives where Greeks are hard to derive analytically. Essential for Monte Carlo pricing (finite-difference is slow and noisy). Use forward mode AD for few inputs (delta, vega); reverse mode for many inputs or when computing all Greeks simultaneously.

Strengths & limitations

Strengths
  • Exact computation: computes derivatives to machine precision, avoiding finite-difference rounding errors
  • Speed: typically only 2-5x slower than computing the price alone; much faster than bump-and-reprice
  • Generality: applies to any pricing algorithm (Monte Carlo, PDE, trees) without manual formula derivation
  • Automation: once you have pricing code, Greeks are automatic; no analytical work needed
Limitations
  • Implementation overhead: requires AD-capable automatic differentiation tools (TensorFlow, JAX, specialized libraries)
  • Code structure sensitivity: AD works best with clean, differentiable code; conditionals and loops require care
  • Memory overhead (reverse mode): storing intermediate values for backpropagation can exceed memory for large computations
  • Limited third derivatives: computing higher-order Greeks (speed, color) is more complex and slower

Frequently asked

What is the difference between forward and reverse mode AD?

Forward mode (direct) propagates derivatives forward through the computation graph. Reverse mode (adjoint) propagates backward. Forward mode is faster for few inputs; reverse mode is faster for many outputs. For Greeks, you typically compute many outputs (delta, vega, gamma) from few inputs (spot, vol, rate), so reverse mode is preferred.

How much slower is AD than the original pricing code?

Typically 2-5x slower for reverse-mode AD. You're computing derivatives alongside the price. Compare this to bump-and-reprice (finite difference), which is 100x-1000x slower because you must recompute the price for each input bump.

Can I use AD for Monte Carlo pricing?

Yes. AD differentiates each path's payoff, averaging the derivatives across paths to get the Greek. However, this is noisy (path-specific estimates have high variance). Combine AD with variance-reduction techniques (antithetic, control variates) to reduce variance.

What if my code has if-statements?

AD handles differentiable code best. For non-smooth branches (e.g., 'if spot > strike'), use smooth approximations (logistic function, softplus). Alternatively, separate the code into smooth regimes and differentiate each separately.

Sources

  1. Giles, M. B. (2008). Adjoint code by automatic differentiation. Journal of Computational Finance, 12(1), 1-18. link ↗
  2. Homescu, C. (2011). Adjoints and automatic differentiation in computational finance. arXiv:1107.1188. link ↗

How to cite this page

ScholarGate. (2026, June 3). Automatic Differentiation for Greeks Computation. ScholarGate. https://scholargate.app/en/quantitative-finance/greeks-via-automatic-differentiation

Related methods

Bates ModelLocal Volatility (Dupire)Risk-Neutral Valuation

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bates ModelQuantitative Finance↔ compare
  • Local Volatility (Dupire)Quantitative Finance↔ compare
  • Risk-Neutral ValuationQuantitative Finance↔ compare
Compare side by side →

Similar methods

Carr-Madan FFTLocal Volatility (Dupire)Longstaff-Schwartz MethodCrank-Nicolson PricingChange of NumeraireBlack-Scholes ModelMultilevel Monte Carlo SimulationCredit Valuation Adjustment

Related reference concepts

Ito's FormulaIto Calculus and Stochastic IntegrationFinite Difference MethodsBackpropagation and OptimizationBrownian Motion and Stochastic CalculusStochastic Differential Equations

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Greeks via Automatic Differentiation (Automatic Differentiation for Greeks Computation). Retrieved 2026-07-21 from https://scholargate.app/en/quantitative-finance/greeks-via-automatic-differentiation · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Mike Giles, Iman Homescu
Subfamily
Computational Methods
Year
2008
Type
Sensitivity Analysis
Related methods
Bates ModelLocal Volatility (Dupire)Risk-Neutral Valuation
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account