Research › Interactive tools

Arbitrage-free option surfaces with DC-PINNs

A companion to Physics-Informed Neural Networks for Solving Derivative-Constrained PDEs (Hoshisashi, Phelan and Barucca). Take noisy option marks, fit a neural price surface that also satisfies Dupire’s equation and the static no-arbitrage conditions, and compare it with the true surface and with a plain neural fit of the same marks. Everything is trained live in your browser.

The problem on the desk

You mark 45 implied vols: 1M, 3M, 6M, 1Y and 2Y, from roughly the 5-delta put to the 5-delta call. Risk, PnL explain and every exotic need prices between those marks and a little beyond them, with stable Greeks. Any surface you build must not contain static arbitrage, or someone will trade against it:

ConditionIn mathsOn the desk
Call spreads\(-e^{-rT}\le \partial C/\partial K\le 0\)A call spread costs between zero and the discounted strike width.
Butterflies\(\partial^2 C/\partial K^2\ge 0\)Every butterfly has a non-negative price: the risk-neutral density is never negative.
Calendars\(\partial C/\partial T\ge 0\) at fixed \(K/F\)A longer-dated option at the same forward moneyness is worth at least as much.

What a DC-PINN does

A small neural network outputs the call price \(C(K,T)\) for every strike and expiry. It is trained on one loss with four parts, exactly as in the paper:

  1. Data: match the marks.
  2. Physics: satisfy Dupire’s equation, the PDE every arbitrage-free call surface obeys under the model, at a few hundred points between the marks.
  3. Boundaries: payoff at expiry, deep in-the-money and far out-of-the-money limits.
  4. Derivative constraints: a one-sided penalty \([h]_+^2\) whenever a call spread, butterfly or calendar condition is broken anywhere on the grid. This is the “DC” in DC-PINN.

The weights of the four parts are not hand-tuned: they adapt during training from the size of each part’s gradient, and constraint points that keep failing get more weight. Strikes and expiries enter the network as derivatives through automatic differentiation, so the same network gives prices, Greeks and the density with no finite differences.

How to read this page

  1. Pick a case. Black–Scholes is the sanity check: the answer is the closed-form price at one vol. Equity skew has a skew and smile, priced by a high-resolution finite-difference solver.
  2. Press Train. Two networks of identical size see the same noisy marks: a plain neural fit (data only) and the DC-PINN.
  3. Read the cards below, then the tabs: Smiles for vol errors, No-arbitrage for where each surface breaks, Greeks for delta, gamma and a priced ticket.