QQuant, Built

Act III · Derivatives (Q)

Part 17 of 43

Deep Pricing and Hedging

Master'sstarts at this level64 min of film 22 chaptersprerequisites: Part 10, Part 16

Can a network learn to price and to hedge, and how would you know whether to trust it?

A frontier part, and every network in it is trained on screen. A network learns the Black-Scholes formula and then its Greeks; training on payoffs together with their pathwise derivatives (differential machine learning) gets there with far fewer samples. A neural calibrator learns the map from model parameters to a whole surface so that rough volatility can be calibrated in milliseconds. Deep BSDE solvers price in a hundred dimensions, and the deep hedger learns a strategy under transaction costs directly, with no model of the Greeks. Each result is checked against the classical benchmark at the same budget, and the last chapters are about model risk: where a learned hedger must not be allowed to trade.

What you need. Parts 10 and 16, and the idea of gradient descent (AI, Built, Part 4, has the full story).

What you will be able to do

Undergraduate

  • Explain what it means to train a network on simulated payoffs, and why a benchmark at equal budget matters.

Master's

  • Train a network to approximate a pricing function and its Greeks; explain differential labels.
  • Set up deep hedging: the objective (a risk measure of the hedged P&L), the network's inputs, the cost model; compare with delta hedging and the Whalley-Wilmott band.

PhD

  • State the deep BSDE method and its a posteriori error bound (Han and Long); deep optimal stopping; neural SDEs and signature-based market generators.

Industry

  • Write a validation plan for a learned pricer or hedger: benchmarks, stress regions, monitoring, fallbacks (in the spirit of supervisory model-risk guidance).

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 5 min · Master's 42 min · PhD 64 min · Industry 9 min.

  1. 0A machine that hedgesUndergraduate3 min
  2. 1Learning a pricing formulaMaster's3 min
  3. 2A network's GreeksMaster's3 min
  4. 3The neural calibrator: learning the mapMaster's3 min
  5. 4Calibrating through the networkMaster's3 min
  6. 5Rough volatility, week by weekMaster's2 min
  7. 6Differential machine learningMaster's3 min
  8. 7Differential labels in three dimensionsMaster's3 min
  9. 8A hundred dimensions: the deep BSDEPhD3 min
  10. 9Watching the deep BSDE convergePhD3 min
  11. 10Deep optimal stoppingPhD4 min
  12. 11The deep hedgerMaster's3 min
  13. 12Risk measures and the drift trapMaster's4 min
  14. 13Where not to tradeMaster's3 min
  15. 14The band as a surfaceMaster's3 min
  16. 15Neural SDEs and model sensitivityPhD4 min
  17. 16Market generatorsPhD3 min
  18. 17Production and model riskIndustry3 min
  19. 18The frontier, 2023 to 2026PhD1 min
  20. 19Rule 17: the validation planIndustry2 min
  21. For the researcher: population loss and price-error boundsPhD4 min
  22. Recap, desk questions, problemsAll tracks2 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Reading · 中文 · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.

A machine that hedgesUndergraduate3 min

Deep pricing and hedging. Networks that price, calibrate and hedge, trained on the House's own engines, and checked against them.

A delta-centred band architecture learns widths for a simulated thirty-day call, with a half-percent proportional fee per traded share. Inside the band, keep the holding; outside, trade to an edge. Whalley and Wilmott derived a small-cost asymptotic corridor in 1997. The full curves need not coincide. With risk aversion one, the saved test gives empirical exponential-loss objectives and for the band and daily delta. Finite-path estimates do not certify finite population exponential risk under lognormal tails, or an optimal market price. Risk.net reported a live Euro Stoxx cliquet deep-hedging rollout in May 2022, with S&P expansion still planned.

Watch the independently trained seed-three policy on one simulated month: stock above, holdings below. The teaser used seed two; this live panel's empirical evaluation uses seed three. At each daily decision, the band clamps the old holding to its nearest edge. Between decisions, the holding stays fixed even as the state changes. On this path the band trades on of thirty days and daily delta on . These are one-path trade counts, not a typical-frequency estimate or a population-risk guarantee.

A question to carry through the part. If trading costs double, does the corridor double in width? Chapter thirteen derives the answer, and chapter fourteen measures it.

How we got here. In 1985 Hayne Leland priced hedging with costs. In 1989 Hodges and Neuberger priced by indifference, and George Cybenko proved that a suitable wide hidden layer can approximate continuous functions on compact sets. In 1994 Hutchinson, Lo and Poggio let a network learn option prices; in 1997 Whalley and Wilmott derived the corridor you just saw. In 2011 American supervisors issued model-risk guidance. Then the deep wave: calibration by a network in 2016, the deep BSDE solver in 2017, deep hedging and deep optimal stopping in 2019. Differential machine learning and generative market models in 2020; neural calibration of rough volatility and band networks in 2021; neural models for robust bounds in 2022. And in 2026 the supervisors revised their guidance, while researchers began to build generators of whole option markets.

The plan: learned prices and Greeks; neural calibration; derivative labels; high-dimensional BSDEs and stopping; hedging risk and drift; bands; model sensitivity; generators; and validation. Replays show selected fixed-seed training runs and numerical cross-checks within explicit limits. The generator chapter uses an analytical Gaussian example; the disjoint-history cross-generator test remains a plan.

The House's code contains pricing, hedging and generative-model tools. This part distinguishes the numerical illustrations we checked from proposed validation. Later parts must state their own data and stress-model scope.

1Learning a pricing formulaMaster's3 min

Hutchinson, Lo and Poggio asked whether a network could learn an option price. In this modern illustration volatility, rates and dividends are fixed. For positive strike, homogeneity reduces the varying inputs to moneyness and maturity. A universal approximation theorem gives existence on a compact set under activation conditions. It does not guarantee successful optimization, finite sample accuracy, or accurate derivatives. Differentiate the fitted network to obtain a candidate delta; that operation still costs work. Then test it. Even the true delta leaves discrete hedging error. The saved training set contains Black–Scholes-labelled prices from ten simulated two-year paths, with overlapping options; these are not independent market observations or a literal replication of the original paper.

Here is the training. On the right, the error over the sixty-six thousand prices, epoch by epoch, for three networks started from different random weights: the band is their spread. On the left, what the first network believes the call is worth six weeks before expiry, against the formula it never saw. At first it is a flat guess. Within twenty passes it has the hockey stick's bend; by the end the three seeds sit at a root-mean-square error of to percent of the strike, and the curve lies on the formula.

Now the whole function at once: the learned price over moneyness and time to expiry, coloured by its error. Blue is within a tenth of a percent of the strike. The red is where you would expect it: the shortest expiries, near the money, where the true price bends sharply into the payoff and a smooth network has to bend with it. The worst point is off by percent. A desk would see that red patch as the place not to trust this network, and it is exactly where gamma, the curvature, is largest.

An excerpt from the House's training loop: shuffle, batch, measure squared error and step the optimizer. The scheduler lowers the learning rate. Three fixed random starts give three fitted sets of weights; they do not establish a sampling distribution or prove successful optimization.

Here is a separate evaluation on two hundred fresh simulated options, struck at the money and hedged daily for sixty-three trading days. The plot selects the first saved option; each network and the true delta use the same evaluation paths. Their portfolio values track closely in this example. The true delta has RMS tracking error ; the three training seeds give to : . This range measures three training outcomes on reused paths, not a confidence interval or a significance test. It compares discrete hedges within a fixed Black–Scholes model; it does not establish performance on other models or real markets.

But a network judged on prices is not automatically good at derivatives of prices. Will its second derivative, the gamma, be right too? That depends on a choice made before training even starts.

2A network's GreeksMaster's3 min

Use the same simulated training data and compare three activations with the same architecture: SiLU, ReLU and softplus. These curves show seed zero, six weeks before expiry. Their price curves are close to the Black–Scholes reference. ReLU produces a piecewise linear fitted function, so its first derivative is a staircase. Its classical second derivative is zero wherever it exists and undefined at kinks; automatic differentiation misses that distributional curvature. Smooth activations can represent nonzero gamma, but accurate values or smoothness alone do not guarantee accurate Greeks.

Why? Write a network with one hidden layer: weights, biases, and an activation applied to every unit. Differentiate twice with the chain rule. The curvature of the whole network is a weighted sum of the curvature of its activation. A ReLU is a straight line on each side of its kink, so its second derivative is zero except at the kinks, where it does not exist. Stack as many layers as you like: the network stays piecewise linear, and its gamma is zero almost everywhere. And a price has a shape it must keep. From Breeden and Litzenberger, the second strike derivative of a call is the risk-neutral density, so a butterfly can never have a negative price. A network knows none of this unless you build it in, or penalize it.

Fix spot and maturity and compare forty-one equally spaced strikes. Each interior strike gives a butterfly, so there are thirty-nine bars. These show seed zero, without clipping; the reported negative fractions average two seeds. With simultaneous executable frictionless quotes, a negative-priced portfolio with nonnegative payoff would be an arbitrage. Here it diagnoses inconsistent network prices. The SiLU network's mean negative fraction is percent, softplus percent, and ReLU percent. Smoothness alone does not enforce convexity; a zero observed violation rate is not a global guarantee.

The scorecard, averaged over two seeds each. The price errors are of the same order. The gamma errors are not: the ReLU network's is times the SiLU network's. For a pricing network, the derivatives are not a by-product: they are the Greeks, and they are what the risk system uses. Choose a smooth activation, and check the Greeks, not just the prices.

A question before moving on: which of the three would you least like to hedge a short straddle with? The ReLU network: its gamma is zero almost everywhere, so it would never warn you how fast a straddle's delta turns, exactly where the risk lives. Next: a network that learns a model's whole smile.

3The neural calibrator: learning the mapMaster's3 min

Part fourteen compared rough Bergomi and Heston on one frozen option surface. The slow engine uses simulation inside calibration. Neural calibration moves much of that work offline, following research including Horvath, Muguruza and Tomas. Here a pointwise surrogate learns implied volatility from five parameters, maturity and log-moneyness. Its labels come from twelve thousand parameter sets. Online optimization differentiates this fitted surrogate. Simulation is still needed for independent checks, new parameter regions and retraining; paying once does not remove numerical bias or model risk.

Offline, draw twelve thousand parameter sets and retain finite implied-volatility labels, then train the surrogate. Many option labels share the same simulated paths, so this is not that many independent observations. Online, fit the five parameters through the surrogate. These recorded CPU times describe different workloads and do not prove equal accuracy. The history includes Hernandez's inverse calibration, Bayer and Stemper's neural calibration, Liu, Oosterlee and Bohte's pricing and implied-volatility networks, and Horvath, Muguruza and Tomas's rough-volatility calibration. Our pointwise implementation is an illustration within this literature.

Here is the network learning, from two random starts. On the right, its error on parameter sets it never saw. On the left, what it believes rough Bergomi gives at the parameters we will calibrate in the next chapter, at three expiries, against the market's quotes. At the start, flat lines. After one pass, a level. After five, the skew appears, and it sharpens epoch by epoch. Both seeds end near to vol points.

An ideal variance decomposition first: conditionally unbiased independent validation noise adds to the network's expected squared error. It is not a lower bound for every measured finite-sample error. Implied-volatility labels need extra care: inversion is nonlinear and can be biased. The saved diagnostic repeats held-out parameter sets with twenty thousand paths, comparing them with the ten-thousand-path labels. A one-and-a-half variance factor is only a local linear approximation; both engines also share time-discretization bias. Dividing the gap by square root of one point five gives vol points as an illustrative noise diagnostic, not a certified noise floor or a true-model error.

Compare the saved finite-implied-volatility subset. Network against held-out ten-thousand-path labels: vol points. Those labels against fresh simulation: . Network against fresh simulation: . Here . These statistics mix parameter sets with correlated option errors and exclude non-finite fresh implied volatilities. The comparison can suggest smoothing of label noise; it does not uniquely identify the surrogate's bias, variance or continuous-time pricing error.

A question: train on labels with twice the noise. Does the error against the fresh simulation double? Think about what averaging does before you answer; it is one of the problems in the notes. Far less than double. Each label is noisier, but the network averages over thousands of them, so its own error grows much more slowly than the noise: you need more data, not a new method. Next: calibrating the Surface through the network.

4Calibrating through the networkMaster's3 min

Map a free variable through tanh into the parameter box. Finite inputs lie in its interior, but being inside the bounds does not guarantee adequate training coverage. The map's slope tends to zero near a wall, slowing optimization; finite precision can saturate it. A wall does not reveal an unconstrained optimum. Automatic differentiation gives the gradient of the fitted surrogate, not automatically the true pricing map. Monte Carlo can also use pathwise, score or adjoint gradients. The saved pass timings are milliseconds for the surrogate, averaged over a hundred evaluations, and seconds for twenty-thousand-path simulation. They use different error sources and are not a matched-accuracy comparison of complete calibration jobs.

Here it is happening. The dots are the Surface's quotes, over log-moneyness and expiry, with implied volatility as height. The sheet is the network's implied-volatility surface at the first iterate of the best start: wrong, nearly flat. Now let the optimizer run. With every step the five parameters move, the network redraws the whole surface, and the sheet settles onto the dots: the skew steepens, the short end rises. It finishes at a Hurst exponent of , a volatility of volatility of and a correlation of , vol points from the quotes.

That was one start. Here are all , from random points in the box: the fit, step by step. After the final polish they end between and vol points, of them within a tenth of the best. Several different parameter sets fit almost equally well. The surface pins down some combinations of the parameters better than others, and a calibrator that starts from one point would never know.

The House's code. The model: the tanh map into the box, the features, one pass of the network. The loop: the vega-weighted squared error, a gradient step on the free variable, two hundred times, then L-BFGS to polish. Run on the Surface, it returns the parameters, the fit, and the time it took.

Three selected expiries provide a visual check: market quotes and the surrogate's smile. Crosses are fresh sixty-thousand-path Monte Carlo at the fitted parameters. The full-surface vega-weighted RMSE is vol points through the surrogate and on finite simulation outputs; fitted H is . These figures include simulation noise and numerical bias. The separate speed benchmark used only twenty thousand paths: milliseconds per surrogate surface, against seconds per simulation. Part fourteen's direct fit found H of . Different objectives, finite optimization and surrogate error can produce different parameters; agreement of fits does not identify a unique market H.

A question for the next chapter. Suppose the market wants a Hurst exponent of 0.01, below the floor of the training box. What does the calibrator report, and does it warn you?

5Rough volatility, week by weekMaster's2 min

The saved weekly option surfaces cover 2024 and 2025; these are descriptive calibrations, not forecasts. In percent of fitted weeks, H is below 0.021, within 0.001 of the training floor. This is a boundary diagnostic. It can reflect the model, calendar effects, quotes, surrogate error or optimization; it does not prove that a latent market H is smaller. The fitted price–volatility correlation also changes. Neither parameter series is a direct observation of the underlying process, and a good surface fit need not identify parameters uniquely.

Plot the fitted H and volatility-of-volatility parameters at their actual coordinates, without jitter. Of weeks, have H below 0.021. Clustering near the boundary alone cannot distinguish a constrained optimum, a flat objective, surrogate error or optimizer saturation. Selected weeks, every tenth retained fit, were repriced with forty thousand Monte Carlo paths. In of checks, the network and finite simulation fit errors differ by less than half a vol point. That is a chosen descriptive threshold, not a confidence level or proof that either fit is globally optimal.

Under the rough model's small-time assumptions and a nonzero leading coefficient, the at-the-money skew scales as maturity to the power H minus one half. That asymptotic statement does not identify H from a finite set of noisy expiries. A fitted point has loss at least the box's infimum; the box's infimum is at least the infimum over a larger admissible domain. A finite optimizer does not certify either infimum. Boundary fits invite coverage, identification and optimization checks rather than a literal claim about the market's roughness.

A wider box requires new labels and independent validation. A lower permitted H alone does not guarantee a more accurate pricing model; identifying that distinction is the exercise.

Compare descriptive fits to the same weekly quotes. Faint lines retain every saved error; bold lines are centred five-week medians, using neighbouring future weeks for display. The median errors are and vol points; the rough surrogate has the smaller recorded error in percent of weeks. Equal parameter counts do not mean equal flexibility or optimization budgets. Heston is refitted directly, while most rough-model errors use the surrogate; selected Monte Carlo checks remain noisy. This is a finite in-sample calibration comparison, not a statistical tie, a forecast contest or proof of the underlying model.

6Differential machine learningMaster's3 min

Use a seven-asset Bachelier call, where a starting state and one simulated payoff give a noisy value label. Pathwise derivatives give additional labels. For a scalar payoff, adjoint work is of the same order as its executed tape, with memory or recomputation costs; it is not free. Here additive Gaussian noise has positive basket variance, the payoff kink has probability zero, and bounded path derivatives justify differentiating the expectation. This conclusion needs those conditions; Lipschitz wording alone is not a universal recipe. The labels from one path are correlated. Huge and Savine fit values and derivatives together with scaling weights. Compare both methods on the same fixed model and evaluation states. Extra derivative labels and extra training work prevent interpreting the result as a universal equal-cost advantage.

See the two kinds of label. A slice through the seven-dimensional price, along equal moves in every asset. The grey dots are payoffs: each one a single simulation, scattered far from the price. Now give each dot its pathwise slope. Along this slice the slope is one if the basket finished in the money and zero if not: crude, but its average is the slope of the price. The slopes carry the shape far more clearly than the dots carry the level.

Now train both networks on the same thousand and twenty-four samples and watch them, checkpoint by checkpoint. Red is fitted to payoffs only, green to payoffs and slopes. Both start flat. The green one finds the shape almost at once, because every sample tells it which way the price is sloping. The red one has only the noisy levels, and wanders before it settles, never quite on the price where the payoffs are largest and noisiest.

These are finite-model RMSE comparisons on the reused evaluation set. At the three smaller training sizes, the bands span three data-and-weight seeds; at sixteen thousand samples, each dot is one run. These are not confidence intervals. With 256 samples the plain price RMSE ranges from to ; with derivatives, to . The ratio of mean delta RMSEs is . It summarizes these runs, not a guaranteed improvement factor. Equal sample counts do not match simulation, differentiation, memory or optimization costs, and a single large-sample run has no measured seed spread.

The House's twin loss: the value error, then the network's own input gradient, kept in the graph so training can differentiate through it, scored against the pathwise slopes. At a thousand and twenty-four samples, over three seeds:

A question to take into the next chapter: what would the slopes say if the payoff were a digital, which pays one or nothing?

7Differential labels in three dimensionsMaster's3 min

Two assets now, so the price is a surface we can see. Sixty-four training states, each with one simulated payoff: the pink dots, hovering above and below the true price, which is the faint sheet. Now give each its pathwise gradient, drawn as a small tangent plane. Each plane is tilted the way the payoff moves when each asset moves, on that one path. Fit a network to the dots alone: with sixty-four noisy heights, the red surface wobbles between them. Fit it to the dots and the planes: the green surface hugs the true price, because every sample also says which way it tilts. On a fine grid, the error falls from to .

A classical alternative puts a Gaussian-process prior on the pricing function. With a sufficiently smooth kernel, its mean-square derivatives are jointly Gaussian, and differentiated kernels give the covariance blocks for value and gradient observations. Under a Gaussian observation model and fixed hyperparameters, conditioning is a linear solve. These pathwise labels are actually correlated and heteroscedastic; the saved example instead uses chosen diagonal noise variances and cross-validates three length scales. Its posterior is a working model, not an exact description of simulation error. Dense factorization costs order M cubed and storage M squared for M equal to n times one plus d. A fixed neural architecture has linear work in n per epoch, but its architecture, derivative cost and required epochs still matter. Sparse and structured GP methods provide other tradeoffs.

The saved seed-zero GP uses the same sixty-four value-and-gradient samples. All saved sample coordinates and full surface values are retained; the surfaces themselves cover the fixed evaluation grid. The translucent sheets are the posterior mean plus and minus two pointwise model standard deviations. They condition on the selected kernel and assumed noise model. They are not a simultaneous band or a validated frequentist error bound for this non-Gaussian simulation problem. The recorded grid RMSE is ; a visually thin shell does not by itself certify an accurate price.

Three seeds, three methods. On average the plain network's error is , the differential network's , and the Gaussian process's : does best here.

For a digital payoff, the classical pathwise derivative is zero away from the strike and undefined at the strike. Averaging those zero labels misses the derivative of the exercise probability. Value labels may still pull the fit, but zero derivative labels give the wrong gradient target. Conditional smoothing or likelihood-ratio estimators require their own regularity conditions; smoothing the payoff also introduces a bias to control. Next: a hundred dimensions.

8A hundred dimensions: the deep BSDEPhD3 min

This published benchmark is a recursive valuation model for a claim on one hundred independent geometric-Brownian assets. It pays their minimum at one year, conditional on survival; recovery on default is two thirds of its current value. The specified default intensity depends on that value, producing nonlinear feedback. A full tensor grid with ten points per asset needs ten to the hundred nodes. A single discounted terminal-payoff average does not solve this nonlinear equation. Nested, branching or multilevel Monte Carlo constructions can address particular nonlinear settings; the neural BSDE method is one approach, not the only route beyond a grid.

Assuming a smooth interior pricing function, apply Itô's formula along the model's asset paths. Substitute the PDE into its drift. Our sign convention writes that drift as f of Y, with a plus sign. The result is a backward SDE with a specified terminal payoff. Z is exposure to Brownian noise, not directly a number of shares: in this diagonal diffusion, divide its i-th component by sigma times asset i to obtain the Brownian delta. The nonlinear credit model still carries its own assumptions; this identity does not establish a perfect hedge of issuer default.

Under the usual Lipschitz, square-integrability and adaptedness assumptions, the BSDE has a unique square-integrable solution. Markovian coefficient regularity links it to the PDE. The numerical method instead guesses a starting value and Brownian exposures, then uses forty Euler steps and date-specific networks. Training minimizes sampled terminal mismatch. Zero population mismatch in the exact continuous-time problem would identify its solution; zero empirical loss on a finite Euler grid would not certify the continuous-time price. Generalization, time stepping, approximation and optimization errors remain. Switching off default gives a linear model with a discounted-expectation reference, providing a useful separate check.

Here is the shooting, on thirty-two of the paths. The green dot is today's guess. From it, each path's price is stepped forward with that path's own noise and the networks' hedges, and at expiry it should land on the white tick, that path's payoff. The red segments are the misses. Before training, the guess is arbitrary and the hedges are noise: the fan sprays everywhere. As training proceeds, the guess moves and the networks learn to steer: the fan narrows, and each path comes down close to its own target.

With fixed time grid, batch and depth, the dense networks have width d plus ten. Their work grows quadratically in d at large dimension; doubling d then approaches four times the network work, while simulating paths is linear in d. This is work per update, not total cost for a fixed accuracy. More training or a finer grid may still be needed. Next: watching the solver converge.

9Watching the deep BSDE convergePhD3 min

Now the training itself, replayed. On the right, today's price, the guess, step by step: the line is a second run, the band spans it and the first. On the left, where two hundred and fifty-six test paths land at expiry, against their payoffs: a perfect solver would put every dot on the diagonal. At the start the dots are a shapeless cloud, and the guess is wherever it was dropped. Within a few hundred steps the cloud tilts toward the diagonal, and the guess slides toward the reference. By two thousand steps the cloud is a tight band around the diagonal.

The first run has four thousand updates. A descriptive summary of its last logged starting values is , with standard deviation . These optimizer iterates are correlated and still changing; their spread is neither a standard error nor a confidence interval. The mean is percent the published approximate multilevel-Picard reference, . The second seed uses a shorter run and a different averaging window, so it is not an equal-budget training-uncertainty estimate. The original paper reports 0.46 percent reference error in 1,607 seconds for its own implementation and hardware; our shared-CPU runtime is a separate measurement.

Turn default off and retrain the linear solver. Four hundred thousand terminal simulations give a discounted-payoff estimate with a Monte Carlo standard error. The trained starting-value average is , against from Monte Carlo. The two plus-or-minus figures have different meanings: correlated-iterate standard deviation for the network, sampling standard error for Monte Carlo. They do not form a calibrated common interval. Euler bias and optimization error still matter. The reference-price difference between the default and no-default benchmark models is ; it is model-specific, not an observed market credit spread.

The House's forward sweep: draw the noise for a hundred assets and forty steps, start every path at the guess, and at each date step the price with the default term and that date's network's hedge. Training only adds the squared miss and an optimizer.

For fixed depth, batch and time grid, dense-network work per update is polynomial, roughly quadratic in dimension. Achieving a target accuracy also depends on grid size, architecture and optimization iterations. Approximation theorems for specified PDE classes do not prove that this optimizer finds accurate solutions to every high-dimensional problem. Alternatives include PDE-residual training and non-learned multilevel Picard methods. Finite differences remain approximations, with full tensor grids costly at high dimension. A nonzero loss plateau alone does not diagnose failure or success. Time discretization, hedge approximation, optimization and finite-batch noise can all contribute. Check fresh-population loss estimates, refinement and independent references; an accurate starting price alone does not certify the whole learned process. The research chapter separates these claims.

10Deep optimal stoppingPhD4 min

This is a Bermudan max-call with nine potential exercise dates over three years. Payoffs in the recursion are already discounted. The Snell envelope compares stopping with optimal continuation. In this Markov model an optimal rule can use the current state; arbitrary history-dependent stopping times require adapted decisions, not necessarily state-only functions. With later policies fixed, the conditional objective is linear in today's decision. Its ideal unrestricted maximizer is hard; the finite neural optimizer trains a sigmoid relaxation and then thresholds the logit at zero. That need not recover the ideal rule. A fixed admissible policy's expected discounted payoff is a lower bound on the optimal value. A finite Monte Carlo mean is noisy and need not be a lower bound realization by realization.

What does it learn? A call on the better of two assets. Every date's decision at once: the floor is the two prices, each layer a later date, coloured where it exercises. Each layer has two lobes: exercise when one asset is far above the strike and well ahead of the other. Between them runs a valley along the diagonal, where either asset could still end up the winner and the right to pick the better one later is worth more than the dividends given up. Fly up the tunnel toward expiry: the lobes widen and the valley narrows, as waiting is worth less and less. This is the shape Broadie and Detemple found by theory in 1997, rebuilt from simulations alone.

The saved training trace runs backward from date eight to date one, using optimizer updates per date while keeping later policies fixed. The right panel is a noisy sampled soft objective, not a certified expected payoff. The left reveals each date's saved final hard region when that stage ends; it does not reconstruct intermediate boundaries. Stochastic updates and thresholding need not produce monotone improvement. Different dates use different continuation policies, so jumps between stages are not one common loss curve converging to a known optimum.

Compare fixed-policy evaluations, with their limitations. The two-asset policy mean is ; its cited tree reference is , a numerical benchmark. With five assets, our network gives , and the saved Part sixteen regression policy gives . Their point estimates differ by . The bars show about two conditional Monte Carlo standard errors; they omit training uncertainty, and the evaluation budgets differ. This is not an equal-cost test or a certified statistical tie. The paper reports lower and upper estimates and , with a wider statistical interval shown by the thin line. These are not deterministic price bounds. More training need not improve every finite run. The paper's high-dimensional results demonstrate a useful approach, rather than proving that regression methods cannot work there.

This excerpt trains one date's soft stopping objective using the already-trained later rules. The final hard policy is evaluated on a million fresh paths. Its reported standard error is conditional on the trained policy and the simulation model; it does not measure variation across training runs or establish that the policy is optimal.

Pause and predict in this specified two-independent-asset model. Both prices are a hundred and thirty, with one exercise date left before maturity. Is the learned valley alone a proof that waiting is better? Compare the conditional continuation payoff with immediate exercise.

Waiting is better here. The positive-part terminal payoff is at least the maximum asset price minus the strike. With these independent lognormal assets and one-third year remaining, the discounted expectation of that simpler payoff is , already above the immediate thirty. This analytic comparison proves the decision within the specified model. A qualitative valley or a learned rule alone would not. Dividends, dependence and the time interval matter. Next: the deep hedger.

11The deep hedgerMaster's3 min

A semi-recurrent MLP chooses holdings from current price, remaining time and previous holding. This unrestricted architecture is not supplied delta; the band architecture later is delta-centred. The saved profit and loss starts with zero cash and stock, charges initial and later trades, and includes no separate terminal unwind fee. The formal entropic objective requires a finite exponential loss moment. Finite-path log-sum-exp estimates do not prove that condition. In particular, a discretely underhedged call with lognormal terminal tails can have infinite population entropic risk despite a finite simulation estimate. Read the recorded numbers as empirical objectives; an indifference price additionally requires optimizing and subtracting the no-claim baseline under the same assumptions.

For a finite entropic risk, adding sure cash lowers risk by that cash amount. A seller's indifference premium subtracts the optimized no-claim risk from the optimized with-claim risk. Under martingale prices, integrable gains, nonnegative costs and an admissible zero policy, the no-claim optimum is zero. Under drift it generally is not. A small-risk-aversion cumulant expansion also requires exponential-moment control; it is not justified by finite variance alone. The displayed value inserts the Black–Scholes mean and the recorded delta-hedge variance with risk aversion one. It is a second-moment proxy, not a bound or a verified approximation to population exponential risk. The two reported empirical objectives are and ; neither proves global optimization or a universal daily-rebalancing premium.

The no-cost replay uses an unrestricted MLP. Black–Scholes delta is a continuous-time replication reference, not a theorem of optimality for a daily empirical exponential objective. The left panel retains every saved holding, including values outside zero to one. The right retains the full batch-loss range from three seeds. These runs approach the delta reference and finish with empirical evaluation objectives from to . The seed range is descriptive, and the batch loss is not a confidence band for population risk. Similar holdings in this experiment do not certify the optimizer or the unobserved tails.

And on a single fresh path, rebalance by rebalance: the delta in yellow, the network in purple, drawn on top. They move together, day after day, up when the price rises, down when it falls. The largest gap on this path is shares.

Everything rests on one House function: the profit and loss of a short option under any policy, a network, a formula or a band. Ask for a holding, pay the trade's cost, collect the stock's gain, pay the payoff. The trained network and the delta, on two hundred thousand fresh paths.

Before the next chapter: distinguish the continuous complete-market replication component from a discretely optimized hedge. The replication component does not depend on risk aversion; a daily-grid utility optimum can, because residual risk remains. A drift can also introduce an investment overlay and a nonzero no-claim baseline.

12Risk measures and the drift trapMaster's4 min

Here alpha denotes the upper-tail fraction, not a confidence level. For an integrable loss and alpha strictly between zero and one, the Rockafellar–Uryasev representation minimizes over a threshold w. It handles an atom at that threshold by assigning only the required fraction of its mass. The subgradient condition places alpha between strict and weak exceedance probabilities. For a continuous loss law it reduces to the usual upper quantile condition. Jointly training the threshold and the hedge is possible, but a finite optimizer need not attain the population optimum.

The histograms select seed zero. They retain all two hundred thousand evaluation paths, but the saved histograms cap values below minus nine or above three into the edge bins. The summary risk measures use uncapped outcomes. The learned threshold is ; the evaluation loss median is . Finite training and a separate sample need not make them equal. The side panel averages three training seeds, all evaluated with the same fixed test draws. The empirical worst-half and worst-five-percent losses are different targets. Neither optimization success nor a far-tail ranking is guaranteed by choosing a risk measure. In particular, the finite-path exponential objective does not establish a finite population exponential moment.

Use a continuous-trading, complete-market ideal with zero rates and costs, and admissible strategies with well-defined utility. Replicating the claim separates it from the no-claim investment problem. Exponential utility then adds a fixed-dollar Merton position, mu over gamma sigma squared, to the replication delta. Here mu is excess drift. At price one hundred, drift thirty percent and volatility twenty percent, the overlay is shares. It is an investment component and may be intended by the mandate. This ideal formula is a benchmark; it does not assert the exact optimizer of the saved daily-grid empirical objective.

These three no-cost training runs use thirty-percent drifting paths. The full holdings and batch-objective ranges are retained. Across prices ninety to one hundred ten, the mean holding deviations from delta range from to shares across seeds. The continuous-time Merton benchmark gives at the money. This qualitative agreement is a finite-model observation. A daily-grid optimizer, finite samples and unverified exponential tails prevent treating it as exact recovery of the continuous-time solution.

On drifting paths the two empirical short-call risks are and ; on driftless paths, and , averaged over three trained policies. The code does not optimize and subtract a no-claim baseline under drift. These entries therefore are not indifference premiums. In the continuous complete-market ideal, properly subtracting the investment baseline gives a replication price independent of physical drift. An investment overlay may fit one mandate and violate another. Training under a martingale or near-martingale measure can target hedging rather than a drift view, but changing measure does not automatically validate a model, handle market incompleteness or solve finite-sample tail problems.

The same objective, seen as reinforcement learning: Igor Halperin's QLBS, the agents of Kolm and Ritter and of Cao, Chen, Hull and Poulos, and Buehler's deep Bellman hedging. Whatever the algorithm, the two questions remain: which risk, and under which probabilities.

Which gives us a desk question: your deep hedger makes money on average with no costs. Is it hedging? Not entirely. Its delta part hedges; the extra holding is Merton's bet on the drift. Test it on paths without drift before you call it a hedge. Next: what trading costs do to the hedge.

13Where not to tradeMaster's3 min

This replay uses the unrestricted MLP, not the delta-centred band architecture. It shows a coarse map at every third saved grid site. Colour saturates at a trade magnitude of 0.3 shares; dark means a small trade, not necessarily zero. The supplied prior-holding grid is zero to one, while the full theoretical edges remain visible. The reported near-flat width uses the saved threshold: absolute trade below 0.02 shares. Its three-seed widths range from to at the money. These finite thresholded observations suggest a no-trade pattern; they do not prove an exact band policy or population optimality.

For this convex call, a local delta change is approximately gamma times the stock move. This gives a leading expected turnover and a proportional-cost rate. Our one-way cost is c; the round-trip convention is k equal to two c. Leland's adjustment puts that leading cost into an effective volatility. This is an asymptotic or heuristic construction, not exact replication at arbitrary finite costs. On the saved calendar-daily grid, twenty-percent volatility and half-percent one-way cost give about twenty-six and a half percent adjusted volatility. The adjustment is substantial, so small-correction intuition alone does not validate it. Its adjusted Black–Scholes value and an empirical hedge-risk estimate answer different questions.

A local small-cost argument freezes the delta's diffusion coefficient, sigma S gamma. The reflected gap between minus h and h is then approximately uniform. Stationary Itô balance gives total boundary-regulator turnover equal to its variance rate divided by two h. That factor of two matters. The mean squared gap is h squared over three. The local risk cost grows as h squared and the trading cost as one over h; minimizing the displayed approximation gives the cube-root rule. Under this continuous-time, small-cost approximation, doubling cost widens the half-band by two to the one third, about 1.26, holding the other quantities fixed. This is not an exact scaling law for a daily learned policy or a verified finite-sample exponential objective.

All four policies use the saved common evaluation paths at five cost levels. These bars are empirical exponential objectives, with no confidence intervals or verified population exponential moments. At half-percent cost, the sample ordering is , , , then . Turnover is shares for the asymptotic band and for daily delta. The learned policy's training cost is additional. The adjusted-volatility Black–Scholes value is , while the empirical objective of trading that delta is . This difference combines distinct constructions, approximation and sampling; it is not a measured universal residual-risk premium.

14The band as a surfaceMaster's3 min

Where not to trade, part two: the band as a surface. The learned sheets and the path now use the same saved policy, seed three. White is the supplied Black–Scholes delta; all edge values are retained. The architecture learns two positive offsets around that delta. After a daily decision it clamps the holding inside its band; between decisions a moving band can leave the old holding outside. Yellow meshes are the continuous small-cost asymptotic edges, not a guarantee for this daily model. The path joins saved daily states, with vertical segments for changes in holding. The mesh covers one and a half to thirty days remaining, while the last daily decision is at one day, outside that mesh. This animation illustrates recorded decisions rather than continuous optimal control.

This architecture supplies Black–Scholes delta and learns positive lower and upper offsets. Clamping gives an exact no-trade rule inside that fitted band at each decision date. It is a useful structural restriction, not something learned from scratch. Continuous-time transaction-cost control can yield no-trade regions under specific utility, admissibility and market assumptions. That does not prove this finite network, delta-centred parameterization or daily grid sacrifices no optimality. Nor does it prove the learned band must be narrower than the asymptotic one. Both the structural prior and the fitted policy need validation.

Three fixed training seeds use the same saved setup at each cost. Their empirical evaluation objectives span at most . This finite range is not a confidence interval, proof of stable training in general, or control of exponential-tail error. At the money and fifteen days remaining, the ratio of learned full widths after doubling cost is averaged over only seeds three and four: . The analytic small-cost half-width ratio is . These two summaries are not a statistical test of a scaling law across products, times and market states.

The 2026 Arzel–Lehdili preprint studies a Whalley–Wilmott structural prior and a differentiable soft clamp. Our saved illustration uses a different hard-clamp implementation. Its prior half-width is floored at 0.001 shares and capped at one, and remains in the parameterization throughout training; this changes more than initialization. There are two seeds per setup. The displayed early average uses updates, and the six-hundred-update empirical evaluations range from to with the prior, and to without it. These runs illustrate a design choice; they neither reproduce the paper's experiment nor isolate a universal initialization advantage.

The two bands in the House's code: the network's, delta plus two softplus offsets; Whalley and Wilmott's, the cube-root half-width. At the money, fifteen days left:

For the asymptotic formula, away from the strike as maturity tends to zero, delta and gamma vanish, so its two edges tend to zero. Learned softplus widths are not guaranteed to share that limit. Nor does a zero target imply no trade: a positive previous holding may have to be sold at the next decision. Whether a band binds depends on both its current edges and the previous position. Next: what vanilla prices leave undecided.

15Neural SDEs and model sensitivityPhD4 min

Neural SDEs parameterize coefficients rather than directly mapping inputs to a price. This illustration follows the model-sensitivity literature, including Gierjatowicz and coauthors. Its implemented volatility is floored at 0.02 and capped at three, its latent state is clipped between minus six and six, and its learned constant correlation stays within 0.95 in magnitude. Fifty log-price time steps approximate the dynamics. After calibration, two local penalized searches push a barrier payoff in opposite directions. Their outputs are candidate sensitivities within this restricted numerical construction, not certified robust bounds or a complete measure of model risk.

The ideal exact-constraint problem differs from the code's finite penalty objective. Its calibration loss is an aggregate mean squared price error in spot-price points, not an exact constraint on every implied volatility. Candidates are selected using a noisy training ceiling and then repriced; that selection alone does not certify out-of-sample feasibility or a global extremum. Vanilla estimates divide each simulated marginal by its own sample mean. This nonlinear ratio correction has finite-sample bias; it neither imposes full process-level martingale constraints nor proves absence of arbitrage. The barrier estimator uses raw paths. Its survival indicator is differentiated as constant, so pathwise autograd misses the crossing-boundary contribution to the derivative of expected payoff. To certify an inner robust-price range, the candidate laws, constraints, monitoring and numerical errors must all be justified. The saved experiment does not provide those certificates.

Four expiries and nine strikes define the synthetic calibration targets. The displayed implied volatilities are transformations of finite Monte Carlo price estimates. Missing or non-finite implied volatilities are omitted; lines connect only adjacent finite nodes, and no missing value is replaced by a fabricated level. The loss panel retains the full positive logarithmic loss range. The neural paths use antithetic pairs, so the path count is not a count of independent observations. Visual convergence and a small aggregate loss alone do not verify exact call-by-call calibration.

Two local searches start from the calibrated model. Every retained trace point is plotted at its actual aggregate vanilla loss and barrier estimate, without moving outliers to an axis edge. Grey identifies a sampled training loss above the chosen ceiling. It does not identify arbitrage, and an accepted point does not certify every vanilla quote or fresh-sample feasibility. The selected candidates are reevaluated with new simulation draws, but their calibration and barrier errors still need uncertainty and bias analysis.

Use the traced run's endpoint models consistently with its replay. The separately simulated Heston reference uses the same fifty-interval monitoring grid, not a continuously monitored barrier. The initial candidate gives , against Heston's numerical estimate . The two search directions give and . These are noisy candidate prices with approximate vanilla fits and unquantified discretization effects, not rigorous lower and upper bounds. A continuum of call strikes can determine a maturity's marginal law; these thirty-six calls cannot. Even fully specified marginals at selected dates do not determine a barrier's temporal coupling.

The sheets join finite implied-volatility grid cells for the two traced candidates and the Heston targets. A cell with a missing corner is omitted, rather than filled with an invented volatility. The largest finite-node difference between the candidate grids is vol points. Agreement at these sparse, noisy nodes does not specify a full marginal distribution, certify an arbitrage-free interpolated surface or fix barrier dynamics. The displayed exotic sensitivity is illustrative rather than a robust bound.

Related neural-SDE work explores richer calibration settings; the saved toy is not a reproduction of all those methods. Adding an exactly consistent, maturity-paid one-touch constraint with the same monitoring grid weakly reduces the exact feasible set. Its price range may remain unchanged; strict shrinkage is not guaranteed. A hitting probability alone also does not fix its joint dependence with the terminal call payoff. Finite penalty searches can move differently because optimization and numerical error remain. Next: market generators.

16Market generatorsPhD3 min

This chapter uses an analytical Gaussian illustration; it does not train on or inspect the sealed BTC window.

A diffusion model adds Gaussian noise to a return window, then learns a reverse model. The forward marginal is one blend of data and noise. Its cumulative alpha is a product. In the legacy two-hundred-step schedule, that product is about 0.132: the original window still has amplitude 0.364. It has not become exactly pure noise. Squared noise-prediction loss is minimized by a conditional mean, not by reconstructing the particular hidden noise perfectly. A standard Gaussian start can therefore introduce a terminal-law approximation. Finite network error and reverse discretization add other errors. Ho, Jain and Abbeel's framework supplies a method, not a guarantee that a small trained network reproduces financial tails.

Here is a reverse process we can justify exactly. Suppose the original window has thirty-two independent standard Gaussian coordinates. Every forward marginal is then standard Gaussian. Gaussian conditioning gives the reverse law shown above, so no fitted denoiser is needed. The twenty-four paths change as we step backward, but their marginal distribution stays Gaussian throughout. The fixed seed makes this illustration reproducible; no path is selected for looking realistic. At step zero these are still independent Gaussian returns. Attractive pictures cannot establish clustering, leverage, crash dependence or useful hedge performance. A generator can produce plausible-looking paths and still miss the features that matter to a particular book.

Signatures offer another way to compare generated paths. First specify the augmentation: time, cumulative returns and running variance, or a lead-lag path. A finite-depth distance compares expected feature vectors. The empirical version contains sampling error, and overlapping windows are not independent replications. Winsorizing returns stabilizes a score, but compares transformed laws and can conceal tail mistakes. Identification theorems for a full appropriately normalized signature do not say that depth four identifies a path law. Different distributions can match finitely many expectations. Use signatures alongside tail behavior, volatility persistence, leverage, stress dependence and downstream losses; choose those diagnostics before seeing the test set.

A useful evaluation separates fitting, tuning and a final chronological test. Scaling and clipping thresholds come from training alone. Overlapping windows require dependence-aware uncertainty. Choosing a generator after inspecting a test score turns that score into validation data. Test a hedger on the same payoff and costs across more than one generator and disjoint historical windows, with predeclared stress scenarios. Agreement on a few moments cannot certify the next crisis. The legacy jobs use BTC history through 2025; their cross-generator replay overlaps fitted history. They were not executed in this pass, and their scores are not presented. This analytical example preserves the series' sealed investing window. Next come production controls and the validation design.

17Production and model riskIndustry3 min

Public deployment evidence has limits. Risk.net reported in May 2022 that J.P. Morgan's deep hedging for Euro Stoxx cliquets was live, with an S&P expansion planned. This is a dated public report, not an audit of today's systems. Huge and Savine developed differential learning at Danske Bank, using adjoint sensitivities as labels; the cited reporting describes valuation-adjustment applications. SR 26-2, issued on April seventeenth 2026, replaces SR 11-7 and SR 21-8. It is nonbinding supervisory guidance, primarily relevant to banks above thirty billion dollars of assets, with controls scaled to risk and materiality. It discusses objective expert challenge, validation, monitoring and inventory. Traditional pricing networks are in scope; generative and agentic AI are explicitly excluded.

Three more entries. In 2023 a team including J.P. Morgan researchers ran deep hedging with quantum networks on a trapped-ion processor: comparable performance with fewer parameters, research, not deployment. In 2018 Ryan Ferguson and Andrew Green reported a network valuing basket calls a million times faster than the traditional model, as the authors claim. And in Britain, the Prudential Regulation Authority's supervisory statement SS1/23, in force since May 2024 and revised in April 2026, sets model risk principles for banks with internal-model approval, and names artificial intelligence and machine learning explicitly.

These rows propose controls; this repository does not run a bank monitoring service. First, test assumptions, including cash baselines and integrability, as well as formulas. The calibrator's held-out parameter sets differ from training; its fresh-simulation root mean square gap is volatility points, including label error. A production system should detect inputs outside its training region and route them to a validated fallback. That policy is not implemented here. Compare against independent numerical references, with simulation error and budget disclosed; a close empirical objective alone does not recover a continuous-time optimum. Pre-register generator and disjoint-history tests, then monitor for the intended use. Generative models need governance too, but SR 26-2 expressly excludes generative AI; its traditional-model guidance is not a blanket legal requirement for every generator.

These cross-checks use different diagnostics. The BSDE plus-minus figures describe saved training iterates, not confidence intervals. Picard and Monte Carlo values are numerical references. Stopping is a fitted policy's simulated mean. Hedger entries are finite-sample risk objectives, while Merton is a continuous-time ideal under stronger assumptions. Agreement is useful evidence within a stated scope, not validation of every input or a deployment certificate.

Does SR 26-2 explicitly cover a generative market model? Consider its scope exclusion before answering.

No. Its footnote excludes generative and agentic AI. That exclusion does not remove model risk: a bank should still determine appropriate governance and controls. Traditional quantitative generators and generative AI must be classified by their actual use and design.

18The frontier, 2023 to 2026PhD1 min

This map summarizes research claims, not deployment audits. In 2026 SANOS, DYSANOS and GROMM address simulated option surfaces and their arbitrage constraints; any theorem or numerical check applies within the paper's construction. Empirical hedging studies ask what policies actually learn. Zernikov's walk-forward S&P study reports delta haircuts whose results change with regime. A return objective can rationally include an investment overlay; that is different from proving better replication. Mueller and coauthors report roughly one quarter as many optimizer steps on their cliquet benchmark, not a universal fourfold wall-time improvement. Arzel and Lehdili combine a structural Whalley–Wilmott prior with a differentiable soft clamp; our hard-clamped experiment is related, not a paper replication. Other work includes richer option hedges. Learned stopping boundaries, signature-based primal and dual methods, and signature-kernel generators expand the toolkit. Their assumptions, computational costs and validation still have to match the intended application.

Chapter fourteen compares a related structural prior, with a different clamp and persistent width limits. In its two seeds, . This early average mixes training objectives from changing weights; it does not establish convergence speed at matched accuracy or reproduce the paper. The displayed averages use the first saved training points, with identical budgets. Which is harder to build, a hedger or its simulator? There is no universal ranking. A precise question is whether an evaluation stresses errors shared by both. Chapter nineteen sets out that test design.

19Rule 17: the validation planIndustry2 min

The House's rule seventeen: a validation plan, with its unfinished empirical test made explicit.

Rule seventeen requires validation across generators and history before use. The original cross-generator job is not evidence for that full claim: it fits a GARCH model on the first eighty percent of BTC history through 2025, then includes overlapping fitted history in its replay. We have not run it in this pass. A defensible plan freezes the policy, preprocessing, payoff, costs and metrics first. Evaluate daily delta, the classical band and learned policies on common independently simulated paths, with uncertainty. Keep fitting and historical evaluation dates disjoint. For each world, report the empirical short-call risk, costs, holdings and tail diagnostics. Under physical drift, subtract the optimized no-claim baseline before calling a cash amount an indifference premium. Preserve a final registered window for its authorized opening. This is a validation design, not a completed cross-generator test or permission for a network to trade.

The codebase supplies neural calibration, differential regression, Gaussian processes, BSDE and stopping solvers, hedgers and generators. These are implementations with different assumptions and approximation errors; the Gaussian process solves its chosen regularized statistical system, not every pricing problem exactly. The rule proposes independent checks where available, explicit training-region controls and evaluation on multiple generators and disjoint history before deployment. A slow engine is useful only within its own validated scope. This pass corrects explanations and reviews fixed numerical illustrations. It does not implement the proposed routing or monitoring service, complete the withheld historical test, or certify deployment. There is no new registered market trial; the cumulative counter remains .

For the researcher: population loss and price-error boundsPhD4 min

For the researcher: distinguish a theorem about population loss from a moving average of training batches. The continuous-time identity, the Euler scheme and a nonlinear error estimate answer different questions.

Take the linear continuous-time equation, a fixed starting value and a predictable square-integrable candidate exposure. The discounted square-integrable payoff has a Brownian martingale representation. Subtract the two terminal values. The deterministic price error is orthogonal to the mean-zero stochastic integral, giving this population squared-loss identity. Dropping the nonnegative exposure-error term bounds the starting-price error. This is an expectation for a fixed candidate process. A measured batch loss, or an average over changing network weights, is a different quantity.

The saved solver uses Euler drift steps. With a equal to one plus R h, its expected terminal value is a to the N times the starting value. Jensen's inequality therefore bounds the error of the reweighted starting value shown here. It does not give the identical continuous-time bound around the unadjusted starting value. A finite grid changes the centre even before exposure approximation. The batch losses in the next plots are moving training diagnostics, not known population losses for fixed weights.

Han and Long prove a population error estimate under their regularity, integrability and sufficient weak-coupling or monotonicity conditions, for sufficiently small time steps. The constant and the time-step term matter. This is not a theorem that every Lipschitz model and every numerical grid share a usable constant. Turning it into a numerical certificate needs justified constants and statistical control of a fixed model's population loss. The continuous linear price-only coefficient is not the constant for the whole-solution norm.

The saved ten-dimensional experiment uses four grids and a different training seed for each. The reference is a two-million-path Monte Carlo estimate with its own standard error. Solid curves show absolute gaps to that estimate. Dashed curves reuse the discounted square root of twenty logged batch losses, averaged across changing iterates. They omit the Euler centre correction and statistical uncertainty. A dashed curve lying above a solid one in these runs does not validate a certificate. The observed separation illustrates why population exposure-error bounds may be loose for price, while leaving the empirical and discretization questions open.

Read the summaries literally. The loss column averages forty logged training batches; the reference-gap column averages twenty logged starting values. Neither describes one frozen candidate evaluated with unlimited fresh samples. Changing the grid also changes the seed and the work per update. A small reference gap can coexist with a much larger loss scale. The continuous identity explains one possible source of that separation, but these moving batch averages do not isolate exposure error, time-step error or optimization error.

For the nonlinear hundred-dimensional run, retain the full shaded range. The line is the trained starting value and the white line is the published approximate reference. The shading uses plus or minus square root of a trailing ten-log batch-loss average with an arbitrary unit coefficient. It supplies neither a confidence level nor the theorem's constant or time-step correction. Inclusion of the reference in such an illustrative band would not establish coverage or certify the solver.

Three research directions, rather than claims that no theory exists. Separate price and exposure errors while controlling constants and fresh-sample uncertainty. Understand the interaction of optimization, architecture and time refinement at a useful cost. Build auditable bounds for fixed models and specific products. A theorem, a training diagnostic and a production validation decision each require their own evidence.

Pause and predict. A fixed continuous-time linear candidate has known population squared loss nine, at two percent over one year. What price-only bound follows? If the true continuous-time exposure were used, what would the loss become?

The price error is at most three times e to minus zero point zero two, about two point nine four zero six. With the true continuous-time exposure, the exposure-error integral vanishes, leaving e to zero point zero four times the squared price error. These statements require the stated population quantity and continuous-time process. A sampled training loss of nine alone does not provide that certificate.

Recap, desk questions, problemsAll tracks2 min

The main results are conditional numerical demonstrations. Networks approximate prices, but smoothness does not enforce correct Greeks or convexity. Calibration has label noise, domain limits and optimizer error. Differential labels add correlated information; a Gaussian process adds chosen statistical assumptions. High-dimensional BSDE and stopping solvers still have discretization, training and simulation error. Hedger entries are empirical risk objectives; an indifference premium requires its no-claim baseline. Band priors constrain the policy class. Penalized neural-SDE candidates illustrate sensitivity without certified robust bounds. Finally, the Gaussian reverse illustration is analytical, while the disjoint-history cross-generator test remains a validation plan.

Four desk questions. The cube-root band balances a quadratic risk cost against turnover proportional to the inverse width, not a static quadratic-versus-linear comparison. Check a neural calibration with independent simulation and uncertainty, domain checks, and a decomposition of errors. Derivative labels help when their unbiasedness and computational cost are justified; discontinuous payoffs require special care. Average profit does not prove better replication. Separate investment demand from hedging, and include the optimized no-claim baseline when deriving an indifference premium. The bilingual notes give the details.

The ten exercises cover cash baselines, reflected-band turnover, the BSDE hedge units, differential regression, stopping bounds, Leland's cost convention, Merton's investment term and validation-label noise. The two qualifying problems distinguish continuous population loss from Euler training loss, and an order-h upper bound from an exact rate. Complete English and Chinese solutions are in the notes.

Where this comes back. Part twenty-one learns exposures for valuation adjustments by differential regression. Part twenty-six uses generators to test backtests, and Part twenty-seven turns machine learning on returns, under the same discipline. And the finale stress-tests the whole House with the market generator.

The notes link the primary methods and distinguish paper results from this small CPU implementation. Fixed-seed cached runs support the numerical demonstrations reviewed here. The three legacy BTC-through-2025 jobs were deliberately not restored. Source review and sampled audio checks do not replace continuous listening to a production master.

That closes the House's volatility desk: from Black–Scholes to networks that learn to hedge. Next, Part eighteen: money, bonds and the curve. The rates desk opens, and the price of time itself becomes the thing that moves.

Where it goes next. The same tools return as learned executors (Part 37), learned risk (Part 40) and learning agents in markets (Part 42).

Key results

The part's results in one place, for revision.

Differential regression\[\min_\theta\ \sum_i\bigl(f_\theta(x_i)-y_i\bigr)^2+\lambda\sum_i\bigl\|\nabla_xf_\theta(x_i)-\nabla_xy_i\bigr\|^2\]
Deep hedging\[\min_{\delta_\theta}\ \rho\Bigl(-Z+\sum_k\delta_\theta(I_k)\,(S_{k+1}-S_k)-c\sum_k|\delta_k-\delta_{k-1}|S_k\Bigr)\]
Deep BSDE\[Y_{t_{k+1}}=Y_{t_k}-f(t_k,X_{t_k},Y_{t_k},Z_{t_k})\Delta t+Z_{t_k}^\top\Delta W_k,\qquad\min\ \mathbb E\,|Y_T-g(X_T)|^2\]
Entropic risk\[\rho(X)=\frac1\gamma\ln\mathbb E\bigl[e^{-\gamma X}\bigr]\]

Try it

Lab 17 · Learn a price from payoffs, with and without their derivatives

Draw a starting price and one path each; the label is that path's payoff (pure noise around the price). Fit a small model to the payoffs alone, then to payoffs and pathwise deltas (Huge and Savine's differential regression), and compare the learned price and delta with Black-Scholes.

Figure produced by Lab 17: Learn a price from payoffs, with and without their derivatives
Produced by the lab below, seed 0, in 0.1 s. Simulated data.
python -m videos.quant.labs 17 needs numpy, scipy, matplotlib, numba · download lab17.py · source on GitHub
payoffs only               price RMSE 1.411   delta RMSE 0.3144
payoffs + pathwise deltas  price RMSE 0.269   delta RMSE 0.0357
At the money: delta        Black-Scholes 0.540   payoffs only 0.747   with pathwise deltas 0.596

Each path gives a payoff and, for free, its slope. The slope label carries most of the information.
The code (71 lines; it asserts its own result)
"""Lab 17: differential machine learning in one dimension: train on payoffs and on their pathwise slopes."""

import numpy as np

from videos.quant import labs
from explainer.quant.house import bs

TITLE = "Learn a price from payoffs, with and without their derivatives"
GOAL = ("Draw a starting price and one path each; the label is that path's payoff (pure noise around the price). "
        "Fit a small model to the payoffs alone, then to payoffs and pathwise deltas (Huge and Savine's "
        "differential regression), and compare the learned price and delta with Black-Scholes.")
TASKS = [
    "Cut the sample to 256 paths. Which fit survives?",
    "Raise the polynomial degree to 12 without the derivative labels. What does the delta do?",
    "Replace the polynomial by a small network (explainer.quant.house.deep.train_differential, needs torch).",
]


def basis(x, degree):
    """Polynomial features of the standardized spot and their derivatives with respect to the spot."""
    z = (x - 100.0) / 20.0
    P = np.stack([z ** j for j in range(degree + 1)], axis=1)
    dP = np.stack([j * z ** (j - 1) / 20.0 if j else np.zeros_like(z) for j in range(degree + 1)], axis=1)
    return P, dP


def fit(x, y, dy, degree, lam):
    """Least squares on values, plus lam times least squares on derivatives (lam = 0: values only)."""
    P, dP = basis(x, degree)
    scale = y.std() / dy.std()
    A = P.T @ P + lam * scale ** 2 * dP.T @ dP + 1e-8 * np.eye(degree + 1)
    b = P.T @ y + lam * scale ** 2 * dP.T @ dy
    return np.linalg.solve(A, b)


def run(seed=0):
    K, T, sigma, n, degree = 100.0, 1.0, 0.2, 1024, 7
    rng = np.random.default_rng(seed)
    S0 = rng.uniform(60, 140, n)
    ST = S0 * np.exp(-0.5 * sigma ** 2 * T + sigma * np.sqrt(T) * rng.standard_normal(n))
    y = np.maximum(ST - K, 0)  # one payoff per starting point
    dy = (ST > K) * ST / S0  # its pathwise derivative with respect to the starting point
    grid = np.linspace(65, 135, 141)
    P, dP = basis(grid, degree)
    truth, delta = bs.price(grid, K, T, sigma), bs.greeks(grid, K, T, sigma)["delta"]
    lab, err = labs.Lab(), {}
    for name, lam in (("payoffs only", 0.0), ("payoffs + pathwise deltas", 1.0)):
        w = fit(S0, y, dy, degree, lam)
        err[name] = (np.sqrt(np.mean((P @ w - truth) ** 2)), np.sqrt(np.mean((dP @ w - delta) ** 2)), w)
        lab.row(name, f"price RMSE {err[name][0]:.3f}   delta RMSE {err[name][1]:.4f}")
    a, b = err["payoffs only"], err["payoffs + pathwise deltas"]
    mid = len(grid) // 2  # spot 100
    lab.row("At the money: delta", f"Black-Scholes {delta[mid]:.3f}   payoffs only {(dP @ a[2])[mid]:.3f}   "
                                   f"with pathwise deltas {(dP @ b[2])[mid]:.3f}")
    lab.note = "Each path gives a payoff and, for free, its slope. The slope label carries most of the information."
    assert b[0] < 0.6 * a[0] and b[1] < 0.4 * a[1]

    fig, ax = labs.figure(2, size=(11, 4.2))
    ax[0].scatter(S0, y, s=3, color=labs.MUTED, alpha=0.5, label="one payoff per path")
    ax[0].plot(grid, truth, color=labs.INK, lw=2.4, label="Black-Scholes")
    ax[0].plot(grid, P @ a[2], color=labs.LOSS, label="payoffs only")
    ax[0].plot(grid, P @ b[2], color=labs.GAIN, label="with pathwise deltas")
    ax[0].set(title="The learned price", xlabel="spot", ylabel="value", ylim=(-3, 45))
    ax[0].legend(fontsize=8)
    ax[1].plot(grid, delta, color=labs.INK, lw=2.4, label="Black-Scholes delta")
    ax[1].plot(grid, dP @ a[2], color=labs.LOSS, label="payoffs only")
    ax[1].plot(grid, dP @ b[2], color=labs.GAIN, label="with pathwise deltas")
    ax[1].set(title="The learned delta", xlabel="spot", ylim=(-0.3, 1.3))
    ax[1].legend(fontsize=8)
    lab.fig = fig
    return lab

Now change it

  1. Cut the sample to 256 paths. Which fit survives?
  2. Raise the polynomial degree to 12 without the derivative labels. What does the delta do?
  3. Replace the polynomial by a small network (explainer.quant.house.deep.train_differential, needs torch).

Problems, with solutions

Try each problem before opening its solution; the last two of each set are at qualifying-exam level.

Desk questions, with solutions

Why a cube-root band?

AnswerThe reflected-gap approximation has risk cost proportional to half-width squared and turnover cost proportional to its inverse. Minimizing their sum gives cube-root scaling. A static quadratic-versus-linear balance does not derive it.

How should calibration be checked?

AnswerReprice independently with numerical uncertainty, check the training domain, and separate label, surrogate, optimization and model errors. A bounded parameterization and a good quote fit do not identify the economic model.

Why derivative labels?

AnswerValid pathwise derivatives constrain local shape at modest adjoint cost, with tape-memory requirements. They are correlated labels and require a justified interchange of differentiation and expectation. A digital's zero pathwise derivative is not its price derivative.

Does average hedge profit prove better replication?

AnswerNo. Physical drift and the objective can create intended investment demand. Compare exposures and risk under stated measures, and use the optimized no-claim baseline for an indifference premium.

Problems, with worked solutions

Ten worked solutions

  1. Cash invariance and the seller's premium.

    Solution

    For γ > 0 and a finite exponential moment, ρ(X+c) = γ⁻¹ log E exp(−γX−γc) = ρ(X)−c. Let Gδ be trading gains and Cδ costs. Define rZ = infδ ρ(−Z+Gδ−Cδ), r0 = infδ ρ(Gδ−Cδ), using the same admissible set. Cash invariance makes the optimized risk after selling for p equal to rZ−p; indifference therefore gives p = rZ−r0. Under a martingale measure, integrable gains, nonnegative costs and an admissible zero policy, Jensen gives r0 ≥ 0 and zero trading gives r0 ≤ 0. Under physical drift r0 need not vanish. Discrete underhedged calls with lognormal tails can have infinite population entropic risk despite finite sample values.

  2. Band turnover and scaling. For a reflected hedge gap with variance rate \(a^2\), derive total turnover \(a^2/(2h)\) and minimize \(\gamma\sigma^2S^2h^2/6+cS a^2/(2h)\). State the small-cost assumptions.

    Solution

    Locally write the hedge gap as reflected Brownian motion dε = a dW+dL−dU on [−h,h]. Stationarity and Itô on ε² give 0 = a²−2h E[dL+dU]/dt, so total share turnover is a²/(2h). Its uniform stationary variance is h²/3. With a² = σ²S²Γ², the local objective per unit time is J(h) = γσ²S²h²/6 + cSσ²S²Γ²/(2h). Thus J′(h)=0 gives h³ = 3cSΓ²/(2γ). This is a local small-cost, continuous-rebalancing asymptotic with slowly varying coefficients, not an exact optimum for a daily neural policy.

  3. BSDE and units. Use It^o's formula and the pricing PDE to obtain \(dY=f(Y)dt+Z\cdot dW\), with \(Y=u(t,X)\) and \(Z_i=\sigma X_i\partial_i u\); distinguish \(Z\) from share holdings.

    Solution

    For dXi = μiXi dt+σXi dWi, Itô gives dY = (u_t+𝓛u)dt + Σi σXi∂iu dWi. With u_t+𝓛u=f(u), f(y)=[(1−δ)Q(y)+R]y and terminal u(T,X)=min Xi, set Zi=σXi∂iu. Zi is exposure per Brownian increment; the corresponding share holding is Δi=Zi/(σXi). A stock-only Brownian hedge does not perfectly hedge issuer default. Existence, uniqueness and the PDE representation require their integrability, Lipschitz, Markov and regularity assumptions.

  4. Differential normal equations. Write the normal equations for linear differential regression with price-feature matrix \(\Phi\), derivative-feature matrices \(D_j\), and derivative weight \(\lambda\).

    Solution

    For n×p price features Φ, derivative feature matrices Dj and observed derivative vectors zj, minimize ‖Φw−y‖² + λΣj‖Djw−zj‖². Differentiation gives (ΦᵀΦ+λΣjDjᵀDj)w = Φᵀy+λΣjDjᵀzj. With a singular system choose a suitable generalized solution or declared regularizer. Correlation or heteroskedasticity can motivate a different weighted statistical model.

  5. Stopping. Derive the date-\(n\) stopping decision from the conditional continuation value. Why is a fixed rule's expected discounted payoff a lower bound, but its simulated sample mean need not be?

    Solution

    Let gn be discounted exercise payoff and Gnext the discounted payoff obtained by the fixed continuation policy. At date n, conditional expected value is gnF + EGnext|Fn, affine in F∈[0,1]. Its maximum is attained by stopping when gn≥E[Gnext|Fn], with either decision allowed at equality. Conditioning on Xn alone needs a sufficient Markov state. Every admissible fixed τ satisfies E[gτ]≤supτ′E[gτ′]. Its Monte Carlo mean can exceed the supremum through sampling error; the lower-bound statement concerns expectation. Evaluation should be independent of fitted-policy selection.

  6. Leland's convention. Derive Leland's volatility correction using one-way proportional cost \(c\); express it also using round-trip cost \(k=2c\) and state the approximation.

    Solution

    For a convex short option, a small step gives E|ΔΔ|≈ΓσS√Δt√(2/π). One-way cost c per dollar traded contributes cΓσS²√(2/π)/√Δt per unit time. Absorbing this into ½σ²S²Γ yields σ̂²=σ²+2cσ√(2/π)/√Δt = σ²[1+√(2/π)k/(σ√Δt)], k=2c. State one-way versus round-trip costs. This smooth-Gamma, Gaussian-increment approximation is not exact finite-cost replication or a general utility price.

  7. Merton's investment overlay. In the continuous-time complete constant-volatility market with zero rates and exponential utility, derive the investment overlay \(\mu/(\gamma\sigma^2 S)\) for a replicable claim.

    Solution

    In the frictionless complete constant-volatility model dS/S=μdt+σdW, zero rates, exponential utility and admissible replication, the claim hedge Δ separates from the no-claim investment problem. If π dollars are invested in the stock, the HJB first-order condition is μVx+πσ²Vxx=0. CARA utility has −Vxx/Vx=γ, giving π=μ/(γσ²) and δ*=Δ+μ/(γσ²S). Claim replication makes the optimized investment opportunity cancel in the indifference comparison; the complete-market premium is independent of μ. Daily constraints, costs and finite-sample fitting need not reproduce this ideal exactly.

  8. Validation-label noise. For conditionally unbiased validation labels with independent noise of variance \(s^2\), derive the population MSE decomposition. Does the realized finite-sample RMSE have to exceed \(s\)?

    Solution

    Let Y=F(θ)+ε, E[ε|θ]=0, with validation noise conditionally independent of the fitted predictor, and E Var(ε|θ)=s². Expanding the square gives E(F̂−Y)²=E(F̂−F)²+s². This is a population identity; a realized finite-sample RMSE need not exceed s. Doubling label variance does not determine how the fitted predictor changes. Implied-volatility inversion is nonlinear and can bias labels, so the identity need not hold exactly for finite-path IVs.

  9. Continuous linear population loss. (qual) For the continuous linear BSDE, prove \(L_{\rm pop}=e^{2RT}(y_0-u_0)^2+\mathbb E\int_0^T e^{2R(T-t)}|Z-Z^*|^2dt\), under square-integrability assumptions.

    Solution

    For predictable controls with E∫₀ᵀe^{2R(T−t)}|Zt|²dt<∞, solve dY=RYdt+Z·dW: YT=e^{RT}y0+∫₀ᵀe^{R(T−t)}Zt·dWt. With the corresponding representation g=e^{RT}u0+∫₀ᵀe^{R(T−t)}Zt·dWt, subtract, square and take expectations. The stochastic integral has mean zero; Itô isometry gives Lpop=e^{2RT}(y0−u0)²+E∫₀ᵀe^{2R(T−t)}|Z−Z|²dt. Therefore |y0−u0|≤e^{−RT}√Lpop. Known population loss 9 with R=.02,T=1 gives 3e^{−.02}≈2.9406; an observed training loss of 9 alone gives no such certificate.

  10. Step controls, Euler and rates. (qual) For predictable left-endpoint step controls, derive an \(O(h)\) upper bound on the continuous population control-error floor under mean-square half-H"older regularity. Does this prove an exact \(1/N\) floor or certify Euler batch loss?

    Solution

    On a uniform grid of width h, unweighted predictable step projection uses Zbar_i=E[h⁻¹∫ti^{ti+h}Zt dt|Fti]. The best weighted projection uses the same conditional weighted average with weight e^{2R(T−t)}. Testing the admissible left-endpoint choice Zi=Zti gives, if E|Zt−Zs|²≤C|t−s|, E∫|Zstep−Z*|²dt≤CT h/2. A bounded deterministic exponential weight preserves O(h). This upper bound allows a smaller or zero floor; it proves neither an exact 1/N rate nor an Ω(1/N) lower bound. The explicit Euler driver is a different scheme. Put a=1+Rh>0: E[YN−g]=aᴺy0−e^{RT}u0, hence |e^{−RT}aᴺy0−u0|≤e^{−RT}√Lpop,Euler. The continuous coefficient does not directly bound |y0−u0| from Euler batch loss. Han–Long's nonlinear results require their regularity/coupling conditions, sufficiently small h and constants not computed here.

The research plots average losses from changing weights and batches. Their last-20, last-40 or last-10 averages use the stated saved-log windows; none is an independently estimated population loss of a single frozen model. The nonlinear unit-coefficient loss shading omits theorem constants and discretization terms and is explicitly a diagnostic.

Reading and notes

The part's papers

from READING.md

  • Hodges, S., Neuberger, A. (1989). "Optimal replication of contingent claims under transaction costs." Review of Futures Markets.
  • Hutchinson, J., Lo, A. W., Poggio, T. (1994). "A nonparametric approach to pricing and hedging derivative securities via learning networks." Journal of Finance.
  • Whalley, A. E., Wilmott, P. (1997). "An asymptotic analysis of an optimal hedging model for option pricing with transaction costs." Mathematical Finance.
  • Federal Reserve / OCC (2011). SR 11-7: Supervisory Guidance on Model Risk Management.
  • Federal Reserve / OCC / FDIC (17 April 2026). SR 26-2: Revised Guidance on Model Risk Management (supersedes SR 11-7 and SR 21-8; generative and agentic AI outside its scope).
  • Hernandez, A. (2016). "Model calibration with neural networks." Risk.
  • E, W., Han, J., Jentzen, A. (2017). "Deep learning-based numerical methods for high-dimensional parabolic PDEs and BSDEs." Communications in Mathematics and Statistics.
  • Han, J., Jentzen, A., E, W. (2018). "Solving high-dimensional partial differential equations using deep learning." PNAS.
  • Sirignano, J., Spiliopoulos, K. (2018). "DGM: a deep learning algorithm for solving partial differential equations." J. Computational Physics.
  • Becker, S., Cheridito, P., Jentzen, A. (2019). "Deep optimal stopping." JMLR.
  • Buehler, H., Gonon, L., Teichmann, J., Wood, B. (2019). "Deep hedging." Quantitative Finance.
  • Huge, B., Savine, A. (2020). "Differential machine learning." arXiv / Risk.
  • Ruf, J., Wang, W. (2020). "Neural networks for option pricing and hedging: a literature review." J. Computational Finance.
  • Wiese, M., Knobloch, R., Korn, R., Kretschmer, P. (2020). "Quant GANs: deep generation of financial time series." Quantitative Finance.
  • Buehler, H., Horvath, B., Lyons, T., Perez Arribas, I., Wood, B. (2020). "A data-driven market simulator for small data environments." arXiv.
  • Cuchiero, C., Khosrawi, W., Teichmann, J. (2020). "A generative adversarial network approach to calibration of local stochastic volatility models." Risks.
  • Horvath, B., Muguruza, A., Tomas, M. (2021). "Deep learning volatility." Quantitative Finance.
  • Kidger, P., Foster, J., Li, X., Oberhauser, H., Lyons, T. (2021). "Neural SDEs as infinite-dimensional GANs." ICML (arXiv 2102.03657).
  • Liao, S., Ni, H., Szpruch, L., Wiese, M., Sabate-Vidales, M., Xiao, B. (2020). "Conditional Sig-Wasserstein GANs for time series generation." arXiv 2006.05421.
  • Ni, H., Szpruch, L., Sabate-Vidales, M., Xiao, B., Wiese, M., Liao, S. (2021). "Sig-Wasserstein GANs for time series generation." arXiv 2111.01207.
  • Chevyrev, I., Oberhauser, H. (2022). "Signature moments to characterize laws of stochastic processes." JMLR.
  • Gierjatowicz, P., Sabate-Vidales, M., Šiška, D., Szpruch, L., Žurič, Ž. (2022). "Robust pricing and hedging via neural stochastic differential equations." J. Computational Finance.
  • Buehler, H., Murray, P., Pakkanen, M., Wood, B. (2021). "Deep hedging: learning to remove the drift under trading frictions with minimal equivalent near-martingale measures." arXiv 2111.07844.
  • Buehler, H., Murray, P., Pakkanen, M., Wood, B. (2021). "Deep hedging: learning risk-neutral implied volatility dynamics." arXiv 2103.11948.
  • Buehler, H., Murray, P., Wood, B. (2022). "Deep Bellman hedging." arXiv 2207.00932.
  • Classics added for the expansion: Leland, H. (1985). "Option pricing and replication with transactions costs." J. Finance; Cybenko, G. (1989). "Approximation by superpositions of a sigmoidal function." Math. Control Signals Systems; Hornik, K. (1991). "Approximation capabilities of multilayer feedforward networks." Neural Networks; Pardoux, É., Peng, S. (1990). "Adapted solution of a backward stochastic differential equation." Systems & Control Letters; Davis, M., Panas, V., Zariphopoulou, T. (1993). "European option pricing with transaction costs." SIAM J. Control Optim.; Rockafellar, R. T., Uryasev, S. (2000). "Optimization of conditional value-at-risk." J. Risk; Merton, R. (1969). "Lifetime portfolio selection under uncertainty." REStat.
  • Bayer, C., Stemper, B. (2018). "Deep calibration of rough stochastic volatility models." arXiv 1810.03399; Liu, S., Oosterlee, C., Bohte, S. (2019). "Pricing options and computing implied volatilities using neural networks." Risks 7(1).
  • Ferguson, R., Green, A. (2018). "Deeply learning derivatives." arXiv 1809.02233 ("a million times faster", the authors' claim).
  • Imaki, S., Imajo, K., Ito, K., Minami, K., Nakagawa, K. (2021/2023). "No-transaction band network: a neural network architecture for efficient deep hedging." J. Financial Data Science (arXiv 2103.01775).
  • Ho, J., Jain, A., Abbeel, P. (2020). "Denoising diffusion probabilistic models." NeurIPS.
  • Hutzenthaler, M., Jentzen, A., Kruse, T., Nguyen, T. A. (2020). "A proof that rectified deep neural networks overcome the curse of dimensionality in the numerical approximation of semilinear heat equations." SN Partial Differential Equations and Applications; Jentzen, A., Kuckuck, B., von Wurstemberger, P. (2023). Mathematical Introduction to Deep Learning (arXiv 2310.20360).
  • Halperin, I. (2020). "QLBS: Q-learner in the Black–Scholes(–Merton) worlds." J. Derivatives; Kolm, P., Ritter, G. (2019). "Dynamic replication and hedging: a reinforcement learning approach." J. Financial Data Science; Cao, J., Chen, J., Hull, J., Poulos, Z. (2021). "Deep hedging of derivatives using reinforcement learning." J. Financial Data Science 3(1).
  • Cherrat, E. A., Raj, S., Kerenidis, I., et al. (2023). "Quantum deep hedging." Quantum 7, 1191.
  • Guyon, J., Mustapha, S. "Neural joint S&P 500/VIX smile calibration." SSRN 4309576; Risk.
  • PRA (2023, revised 23 April 2026). SS1/23: Model risk management principles for banks.
  • Frontier, 2023–2026: François, P., Gauthier, G., Godin, F., Pérez Mendoza, C. O. (2024). "Is the difference between deep hedging and delta hedging a statistical arbitrage?" arXiv 2407.14736; François et al. (2025). "Deep hedging with options using the implied volatility surface." arXiv 2504.06208; Mueller, K., Akkari, A., Gonon, L., Wood, B. (2024). "Fast deep hedging with second-order optimization." arXiv 2410.22568; Zernikov, K. (2026). "What does deep hedging actually learn?" arXiv 2605.21696; Godin, F. (2026). "Is deep hedging reinforcement learning?" arXiv 2607.13353; Arzel, J., Lehdili, N. (2026). "Bridging stochastic control and deep hedging: structural priors for no-transaction band networks." arXiv 2603.29994; Buehler, H., Horvath, B., Kratsios, A., Limmer, Y., Saqur, R. (2026). "SANOS." arXiv 2601.11209; Buehler, Horvath, Kratsios, Wiese (2026). "DYSANOS." arXiv 2608.12587; Wiese, M., Buehler, H., Horvath, B. (2026). "GROMM: generative risk-neutral option market models." arXiv 2610.16732; Reppen, A. M., Soner, H. M., Tissot-Daguette, V. (2022). "Neural optimal stopping boundary." arXiv 2205.04595; Bayer, C., Pelizzari, L., Schoenmakers, J. (2023). "Primal and dual optimal stopping with signatures." arXiv 2312.03444; Ye, J., Wong, H. Y. (2025). "DeepMartingale." arXiv 2510.13868; Issa, Z., Horvath, B., Lemercier, M., Salvi, C. (2023). "Non-adversarial training of neural SDEs with signature kernel scores." NeurIPS.

Papers and sources

Primary methods and source checks

  • HLP (1994), Cybenko (1989): learned price maps and compact-set approximation.
  • Huge–Savine (2020): differential learning; classical gradient GPs use their chosen likelihood.
  • Han–Jentzen–E (2018): the reported 57.300 Picard reference is approximate; the paper's 0.46% and 1,607 seconds describe its experiment and hardware.
  • Han–Long (2020): conditional a posteriori theory, including Theorem 1′ assumptions; not a certificate from a moving training average.
  • Becker–Cheridito–Jentzen (2019): deep stopping and published numerical estimates.
  • Buehler et al. (2019), Rockafellar–Uryasev (2000), Leland (1985), Whalley–Wilmott (1997): objectives, tail risk and costs.
  • Arzel–Lehdili (2026): structural prior plus differentiable soft clamp; the House instead uses hard clamping and a width base limited throughout training.
  • Gierjatowicz et al.: neural-SDE calibration/model-risk methods; this restricted noisy local search supplies no certified robust bounds.
  • Ho–Jain–Abbeel (2020); Chevyrev–Oberhauser (2022): diffusion and suitable full normalized-signature methods.
  • Risk.net, 26 May 2022: Euro Stoxx cliquet rollout live; S&P expansion planned. No unverified since-2018 vanilla-book claim is retained.
  • SR 26-2 and attachment, 17 April 2026: nonbinding, risk-proportionate guidance, principally relevant above $30bn assets; generative/agentic AI excluded.
  • PRA SS1/23: published May 2023, effective May 2024, revised April 2026; stated institutional scope matters.
  • SANOS, DYSANOS and GROMM: distinguish a constrained surface construction, a finite numerical arbitrage check and a stated model theorem. Their empirical domains differ.
  • Mueller et al. (2024) and Zernikov (2026): benchmark-specific optimizer steps and regime-dependent empirical hedges.

Textbook connections: Dixon–Halperin–Bilokon on learning, derivatives and GPs; Savine and Glasserman on adjoints, Greeks and Monte Carlo; Shreve on pricing and complete-market hedging. Approximation theorems do not prove SGD efficiency for a generic high-dimensional PDE, and a small held-out synthetic error does not establish absence of overfitting on future markets.


Data, scope and reproducibilityWhat this implementation establishes

The numerical examples are fixed-seed CPU demonstrations. They are not literal replications of every cited paper, matched-budget comparisons, or deployment certifications. The original computation code and the House algorithms are unchanged in this pass.

Chapters Method and limits
Opening, 1–2 Synthetic Black–Scholes labels and neural Greeks. Universal approximation does not guarantee optimization or accurate derivatives; smooth activations do not enforce convexity.
3–5 Rough Bergomi surrogate calibration and descriptive weekly Deribit surfaces. Correlated Monte Carlo labels, inverse-IV bias, box limits and local optimization affect interpretation.
6–7 Pathwise derivative labels and a Gaussian process with gradients. Labels from one path are correlated; the GP covariance and diagonal noise are working assumptions, not calibrated uncertainty.
8–9 A 100-asset issuer-default BSDE and a linear check. Brownian exposure is not a number of shares. Dense-network work can scale quadratically with dimension; iteration scatter is not a confidence interval.
10 A fitted Bermudan stopping rule. Its expected payoff is a lower bound; a simulated mean is an estimate. Published primal/dual estimates use different budgets.
11–12 Discrete hedgers, entropic sample risk, expected shortfall and drift. A seller's indifference premium subtracts the optimized no-claim baseline. Finite log-sum-exp does not prove a finite population exponential moment.
13–14 A delta-centred band, classical asymptotics and a structural prior. The replay and learned surface use the same seed. Persistent width limits and hard clamping distinguish this implementation from the cited soft-clamp study.
15 Penalized neural-SDE candidates illustrate model sensitivity. Finite calibration penalties, local searches, ratio estimates and barrier discretization do not certify robust price bounds.
16 An exact stationary-Gaussian reverse-process illustration and finite-signature diagnostics. No fitted BTC generator or BTC validation scores are shown.
17–19 Dated public deployment reports, proportionate model controls, research directions and a cross-generator validation design. Proposed monitoring and fallback routing are not implemented services.
Research Continuous population loss identities, their Euler distinction and conditional a posteriori theory. Moving batch-loss averages are diagnostics, not error certificates.

All finite plotted values are retained in the revised charts; coarse grids, omitted nonfinite implied volatilities, saved histogram edge bins and saturated trade colours are disclosed where used. Seed ranges are descriptive ranges, not confidence intervals.

Data, scope and reproducibilityData boundary and reproduction

There are 32 legacy Part 17 cache items. This pass restores 29 using their original normal fixed-seed commands. It deliberately does not execute generator, ddpm_reverse or crossgen: they use BTC daily history through 2025; crossgen also evaluates on history overlapping its fit. The active scenes no longer consume those items or present their scores. Chapter 16 instead demonstrates an exact Gaussian conditional law with a fixed illustration seed, and chapter 19 explains an explicitly unfinished validation design. This pass accesses no sealed-window returns and performs no envelope opening.

The calibration chapters retain the original descriptive 2024–2025 Deribit quote examples. These are surrogate-fit examples, not investing-scoreboard strategy results. Part 16's original synthetic max-call cache supplies the LSM comparison through its normal tracked loader. No new market configuration, register, seal or envelope-opening operation is used. The Part-17 cumulative trial count stays 312; the global count stays 23,562. These counters count registered configurations, not the absence of all training.

For a fresh cache, invoke only the permitted original items, without --force, with dependencies available. Do not run the legacy all-items command as a shortcut.

# List the permitted original item names without executing them.
EXPLAINER_TTS=silent python - <<'PY'
from videos.quant.quant17.compute import ITEMS
print(' '.join(k for k in ITEMS if k not in {'generator', 'ddpm_reverse', 'crossgen'}))
PY
# Restore an individual original item, for example:
python -m videos.quant.quant17.compute hlp

# Cached-only visual checks after restoring dependencies:
python tools/qa_series.py quant17 --cached-only --resume
python tools/qa_series.py quant17 --lang zh --cached-only --resume
python tools/qa_series.py quant17 --motion --cached-only --resume
python tools/zh_lines.py quant17 --todo
python tools/lecture_length.py quant17 --floor 50

The narration estimate after the scientific pass is 63.7 minutes. Silent playback includes animation and pauses. A render exit code, caption coverage or a sampled speech report is not by itself visual approval or continuous listening certification.

Companion films in this repository

中文讲义

本讲的中文说明、交易台问题与习题解答(与英文版对应)。

导言量化金融,从零搭建 — 第17部分:深度定价与对冲

本部分研究学习定价映射、神经校准、微分回归、BSDE、最优停止、含成本对冲及模型敏感性。 科学解释已修订;当前源码的双语视觉检查正在进行。连续生产语音聆听仍是单独待办。 固定种子CPU示例不是所有论文的逐项复现、等预算比较或上线认证;原计算文件与研究所算法未改。

Chapter notes各章范围与证据

开场及第1–2章使用合成Black–Scholes标签:通用逼近不保证优化或导数准确,光滑激活也不保证凸性。 第3–5章讨论粗糙Bergomi代理及描述性周度Deribit曲面,区分标签噪声、隐含波动率反演偏差、参数边界与局部优化。 第6–7章的路径导数标签相互相关;高斯过程的核与噪声模型是工作假设,点态标准差不是认证区间。 第8–10章的BSDE及停止求解器有离散、训练与模拟误差;布朗暴露不是股票股数,训练迭代波动不是置信区间。 第11–14章报告有限样本风险,区分无索赔基准、投资需求与对冲,并披露结构带的硬夹持和持续宽度限制。 第15章仅展示带惩罚局部搜索的模型敏感性,没有认证稳健上下界。 第16章给出解析高斯反向示例及有限签名诊断。第17–19章区分公开报道、建议控制与尚未完成的跨生成器验证。 研究章严格区分连续总体损失、欧拉损失及移动训练平均。

本轮恢复32项旧缓存中的29项,使用原始正常固定种子命令。generator、ddpm_reverse及crossgen 使用截至2025年的比特币历史,且第三项回放与拟合历史重叠,因此有意不运行,也不展示其分数。 高斯示例不拟合市场数据,验证章不声称经验检验已完成。本轮不访问封存窗口收益,也不执行开封。 保留的2024–2025年Deribit报价仅用于描述性代理拟合示例,不是投资记分板策略结果。 没有新增登记市场配置;第17部分累计试验数保持312,全局保持23,562。计数器不表示没有任何模型训练。 复现命令见英文段落;不要用旧版全项目计算命令绕过这三个排除项,也不要使用强制刷新。 旁白估计63.7分钟;渲染成功、字幕覆盖或音频抽查不能替代视觉审批及连续聆听。

Desk questions, with solutions交易台问题解答

为何是立方根带宽? 反射误差的风险成本与半宽平方成比例,换手成本与半宽倒数成比例,最小化其和得到立方根。 静态二次与线性项的比较推不出该结论。

如何核查校准? 独立重定价并报告数值不确定性,检查训练区域,区分标签、代理、优化与模型误差。 参数落在盒内及报价拟合良好,不代表模型被识别。

为何记录导数? 有效路径导数以适度伴随计算及计算带内存增加局部形状信息,但标签相关,且须论证微分与期望可交换。 数字期权路径导数几乎处处为零,不代表价格导数为零。

平均盈利是否说明复制更好? 不是。实际漂移与风险目标可能产生有意的投资需求;应明确测度,比较暴露与风险, 并在无差异溢价中减去优化后的无索赔基准。

Problems, with worked solutions十道习题完整解答
  1. 现金不变性与卖方溢价。

    解答

    γ>0且指数矩有限时,ρ(X+c)=γ⁻¹log E exp(−γX−γc)=ρ(X)−c。 设交易收益为Gδ、成本为Cδ,在相同容许策略集上令rZ=infδρ(−Z+Gδ−Cδ)、r0=infδρ(Gδ−Cδ)。 收到p后优化风险为rZ−p,故无差异条件给出p=rZ−r0。在鞅测度、收益可积、成本非负且允许零交易时, Jensen给出r0≥0,零策略给出r0≤0,故基准为零。实际漂移下未必为零。 对数正态尾部下离散少对冲的看涨期权,可能经验指数风险有限而总体指数风险无限。

  2. 反射带换手及缩放。 反射对冲误差的方差率为\(a^2\),推导总换手\(a^2/(2h)\),并最小化\(\gamma\sigma^2S^2h^2/6+cS a^2/(2h)\)。说明小成本假设。

    解答

    局部误差dε=a dW+dL−dU限制于[−h,h]。平稳时对ε²用Itô: 0=a²−2h E[dL+dU]/dt,总换手率为a²/(2h)。均匀平稳误差方差为h²/3。 取a²=σ²S²Γ²,每单位时间目标为J(h)=γσ²S²h²/6+cSσ²S²Γ²/(2h)。令导数为零, 得h³=3cSΓ²/(2γ)。这是系数局部缓变、小成本、连续再平衡的渐近近似,不是每日神经策略精确最优解。

  3. BSDE及单位。 用Itô公式及定价PDE得到\(dY=f(Y)dt+Z\cdot dW\),其中\(Y=u(t,X)\)、\(Z_i=\sigma X_i\partial_i u\);区分\(Z\)与股票股数。

    解答

    对dXi=μiXi dt+σXi dWi使用Itô, dY=(u_t+𝓛u)dt+ΣiσXi∂iu dWi。若PDE为u_t+𝓛u=f(u),f(y)=[(1−δ)Q(y)+R]y, 终值u(T,X)=min Xi,则Zi=σXi∂iu。因此Zi是布朗增量暴露,股票持仓为Δi=Zi/(σXi)。 仅用股票对冲布朗风险,不能完美覆盖发行人违约。存在唯一性及PDE表示各需其可积性、Lipschitz、马尔可夫与正则条件。

  4. 微分回归正规方程。

    解答

    价格特征矩阵Φ为n×p,导数特征为Dj,导数标签为zj。 最小化‖Φw−y‖²+λΣj‖Djw−zj‖²,求导得到 (ΦᵀΦ+λΣjDjᵀDj)w=Φᵀy+λΣjDjᵀzj。奇异时需选广义解或明确正则化;相关及异方差标签可能需要不同加权模型。

  5. 停止规则下界。 从条件续持价值推导日期\(n\)的停止决策。为何固定规则的期望贴现支付是下界,而模拟样本均值未必是?

    解答

    令gn为贴现执行支付,Gnext为固定续持策略的贴现支付。给定Fn,目标为 gnF+EGnext|Fn,在F∈[0,1]上仿射,故gn≥E[Gnext|Fn]时停止最优;相等时任选。 仅条件于Xn需要充分马尔可夫状态。每个容许固定停止时τ满足E[gτ]≤supτ′E[gτ′]。 模拟样本均值可能因抽样误差超过真正最优值;下界针对期望。评估应独立于拟合策略的选择。

  6. Leland成本约定。 用单边比例成本\(c\)推导Leland波动率修正,再用往返成本\(k=2c\)表达,并说明近似条件。

    解答

    凸期权的小步近似为E|ΔΔ|≈ΓσS√Δt√(2/π)。单边比例成本c产生单位时间成本 cΓσS²√(2/π)/√Δt。把它吸收入½σ²S²Γ,得 σ̂²=σ²+2cσ√(2/π)/√Δt=σ²[1+√(2/π)k/(σ√Δt)],其中往返成本k=2c。 必须明确单边或往返约定。这是光滑伽马、高斯增量近似,不是精确有限成本复制或一般效用价格。

  7. Merton投资叠加。 在连续时间、完全、常波动率市场中,利率为零、采用指数效用;对可复制索赔,推导投资叠加\(\mu/(\gamma\sigma^2 S)\)。

    解答

    在无摩擦、完全、常波动模型dS/S=μdt+σdW中,利率为零、采用指数效用且索赔可复制, 对冲Δ与无索赔投资问题分离。若投资金额为π,HJB一阶条件为μVx+πσ²Vxx=0。 CARA满足−Vxx/Vx=γ,故π=μ/(γσ²),总股数δ*=Δ+μ/(γσ²S)。 复制使无差异比较中的优化投资机会抵消,因此完全市场溢价与μ无关。每日限制、成本和有限拟合不必精确恢复该理想解。

  8. 验证标签噪声。 验证标签条件无偏,独立噪声方差\(s^2\);推导总体均方误差分解。有限样本实现的均方根误差一定超过\(s\)吗?

    解答

    令Y=F(θ)+ε,E[ε|θ]=0;验证噪声给定θ后与已拟合预测器独立,且 E Var(ε|θ)=s²。展开平方并取期望:E(F̂−Y)²=E(F̂−F)²+s²。 这是总体恒等式,有限样本实现的均方根误差不必超过s。标签方差加倍不能确定拟合器如何变化。 隐含波动率反演非线性,可使有限路径标签有偏,故该恒等式不一定精确适用于这些标签。

  9. 连续线性总体损失。 (资格题)在平方可积假设下,对连续线性BSDE证明\(L_{\rm pop}=e^{2RT}(y_0-u_0)^2+\mathbb E\int_0^T e^{2R(T-t)}|Z-Z^*|^2dt\)。

    解答

    对可预测控制,要求E∫₀ᵀe^{2R(T−t)}|Zt|²dt有限。解线性方程得 YT=e^{RT}y0+∫₀ᵀe^{R(T−t)}Zt·dWt。目标表示为 g=e^{RT}u0+∫₀ᵀe^{R(T−t)}Zt·dWt。相减、平方、取期望;随机积分均值为零, 用Itô等距得Lpop=e^{2RT}(y0−u0)²+E∫₀ᵀe^{2R(T−t)}|Z−Z|²dt。 因此|y0−u0|≤e^{−RT}√Lpop。已知总体损失为9、R=.02、T=1,价格误差不超过 3e^{−.02}≈2.9406。仅观察训练损失9,不能得到此认证。

  10. 阶梯控制、欧拉与速率。 (资格题)对可预测左端点阶梯控制,在均方半阶Hölder正则性下推导连续总体控制误差底的\(O(h)\)上界。这是否证明精确\(1/N\)误差底,或认证欧拉批次损失?

    解答

    均匀网格宽h,无权可预测投影为 Zbar_i=E[h⁻¹∫ti^{ti+h}Zt dt|Fti];带权最优投影使用权重e^{2R(T−t)}的条件加权平均。 若E|Zt−Zs|²≤C|t−s|,测试左端点控制Zi=Zti可得 E∫|Zstep−Z*|²dt≤CT h/2;有界确定性指数权重仍保持O(h)。 这是上界,允许更小甚至为零的误差底;既不证明精确1/N速率,也不证明Ω(1/N)下界。 欧拉驱动是另一方案。令a=1+Rh>0,则E[YN−g]=aᴺy0−e^{RT}u0, 故|e^{−RT}aᴺy0−u0|≤e^{−RT}√Lpop,Euler。不能直接用连续系数从欧拉批次损失认证原始y0。 Han–Long非线性定理还需其正则及耦合条件、足够小的步长,以及这里未计算的常数。

研究图把不同权重及批次的损失取移动平均;末20、40或10个保存点均值,不是对单个冻结模型总体损失的独立估计。 非线性单位系数阴影省略定理常数与离散项,因此仅是诊断图。 主要论文与监管原始来源链接见英文参考段落。SR 26-2是不具强制约束力、按风险调整的监管指导, 主要相关于资产超过三百亿美元的银行,并明确排除生成式与代理式人工智能;排除不等于无需治理。 2022年公开报道支持Euro Stoxx棘轮上线及标普扩展计划,不支持未经核实的2018年起香草期权账簿主张。

Build the film

python -m videos.quant.quant17.compute      # the part's numbers, into .cache/quant17
python tools/make.py quant17                # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant17 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/quant/quant17. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.