Neural Network Option Pricing
Instead of solving a pricing formula every time, train a network to memorise what the formula outputs, then look it up a thousand times faster — as long as you never ask it about a market it hasn't seen.
Prerequisites: The Black-Scholes Model, Backpropagation
A closed-form option pricing formula is fast; a Monte Carlo or PDE solver for an exotic model can take seconds per price, and a real-time calibration might need that price evaluated tens of thousands of times as it searches for the parameters that fit the market. Waiting seconds, tens of thousands of times, is not something a trading desk can do between quotes. The fix sounds almost too simple: run the slow pricer once, offline, on a huge grid of inputs, and train a neural network to reproduce its outputs. Afterward, evaluating the network takes microseconds.
The world's most expensive lookup table
Think of a chef who spends a weekend cooking every possible combination of a dish's ingredients and writing down how it tasted, then hands a new cook a laminated card summarising the pattern — "more salt up to about a teaspoon per pound helps, then it stops helping." The new cook can now guess how any similar dish will taste almost instantly, without ever touching a stove, because the pattern was learned once and reused. A neural network pricer is that laminated card: the expensive cooking happens once, offline (training), and the fast guessing happens every time afterward (inference).
What the network is actually fitting
A feed-forward network is just a chain of simple functions. With one hidden layer, it computes
where is the vector of inputs (strike, maturity, and model parameters like volatility or mean-reversion speed), and are matrices of weights, and are offset vectors, and is a nonlinear "squashing" function applied entrywise. In plain English: take the inputs, mix them together with learned weights, bend the result through a nonlinearity so the network can represent curves rather than only straight lines, then mix again to produce one number, the price. Training means adjusting every weight in so that matches the true pricer's output as closely as possible across the whole training grid, done by gradient descent via backpropagation.
Worked example 1: fitting three points with a one-node network
Suppose the true (slow) pricer, evaluated at three strikes for a fixed maturity, gives prices , , . A tiny network with one hidden unit and a linear activation is just , which collapses to a straight line . Fit it with two of the three points, say and : slope , intercept . The line predicts , against a true value of — an error of . A linear network cannot bend, and option prices are convex in strike, so it systematically misses the middle. This is exactly why real pricing networks use a nonlinear and several hidden units: enough bends to trace a convex curve through all the training points, not just fit a straight line between two of them.
Worked example 2: training speed versus inference speed
Say the true pricer (a Monte Carlo engine) takes seconds per price, and a calibration routine needs evaluations to search for model parameters that match the market. Direct calibration: seconds, about hours — unusable intraday. Training the network instead uses, say, training prices computed once offline: seconds, about hours, but this happens overnight, not during trading. Then each network evaluation during the day takes about seconds (), so the same -evaluation calibration costs second. A calibration that was impossible intraday becomes instantaneous, at the one-time cost of an overnight training run.
What this means in practice
Neural pricers are used to accelerate calibration of expensive stochastic-vol and local-stochastic-vol models, and to price American or path-dependent products where a closed form doesn't exist, letting a full model calibration that used to take hours run in seconds. The network never replaces the underlying model — it replaces the cost of evaluating it.
A network trained on strikes from to and maturities from one month to two years has learned nothing about a strike of or a maturity of ten years — it will still confidently output a number, but that number is extrapolation, not a price, and can be badly wrong with no warning sign in the output itself. The classic mistake is trusting the network's output uniformly across the input space it was never trained on. Production systems guard against this by tracking whether live inputs fall inside the training grid's convex hull and falling back to the slow, true pricer whenever they don't.
A neural pricer is a fast, learned approximation of a slow pricing model — the accuracy is only as good as the training grid, and it degrades silently outside it.
Related concepts
Practice in interviews
Further reading
- Hernandez (2017), Model Calibration with Neural Networks
- Horvath, Muguruza & Tomas (2021), Deep Learning Volatility